diff --git a/.eslintrc.json b/.eslintrc.json index 6521fcec95..8f775a9702 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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", @@ -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" } }, { diff --git a/README.md b/README.md index 086f5f3873..94c6046818 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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" } ``` diff --git a/angular.json b/angular.json index 9e16775b2b..d61a186fe2 100644 --- a/angular.json +++ b/angular.json @@ -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", @@ -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": { @@ -88,8 +88,6 @@ "sourceMap": false, "namedChunks": false, "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true, "budgets": [ { "type": "initial", @@ -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", @@ -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": { @@ -336,8 +334,6 @@ "sourceMap": false, "namedChunks": false, "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true, "budgets": [ { "type": "initial", diff --git a/docs/guides/getting-started.md b/docs/guides/getting-started.md index 2eb69b9d38..5a39846be8 100644 --- a/docs/guides/getting-started.md +++ b/docs/guides/getting-started.md @@ -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 @@ -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" } ``` diff --git a/docs/guides/migration-poui.md b/docs/guides/migration-poui.md index 7b62c37f2d..e1075d8293 100644 --- a/docs/guides/migration-poui.md +++ b/docs/guides/migration-poui.md @@ -29,7 +29,7 @@ ng update @angular/cli@ @angular/core@ --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/). @@ -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", ... } ``` diff --git a/docs/guides/releases.md b/docs/guides/releases.md index 35b5522e74..3e11fd021a 100644 --- a/docs/guides/releases.md +++ b/docs/guides/releases.md @@ -38,6 +38,11 @@ Consulte abaixo nossos guias de migração de versão para obter mais informaç + + 19.0.0 + 19.0.0 + Migração do PO UI + 18.0.0 18.0.0 diff --git a/docs/guides/sync-get-started.md b/docs/guides/sync-get-started.md index 5375018ec5..58a91bacb5 100644 --- a/docs/guides/sync-get-started.md +++ b/docs/guides/sync-get-started.md @@ -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 @@ -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" }, ... ``` @@ -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) { @@ -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 { diff --git a/package.json b/package.json index b38b03d743..b4b8406b9c 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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": { diff --git a/projects/app/.eslintrc.json b/projects/app/.eslintrc.json index 4bc5136a55..b42435ead3 100644 --- a/projects/app/.eslintrc.json +++ b/projects/app/.eslintrc.json @@ -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", diff --git a/projects/app/e2e/tsconfig.json b/projects/app/e2e/tsconfig.json index 5e8d1f4d50..e48306f74f 100644 --- a/projects/app/e2e/tsconfig.json +++ b/projects/app/e2e/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../../../out-tsc/e2e", "module": "commonjs", diff --git a/projects/app/src/app/app.component.ts b/projects/app/src/app/app.component.ts index f45969e5cd..7bf08e2511 100644 --- a/projects/app/src/app/app.component.ts +++ b/projects/app/src/app/app.component.ts @@ -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 {} diff --git a/projects/app/tsconfig.app.json b/projects/app/tsconfig.app.json index d6371682ce..cc10af0398 100644 --- a/projects/app/tsconfig.app.json +++ b/projects/app/tsconfig.app.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { "outDir": "../../out-tsc/app", "types": [] diff --git a/projects/app/tsconfig.spec.json b/projects/app/tsconfig.spec.json index 483f7515b3..ec3528a8fd 100644 --- a/projects/app/tsconfig.spec.json +++ b/projects/app/tsconfig.spec.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { "outDir": "../../out-tsc/spec", "types": ["jasmine", "node"] diff --git a/projects/code-editor/.eslintrc.json b/projects/code-editor/.eslintrc.json index 5935cb00bc..e55ba6190e 100644 --- a/projects/code-editor/.eslintrc.json +++ b/projects/code-editor/.eslintrc.json @@ -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", diff --git a/projects/code-editor/package.json b/projects/code-editor/package.json index ae7e37efca..19e464f0d4 100644 --- a/projects/code-editor/package.json +++ b/projects/code-editor/package.json @@ -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" } } diff --git a/projects/code-editor/src/lib/components/po-code-editor/po-code-editor-register.service.ts b/projects/code-editor/src/lib/components/po-code-editor/po-code-editor-register.service.ts index 1c00264971..21885ccbe5 100644 --- a/projects/code-editor/src/lib/components/po-code-editor/po-code-editor-register.service.ts +++ b/projects/code-editor/src/lib/components/po-code-editor/po-code-editor-register.service.ts @@ -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; diff --git a/projects/code-editor/src/lib/components/po-code-editor/po-code-editor.component.ts b/projects/code-editor/src/lib/components/po-code-editor/po-code-editor.component.ts index 1966dbde0a..8ca89dd56f 100644 --- a/projects/code-editor/src/lib/components/po-code-editor/po-code-editor.component.ts +++ b/projects/code-editor/src/lib/components/po-code-editor/po-code-editor.component.ts @@ -59,7 +59,8 @@ const providers: Array = [ @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; diff --git a/projects/code-editor/src/lib/components/po-code-editor/samples/sample-po-code-editor-basic/sample-po-code-editor-basic.component.ts b/projects/code-editor/src/lib/components/po-code-editor/samples/sample-po-code-editor-basic/sample-po-code-editor-basic.component.ts index 01f22f6e46..c684b8c0e1 100644 --- a/projects/code-editor/src/lib/components/po-code-editor/samples/sample-po-code-editor-basic/sample-po-code-editor-basic.component.ts +++ b/projects/code-editor/src/lib/components/po-code-editor/samples/sample-po-code-editor-basic/sample-po-code-editor-basic.component.ts @@ -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 {} diff --git a/projects/code-editor/src/lib/components/po-code-editor/samples/sample-po-code-editor-diff/sample-po-code-editor-diff.component.ts b/projects/code-editor/src/lib/components/po-code-editor/samples/sample-po-code-editor-diff/sample-po-code-editor-diff.component.ts index 68df657a11..1884a96c6a 100644 --- a/projects/code-editor/src/lib/components/po-code-editor/samples/sample-po-code-editor-diff/sample-po-code-editor-diff.component.ts +++ b/projects/code-editor/src/lib/components/po-code-editor/samples/sample-po-code-editor-diff/sample-po-code-editor-diff.component.ts @@ -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 = [ diff --git a/projects/code-editor/src/lib/components/po-code-editor/samples/sample-po-code-editor-labs/sample-po-code-editor-labs.component.ts b/projects/code-editor/src/lib/components/po-code-editor/samples/sample-po-code-editor-labs/sample-po-code-editor-labs.component.ts index 0e720e0980..cc80b5510d 100644 --- a/projects/code-editor/src/lib/components/po-code-editor/samples/sample-po-code-editor-labs/sample-po-code-editor-labs.component.ts +++ b/projects/code-editor/src/lib/components/po-code-editor/samples/sample-po-code-editor-labs/sample-po-code-editor-labs.component.ts @@ -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; diff --git a/projects/code-editor/src/lib/components/po-code-editor/samples/sample-po-code-editor-suggestion/sample-po-code-editor-suggestion.component.ts b/projects/code-editor/src/lib/components/po-code-editor/samples/sample-po-code-editor-suggestion/sample-po-code-editor-suggestion.component.ts index c7e7ad1062..d21c4f15f6 100644 --- a/projects/code-editor/src/lib/components/po-code-editor/samples/sample-po-code-editor-suggestion/sample-po-code-editor-suggestion.component.ts +++ b/projects/code-editor/src/lib/components/po-code-editor/samples/sample-po-code-editor-suggestion/sample-po-code-editor-suggestion.component.ts @@ -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'; diff --git a/projects/code-editor/src/lib/components/po-code-editor/samples/sample-po-code-editor-terraform/sample-po-code-editor-terraform.component.ts b/projects/code-editor/src/lib/components/po-code-editor/samples/sample-po-code-editor-terraform/sample-po-code-editor-terraform.component.ts index 1d01567ab5..f16e7e57e3 100644 --- a/projects/code-editor/src/lib/components/po-code-editor/samples/sample-po-code-editor-terraform/sample-po-code-editor-terraform.component.ts +++ b/projects/code-editor/src/lib/components/po-code-editor/samples/sample-po-code-editor-terraform/sample-po-code-editor-terraform.component.ts @@ -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 {} diff --git a/projects/code-editor/tsconfig.lib.json b/projects/code-editor/tsconfig.lib.json index 4b2c73a007..38eff1d7cf 100644 --- a/projects/code-editor/tsconfig.lib.json +++ b/projects/code-editor/tsconfig.lib.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { "outDir": "../../out-tsc/lib", "declarationMap": true, diff --git a/projects/code-editor/tsconfig.schematics.json b/projects/code-editor/tsconfig.schematics.json index 38fd5cfb16..08454e09fb 100644 --- a/projects/code-editor/tsconfig.schematics.json +++ b/projects/code-editor/tsconfig.schematics.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { "baseUrl": "../../", "lib": ["es2018", "dom"], diff --git a/projects/code-editor/tsconfig.spec.json b/projects/code-editor/tsconfig.spec.json index 483f7515b3..ec3528a8fd 100644 --- a/projects/code-editor/tsconfig.spec.json +++ b/projects/code-editor/tsconfig.spec.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { "outDir": "../../out-tsc/spec", "types": ["jasmine", "node"] diff --git a/projects/portal/.eslintrc.json b/projects/portal/.eslintrc.json index 6190e442da..a35fe07554 100644 --- a/projects/portal/.eslintrc.json +++ b/projects/portal/.eslintrc.json @@ -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", diff --git a/projects/portal/docs/processors/helpers/file-writer.js b/projects/portal/docs/processors/helpers/file-writer.js index 9933d43532..0945c89bc7 100644 --- a/projects/portal/docs/processors/helpers/file-writer.js +++ b/projects/portal/docs/processors/helpers/file-writer.js @@ -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 { } `; @@ -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; @@ -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; diff --git a/projects/portal/docs/templates/guide/guide.component.template.ts b/projects/portal/docs/templates/guide/guide.component.template.ts index 95642364a3..180153f977 100644 --- a/projects/portal/docs/templates/guide/guide.component.template.ts +++ b/projects/portal/docs/templates/guide/guide.component.template.ts @@ -10,6 +10,7 @@ import { Component } from '@angular/core'; li { margin-left: 16px; } - `] + `], + standalone: false }) export class Guide<%- component %>Component { } diff --git a/projects/portal/docs/templates/menu-components.service.template.ts b/projects/portal/docs/templates/menu-components.service.template.ts index 752d3fd8f5..0c4ee91285 100644 --- a/projects/portal/docs/templates/menu-components.service.template.ts +++ b/projects/portal/docs/templates/menu-components.service.template.ts @@ -1,6 +1,8 @@ import { Injectable } from '@angular/core'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class MenuComponentsService { constructor() {} diff --git a/projects/portal/docs/templates/menu-guides.service.template.ts b/projects/portal/docs/templates/menu-guides.service.template.ts index c3b40e5b7d..c056688a4b 100644 --- a/projects/portal/docs/templates/menu-guides.service.template.ts +++ b/projects/portal/docs/templates/menu-guides.service.template.ts @@ -2,7 +2,9 @@ import { Injectable } from '@angular/core'; import { PoMenuItem } from '@po-ui/ng-components'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class MenuGuidesService { constructor() {} diff --git a/projects/portal/docs/templates/menu.service.template.ts b/projects/portal/docs/templates/menu.service.template.ts index 45fcd788c9..aac93f019e 100644 --- a/projects/portal/docs/templates/menu.service.template.ts +++ b/projects/portal/docs/templates/menu.service.template.ts @@ -4,7 +4,9 @@ import { PoMenuItem } from '@po-ui/ng-components'; import { Documentation } from './documentation/documentation.class'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class MenuService { constructor() { } diff --git a/projects/portal/src/app/app.component.ts b/projects/portal/src/app/app.component.ts index ea41214cd8..ed1377b428 100644 --- a/projects/portal/src/app/app.component.ts +++ b/projects/portal/src/app/app.component.ts @@ -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 = []; diff --git a/projects/portal/src/app/documentation/documentation-code.directive.ts b/projects/portal/src/app/documentation/documentation-code.directive.ts index e68b91e7de..5e20e002a3 100644 --- a/projects/portal/src/app/documentation/documentation-code.directive.ts +++ b/projects/portal/src/app/documentation/documentation-code.directive.ts @@ -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) {} diff --git a/projects/portal/src/app/documentation/documentation-list.component.ts b/projects/portal/src/app/documentation/documentation-list.component.ts index cc5aef7e6f..551ae9503f 100644 --- a/projects/portal/src/app/documentation/documentation-list.component.ts +++ b/projects/portal/src/app/documentation/documentation-list.component.ts @@ -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; diff --git a/projects/portal/src/app/documentation/documentation.component.ts b/projects/portal/src/app/documentation/documentation.component.ts index eff7528df4..65171eee8b 100644 --- a/projects/portal/src/app/documentation/documentation.component.ts +++ b/projects/portal/src/app/documentation/documentation.component.ts @@ -5,7 +5,8 @@ import { MenuComponentsService } from './menu-components.service'; @Component({ templateUrl: './documentation.component.html', - providers: [MenuComponentsService] + providers: [MenuComponentsService], + standalone: false }) export class DocumentationComponent implements OnInit { menus = []; diff --git a/projects/portal/src/app/documentation/documentation.service.ts b/projects/portal/src/app/documentation/documentation.service.ts index 0cb1d275b5..7bbb72382f 100644 --- a/projects/portal/src/app/documentation/documentation.service.ts +++ b/projects/portal/src/app/documentation/documentation.service.ts @@ -6,7 +6,9 @@ import { map } from 'rxjs/operators'; import { Documentation } from './documentation.class'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class DocumentationService { constructor(private http: HttpClient) {} diff --git a/projects/portal/src/app/documentation/menu-components.service.ts b/projects/portal/src/app/documentation/menu-components.service.ts index 752d3fd8f5..0c4ee91285 100644 --- a/projects/portal/src/app/documentation/menu-components.service.ts +++ b/projects/portal/src/app/documentation/menu-components.service.ts @@ -1,6 +1,8 @@ import { Injectable } from '@angular/core'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class MenuComponentsService { constructor() {} diff --git a/projects/portal/src/app/guide/guides.components.ts b/projects/portal/src/app/guide/guides.components.ts index 1cd903bf5d..524e5e65af 100644 --- a/projects/portal/src/app/guide/guides.components.ts +++ b/projects/portal/src/app/guide/guides.components.ts @@ -5,7 +5,8 @@ import { MenuGuidesService } from './menu-guides.service'; @Component({ templateUrl: './guides.component.html', - providers: [MenuGuidesService] + providers: [MenuGuidesService], + standalone: false }) export class GuidesComponent implements OnInit { menus = []; diff --git a/projects/portal/src/app/home/home-colorful/home-colorful.component.ts b/projects/portal/src/app/home/home-colorful/home-colorful.component.ts index 3fa9029804..a148baad08 100644 --- a/projects/portal/src/app/home/home-colorful/home-colorful.component.ts +++ b/projects/portal/src/app/home/home-colorful/home-colorful.component.ts @@ -5,7 +5,8 @@ import { HomeColorfulService } from './home-colorful.service'; @Component({ selector: 'app-home-colorful', templateUrl: './home-colorful.component.html', - styleUrls: ['./home-colorful.component.css'] + styleUrls: ['./home-colorful.component.css'], + standalone: false }) export class HomeColorfulComponent implements OnInit { public stargazers_count: number; diff --git a/projects/portal/src/app/home/home.component.ts b/projects/portal/src/app/home/home.component.ts index 341123d487..3f38cfb0f3 100644 --- a/projects/portal/src/app/home/home.component.ts +++ b/projects/portal/src/app/home/home.component.ts @@ -4,7 +4,8 @@ import { Router } from '@angular/router'; @Component({ selector: 'app-home', templateUrl: 'home.component.html', - styleUrls: ['home.component.css'] + styleUrls: ['home.component.css'], + standalone: false }) export class HomeComponent { constructor(private router: Router) {} diff --git a/projects/portal/src/app/icons/icons.component.ts b/projects/portal/src/app/icons/icons.component.ts index 5eec972393..f5203447ff 100644 --- a/projects/portal/src/app/icons/icons.component.ts +++ b/projects/portal/src/app/icons/icons.component.ts @@ -5,7 +5,8 @@ import { PoComboOption, PoNotificationService, PoSearchComponent, PoSearchFilter @Component({ selector: 'app-icons', templateUrl: './icons.component.html', - styleUrls: ['icons.component.css'] + styleUrls: ['icons.component.css'], + standalone: false }) export class IconsComponent { @ViewChild('poSearch', { static: true }) PoSearch: PoSearchComponent; diff --git a/projects/portal/src/app/menu-components.service.ts b/projects/portal/src/app/menu-components.service.ts index 9467e07243..c528c5be20 100644 --- a/projects/portal/src/app/menu-components.service.ts +++ b/projects/portal/src/app/menu-components.service.ts @@ -1,6 +1,8 @@ import { Injectable } from '@angular/core'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class MenuComponentsService { constructor() {} diff --git a/projects/portal/src/app/theme-builder/theme-builder.component.ts b/projects/portal/src/app/theme-builder/theme-builder.component.ts index 310368d051..d3298602f0 100644 --- a/projects/portal/src/app/theme-builder/theme-builder.component.ts +++ b/projects/portal/src/app/theme-builder/theme-builder.component.ts @@ -34,7 +34,8 @@ import { selector: 'app-theme-builder', templateUrl: './theme-builder.component.html', styleUrls: ['theme-builder.component.css'], - encapsulation: ViewEncapsulation.None + encapsulation: ViewEncapsulation.None, + standalone: false }) export class ThemeBuilderComponent implements AfterViewInit, OnInit { @ViewChild('viewCSSModal') viewCSSModal: PoModalComponent; diff --git a/projects/portal/src/app/tools/tools-dynamic-form/tools-dynamic-form.component.ts b/projects/portal/src/app/tools/tools-dynamic-form/tools-dynamic-form.component.ts index 0ecb8ef5df..29a24ce1a2 100644 --- a/projects/portal/src/app/tools/tools-dynamic-form/tools-dynamic-form.component.ts +++ b/projects/portal/src/app/tools/tools-dynamic-form/tools-dynamic-form.component.ts @@ -15,7 +15,8 @@ import { @Component({ selector: 'app-tools-dynamic-form', templateUrl: 'tools-dynamic-form.component.html', - styleUrls: ['tools-dynamic-form.component.css'] + styleUrls: ['tools-dynamic-form.component.css'], + standalone: false }) export class ToolsDynamicFormComponent { @ViewChild('generatorForm') generatorForm: NgForm; diff --git a/projects/portal/src/app/tools/tools-dynamic-view/tools-dynamic-view.component.ts b/projects/portal/src/app/tools/tools-dynamic-view/tools-dynamic-view.component.ts index 393570fed5..94b4ba6c56 100644 --- a/projects/portal/src/app/tools/tools-dynamic-view/tools-dynamic-view.component.ts +++ b/projects/portal/src/app/tools/tools-dynamic-view/tools-dynamic-view.component.ts @@ -17,7 +17,8 @@ import { @Component({ selector: 'app-tools-dynamic-view', templateUrl: 'tools-dynamic-view.component.html', - styleUrls: ['tools-dynamic-view.component.css'] + styleUrls: ['tools-dynamic-view.component.css'], + standalone: false }) export class ToolsDynamicViewComponent { @ViewChild('generatorForm') generatorForm: NgForm; diff --git a/projects/portal/tsconfig.app.json b/projects/portal/tsconfig.app.json index d6371682ce..cc10af0398 100644 --- a/projects/portal/tsconfig.app.json +++ b/projects/portal/tsconfig.app.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { "outDir": "../../out-tsc/app", "types": [] diff --git a/projects/schematics/package.json b/projects/schematics/package.json index bcb747d06f..d225c1dff8 100644 --- a/projects/schematics/package.json +++ b/projects/schematics/package.json @@ -14,9 +14,9 @@ "postbuild": "gulp replaceVersion && cd ../../dist/ng-schematics && npm pack" }, "peerDependencies": { - "@angular-devkit/core": "^18", - "@angular-devkit/schematics": "^18", - "@schematics/angular": "^18" + "@angular-devkit/core": "^19", + "@angular-devkit/schematics": "^19", + "@schematics/angular": "^19" }, "dependencies": { "jsonc-parser": "^3.2.0" diff --git a/projects/storage/.eslintrc.json b/projects/storage/.eslintrc.json index 61af38c264..eaf8a1c4b5 100644 --- a/projects/storage/.eslintrc.json +++ b/projects/storage/.eslintrc.json @@ -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", diff --git a/projects/storage/package.json b/projects/storage/package.json index 7255bbba18..e7654cea53 100644 --- a/projects/storage/package.json +++ b/projects/storage/package.json @@ -18,11 +18,11 @@ "tslib": "^2.6.2" }, "peerDependencies": { - "@angular/core": "^18", + "@angular/core": "^19", "custom-idle-queue": "3.0.1", "localforage": "1.10.0", "lokijs": "1.5.12", "rxjs": "~7.8.1", - "zone.js": "~0.14.4" + "zone.js": "~0.15.0" } } diff --git a/projects/storage/src/lib/services/po-storage.service.ts b/projects/storage/src/lib/services/po-storage.service.ts index 6038a579d3..7a9de5e23d 100644 --- a/projects/storage/src/lib/services/po-storage.service.ts +++ b/projects/storage/src/lib/services/po-storage.service.ts @@ -82,7 +82,9 @@ export const PO_STORAGE_CONFIG_TOKEN = new InjectionToken('PO_STORAGE_CONFIG_TOK * export class AppModule {} * ``` */ -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoStorageService { private driver: string = null; private idleQueue = new IdleQueue(); diff --git a/projects/storage/tsconfig.lib.json b/projects/storage/tsconfig.lib.json index 4b2c73a007..38eff1d7cf 100644 --- a/projects/storage/tsconfig.lib.json +++ b/projects/storage/tsconfig.lib.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { "outDir": "../../out-tsc/lib", "declarationMap": true, diff --git a/projects/storage/tsconfig.schematics.json b/projects/storage/tsconfig.schematics.json index 94021a6438..2ae8422dc0 100644 --- a/projects/storage/tsconfig.schematics.json +++ b/projects/storage/tsconfig.schematics.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { "baseUrl": "../../", "lib": ["es2022", "dom"], diff --git a/projects/storage/tsconfig.spec.json b/projects/storage/tsconfig.spec.json index 483f7515b3..ec3528a8fd 100644 --- a/projects/storage/tsconfig.spec.json +++ b/projects/storage/tsconfig.spec.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { "outDir": "../../out-tsc/spec", "types": ["jasmine", "node"] diff --git a/projects/sync/.eslintrc.json b/projects/sync/.eslintrc.json index 915164d19a..9577b23682 100644 --- a/projects/sync/.eslintrc.json +++ b/projects/sync/.eslintrc.json @@ -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", diff --git a/projects/sync/package.json b/projects/sync/package.json index e7efefbe05..58bbb37ac6 100644 --- a/projects/sync/package.json +++ b/projects/sync/package.json @@ -18,22 +18,22 @@ ] }, "dependencies": { - "@capacitor/core": "^5.5.1", - "@capacitor/network": "^5.0.6", + "@capacitor/core": "^6.2.0", + "@capacitor/network": "^6.0.1", "@po-ui/ng-storage": "0.0.0-PLACEHOLDER", "http-status-codes": "^2.3.0", "@po-ui/ng-schematics": "0.0.0-PLACEHOLDER", - "tslib": "^2.6.2" + "tslib": "^2.3.0" }, "peerDependencies": { - "@angular/core": "^18", - "@angular-devkit/schematics": "^18", - "@capacitor/core": "^5.5.1", - "@capacitor/network": "^5.0.6", + "@angular/core": "^19", + "@angular-devkit/schematics": "^19", + "@capacitor/core": "^6.2.0", + "@capacitor/network": "^6.0.1", "@po-ui/ng-storage": "0.0.0-PLACEHOLDER", "http-status-codes": "^2.3.0", - "rxjs": "~7.8.1", + "rxjs": "~7.8.0", "rxjs-compat": "~6.6.0", - "zone.js": "~0.14.4" + "zone.js": "~0.15.0" } } diff --git a/projects/sync/schematics/collection.json b/projects/sync/schematics/collection.json index 93f0165d23..3c3e9647e6 100644 --- a/projects/sync/schematics/collection.json +++ b/projects/sync/schematics/collection.json @@ -6,6 +6,11 @@ "factory": "./ng-add/index", "schema": "./ng-add/schema.json" }, + "ng-add-setup-project": { + "description": "Sets up the specified project after the ng-add dependencies have been installed.", + "private": true, + "factory": "./ng-add/setup-project" + }, "schema": { "description": "Create a schema to sync a entity ", "factory": "./ng-generate/schema/index", diff --git a/projects/sync/schematics/ng-add/index.ts b/projects/sync/schematics/ng-add/index.ts index 2ba2a9aaf8..7f5c1ec96b 100644 --- a/projects/sync/schematics/ng-add/index.ts +++ b/projects/sync/schematics/ng-add/index.ts @@ -1,21 +1,7 @@ -import { chain, Rule, SchematicContext, SchematicsException, Tree } from '@angular-devkit/schematics'; +import { chain, Rule, schematic, SchematicContext, Tree } from '@angular-devkit/schematics'; import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks'; -import { addModuleImportToModule, hasNgModuleImport } from '@po-ui/ng-schematics/module'; import { addPackageToPackageJson } from '@po-ui/ng-schematics/package-config'; -import { - getProjectFromWorkspace, - getProjectTargetOptions, - getWorkspaceConfigGracefully -} from '@po-ui/ng-schematics/project'; -import { getAppModulePath } from '@schematics/angular/utility/ng-ast-utils'; -import { WorkspaceProject, WorkspaceSchema } from '@schematics/angular/utility/workspace-models'; - -/** PO Module name that will be inserted into app root module */ -const poStorageModuleName = 'PoStorageModule.forRoot()'; -const poStorageModuleSourcePath = '@po-ui/ng-storage'; -const poPoSyncModuleName = 'PoSyncModule'; -const poPoSyncModuleSourcePath = '@po-ui/ng-sync'; /** * Scaffolds the basics of the PO Sync, this includes: @@ -25,43 +11,17 @@ const poPoSyncModuleSourcePath = '@po-ui/ng-sync'; export default function (options: any): Rule { return chain([ addPoPackageAndInstall(), - addModuleImportToRootModuleSync(options, poStorageModuleName, poStorageModuleSourcePath), - addModuleImportToRootModuleSync(options, poPoSyncModuleName, poPoSyncModuleSourcePath) + schematic('ng-add-setup-project', { + ...options + }) ]); } function addPoPackageAndInstall(): Rule { return (tree: Tree, context: SchematicContext) => { addPackageToPackageJson(tree, '@po-ui/ng-sync', '0.0.0-PLACEHOLDER'); + // install packages context.addTask(new NodePackageInstallTask()); }; } - -export function addModuleImportToRootModuleSync(options: any, moduleName: string, modulePath: string) { - return (host: Tree) => { - const workspace = getWorkspaceConfigGracefully(host) ?? ({} as WorkspaceSchema); - const project: any = getProjectFromWorkspace(workspace, options.project); - const browserEntryPoint = getProjectMainFileSync(project); - - const appModulePath = getAppModulePath(host, browserEntryPoint); - if (!hasNgModuleImport(host, appModulePath, moduleName)) { - // not add the module if the project already use - addModuleImportToModule(host, appModulePath, moduleName, modulePath); - } - - return host; - }; -} - -/** Looks for the main TypeScript file in the given project and returns its path. */ -export function getProjectMainFileSync(project: WorkspaceProject): string { - const buildOptions = getProjectTargetOptions(project, 'build'); - if (!buildOptions.main) { - throw new SchematicsException( - `Could not find the project main file inside of the ` + `workspace config (${project.sourceRoot})` - ); - } - - return buildOptions.main; -} diff --git a/projects/sync/schematics/ng-add/setup-project.ts b/projects/sync/schematics/ng-add/setup-project.ts new file mode 100644 index 0000000000..982c88256a --- /dev/null +++ b/projects/sync/schematics/ng-add/setup-project.ts @@ -0,0 +1,135 @@ +import { chain, Rule, Tree } from '@angular-devkit/schematics'; +import { WorkspaceProject, WorkspaceSchema } from '@schematics/angular/utility/workspace-models'; +import { getAppModulePath, isStandaloneApp } from '@schematics/angular/utility/ng-ast-utils'; +import { addProviderToModule } from '@schematics/angular/utility/ast-utils'; + +import { addModuleImportToModule, getSourceFile, hasNgModuleImport } from '@po-ui/ng-schematics/module'; +import { + getProjectFromWorkspace, + getProjectTargetOptions, + getWorkspaceConfigGracefully +} from '@po-ui/ng-schematics/project'; + +/** PO Module name that will be inserted into app root module */ +const poStorageModuleName = 'PoStorageModule.forRoot()'; +const poStorageModuleSourcePath = '@po-ui/ng-storage'; +const poPoSyncModuleName = 'PoSyncModule'; +const poPoSyncModuleSourcePath = '@po-ui/ng-sync'; + +/** HttpClient Module name that will insert in app root module */ +const httpProvideHttpClientName = 'provideHttpClient'; +const httpWithInterceptorsFromDiName = 'withInterceptorsFromDi'; +const httpClientModuleSourcePath = '@angular/common/http'; + +export default function (options: any): Rule { + return chain([ + addModuleImportToRootModuleSync(options, poStorageModuleName, poStorageModuleSourcePath), + addModuleImportToRootModuleSync(options, poPoSyncModuleName, poPoSyncModuleSourcePath), + addImportOnly(options, [httpProvideHttpClientName, httpWithInterceptorsFromDiName], httpClientModuleSourcePath), + addProviderToAppModule(options, 'provideHttpClient(withInterceptorsFromDi()),') + ]); +} + +function addModuleImportToRootModuleSync(options: any, moduleName: string, modulePath: string) { + return (host: Tree) => { + const workspace = getWorkspaceConfigGracefully(host) ?? ({} as WorkspaceSchema); + const project: any = getProjectFromWorkspace(workspace, options.project); + const browserEntryPoint = getProjectMainFileSync(project); + + if (!browserEntryPoint || isStandaloneApp(host, browserEntryPoint)) { + return host; + } + + const appModulePath = getAppModulePath(host, browserEntryPoint); + if (!hasNgModuleImport(host, appModulePath, moduleName)) { + addModuleImportToModule(host, appModulePath, moduleName, modulePath); + } + + return host; + }; +} + +function addImportOnly(options: any, moduleNames: string | Array, importPath: string) { + return (host: Tree) => { + const workspace = getWorkspaceConfigGracefully(host) ?? ({} as WorkspaceSchema); + const project: any = getProjectFromWorkspace(workspace, options.project); + + const browserEntryPoint = getProjectMainFileSync(project); + + if (!browserEntryPoint || isStandaloneApp(host, browserEntryPoint)) { + return host; + } + + const modulePath = getAppModulePath(host, browserEntryPoint); + let importStatement: string; + + if (Array.isArray(moduleNames)) { + const names = moduleNames.join(', '); + importStatement = `import { ${names} } from '${importPath}';\n`; + } else { + importStatement = `import { ${moduleNames} } from '${importPath}';\n`; + } + + const recorder = host.beginUpdate(modulePath); + recorder.insertLeft(0, importStatement); + host.commitUpdate(recorder); + + return host; + }; +} + +function addProviderToAppModule(options: any, provider: { provide: string; useValue: string } | string) { + return (host: Tree) => { + const workspace = getWorkspaceConfigGracefully(host) ?? ({} as WorkspaceSchema); + const project: any = getProjectFromWorkspace(workspace, options.project); + const browserEntryPoint = getProjectMainFileSync(project); + + if (!browserEntryPoint || isStandaloneApp(host, browserEntryPoint)) { + return host; + } + + const appModulePath = getAppModulePath(host, browserEntryPoint); + + addProviderToModuleProvider(host, appModulePath, provider); + + return host; + }; +} + +function addProviderToModuleProvider( + tree: Tree, + modulePath: string, + provider: { provide: string; useValue: string } | string +) { + const moduleSource = getSourceFile(tree, modulePath); + const changes = addProviderToModule( + moduleSource as any, + modulePath, + ` + ${provider}`, + null as any + ); + + return insertChanges(tree, changes, modulePath); +} + +function getProjectMainFileSync(project: WorkspaceProject): string | null { + const buildOptions = getProjectTargetOptions(project, 'build'); + if (!buildOptions.main) { + return null; + } + + return buildOptions.main; +} + +function insertChanges(tree: Tree, changes: Array, modulePath: string) { + const recorder = tree.beginUpdate(modulePath); + + changes.forEach(change => { + if (change) { + recorder.insertLeft(change.pos, change.toAdd); + } + }); + + tree.commitUpdate(recorder); +} diff --git a/projects/sync/src/lib/services/po-event-sourcing/po-event-sourcing.service.spec.ts b/projects/sync/src/lib/services/po-event-sourcing/po-event-sourcing.service.spec.ts index 013a69f483..3c54b8e33f 100644 --- a/projects/sync/src/lib/services/po-event-sourcing/po-event-sourcing.service.spec.ts +++ b/projects/sync/src/lib/services/po-event-sourcing/po-event-sourcing.service.spec.ts @@ -26,14 +26,18 @@ import { PoSyncSchema } from './../po-sync/interfaces/po-sync-schema.interface'; const EVENT_SOURCING_NAME: string = PoEventSourcingService['event_sourcing_name']; -@Injectable() +@Injectable({ + providedIn: 'root' +}) class StorageServiceMock extends PoStorageService { constructor() { super(); } } -@Injectable() +@Injectable({ + providedIn: 'root' +}) class PoDataTransformMock extends PoDataTransform { getDateFieldName(): string { return undefined; diff --git a/projects/sync/src/lib/services/po-event-sourcing/po-event-sourcing.service.ts b/projects/sync/src/lib/services/po-event-sourcing/po-event-sourcing.service.ts index b0f8c4eec6..5c886c89e3 100644 --- a/projects/sync/src/lib/services/po-event-sourcing/po-event-sourcing.service.ts +++ b/projects/sync/src/lib/services/po-event-sourcing/po-event-sourcing.service.ts @@ -25,7 +25,9 @@ import { PoSyncConfig } from '../po-sync/interfaces/po-sync-config.interface'; import { PoSyncResponse } from '../po-sync/interfaces/po-sync-response.interface'; import { PoSyncSchema } from './../po-sync/interfaces/po-sync-schema.interface'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoEventSourcingService { static readonly event_sourcing_name: string = 'EventSourcing'; @@ -283,7 +285,7 @@ export class PoEventSourcingService { } } - private diffServerItems(currentUrlDiff): Observable> { + private diffServerItems(currentUrlDiff): Observable> { return this.poHttpClient.get(currentUrlDiff); } @@ -433,7 +435,7 @@ export class PoEventSourcingService { private sendResponseSubject( eventSourcingItem: PoEventSourcingItem, - response: HttpResponse | HttpErrorResponse | PoEventSourcingErrorResponse, + response: HttpResponse | HttpErrorResponse | PoEventSourcingErrorResponse, isSubjectError: boolean = false ): Promise { const poSyncResponse: PoSyncResponse = { diff --git a/projects/sync/src/lib/services/po-http-client/po-http-client.service.ts b/projects/sync/src/lib/services/po-http-client/po-http-client.service.ts index d93ccb370c..065064842c 100644 --- a/projects/sync/src/lib/services/po-http-client/po-http-client.service.ts +++ b/projects/sync/src/lib/services/po-http-client/po-http-client.service.ts @@ -14,7 +14,9 @@ import { PoHttpRequestType } from './po-http-request-type.enum'; * * Serviço para execução de requisições HTTP. */ -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoHttpClientService { constructor(private httpClient: HttpClient) {} @@ -24,7 +26,7 @@ export class PoHttpClientService { * @param {PoHttpRequestData} poHttpOperationData Parâmetros para a construção * da requisição. */ - createRequest(poHttpOperationData: PoHttpRequestData): Observable> { + createRequest(poHttpOperationData: PoHttpRequestData): Observable> { const httpHeaders = this.createHttpHeaders(poHttpOperationData.headers); return this.httpClient.request(poHttpOperationData.method, poHttpOperationData.url, { diff --git a/projects/sync/src/lib/services/po-network/po-network.service.ts b/projects/sync/src/lib/services/po-network/po-network.service.ts index f9ec06d593..4c41265d08 100644 --- a/projects/sync/src/lib/services/po-network/po-network.service.ts +++ b/projects/sync/src/lib/services/po-network/po-network.service.ts @@ -13,7 +13,9 @@ import { PoNetworkStatus } from './../../models'; * O `PoNetworkService` é utilizado para verificar o status e o tipo da conexão de rede do dispositivo. */ -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoNetworkService { private networkType: string; private networkTypeNow: Subject<{ status: boolean; type: string }>; diff --git a/projects/sync/src/lib/services/po-schema/po-schema-definition/po-schema-definition.service.spec.ts b/projects/sync/src/lib/services/po-schema/po-schema-definition/po-schema-definition.service.spec.ts index a128095069..a4a854229e 100644 --- a/projects/sync/src/lib/services/po-schema/po-schema-definition/po-schema-definition.service.spec.ts +++ b/projects/sync/src/lib/services/po-schema/po-schema-definition/po-schema-definition.service.spec.ts @@ -7,7 +7,9 @@ import { PoSchemaDefinitionService } from './po-schema-definition.service'; import { PoSchemaUtil } from './../po-schema-util/po-schema-util.model'; import { PoSyncSchema } from './../../po-sync/interfaces/po-sync-schema.interface'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) class PoStorageServiceMock extends PoStorageService { constructor() { super(); diff --git a/projects/sync/src/lib/services/po-schema/po-schema-definition/po-schema-definition.service.ts b/projects/sync/src/lib/services/po-schema/po-schema-definition/po-schema-definition.service.ts index 8333a02c1c..5f83266e10 100644 --- a/projects/sync/src/lib/services/po-schema/po-schema-definition/po-schema-definition.service.ts +++ b/projects/sync/src/lib/services/po-schema/po-schema-definition/po-schema-definition.service.ts @@ -12,7 +12,9 @@ import { PoSyncSchema } from './../../po-sync/interfaces/po-sync-schema.interfac * * Serviço que disponibiliza métodos que permite operar sobre as definições dos *schemas*. */ -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoSchemaDefinitionService { constructor(private poStorage: PoStorageService) {} diff --git a/projects/sync/src/lib/services/po-schema/po-schema.service.spec.ts b/projects/sync/src/lib/services/po-schema/po-schema.service.spec.ts index 7678739c1e..fe236908e1 100644 --- a/projects/sync/src/lib/services/po-schema/po-schema.service.spec.ts +++ b/projects/sync/src/lib/services/po-schema/po-schema.service.spec.ts @@ -8,14 +8,18 @@ import { PoSchemaService } from './po-schema.service'; import { PoSchemaUtil } from './po-schema-util/po-schema-util.model'; import { PoSyncSchema } from './../po-sync/interfaces/po-sync-schema.interface'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) class PoStorageServiceMock extends PoStorageService { constructor() { super(); } } -@Injectable() +@Injectable({ + providedIn: 'root' +}) class PoSchemaDefinitionServiceMock extends PoSchemaDefinitionService {} describe('PoSchemaService:', () => { diff --git a/projects/sync/src/lib/services/po-schema/po-schema.service.ts b/projects/sync/src/lib/services/po-schema/po-schema.service.ts index 83cbb2bf3c..7850666c44 100644 --- a/projects/sync/src/lib/services/po-schema/po-schema.service.ts +++ b/projects/sync/src/lib/services/po-schema/po-schema.service.ts @@ -13,7 +13,9 @@ import { PoSyncSchema } from '../po-sync/interfaces/po-sync-schema.interface'; * * Serviço que realiza as operações nos `schemas`. */ -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoSchemaService { constructor( private poSchemaDefinitionService: PoSchemaDefinitionService, diff --git a/projects/sync/src/lib/services/po-sync/interfaces/po-sync-response.interface.ts b/projects/sync/src/lib/services/po-sync/interfaces/po-sync-response.interface.ts index 69fadcb528..69af234f02 100644 --- a/projects/sync/src/lib/services/po-sync/interfaces/po-sync-response.interface.ts +++ b/projects/sync/src/lib/services/po-sync/interfaces/po-sync-response.interface.ts @@ -21,5 +21,5 @@ export interface PoSyncResponse { request: PoHttpRequestData; /** Resposta retornada após a tentativa de envio para o servidor. */ - response: HttpResponse | HttpErrorResponse | PoEventSourcingErrorResponse; + response: HttpResponse | HttpErrorResponse | PoEventSourcingErrorResponse; } diff --git a/projects/sync/src/lib/services/po-sync/po-sync.service.ts b/projects/sync/src/lib/services/po-sync/po-sync.service.ts index 053b91eff1..dd4460a829 100644 --- a/projects/sync/src/lib/services/po-sync/po-sync.service.ts +++ b/projects/sync/src/lib/services/po-sync/po-sync.service.ts @@ -24,7 +24,9 @@ import { PoSyncSchema } from './interfaces/po-sync-schema.interface'; * armazenadas *offline* vindas do servidor. Nele ocorre toda a preparação dos modelos de dados retornados por * cada consulta. */ -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoSyncService { models: Array = []; diff --git a/projects/sync/tsconfig.lib.json b/projects/sync/tsconfig.lib.json index 3dc1d1fb03..4fc3bc5dd0 100644 --- a/projects/sync/tsconfig.lib.json +++ b/projects/sync/tsconfig.lib.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { "allowSyntheticDefaultImports": true, "outDir": "../../out-tsc/lib", diff --git a/projects/sync/tsconfig.schematics.json b/projects/sync/tsconfig.schematics.json index b45a36ee7c..529c70bcb4 100644 --- a/projects/sync/tsconfig.schematics.json +++ b/projects/sync/tsconfig.schematics.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { "baseUrl": "../..", "lib": ["es2022", "dom"], diff --git a/projects/sync/tsconfig.spec.json b/projects/sync/tsconfig.spec.json index b29a6a972d..bcbb08e958 100644 --- a/projects/sync/tsconfig.spec.json +++ b/projects/sync/tsconfig.spec.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { "module": "commonjs", "outDir": "../../out-tsc/spec", diff --git a/projects/templates/.eslintrc.json b/projects/templates/.eslintrc.json index 89e432cc0a..73abc27565 100644 --- a/projects/templates/.eslintrc.json +++ b/projects/templates/.eslintrc.json @@ -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", diff --git a/projects/templates/package.json b/projects/templates/package.json index 0d52bef68d..d9becc16d7 100644 --- a/projects/templates/package.json +++ b/projects/templates/package.json @@ -16,16 +16,16 @@ "tslib": "^2.6.2" }, "peerDependencies": { - "@angular/animations": "^18", - "@angular/common": "^18", - "@angular/compiler": "^18", - "@angular/core": "^18", - "@angular/forms": "^18", - "@angular/platform-browser": "^18", - "@angular/platform-browser-dynamic": "^18", - "@angular/router": "^18", + "@angular/animations": "^19", + "@angular/common": "^19", + "@angular/compiler": "^19", + "@angular/core": "^19", + "@angular/forms": "^19", + "@angular/platform-browser": "^19", + "@angular/platform-browser-dynamic": "^19", + "@angular/router": "^19", "@po-ui/ng-components": "0.0.0-PLACEHOLDER", "rxjs": "~7.8.1", - "zone.js": "~0.14.4" + "zone.js": "~0.15.0" } } diff --git a/projects/templates/src/lib/components/po-modal-password-recovery/po-modal-password-recovery-error-message/po-modal-password-recovery-error-message.component.ts b/projects/templates/src/lib/components/po-modal-password-recovery/po-modal-password-recovery-error-message/po-modal-password-recovery-error-message.component.ts index 53192e4554..88896971c0 100644 --- a/projects/templates/src/lib/components/po-modal-password-recovery/po-modal-password-recovery-error-message/po-modal-password-recovery-error-message.component.ts +++ b/projects/templates/src/lib/components/po-modal-password-recovery/po-modal-password-recovery-error-message/po-modal-password-recovery-error-message.component.ts @@ -9,7 +9,8 @@ import { Component, Input } from '@angular/core'; */ @Component({ selector: 'po-modal-password-recovery-error-message', - templateUrl: './po-modal-password-recovery-error-message.component.html' + templateUrl: './po-modal-password-recovery-error-message.component.html', + standalone: false }) export class PoModalPasswordRecoveryErrorMessageComponent { /** Texto exibido na mensagem de erro. */ diff --git a/projects/templates/src/lib/components/po-modal-password-recovery/po-modal-password-recovery.component.ts b/projects/templates/src/lib/components/po-modal-password-recovery/po-modal-password-recovery.component.ts index a682399adc..ceeb904303 100644 --- a/projects/templates/src/lib/components/po-modal-password-recovery/po-modal-password-recovery.component.ts +++ b/projects/templates/src/lib/components/po-modal-password-recovery/po-modal-password-recovery.component.ts @@ -42,7 +42,8 @@ import { PoModalPasswordRecoveryType } from './enums/po-modal-password-recovery- @Component({ selector: 'po-modal-password-recovery', - templateUrl: './po-modal-password-recovery.component.html' + templateUrl: './po-modal-password-recovery.component.html', + standalone: false }) export class PoModalPasswordRecoveryComponent extends PoModalPasswordRecoveryBaseComponent implements OnDestroy { @ViewChild('emailForm') emailForm: NgForm; diff --git a/projects/templates/src/lib/components/po-modal-password-recovery/po-modal-password-recovery.service.ts b/projects/templates/src/lib/components/po-modal-password-recovery/po-modal-password-recovery.service.ts index 996545e389..5253df5567 100644 --- a/projects/templates/src/lib/components/po-modal-password-recovery/po-modal-password-recovery.service.ts +++ b/projects/templates/src/lib/components/po-modal-password-recovery/po-modal-password-recovery.service.ts @@ -4,7 +4,9 @@ import { Observable } from 'rxjs'; import { PoModalPasswordRecovery } from './interfaces/po-modal-password-recovery.interface'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoModalPasswordRecoveryService { constructor(private http: HttpClient) {} @@ -12,7 +14,7 @@ export class PoModalPasswordRecoveryService { urlRecovery: string, item: PoModalPasswordRecovery, params?: HttpParams | { [param: string]: string | Array } - ): Observable> { + ): Observable> { return this.http.post(urlRecovery, item, { observe: 'response', params: params }); } } diff --git a/projects/templates/src/lib/components/po-modal-password-recovery/samples/sample-po-modal-password-recovery-basic/sample-po-modal-password-recovery-basic.component.ts b/projects/templates/src/lib/components/po-modal-password-recovery/samples/sample-po-modal-password-recovery-basic/sample-po-modal-password-recovery-basic.component.ts index fcebe63dc2..eaa9dfb95d 100644 --- a/projects/templates/src/lib/components/po-modal-password-recovery/samples/sample-po-modal-password-recovery-basic/sample-po-modal-password-recovery-basic.component.ts +++ b/projects/templates/src/lib/components/po-modal-password-recovery/samples/sample-po-modal-password-recovery-basic/sample-po-modal-password-recovery-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-modal-password-recovery-basic', - templateUrl: './sample-po-modal-password-recovery-basic.component.html' + templateUrl: './sample-po-modal-password-recovery-basic.component.html', + standalone: false }) export class SamplePoModalPasswordRecoveryBasicComponent {} diff --git a/projects/templates/src/lib/components/po-modal-password-recovery/samples/sample-po-modal-password-recovery-labs/sample-po-modal-password-recovery-labs.component.ts b/projects/templates/src/lib/components/po-modal-password-recovery/samples/sample-po-modal-password-recovery-labs/sample-po-modal-password-recovery-labs.component.ts index d1cd8c87fc..1994e54b2a 100644 --- a/projects/templates/src/lib/components/po-modal-password-recovery/samples/sample-po-modal-password-recovery-labs/sample-po-modal-password-recovery-labs.component.ts +++ b/projects/templates/src/lib/components/po-modal-password-recovery/samples/sample-po-modal-password-recovery-labs/sample-po-modal-password-recovery-labs.component.ts @@ -9,7 +9,8 @@ import { @Component({ selector: 'sample-po-modal-password-recovery-labs', - templateUrl: './sample-po-modal-password-recovery-labs.component.html' + templateUrl: './sample-po-modal-password-recovery-labs.component.html', + standalone: false }) export class SamplePoModalPasswordRecoveryLabsComponent implements OnInit { @ViewChild(PoModalPasswordRecoveryComponent) poModalPasswordRecovery: PoModalPasswordRecoveryComponent; diff --git a/projects/templates/src/lib/components/po-modal-password-recovery/samples/sample-po-modal-password-recovery-request/sample-po-modal-password-recovery-request.component.ts b/projects/templates/src/lib/components/po-modal-password-recovery/samples/sample-po-modal-password-recovery-request/sample-po-modal-password-recovery-request.component.ts index edb0c1b513..4ae608122d 100644 --- a/projects/templates/src/lib/components/po-modal-password-recovery/samples/sample-po-modal-password-recovery-request/sample-po-modal-password-recovery-request.component.ts +++ b/projects/templates/src/lib/components/po-modal-password-recovery/samples/sample-po-modal-password-recovery-request/sample-po-modal-password-recovery-request.component.ts @@ -4,7 +4,8 @@ import { PoModalPasswordRecoveryComponent, PoModalPasswordRecoveryType } from '@ @Component({ selector: 'sample-po-modal-password-recovery-request', - templateUrl: './sample-po-modal-password-recovery-request.component.html' + templateUrl: './sample-po-modal-password-recovery-request.component.html', + standalone: false }) export class SamplePoModalPasswordRecoveryRequestComponent { @ViewChild(PoModalPasswordRecoveryComponent) poModalPasswordRecovery: PoModalPasswordRecoveryComponent; diff --git a/projects/templates/src/lib/components/po-page-background/po-page-background.component.ts b/projects/templates/src/lib/components/po-page-background/po-page-background.component.ts index e19e8e0370..40cd68de8d 100644 --- a/projects/templates/src/lib/components/po-page-background/po-page-background.component.ts +++ b/projects/templates/src/lib/components/po-page-background/po-page-background.component.ts @@ -6,7 +6,8 @@ import { convertToBoolean } from './../../utils/util'; @Component({ selector: 'po-page-background', - templateUrl: './po-page-background.component.html' + templateUrl: './po-page-background.component.html', + standalone: false }) /** diff --git a/projects/templates/src/lib/components/po-page-blocked-user/po-page-blocked-user-contacts/po-page-blocked-user-contacts.component.ts b/projects/templates/src/lib/components/po-page-blocked-user/po-page-blocked-user-contacts/po-page-blocked-user-contacts.component.ts index 4aa55a49b8..25d13985bd 100644 --- a/projects/templates/src/lib/components/po-page-blocked-user/po-page-blocked-user-contacts/po-page-blocked-user-contacts.component.ts +++ b/projects/templates/src/lib/components/po-page-blocked-user/po-page-blocked-user-contacts/po-page-blocked-user-contacts.component.ts @@ -5,7 +5,8 @@ const poPageBlockedUserContactItemMargin = 16; @Component({ selector: 'po-page-blocked-user-contacts', templateUrl: './po-page-blocked-user-contacts.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoPageBlockedUserContactsComponent { @ViewChild('contactGroup', { static: true }) contactGroup: ElementRef; diff --git a/projects/templates/src/lib/components/po-page-blocked-user/po-page-blocked-user-reason/po-page-blocked-user-reason.component.ts b/projects/templates/src/lib/components/po-page-blocked-user/po-page-blocked-user-reason/po-page-blocked-user-reason.component.ts index 4c1a85588d..578e94ab84 100644 --- a/projects/templates/src/lib/components/po-page-blocked-user/po-page-blocked-user-reason/po-page-blocked-user-reason.component.ts +++ b/projects/templates/src/lib/components/po-page-blocked-user/po-page-blocked-user-reason/po-page-blocked-user-reason.component.ts @@ -8,7 +8,8 @@ import { PoPageBlockedUserReasonParams } from '../interfaces/po-page-blocked-use @Component({ selector: 'po-page-blocked-user-reason', - templateUrl: './po-page-blocked-user-reason.component.html' + templateUrl: './po-page-blocked-user-reason.component.html', + standalone: false }) export class PoPageBlockedUserReasonComponent implements OnChanges, OnInit { @Input('p-params') params: PoPageBlockedUserReasonParams; diff --git a/projects/templates/src/lib/components/po-page-blocked-user/po-page-blocked-user.component.ts b/projects/templates/src/lib/components/po-page-blocked-user/po-page-blocked-user.component.ts index f2220e1997..9f9f2b7acb 100644 --- a/projects/templates/src/lib/components/po-page-blocked-user/po-page-blocked-user.component.ts +++ b/projects/templates/src/lib/components/po-page-blocked-user/po-page-blocked-user.component.ts @@ -7,7 +7,7 @@ import { isExternalLink } from '../../utils/util'; import { PoPageBlockedUserBaseComponent } from './po-page-blocked-user-base.component'; -export const poPageBlockedUserButtonLiterals: Object = { +export const poPageBlockedUserButtonLiterals: object = { en: { primaryButton: 'Back to home screen' }, @@ -50,7 +50,8 @@ export const poPageBlockedUserButtonLiterals: Object = { @Component({ selector: 'po-page-blocked-user', - templateUrl: './po-page-blocked-user.component.html' + templateUrl: './po-page-blocked-user.component.html', + standalone: false }) export class PoPageBlockedUserComponent extends PoPageBlockedUserBaseComponent implements OnInit { literals; diff --git a/projects/templates/src/lib/components/po-page-blocked-user/samples/sample-po-page-blocked-user-basic/sample-po-page-blocked-user-basic.component.ts b/projects/templates/src/lib/components/po-page-blocked-user/samples/sample-po-page-blocked-user-basic/sample-po-page-blocked-user-basic.component.ts index a84f090462..de28d39c2b 100644 --- a/projects/templates/src/lib/components/po-page-blocked-user/samples/sample-po-page-blocked-user-basic/sample-po-page-blocked-user-basic.component.ts +++ b/projects/templates/src/lib/components/po-page-blocked-user/samples/sample-po-page-blocked-user-basic/sample-po-page-blocked-user-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-page-blocked-user-basic', - templateUrl: './sample-po-page-blocked-user-basic.component.html' + templateUrl: './sample-po-page-blocked-user-basic.component.html', + standalone: false }) export class SamplePoPageBlockedUserBasicComponent {} diff --git a/projects/templates/src/lib/components/po-page-blocked-user/samples/sample-po-page-blocked-user-exceeded-attempts/sample-po-page-blocked-user-exceeded-attempts.component.ts b/projects/templates/src/lib/components/po-page-blocked-user/samples/sample-po-page-blocked-user-exceeded-attempts/sample-po-page-blocked-user-exceeded-attempts.component.ts index e78729461d..04124ac88a 100644 --- a/projects/templates/src/lib/components/po-page-blocked-user/samples/sample-po-page-blocked-user-exceeded-attempts/sample-po-page-blocked-user-exceeded-attempts.component.ts +++ b/projects/templates/src/lib/components/po-page-blocked-user/samples/sample-po-page-blocked-user-exceeded-attempts/sample-po-page-blocked-user-exceeded-attempts.component.ts @@ -4,7 +4,8 @@ import { PoPageBlockedUserReasonParams } from '@po-ui/ng-templates'; @Component({ selector: 'sample-po-page-blocked-user-exceeded-attempts', - templateUrl: './sample-po-page-blocked-user-exceeded-attempts.component.html' + templateUrl: './sample-po-page-blocked-user-exceeded-attempts.component.html', + standalone: false }) export class SamplePoPageBlockedUserExceededAttemptsComponent { blocked = false; diff --git a/projects/templates/src/lib/components/po-page-blocked-user/samples/sample-po-page-blocked-user-expired-password/sample-po-page-blocked-user-expired-password.component.ts b/projects/templates/src/lib/components/po-page-blocked-user/samples/sample-po-page-blocked-user-expired-password/sample-po-page-blocked-user-expired-password.component.ts index 3e63f4180d..507109682b 100644 --- a/projects/templates/src/lib/components/po-page-blocked-user/samples/sample-po-page-blocked-user-expired-password/sample-po-page-blocked-user-expired-password.component.ts +++ b/projects/templates/src/lib/components/po-page-blocked-user/samples/sample-po-page-blocked-user-expired-password/sample-po-page-blocked-user-expired-password.component.ts @@ -2,7 +2,8 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-page-blocked-user-expired-password', - templateUrl: './sample-po-page-blocked-user-expired-password.component.html' + templateUrl: './sample-po-page-blocked-user-expired-password.component.html', + standalone: false }) export class SamplePoPageBlockedUserExpiredPasswordComponent { blocked = false; diff --git a/projects/templates/src/lib/components/po-page-blocked-user/samples/sample-po-page-blocked-user-labs/sample-po-page-blocked-user-labs.component.ts b/projects/templates/src/lib/components/po-page-blocked-user/samples/sample-po-page-blocked-user-labs/sample-po-page-blocked-user-labs.component.ts index 5472407b6b..46ae0038d4 100644 --- a/projects/templates/src/lib/components/po-page-blocked-user/samples/sample-po-page-blocked-user-labs/sample-po-page-blocked-user-labs.component.ts +++ b/projects/templates/src/lib/components/po-page-blocked-user/samples/sample-po-page-blocked-user-labs/sample-po-page-blocked-user-labs.component.ts @@ -5,7 +5,8 @@ import { PoRadioGroupOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-page-blocked-user-labs', - templateUrl: './sample-po-page-blocked-user-labs.component.html' + templateUrl: './sample-po-page-blocked-user-labs.component.html', + standalone: false }) export class SamplePoPageBlockedUserLabsComponent implements OnInit { contactMail: string; diff --git a/projects/templates/src/lib/components/po-page-change-password/po-page-change-password.component.ts b/projects/templates/src/lib/components/po-page-change-password/po-page-change-password.component.ts index 863a97ab2b..b80c05822e 100644 --- a/projects/templates/src/lib/components/po-page-change-password/po-page-change-password.component.ts +++ b/projects/templates/src/lib/components/po-page-change-password/po-page-change-password.component.ts @@ -55,7 +55,8 @@ import { PoPageChangePasswordService } from './po-page-change-password.service'; */ @Component({ selector: 'po-page-change-password', - templateUrl: './po-page-change-password.component.html' + templateUrl: './po-page-change-password.component.html', + standalone: false }) export class PoPageChangePasswordComponent extends PoPageChangePasswordBaseComponent diff --git a/projects/templates/src/lib/components/po-page-change-password/po-page-change-password.service.ts b/projects/templates/src/lib/components/po-page-change-password/po-page-change-password.service.ts index 4b881cee0b..f5ef8abf31 100644 --- a/projects/templates/src/lib/components/po-page-change-password/po-page-change-password.service.ts +++ b/projects/templates/src/lib/components/po-page-change-password/po-page-change-password.service.ts @@ -4,11 +4,13 @@ import { Observable } from 'rxjs'; import { HttpClient, HttpResponse } from '@angular/common/http'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoPageChangePasswordService { constructor(private http: HttpClient) {} - post(url: string, item: any): Observable> { + post(url: string, item: any): Observable> { return this.http.post(url, item, { observe: 'response' }); } } diff --git a/projects/templates/src/lib/components/po-page-change-password/samples/sample-po-page-change-password-basic/sample-po-page-change-password-basic.component.ts b/projects/templates/src/lib/components/po-page-change-password/samples/sample-po-page-change-password-basic/sample-po-page-change-password-basic.component.ts index ef53c91025..3cb5f86572 100644 --- a/projects/templates/src/lib/components/po-page-change-password/samples/sample-po-page-change-password-basic/sample-po-page-change-password-basic.component.ts +++ b/projects/templates/src/lib/components/po-page-change-password/samples/sample-po-page-change-password-basic/sample-po-page-change-password-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-page-change-password-basic', - templateUrl: './sample-po-page-change-password-basic.component.html' + templateUrl: './sample-po-page-change-password-basic.component.html', + standalone: false }) export class SamplePoPageChangePasswordBasicComponent {} diff --git a/projects/templates/src/lib/components/po-page-change-password/samples/sample-po-page-change-password-create/sample-po-page-change-password-create.component.ts b/projects/templates/src/lib/components/po-page-change-password/samples/sample-po-page-change-password-create/sample-po-page-change-password-create.component.ts index a7d57a53f1..48f2e98404 100644 --- a/projects/templates/src/lib/components/po-page-change-password/samples/sample-po-page-change-password-create/sample-po-page-change-password-create.component.ts +++ b/projects/templates/src/lib/components/po-page-change-password/samples/sample-po-page-change-password-create/sample-po-page-change-password-create.component.ts @@ -3,7 +3,8 @@ import { PoPageChangePasswordComponent, PoPageChangePasswordRequirement } from ' @Component({ selector: 'sample-po-page-change-password-create', - templateUrl: './sample-po-page-change-password-create.component.html' + templateUrl: './sample-po-page-change-password-create.component.html', + standalone: false }) export class SamplePoPageChangePasswordCreateComponent { @ViewChild(PoPageChangePasswordComponent, { static: true }) changePassword: PoPageChangePasswordComponent; diff --git a/projects/templates/src/lib/components/po-page-change-password/samples/sample-po-page-change-password-labs/sample-po-page-change-password-labs.component.ts b/projects/templates/src/lib/components/po-page-change-password/samples/sample-po-page-change-password-labs/sample-po-page-change-password-labs.component.ts index adc756869a..bf168ddd26 100644 --- a/projects/templates/src/lib/components/po-page-change-password/samples/sample-po-page-change-password-labs/sample-po-page-change-password-labs.component.ts +++ b/projects/templates/src/lib/components/po-page-change-password/samples/sample-po-page-change-password-labs/sample-po-page-change-password-labs.component.ts @@ -9,7 +9,8 @@ import { @Component({ selector: 'sample-po-page-change-password-labs', - templateUrl: './sample-po-page-change-password-labs.component.html' + templateUrl: './sample-po-page-change-password-labs.component.html', + standalone: false }) export class SamplePoPageChangePasswordLabsComponent implements OnInit { @ViewChild(PoPageChangePasswordComponent, { static: true }) changePassword: PoPageChangePasswordComponent; diff --git a/projects/templates/src/lib/components/po-page-change-password/samples/sample-po-page-change-password-modify/sample-po-page-change-password-modify.component.ts b/projects/templates/src/lib/components/po-page-change-password/samples/sample-po-page-change-password-modify/sample-po-page-change-password-modify.component.ts index ef8d784414..7bef4291d3 100644 --- a/projects/templates/src/lib/components/po-page-change-password/samples/sample-po-page-change-password-modify/sample-po-page-change-password-modify.component.ts +++ b/projects/templates/src/lib/components/po-page-change-password/samples/sample-po-page-change-password-modify/sample-po-page-change-password-modify.component.ts @@ -6,7 +6,8 @@ import { PoBreadcrumb, PoSelectOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-page-change-password-modify', - templateUrl: './sample-po-page-change-password-modify.component.html' + templateUrl: './sample-po-page-change-password-modify.component.html', + standalone: false }) export class SamplePoPageChangePasswordModifyComponent implements OnInit { @ViewChild(PoPageChangePasswordComponent) changePassword: PoPageChangePasswordComponent; diff --git a/projects/templates/src/lib/components/po-page-change-password/samples/sample-po-page-change-password-request/sample-po-page-change-password-request.component.ts b/projects/templates/src/lib/components/po-page-change-password/samples/sample-po-page-change-password-request/sample-po-page-change-password-request.component.ts index b3070fbaf7..8f04ef7d1c 100644 --- a/projects/templates/src/lib/components/po-page-change-password/samples/sample-po-page-change-password-request/sample-po-page-change-password-request.component.ts +++ b/projects/templates/src/lib/components/po-page-change-password/samples/sample-po-page-change-password-request/sample-po-page-change-password-request.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-page-change-password-request', - templateUrl: './sample-po-page-change-password-request.component.html' + templateUrl: './sample-po-page-change-password-request.component.html', + standalone: false }) export class SamplePoPageChangePasswordRequestComponent {} diff --git a/projects/templates/src/lib/components/po-page-dynamic-detail/po-page-dynamic-detail.component.ts b/projects/templates/src/lib/components/po-page-dynamic-detail/po-page-dynamic-detail.component.ts index c7ed3f49b5..72ddc3a24a 100644 --- a/projects/templates/src/lib/components/po-page-dynamic-detail/po-page-dynamic-detail.component.ts +++ b/projects/templates/src/lib/components/po-page-dynamic-detail/po-page-dynamic-detail.component.ts @@ -146,7 +146,8 @@ export const poPageDynamicDetailLiteralsDefault = { @Component({ selector: 'po-page-dynamic-detail', templateUrl: './po-page-dynamic-detail.component.html', - providers: [PoPageDynamicService, PoPageDynamicDetailActionsService] + providers: [PoPageDynamicService, PoPageDynamicDetailActionsService], + standalone: false }) export class PoPageDynamicDetailComponent implements OnInit, OnDestroy { /** Objeto com propriedades do breadcrumb. */ diff --git a/projects/templates/src/lib/components/po-page-dynamic-detail/samples/sample-po-page-dynamic-detail-user/sample-po-page-dynamic-detail-user.component.ts b/projects/templates/src/lib/components/po-page-dynamic-detail/samples/sample-po-page-dynamic-detail-user/sample-po-page-dynamic-detail-user.component.ts index dd41324eec..cbf928f79b 100644 --- a/projects/templates/src/lib/components/po-page-dynamic-detail/samples/sample-po-page-dynamic-detail-user/sample-po-page-dynamic-detail-user.component.ts +++ b/projects/templates/src/lib/components/po-page-dynamic-detail/samples/sample-po-page-dynamic-detail-user/sample-po-page-dynamic-detail-user.component.ts @@ -5,7 +5,8 @@ import { PoPageDynamicDetailActions, PoPageDynamicDetailField } from '@po-ui/ng- @Component({ selector: 'sample-po-page-dynamic-detail-user', - templateUrl: './sample-po-page-dynamic-detail-user.component.html' + templateUrl: './sample-po-page-dynamic-detail-user.component.html', + standalone: false }) export class SamplePoPageDynamicDetailUserComponent { public readonly serviceApi = 'https://po-sample-api.onrender.com/v1/people'; diff --git a/projects/templates/src/lib/components/po-page-dynamic-edit/po-page-dynamic-edit.component.ts b/projects/templates/src/lib/components/po-page-dynamic-edit/po-page-dynamic-edit.component.ts index d6fed130b2..a4e9151eba 100644 --- a/projects/templates/src/lib/components/po-page-dynamic-edit/po-page-dynamic-edit.component.ts +++ b/projects/templates/src/lib/components/po-page-dynamic-edit/po-page-dynamic-edit.component.ts @@ -184,7 +184,8 @@ export const poPageDynamicEditLiteralsDefault = { @Component({ selector: 'po-page-dynamic-edit', templateUrl: './po-page-dynamic-edit.component.html', - providers: [PoPageDynamicService] + providers: [PoPageDynamicService], + standalone: false }) export class PoPageDynamicEditComponent implements OnInit, OnDestroy { @ViewChild('dynamicForm') dynamicForm: PoDynamicFormComponent; diff --git a/projects/templates/src/lib/components/po-page-dynamic-edit/samples/sample-po-page-dynamic-edit-basic/sample-po-page-dynamic-edit-basic.component.ts b/projects/templates/src/lib/components/po-page-dynamic-edit/samples/sample-po-page-dynamic-edit-basic/sample-po-page-dynamic-edit-basic.component.ts index 450c4e1bae..70e07fed44 100644 --- a/projects/templates/src/lib/components/po-page-dynamic-edit/samples/sample-po-page-dynamic-edit-basic/sample-po-page-dynamic-edit-basic.component.ts +++ b/projects/templates/src/lib/components/po-page-dynamic-edit/samples/sample-po-page-dynamic-edit-basic/sample-po-page-dynamic-edit-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-page-dynamic-edit-basic', - templateUrl: './sample-po-page-dynamic-edit-basic.component.html' + templateUrl: './sample-po-page-dynamic-edit-basic.component.html', + standalone: false }) export class SamplePoPageDynamicEditBasicComponent {} diff --git a/projects/templates/src/lib/components/po-page-dynamic-edit/samples/sample-po-page-dynamic-edit-user/sample-po-page-dynamic-edit-user.component.ts b/projects/templates/src/lib/components/po-page-dynamic-edit/samples/sample-po-page-dynamic-edit-user/sample-po-page-dynamic-edit-user.component.ts index 04c579c6f7..1738f23642 100644 --- a/projects/templates/src/lib/components/po-page-dynamic-edit/samples/sample-po-page-dynamic-edit-user/sample-po-page-dynamic-edit-user.component.ts +++ b/projects/templates/src/lib/components/po-page-dynamic-edit/samples/sample-po-page-dynamic-edit-user/sample-po-page-dynamic-edit-user.component.ts @@ -6,7 +6,8 @@ import { PoPageDynamicEditActions, PoPageDynamicEditLiterals } from '@po-ui/ng-t @Component({ selector: 'sample-po-page-dynamic-edit-user', - templateUrl: './sample-po-page-dynamic-edit-user.component.html' + templateUrl: './sample-po-page-dynamic-edit-user.component.html', + standalone: false }) export class SamplePoPageDynamicEditUserComponent { public readonly serviceApi = 'https://po-sample-api.onrender.com/v1/people'; diff --git a/projects/templates/src/lib/components/po-page-dynamic-edit/test/po-dynamic-form-stub-component.ts b/projects/templates/src/lib/components/po-page-dynamic-edit/test/po-dynamic-form-stub-component.ts index 52e7e3eb5f..ec07e20075 100644 --- a/projects/templates/src/lib/components/po-page-dynamic-edit/test/po-dynamic-form-stub-component.ts +++ b/projects/templates/src/lib/components/po-page-dynamic-edit/test/po-dynamic-form-stub-component.ts @@ -10,7 +10,8 @@ import { PoDynamicFormComponent } from '@po-ui/ng-components'; provide: PoDynamicFormComponent, useClass: PoDynamicFormStubComponent } - ] + ], + standalone: false }) export class PoDynamicFormStubComponent { private _form: NgForm; diff --git a/projects/templates/src/lib/components/po-page-dynamic-search/po-advanced-filter/po-advanced-filter.component.ts b/projects/templates/src/lib/components/po-page-dynamic-search/po-advanced-filter/po-advanced-filter.component.ts index 6f143c97df..89f0e5f4f4 100644 --- a/projects/templates/src/lib/components/po-page-dynamic-search/po-advanced-filter/po-advanced-filter.component.ts +++ b/projects/templates/src/lib/components/po-page-dynamic-search/po-advanced-filter/po-advanced-filter.component.ts @@ -20,7 +20,8 @@ import { PoPageDynamicSearchFilters } from '../po-page-dynamic-search-filters.in */ @Component({ selector: 'po-advanced-filter', - templateUrl: './po-advanced-filter.component.html' + templateUrl: './po-advanced-filter.component.html', + standalone: false }) export class PoAdvancedFilterComponent extends PoAdvancedFilterBaseComponent implements OnDestroy, OnInit { @ViewChild(PoDynamicFormComponent, { static: true }) poDynamicForm: PoDynamicFormComponent; diff --git a/projects/templates/src/lib/components/po-page-dynamic-search/po-page-dynamic-search-base.component.spec.ts b/projects/templates/src/lib/components/po-page-dynamic-search/po-page-dynamic-search-base.component.spec.ts index 8d650644f9..f4d939600d 100644 --- a/projects/templates/src/lib/components/po-page-dynamic-search/po-page-dynamic-search-base.component.spec.ts +++ b/projects/templates/src/lib/components/po-page-dynamic-search/po-page-dynamic-search-base.component.spec.ts @@ -14,7 +14,8 @@ import { convertToBoolean } from '../../utils/util'; @Component({ selector: 'mock-component', - template: '' + template: '', + standalone: false }) class MockComponent extends PoPageDynamicSearchBaseComponent { onChangeFilters(filters: Array) {} diff --git a/projects/templates/src/lib/components/po-page-dynamic-search/po-page-dynamic-search.component.ts b/projects/templates/src/lib/components/po-page-dynamic-search/po-page-dynamic-search.component.ts index 6154811b99..a6a3691650 100644 --- a/projects/templates/src/lib/components/po-page-dynamic-search/po-page-dynamic-search.component.ts +++ b/projects/templates/src/lib/components/po-page-dynamic-search/po-page-dynamic-search.component.ts @@ -49,7 +49,8 @@ type UrlOrPoCustomizationFunction = string | (() => PoPageDynamicSearchOptions); */ @Component({ selector: 'po-page-dynamic-search', - templateUrl: './po-page-dynamic-search.component.html' + templateUrl: './po-page-dynamic-search.component.html', + standalone: false }) export class PoPageDynamicSearchComponent extends PoPageDynamicSearchBaseComponent diff --git a/projects/templates/src/lib/components/po-page-dynamic-search/samples/sample-po-page-dynamic-search-basic/sample-po-page-dynamic-search-basic.component.ts b/projects/templates/src/lib/components/po-page-dynamic-search/samples/sample-po-page-dynamic-search-basic/sample-po-page-dynamic-search-basic.component.ts index fa8ad3e659..30a26531cb 100644 --- a/projects/templates/src/lib/components/po-page-dynamic-search/samples/sample-po-page-dynamic-search-basic/sample-po-page-dynamic-search-basic.component.ts +++ b/projects/templates/src/lib/components/po-page-dynamic-search/samples/sample-po-page-dynamic-search-basic/sample-po-page-dynamic-search-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-page-dynamic-search-basic', - templateUrl: './sample-po-page-dynamic-search-basic.component.html' + templateUrl: './sample-po-page-dynamic-search-basic.component.html', + standalone: false }) export class SamplePoPageDynamicSearchBasicComponent {} diff --git a/projects/templates/src/lib/components/po-page-dynamic-search/samples/sample-po-page-dynamic-search-hiring-processes/sample-po-page-dynamic-search-hiring-processes.component.ts b/projects/templates/src/lib/components/po-page-dynamic-search/samples/sample-po-page-dynamic-search-hiring-processes/sample-po-page-dynamic-search-hiring-processes.component.ts index e9aa934330..cfafc41866 100644 --- a/projects/templates/src/lib/components/po-page-dynamic-search/samples/sample-po-page-dynamic-search-hiring-processes/sample-po-page-dynamic-search-hiring-processes.component.ts +++ b/projects/templates/src/lib/components/po-page-dynamic-search/samples/sample-po-page-dynamic-search-hiring-processes/sample-po-page-dynamic-search-hiring-processes.component.ts @@ -17,7 +17,8 @@ import { SamplePoPageDynamicSearchHiringProcessesService } from './sample-po-pag @Component({ selector: 'sample-po-page-dynamic-search-hiring-processes', templateUrl: './sample-po-page-dynamic-search-hiring-processes.component.html', - providers: [SamplePoPageDynamicSearchHiringProcessesService] + providers: [SamplePoPageDynamicSearchHiringProcessesService], + standalone: false }) export class SamplePoPageDynamicSearchHiringProcessesComponent implements OnInit { hiringProcesses: Array; diff --git a/projects/templates/src/lib/components/po-page-dynamic-search/samples/sample-po-page-dynamic-search-hiring-processes/sample-po-page-dynamic-search-hiring-processes.service.ts b/projects/templates/src/lib/components/po-page-dynamic-search/samples/sample-po-page-dynamic-search-hiring-processes/sample-po-page-dynamic-search-hiring-processes.service.ts index 53ede43921..ed314aa770 100644 --- a/projects/templates/src/lib/components/po-page-dynamic-search/samples/sample-po-page-dynamic-search-hiring-processes/sample-po-page-dynamic-search-hiring-processes.service.ts +++ b/projects/templates/src/lib/components/po-page-dynamic-search/samples/sample-po-page-dynamic-search-hiring-processes/sample-po-page-dynamic-search-hiring-processes.service.ts @@ -2,7 +2,9 @@ import { Injectable } from '@angular/core'; import { PoTableColumn } from '@po-ui/ng-components'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class SamplePoPageDynamicSearchHiringProcessesService { filter(filters) { let filteredItems = [...this.getItems()]; diff --git a/projects/templates/src/lib/components/po-page-dynamic-table/po-page-dynamic-list-base.component.ts b/projects/templates/src/lib/components/po-page-dynamic-table/po-page-dynamic-list-base.component.ts index 4c9e6b3bec..ff0b902e23 100644 --- a/projects/templates/src/lib/components/po-page-dynamic-table/po-page-dynamic-list-base.component.ts +++ b/projects/templates/src/lib/components/po-page-dynamic-table/po-page-dynamic-list-base.component.ts @@ -112,7 +112,7 @@ export class PoPageDynamicListBaseComponent { * O componente envia como parâmetro um array de string com as colunas configuradas inicialmente. * Por exemplo: ["idCard", "name", "hireStatus", "age"]. */ - @Output('p-restore-column-manager') columnRestoreManager = new EventEmitter>(); + @Output('p-restore-column-manager') columnRestoreManager = new EventEmitter>(); /** * @optional diff --git a/projects/templates/src/lib/components/po-page-dynamic-table/po-page-dynamic-table.component.spec.ts b/projects/templates/src/lib/components/po-page-dynamic-table/po-page-dynamic-table.component.spec.ts index d9f6c3e60c..cdb581d0e9 100644 --- a/projects/templates/src/lib/components/po-page-dynamic-table/po-page-dynamic-table.component.spec.ts +++ b/projects/templates/src/lib/components/po-page-dynamic-table/po-page-dynamic-table.component.spec.ts @@ -389,7 +389,7 @@ describe('PoPageDynamicTableComponent:', () => { it('updateDataTable: should be called with the current parameters', () => { const expectValue = { page: 1, search: 'test' }; - component['quickSearchParam'] = null || undefined; + component['quickSearchParam'] = null; component['currentPage'] = 1; component['params'] = { [component.quickSearchParam]: 'test' }; diff --git a/projects/templates/src/lib/components/po-page-dynamic-table/po-page-dynamic-table.component.ts b/projects/templates/src/lib/components/po-page-dynamic-table/po-page-dynamic-table.component.ts index b4164bc0af..6c13e0d6de 100644 --- a/projects/templates/src/lib/components/po-page-dynamic-table/po-page-dynamic-table.component.ts +++ b/projects/templates/src/lib/components/po-page-dynamic-table/po-page-dynamic-table.component.ts @@ -146,7 +146,8 @@ type UrlOrPoCustomizationFunction = string | (() => PoPageDynamicTableOptions); @Component({ selector: 'po-page-dynamic-table', templateUrl: './po-page-dynamic-table.component.html', - providers: [PoPageDynamicService] + providers: [PoPageDynamicService], + standalone: false }) export class PoPageDynamicTableComponent extends PoPageDynamicListBaseComponent implements OnInit, OnDestroy { /** @@ -686,7 +687,7 @@ export class PoPageDynamicTableComponent extends PoPageDynamicListBaseComponent this.changeVisibleColumns.emit(value); } - onColumnRestoreManager(value: Array) { + onColumnRestoreManager(value: Array) { this.columnRestoreManager.emit(value); } diff --git a/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-basic/sample-po-page-dynamic-table-basic.component.ts b/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-basic/sample-po-page-dynamic-table-basic.component.ts index 71f64e4cc2..0186b7bfab 100644 --- a/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-basic/sample-po-page-dynamic-table-basic.component.ts +++ b/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-basic/sample-po-page-dynamic-table-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-page-dynamic-table-basic', - templateUrl: './sample-po-page-dynamic-table-basic.component.html' + templateUrl: './sample-po-page-dynamic-table-basic.component.html', + standalone: false }) export class SamplePoPageDynamicTableBasicComponent {} diff --git a/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-drag-and-drop/sample-po-page-dynamic-table-drag-and-drop.component.ts b/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-drag-and-drop/sample-po-page-dynamic-table-drag-and-drop.component.ts index 055a44b448..e883dd0dad 100644 --- a/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-drag-and-drop/sample-po-page-dynamic-table-drag-and-drop.component.ts +++ b/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-drag-and-drop/sample-po-page-dynamic-table-drag-and-drop.component.ts @@ -2,7 +2,8 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-page-dynamic-table-drag-and-drop', - templateUrl: './sample-po-page-dynamic-table-drag-and-drop.component.html' + templateUrl: './sample-po-page-dynamic-table-drag-and-drop.component.html', + standalone: false }) export class SamplePoPageDynamicTableDragAndDropComponent { readonly serviceApi = 'https://po-sample-api.onrender.com/v1/people'; diff --git a/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-hotels/sample-po-page-dynamic-table-hotels.component.ts b/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-hotels/sample-po-page-dynamic-table-hotels.component.ts index 5de821eb15..0550804344 100644 --- a/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-hotels/sample-po-page-dynamic-table-hotels.component.ts +++ b/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-hotels/sample-po-page-dynamic-table-hotels.component.ts @@ -9,7 +9,8 @@ import { @Component({ selector: 'sample-po-page-dynamic-table-hotels', - templateUrl: './sample-po-page-dynamic-table-hotels.component.html' + templateUrl: './sample-po-page-dynamic-table-hotels.component.html', + standalone: false }) export class SamplePoPageDynamicTableHotelsComponent { @ViewChild('hotelDetailModal') hotelDetailModal!: PoModalComponent; diff --git a/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-people/sample-po-page-dynamic-table-people.component.ts b/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-people/sample-po-page-dynamic-table-people.component.ts index c25181d25c..5c5ef7ecf3 100644 --- a/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-people/sample-po-page-dynamic-table-people.component.ts +++ b/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-people/sample-po-page-dynamic-table-people.component.ts @@ -2,7 +2,8 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-page-dynamic-table-people', - templateUrl: './sample-po-page-dynamic-table-people.component.html' + templateUrl: './sample-po-page-dynamic-table-people.component.html', + standalone: false }) export class SamplePoPageDynamicTablePeopleComponent { readonly serviceApi = 'https://po-sample-api.onrender.com/v1/people'; diff --git a/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-users/sample-po-page-dynamic-table-users.component.ts b/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-users/sample-po-page-dynamic-table-users.component.ts index 4a96cc6383..15e9e8d4fc 100644 --- a/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-users/sample-po-page-dynamic-table-users.component.ts +++ b/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-users/sample-po-page-dynamic-table-users.component.ts @@ -14,7 +14,8 @@ import { SamplePoPageDynamicTableUsersService } from './sample-po-page-dynamic-t @Component({ selector: 'sample-po-page-dynamic-table-users', templateUrl: './sample-po-page-dynamic-table-users.component.html', - providers: [SamplePoPageDynamicTableUsersService] + providers: [SamplePoPageDynamicTableUsersService], + standalone: false }) export class SamplePoPageDynamicTableUsersComponent implements OnInit { @ViewChild('userDetailModal') userDetailModal!: PoModalComponent; diff --git a/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-users/sample-po-page-dynamic-table-users.service.ts b/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-users/sample-po-page-dynamic-table-users.service.ts index 75328e00e7..42486679a1 100644 --- a/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-users/sample-po-page-dynamic-table-users.service.ts +++ b/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-users/sample-po-page-dynamic-table-users.service.ts @@ -1,7 +1,9 @@ import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class SamplePoPageDynamicTableUsersService { constructor(public http: HttpClient) {} diff --git a/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-execution/po-page-job-scheduler-execution.component.ts b/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-execution/po-page-job-scheduler-execution.component.ts index 3ba106d487..699125a9bb 100644 --- a/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-execution/po-page-job-scheduler-execution.component.ts +++ b/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-execution/po-page-job-scheduler-execution.component.ts @@ -10,7 +10,8 @@ import { PoPageJobSchedulerService } from '../po-page-job-scheduler.service'; @Component({ selector: 'po-page-job-scheduler-execution', - templateUrl: 'po-page-job-scheduler-execution.component.html' + templateUrl: 'po-page-job-scheduler-execution.component.html', + standalone: false }) export class PoPageJobSchedulerExecutionComponent implements OnInit, AfterViewInit { @ViewChild('formExecution', { static: true }) form: NgForm; @@ -24,8 +25,8 @@ export class PoPageJobSchedulerExecutionComponent implements OnInit, AfterViewIn @Input('p-literals') literals = {}; - @Input('p-no-parameters') noParameters: Boolean = true; - @Input('p-no-custom-params-component') noCustomParamsComponent: Boolean = true; + @Input('p-no-parameters') noParameters: boolean = true; + @Input('p-no-custom-params-component') noCustomParamsComponent: boolean = true; @Output('p-change-process') changeProcess: EventEmitter = new EventEmitter(); diff --git a/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-lookup.service.ts b/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-lookup.service.ts index 3f5ecfea78..460ee559f9 100644 --- a/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-lookup.service.ts +++ b/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-lookup.service.ts @@ -6,7 +6,9 @@ import { PoLookupFilter } from '@po-ui/ng-components'; import { PoPageJobSchedulerService } from './po-page-job-scheduler.service'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoPageJobSchedulerLookupService implements PoLookupFilter { constructor(private poPageJobSchedulerService: PoPageJobSchedulerService) {} diff --git a/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-parameters/po-job-scheduler-parameters-template/po-job-scheduler-parameters-template.directive.ts b/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-parameters/po-job-scheduler-parameters-template/po-job-scheduler-parameters-template.directive.ts index 5b3fa38091..2937d63235 100644 --- a/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-parameters/po-job-scheduler-parameters-template/po-job-scheduler-parameters-template.directive.ts +++ b/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-parameters/po-job-scheduler-parameters-template/po-job-scheduler-parameters-template.directive.ts @@ -35,7 +35,8 @@ import { Directive, Input, TemplateRef } from '@angular/core'; * */ @Directive({ - selector: '[p-job-scheduler-parameters-template]' + selector: '[p-job-scheduler-parameters-template]', + standalone: false }) export class PoJobSchedulerParametersTemplateDirective { /** @@ -48,7 +49,7 @@ export class PoJobSchedulerParametersTemplateDirective { * * > O componente deve manter essa propriedade atualizada. É chamada após o avançar da etapa de parametrização. */ - @Input('p-execution-parameter') executionParameter: Object; + @Input('p-execution-parameter') executionParameter: object; /** * @optional diff --git a/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-parameters/po-page-job-scheduler-parameters.component.ts b/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-parameters/po-page-job-scheduler-parameters.component.ts index 7cb63649f2..7203f0dd88 100644 --- a/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-parameters/po-page-job-scheduler-parameters.component.ts +++ b/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-parameters/po-page-job-scheduler-parameters.component.ts @@ -5,7 +5,8 @@ import { PoDynamicFormField } from '@po-ui/ng-components'; @Component({ selector: 'po-page-job-scheduler-parameters', - templateUrl: 'po-page-job-scheduler-parameters.component.html' + templateUrl: 'po-page-job-scheduler-parameters.component.html', + standalone: false }) export class PoPageJobSchedulerParametersComponent implements AfterViewInit { @ViewChild('parametersForm') form: NgForm; diff --git a/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-summary/po-job-scheduler-summary-template/po-job-scheduler-summary-template.directive.ts b/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-summary/po-job-scheduler-summary-template/po-job-scheduler-summary-template.directive.ts index 01ba10e91f..d0feda6227 100644 --- a/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-summary/po-job-scheduler-summary-template/po-job-scheduler-summary-template.directive.ts +++ b/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-summary/po-job-scheduler-summary-template/po-job-scheduler-summary-template.directive.ts @@ -27,7 +27,8 @@ import { Directive, TemplateRef } from '@angular/core'; * */ @Directive({ - selector: '[p-job-scheduler-summary-template]' + selector: '[p-job-scheduler-summary-template]', + standalone: false }) export class PoJobSchedulerSummaryTemplateDirective { // Necessário manter templateRef para o funcionamento do row template. diff --git a/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-summary/po-page-job-scheduler-summary.component.ts b/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-summary/po-page-job-scheduler-summary.component.ts index cfa159cecb..5848df8f8a 100644 --- a/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-summary/po-page-job-scheduler-summary.component.ts +++ b/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-summary/po-page-job-scheduler-summary.component.ts @@ -7,7 +7,8 @@ import { PoJobSchedulerInternal } from '../interfaces/po-job-scheduler-internal. @Component({ selector: 'po-page-job-scheduler-summary', - templateUrl: 'po-page-job-scheduler-summary.component.html' + templateUrl: 'po-page-job-scheduler-summary.component.html', + standalone: false }) export class PoPageJobSchedulerSummaryComponent implements OnInit { @Input('p-literals') literals = {}; @@ -16,7 +17,7 @@ export class PoPageJobSchedulerSummaryComponent implements OnInit { @Input('p-value') value: PoJobSchedulerInternal = {}; - @Input('p-no-parameters') noParameters: Boolean = true; + @Input('p-no-parameters') noParameters: boolean = true; @Input('p-summary-template') jobSchedulerSummaryTemplate; diff --git a/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler.component.ts b/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler.component.ts index b57ee3af66..cf4a9fc87f 100644 --- a/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler.component.ts +++ b/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler.component.ts @@ -59,7 +59,8 @@ import { PoPageJobSchedulerService } from './po-page-job-scheduler.service'; overflow-y: unset; } ` - ] + ], + standalone: false }) export class PoPageJobSchedulerComponent extends PoPageJobSchedulerBaseComponent implements OnInit, AfterContentInit { @ViewChild('schedulerExecution', { static: true }) schedulerExecution: { form: NgForm }; diff --git a/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler.service.ts b/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler.service.ts index e5275d0835..1744b6fa4e 100644 --- a/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler.service.ts +++ b/projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler.service.ts @@ -10,7 +10,9 @@ import { PoDynamicFormField } from '@po-ui/ng-components'; import { PoJobScheduler } from './interfaces/po-job-scheduler.interface'; import { PoJobSchedulerInternal } from './interfaces/po-job-scheduler-internal.interface'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoPageJobSchedulerService { readonly headers: HttpHeaders = new HttpHeaders({ 'X-PO-SCREEN-LOCK': 'true' diff --git a/projects/templates/src/lib/components/po-page-job-scheduler/samples/sample-po-page-job-scheduler-background-process/sample-po-page-job-scheduler-background-process.component.ts b/projects/templates/src/lib/components/po-page-job-scheduler/samples/sample-po-page-job-scheduler-background-process/sample-po-page-job-scheduler-background-process.component.ts index 7c53ff401c..a0e6ad7895 100644 --- a/projects/templates/src/lib/components/po-page-job-scheduler/samples/sample-po-page-job-scheduler-background-process/sample-po-page-job-scheduler-background-process.component.ts +++ b/projects/templates/src/lib/components/po-page-job-scheduler/samples/sample-po-page-job-scheduler-background-process/sample-po-page-job-scheduler-background-process.component.ts @@ -4,7 +4,8 @@ import { PoBreadcrumb } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-page-job-scheduler-background-process', - templateUrl: './sample-po-page-job-scheduler-background-process.component.html' + templateUrl: './sample-po-page-job-scheduler-background-process.component.html', + standalone: false }) export class SamplePoPageJobSchedulerBackgroundProcessComponent { breadcrumb: PoBreadcrumb = { diff --git a/projects/templates/src/lib/components/po-page-job-scheduler/samples/sample-po-page-job-scheduler-directives/sample-po-page-job-scheduler-directives.component.ts b/projects/templates/src/lib/components/po-page-job-scheduler/samples/sample-po-page-job-scheduler-directives/sample-po-page-job-scheduler-directives.component.ts index 48504d77a3..60409c0a06 100644 --- a/projects/templates/src/lib/components/po-page-job-scheduler/samples/sample-po-page-job-scheduler-directives/sample-po-page-job-scheduler-directives.component.ts +++ b/projects/templates/src/lib/components/po-page-job-scheduler/samples/sample-po-page-job-scheduler-directives/sample-po-page-job-scheduler-directives.component.ts @@ -4,7 +4,8 @@ import { PoDynamicFormField, PoDynamicViewField } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-page-job-scheduler-directives', - templateUrl: './sample-po-page-job-scheduler-directives.component.html' + templateUrl: './sample-po-page-job-scheduler-directives.component.html', + standalone: false }) export class SamplePoPageJobSchedulerDirectivesComponent { dynamicForm!: NgForm; diff --git a/projects/templates/src/lib/components/po-page-login/po-page-login-popover/po-page-login-popover.component.ts b/projects/templates/src/lib/components/po-page-login/po-page-login-popover/po-page-login-popover.component.ts index 95704cb40e..62aa14a515 100644 --- a/projects/templates/src/lib/components/po-page-login/po-page-login-popover/po-page-login-popover.component.ts +++ b/projects/templates/src/lib/components/po-page-login/po-page-login-popover/po-page-login-popover.component.ts @@ -7,7 +7,8 @@ import { PoPageLoginRecovery } from '../interfaces/po-page-login-recovery.interf @Component({ selector: 'po-page-login-popover', - templateUrl: './po-page-login-popover.component.html' + templateUrl: './po-page-login-popover.component.html', + standalone: false }) /** diff --git a/projects/templates/src/lib/components/po-page-login/po-page-login.component.ts b/projects/templates/src/lib/components/po-page-login/po-page-login.component.ts index 0aaacc6fc1..27847929dd 100644 --- a/projects/templates/src/lib/components/po-page-login/po-page-login.component.ts +++ b/projects/templates/src/lib/components/po-page-login/po-page-login.component.ts @@ -55,7 +55,8 @@ import { PoPageLoginService } from './po-page-login.service'; @Component({ selector: 'po-page-login', - templateUrl: './po-page-login.component.html' + templateUrl: './po-page-login.component.html', + standalone: false }) export class PoPageLoginComponent extends PoPageLoginBaseComponent implements AfterViewChecked, OnInit { @ViewChild('loginForm', { read: NgForm, static: true }) loginForm: NgForm; diff --git a/projects/templates/src/lib/components/po-page-login/po-page-login.service.ts b/projects/templates/src/lib/components/po-page-login/po-page-login.service.ts index 56a6ff20a0..0b1353c9da 100644 --- a/projects/templates/src/lib/components/po-page-login/po-page-login.service.ts +++ b/projects/templates/src/lib/components/po-page-login/po-page-login.service.ts @@ -6,11 +6,13 @@ import { Observable } from 'rxjs'; import { PoPageLogin } from './interfaces/po-page-login.interface'; import { PoPageLoginAuthenticationType } from './enums/po-page-login-authentication-type.enum'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoPageLoginService { constructor(private http: HttpClient) {} - onLogin(url: string, type: PoPageLoginAuthenticationType, loginForm: PoPageLogin): Observable { + onLogin(url: string, type: PoPageLoginAuthenticationType, loginForm: PoPageLogin): Observable { if (type === PoPageLoginAuthenticationType.Bearer) { loginForm.password = btoa(loginForm.password); return this.http.post(url, loginForm); diff --git a/projects/templates/src/lib/components/po-page-login/samples/sample-po-page-login-automatic-service/sample-po-page-login-automatic-service.component.ts b/projects/templates/src/lib/components/po-page-login/samples/sample-po-page-login-automatic-service/sample-po-page-login-automatic-service.component.ts index e1688bfddd..bff914fdc0 100644 --- a/projects/templates/src/lib/components/po-page-login/samples/sample-po-page-login-automatic-service/sample-po-page-login-automatic-service.component.ts +++ b/projects/templates/src/lib/components/po-page-login/samples/sample-po-page-login-automatic-service/sample-po-page-login-automatic-service.component.ts @@ -4,7 +4,8 @@ import { PoPageLoginLiterals } from '@po-ui/ng-templates'; @Component({ selector: 'sample-po-page-login-automatic-service', - templateUrl: './sample-po-page-login-automatic-service.component.html' + templateUrl: './sample-po-page-login-automatic-service.component.html', + standalone: false }) export class SamplePoPageLoginAutomaticServiceComponent { literals: PoPageLoginLiterals; diff --git a/projects/templates/src/lib/components/po-page-login/samples/sample-po-page-login-basic/sample-po-page-login-basic.component.ts b/projects/templates/src/lib/components/po-page-login/samples/sample-po-page-login-basic/sample-po-page-login-basic.component.ts index 97a11c6596..5d85d408c7 100644 --- a/projects/templates/src/lib/components/po-page-login/samples/sample-po-page-login-basic/sample-po-page-login-basic.component.ts +++ b/projects/templates/src/lib/components/po-page-login/samples/sample-po-page-login-basic/sample-po-page-login-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-page-login-basic', - templateUrl: './sample-po-page-login-basic.component.html' + templateUrl: './sample-po-page-login-basic.component.html', + standalone: false }) export class SamplePoPageLoginBasicComponent {} diff --git a/projects/templates/src/lib/components/po-page-login/samples/sample-po-page-login-human-resources/sample-po-page-login-human-resources.component.ts b/projects/templates/src/lib/components/po-page-login/samples/sample-po-page-login-human-resources/sample-po-page-login-human-resources.component.ts index b6563751a4..615fa24259 100644 --- a/projects/templates/src/lib/components/po-page-login/samples/sample-po-page-login-human-resources/sample-po-page-login-human-resources.component.ts +++ b/projects/templates/src/lib/components/po-page-login/samples/sample-po-page-login-human-resources/sample-po-page-login-human-resources.component.ts @@ -13,7 +13,8 @@ import { @Component({ selector: 'sample-po-page-login-human-resources', - templateUrl: './sample-po-page-login-human-resources.component.html' + templateUrl: './sample-po-page-login-human-resources.component.html', + standalone: false }) export class SamplePoPageLoginHumanResourcesComponent implements OnDestroy, OnInit { customField: PoPageLoginCustomField = { diff --git a/projects/templates/src/lib/components/po-page-login/samples/sample-po-page-login-labs/sample-po-page-login-labs.component.ts b/projects/templates/src/lib/components/po-page-login/samples/sample-po-page-login-labs/sample-po-page-login-labs.component.ts index a8cb440861..4c58917fa0 100644 --- a/projects/templates/src/lib/components/po-page-login/samples/sample-po-page-login-labs/sample-po-page-login-labs.component.ts +++ b/projects/templates/src/lib/components/po-page-login/samples/sample-po-page-login-labs/sample-po-page-login-labs.component.ts @@ -6,7 +6,8 @@ import { PoPageLogin, PoPageLoginCustomField, PoPageLoginLiterals } from '@po-ui @Component({ selector: 'sample-po-page-login-labs', - templateUrl: './sample-po-page-login-labs.component.html' + templateUrl: './sample-po-page-login-labs.component.html', + standalone: false }) export class SamplePoPageLoginLabsComponent implements OnInit { background: string; diff --git a/projects/templates/tsconfig.lib.json b/projects/templates/tsconfig.lib.json index 4b2c73a007..38eff1d7cf 100644 --- a/projects/templates/tsconfig.lib.json +++ b/projects/templates/tsconfig.lib.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { "outDir": "../../out-tsc/lib", "declarationMap": true, diff --git a/projects/templates/tsconfig.schematics.json b/projects/templates/tsconfig.schematics.json index 5668757f87..bc534f2dd4 100644 --- a/projects/templates/tsconfig.schematics.json +++ b/projects/templates/tsconfig.schematics.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { "baseUrl": "../../", "lib": ["es2022", "dom"], diff --git a/projects/templates/tsconfig.spec.json b/projects/templates/tsconfig.spec.json index 262890b697..0da137b818 100644 --- a/projects/templates/tsconfig.spec.json +++ b/projects/templates/tsconfig.spec.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { "module": "commonjs", "outDir": "../../out-tsc/spec", diff --git a/projects/ui/.eslintrc.json b/projects/ui/.eslintrc.json index 7c00cd565b..cb292db192 100644 --- a/projects/ui/.eslintrc.json +++ b/projects/ui/.eslintrc.json @@ -88,7 +88,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", diff --git a/projects/ui/package.json b/projects/ui/package.json index 8669c4ef01..5d7a1d528e 100644 --- a/projects/ui/package.json +++ b/projects/ui/package.json @@ -21,24 +21,24 @@ ] }, "dependencies": { - "@angular/cdk": "~18.0.1", + "@angular/cdk": "~19.0.3", "@po-ui/style": "0.0.0-PLACEHOLDER", "@po-ui/ng-schematics": "0.0.0-PLACEHOLDER", "tslib": "^2.6.2" }, "peerDependencies": { - "@angular/animations": "^18", - "@angular/cdk": "^18", - "@angular/common": "^18", - "@angular/compiler": "^18", - "@angular/core": "^18", - "@angular/forms": "^18", - "@angular/platform-browser": "^18", - "@angular/platform-browser-dynamic": "^18", - "@angular/router": "^18", - "@angular-devkit/schematics": "^18", + "@angular/animations": "^19", + "@angular/cdk": "^19", + "@angular/common": "^19", + "@angular/compiler": "^19", + "@angular/core": "^19", + "@angular/forms": "^19", + "@angular/platform-browser": "^19", + "@angular/platform-browser-dynamic": "^19", + "@angular/router": "^19", + "@angular-devkit/schematics": "^19", "@po-ui/style": "0.0.0-PLACEHOLDER", "rxjs": "~7.8.1", - "zone.js": "~0.14.4" + "zone.js": "~0.15.0" } } diff --git a/projects/ui/schematics/migrations.json b/projects/ui/schematics/migrations.json index 12dd79ce50..9085cf87eb 100644 --- a/projects/ui/schematics/migrations.json +++ b/projects/ui/schematics/migrations.json @@ -50,6 +50,11 @@ "version": "18", "description": "Atualiza @po-ui/ng-components para v18", "factory": "./ng-update/v18/index" + }, + "migration-v19": { + "version": "19", + "description": "Atualiza @po-ui/ng-components para v19", + "factory": "./ng-update/v19/index" } } } diff --git a/projects/ui/schematics/ng-add/setup-project.ts b/projects/ui/schematics/ng-add/setup-project.ts index 3f832d75cd..979b36f03c 100644 --- a/projects/ui/schematics/ng-add/setup-project.ts +++ b/projects/ui/schematics/ng-add/setup-project.ts @@ -38,7 +38,7 @@ export default function (options: any): Rule { } //insere um import no módulo sem adicionar na lista de importação -export function addImportOnly(options: any, moduleNames: string | Array, importPath: string) { +export function addImportOnly(options: any, moduleNames: string | Array, importPath: string) { return (host: Tree) => { const workspace = getWorkspaceConfigGracefully(host) ?? ({} as WorkspaceSchema); const project: any = getProjectFromWorkspace(workspace, options.project); diff --git a/projects/ui/schematics/ng-generate/po-page-default/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template b/projects/ui/schematics/ng-generate/po-page-default/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template index 0f91c1c804..630b3b95dc 100644 --- a/projects/ui/schematics/ng-generate/po-page-default/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +++ b/projects/ui/schematics/ng-generate/po-page-default/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template @@ -5,7 +5,6 @@ import { PoPageAction, PoPageModule } from '@po-ui/ng-components'; @Component({ selector: '<%= selector %>', - standalone: true, imports: [ CommonModule, PoPageModule, diff --git a/projects/ui/schematics/ng-generate/po-page-default/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template b/projects/ui/schematics/ng-generate/po-page-default/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template index 81b8ec8986..9e8a445023 100644 --- a/projects/ui/schematics/ng-generate/po-page-default/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +++ b/projects/ui/schematics/ng-generate/po-page-default/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template @@ -5,7 +5,8 @@ import { PoPageAction } from '@po-ui/ng-components'; @Component({ selector: '<%= selector %>', templateUrl: './<%= dasherize(name) %>.component.html', - styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>'] + styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>'], + standalone: false }) export class <%= classify(name) %>Component implements OnInit { diff --git a/projects/ui/schematics/ng-generate/po-page-detail/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template b/projects/ui/schematics/ng-generate/po-page-detail/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template index 41a27e6eb5..c772b5bc52 100644 --- a/projects/ui/schematics/ng-generate/po-page-detail/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +++ b/projects/ui/schematics/ng-generate/po-page-detail/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template @@ -5,7 +5,6 @@ import { PoPageModule } from '@po-ui/ng-components'; @Component({ selector: '<%= selector %>', - standalone: true, imports: [ CommonModule, PoPageModule, diff --git a/projects/ui/schematics/ng-generate/po-page-detail/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template b/projects/ui/schematics/ng-generate/po-page-detail/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template index 1c36dea73d..60c88c144a 100644 --- a/projects/ui/schematics/ng-generate/po-page-detail/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +++ b/projects/ui/schematics/ng-generate/po-page-detail/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template @@ -3,7 +3,8 @@ import { Component, OnInit } from '@angular/core'; @Component({ selector: '<%= selector %>', templateUrl: './<%= dasherize(name) %>.component.html', - styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>'] + styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>'], + standalone: false }) export class <%= classify(name) %>Component implements OnInit { diff --git a/projects/ui/schematics/ng-generate/po-page-edit/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template b/projects/ui/schematics/ng-generate/po-page-edit/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template index 4bdb060bc1..20f573bad7 100644 --- a/projects/ui/schematics/ng-generate/po-page-edit/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +++ b/projects/ui/schematics/ng-generate/po-page-edit/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template @@ -4,8 +4,7 @@ import { CommonModule } from '@angular/common'; import { PoPageModule } from '@po-ui/ng-components'; @Component({ - selector: '<%= selector %>', - standalone: true, + selector: '<%= selector %>' imports: [ CommonModule, PoPageModule, diff --git a/projects/ui/schematics/ng-generate/po-page-edit/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template b/projects/ui/schematics/ng-generate/po-page-edit/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template index 07c16ceb5c..0d33db922d 100644 --- a/projects/ui/schematics/ng-generate/po-page-edit/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +++ b/projects/ui/schematics/ng-generate/po-page-edit/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template @@ -3,7 +3,8 @@ import { Component, OnInit } from '@angular/core'; @Component({ selector: '<%= selector %>', templateUrl: './<%= dasherize(name) %>.component.html', - styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>'] + styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>'], + standalone: false }) export class <%= classify(name) %>Component implements OnInit { diff --git a/projects/ui/schematics/ng-generate/po-page-list/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template b/projects/ui/schematics/ng-generate/po-page-list/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template index 65b6766cdf..90d38a2b25 100644 --- a/projects/ui/schematics/ng-generate/po-page-list/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +++ b/projects/ui/schematics/ng-generate/po-page-list/files-standalone/__path__/__name@dasherize__/__name@dasherize__.component.ts.template @@ -8,7 +8,6 @@ import { PoModule } from '@po-ui/ng-components'; @Component({ selector: '<%= selector %>', - standalone: true, imports: [ CommonModule, PoPageModule, diff --git a/projects/ui/schematics/ng-generate/po-page-list/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template b/projects/ui/schematics/ng-generate/po-page-list/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template index 2a7d9ae55b..546297171d 100644 --- a/projects/ui/schematics/ng-generate/po-page-list/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +++ b/projects/ui/schematics/ng-generate/po-page-list/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template @@ -5,7 +5,8 @@ import { PoPageAction<% if(dataView === 'table') { %>, PoTableColumn<%} %> } fro @Component({ selector: '<%= selector %>', templateUrl: './<%= dasherize(name) %>.component.html', - styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>'] + styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>'], + standalone: false }) export class <%= classify(name) %>Component implements OnInit { diff --git a/projects/ui/schematics/ng-generate/sidemenu/files-standalone/app.component.ts.template b/projects/ui/schematics/ng-generate/sidemenu/files-standalone/app.component.ts.template index 8276782880..269521bb6b 100644 --- a/projects/ui/schematics/ng-generate/sidemenu/files-standalone/app.component.ts.template +++ b/projects/ui/schematics/ng-generate/sidemenu/files-standalone/app.component.ts.template @@ -11,7 +11,6 @@ import { @Component({ selector: 'app-root', - standalone: true, imports: [ CommonModule, RouterOutlet, diff --git a/projects/ui/schematics/ng-generate/sidemenu/files/app.component.ts.template b/projects/ui/schematics/ng-generate/sidemenu/files/app.component.ts.template index 0b573f942b..a6a4fad70f 100644 --- a/projects/ui/schematics/ng-generate/sidemenu/files/app.component.ts.template +++ b/projects/ui/schematics/ng-generate/sidemenu/files/app.component.ts.template @@ -5,7 +5,8 @@ import { PoMenuItem } from '@po-ui/ng-components'; @Component({ selector: 'app-root', templateUrl: './app.component.html', - styleUrls: ['./app.component.<%= style %>'] + styleUrls: ['./app.component.<%= style %>'], + standalone: false }) export class AppComponent { diff --git a/projects/ui/schematics/ng-update/v18/index.ts b/projects/ui/schematics/ng-update/v18/index.ts index aa1ca8dd91..025b8d83a4 100644 --- a/projects/ui/schematics/ng-update/v18/index.ts +++ b/projects/ui/schematics/ng-update/v18/index.ts @@ -74,7 +74,7 @@ export default function (options: any): Rule { return (_tree: Tree, _context: SchematicContext) => main(options); } -export function addImportOnly(_: any, moduleNames: string | Array, importPath: string) { +export function addImportOnly(_: any, moduleNames: string | Array, importPath: string) { return (host: Tree) => { const workspace = getWorkspaceConfigGracefully(host) ?? ({} as WorkspaceSchema); diff --git a/projects/ui/schematics/ng-update/v19/changes.ts b/projects/ui/schematics/ng-update/v19/changes.ts new file mode 100644 index 0000000000..aa669fbafd --- /dev/null +++ b/projects/ui/schematics/ng-update/v19/changes.ts @@ -0,0 +1,203 @@ +import { UpdateDependencies } from '@po-ui/ng-schematics/package-config'; + +//regex para remover po-icon +const regexRemovePoIconInside = new RegExp('(?<=\\s|^)po-icon(?=\\s|$)', 'gmi'); +const regexRemovePoIcon = new RegExp('(? = [ + { replace: 'ph-elderly', replaceWith: 'an-elderly' }, + { replace: 'ph-pregnant', replaceWith: 'an-pregnant' }, + { replace: 'ph-wheelchair', replaceWith: 'an-wheelchair' }, + { replace: 'ph-plant', replaceWith: 'an-plant' }, + { replace: 'ph-text-align-center', replaceWith: 'an-text-align-center' }, + { replace: 'ph-text-align-justify', replaceWith: 'an-text-align-justify' }, + { replace: 'ph-text-align-left', replaceWith: 'an-text-align-left' }, + { replace: 'ph-text-align-right', replaceWith: 'an-text-align-right' }, + { replace: 'ph-anchor', replaceWith: 'an-anchor' }, + { replace: 'ph-archive', replaceWith: 'an-archive' }, + { replace: 'ph-caret-down', replaceWith: 'an-caret-down' }, + { replace: 'ph-caret-left', replaceWith: 'an-caret-left' }, + { replace: 'ph-caret-right', replaceWith: 'an-caret-right' }, + { replace: 'ph-caret-up', replaceWith: 'an-caret-up' }, + { replace: 'ph-paperclip', replaceWith: 'an-paperclip' }, + { replace: 'ph-automatic-barrier', replaceWith: 'an-automatic-barrier' }, + { replace: 'ph-scales', replaceWith: 'an-scales' }, + { replace: 'ph-balance-weight', replaceWith: 'an-balance-weight' }, + { replace: 'ph-barcode', replaceWith: 'an-barcode' }, + { replace: 'ph-basket', replaceWith: 'an-basket' }, + { replace: 'ph-bluetooth', replaceWith: 'an-bluetooth' }, + { replace: 'ph-book-bookmark', replaceWith: 'an-book-bookmark' }, + { replace: 'ph-calculator', replaceWith: 'an-calculator' }, + { replace: 'ph-calendar-dots', replaceWith: 'an-calendar-dots' }, + { replace: 'ph-calendar-check', replaceWith: 'an-calendar-check' }, + { replace: 'ph-calendar-gear', replaceWith: 'an-calendar-gear' }, + { replace: 'ph-camera', replaceWith: 'an-camera' }, + { replace: 'ph-shopping-cart-simple', replaceWith: 'an-shopping-cart-simple' }, + { replace: 'ph-swap', replaceWith: 'an-swap' }, + { replace: 'ph-chart-line', replaceWith: 'an-chart-line' }, + { replace: 'ph-chart-bar', replaceWith: 'an-chart-bar' }, + { replace: 'ph-chats', replaceWith: 'an-chats' }, + { replace: 'ph-fill ph-x-circle', replaceWith: 'an-fill an-x-circle' }, + { replace: 'ph-clipboard', replaceWith: 'an-clipboard' }, + { replace: 'ph-clock', replaceWith: 'an-clock' }, + { replace: 'ph-x', replaceWith: 'an-x' }, + { replace: 'ph-building-apartment', replaceWith: 'an-building-apartment' }, + { replace: 'ph-hard-hat', replaceWith: 'an-hard-hat' }, + { replace: 'ph-copy', replaceWith: 'an-copy' }, + { replace: 'ph-cotton', replaceWith: 'an-cotton' }, + { replace: 'ph-credit-card', replaceWith: 'an-credit-card' }, + { replace: 'ph-selection-background', replaceWith: 'an-selection-background' }, + { replace: 'ph-database', replaceWith: 'an-database' }, + { replace: 'ph-debit-card', replaceWith: 'an-debit-card' }, + { replace: 'ph-trash', replaceWith: 'an-trash' }, + { replace: 'ph-monitor', replaceWith: 'an-monitor' }, + { replace: 'ph-laptop', replaceWith: 'an-laptop' }, + { replace: 'ph-device-mobile', replaceWith: 'an-device-mobile' }, + { replace: 'ph-device-tablet-speaker', replaceWith: 'an-device-tablet-speaker' }, + { replace: 'ph-file-xls', replaceWith: 'an-file-xls' }, + { replace: 'ph-file', replaceWith: 'an-file' }, + { replace: 'ph-files', replaceWith: 'an-files' }, + { replace: 'ph-file-text', replaceWith: 'an-file-text' }, + { replace: 'ph-download-simple', replaceWith: 'an-download-simple' }, + { replace: 'ph-pencil-simple', replaceWith: 'an-pencil-simple' }, + { replace: 'ph-flask', replaceWith: 'an-flask' }, + { replace: 'ph-warning-circle', replaceWith: 'an-warning-circle' }, + { replace: 'ph-sign-out', replaceWith: 'an-sign-out' }, + { replace: 'ph-arrow-square-out', replaceWith: 'an-arrow-square-out' }, + { replace: 'ph-eye', replaceWith: 'an-eye' }, + { replace: 'ph-eye-closed', replaceWith: 'an-eye-closed' }, + { replace: 'ph-funnel', replaceWith: 'an-funnel' }, + { replace: 'ph-currency-circle-dollar', replaceWith: 'an-currency-circle-dollar' }, + { replace: 'ph-currency-btc', replaceWith: 'an-currency-btc' }, + { replace: 'ph-currency-dollar-simple', replaceWith: 'an-currency-dollar-simple' }, + { replace: 'ph-caret-double-left', replaceWith: 'an-caret-double-left' }, + { replace: 'ph-folder', replaceWith: 'an-folder' }, + { replace: 'ph-fork-knife', replaceWith: 'an-fork-knife' }, + { replace: 'ph-fork-knife', replaceWith: 'an-fork-knife' }, + { replace: 'ph-gas-pump', replaceWith: 'an-gas-pump' }, + { replace: 'ph-gift', replaceWith: 'an-gift' }, + { replace: 'ph-squares-four', replaceWith: 'an-squares-four' }, + { replace: 'ph-handshake', replaceWith: 'an-handshake' }, + { replace: 'ph-hard-drive-disk', replaceWith: 'an-hard-drive-disk' }, + { replace: 'ph-question', replaceWith: 'an-question' }, + { replace: 'ph-clock-counter-clockwise', replaceWith: 'an-clock-counter-clockwise' }, + { replace: 'ph-house-line', replaceWith: 'an-house-line' }, + { replace: 'ph-image-align-inline', replaceWith: 'an-image-align-inline' }, + { replace: 'ph-image-align-left', replaceWith: 'an-image-align-left' }, + { replace: 'ph-image-align-right', replaceWith: 'an-image-align-right' }, + { replace: 'ph-info', replaceWith: 'an-info' }, + { replace: 'ph-syringe', replaceWith: 'an-syringe' }, + { replace: 'ph-keyboard', replaceWith: 'an-keyboard' }, + { replace: 'ph-caret-double-right', replaceWith: 'an-caret-double-right' }, + { replace: 'ph-stack-simple', replaceWith: 'an-stack-simple' }, + { replace: 'ph-lightbulb', replaceWith: 'an-lightbulb' }, + { replace: 'ph-heart', replaceWith: 'an-heart' }, + { replace: 'ph-link', replaceWith: 'an-link' }, + { replace: 'ph-list-bullets', replaceWith: 'an-list-bullets' }, + { replace: 'ph-lock', replaceWith: 'an-lock' }, + { replace: 'ph-lock-open', replaceWith: 'an-lock-open' }, + { replace: 'ph-envelope', replaceWith: 'an-envelope' }, + { replace: 'ph-factory', replaceWith: 'an-factory' }, + { replace: 'ph-map-trifold', replaceWith: 'an-map-trifold' }, + { replace: 'ph-list', replaceWith: 'an-list' }, + { replace: 'ph-menu-close', replaceWith: 'an-menu-close' }, + { replace: 'ph-menu-open', replaceWith: 'an-menu-open' }, + { replace: 'ph-chat', replaceWith: 'an-chat' }, + { replace: 'ph-microphone', replaceWith: 'an-microphone' }, + { replace: 'ph-minus', replaceWith: 'an-minus' }, + { replace: 'ph-minus-circle', replaceWith: 'an-minus-circle' }, + { replace: 'ph-money', replaceWith: 'an-money' }, + { replace: 'ph-dots-three', replaceWith: 'an-dots-three' }, + { replace: 'ph-dots-three-vertical', replaceWith: 'an-dots-three-vertical' }, + { replace: 'ph-newspaper', replaceWith: 'an-newspaper' }, + { replace: 'ph-cloud-slash', replaceWith: 'an-cloud-slash' }, + { replace: 'ph-bell', replaceWith: 'an-bell' }, + { replace: 'ph-drop', replaceWith: 'an-drop' }, + { replace: 'ph-oil-magnifying-glass', replaceWith: 'an-oil-magnifying-glass' }, + { replace: 'ph-check', replaceWith: 'an-check' }, + { replace: 'ph-pallet-full', replaceWith: 'an-pallet-full' }, + { replace: 'ph-pallet-partial', replaceWith: 'an-pallet-partial' }, + { replace: 'ph-sliders-horizontal', replaceWith: 'an-sliders-horizontal' }, + { replace: 'ph-selection-foreground', replaceWith: 'an-selection-foreground' }, + { replace: 'ph-hand-coins', replaceWith: 'an-hand-coins' }, + { replace: 'ph-file-pdf', replaceWith: 'an-file-pdf' }, + { replace: 'ph-eyedropper', replaceWith: 'an-eyedropper' }, + { replace: 'ph-image', replaceWith: 'an-image' }, + { replace: 'ph-map-pin', replaceWith: 'an-map-pin' }, + { replace: 'ph-pix-logo', replaceWith: 'an-pix-logo' }, + { replace: 'ph-plus', replaceWith: 'an-plus' }, + { replace: 'ph-circle', replaceWith: 'an-circle' }, + { replace: 'ph-printer', replaceWith: 'an-printer' }, + { replace: 'ph-shopping-cart-simple', replaceWith: 'an-shopping-cart-simple' }, + { replace: 'ph-qr-code', replaceWith: 'an-qr-code' }, + { replace: 'ph-arrows-clockwise', replaceWith: 'an-arrows-clockwise' }, + { replace: 'ph-newspaper-clipping', replaceWith: 'an-newspaper-clipping' }, + { replace: 'ph-corners-out', replaceWith: 'an-corners-out' }, + { replace: 'ph-corners-in', replaceWith: 'an-corners-in' }, + { replace: 'ph-magnifying-glass', replaceWith: 'an-magnifying-glass' }, + { replace: 'ph-shield-check', replaceWith: 'an-shield-check' }, + { replace: 'ph-server', replaceWith: 'an-server' }, + { replace: 'ph-gear', replaceWith: 'an-gear' }, + { replace: 'ph-share', replaceWith: 'an-share' }, + { replace: 'ph-radio-signal', replaceWith: 'an-radio-signal' }, + { replace: 'ph-chat-dots', replaceWith: 'an-chat-dots' }, + { replace: 'ph-github-logo', replaceWith: 'an-github-logo' }, + { replace: 'ph-instagram-logo', replaceWith: 'an-instagram-logo' }, + { replace: 'ph-x-logo', replaceWith: 'an-x-logo' }, + { replace: 'ph-whatsapp-logo', replaceWith: 'an-whatsapp-logo' }, + { replace: 'ph-arrows-down-up', replaceWith: 'an-arrows-down-up' }, + { replace: 'ph-arrow-down', replaceWith: 'an-arrow-down' }, + { replace: 'ph-sort-ascending', replaceWith: 'an-sort-ascending' }, + { replace: 'ph-arrow-up', replaceWith: 'an-arrow-up' }, + { replace: 'ph-sort-descending', replaceWith: 'an-sort-descending' }, + { replace: 'ph-fill ph-star', replaceWith: 'an-fill an-star' }, + { replace: 'ph-fill ph-star-half', replaceWith: 'an-fill ph-star-half' }, + { replace: 'ph-steering-wheel', replaceWith: 'an-steering-wheel' }, + { replace: 'ph-package', replaceWith: 'an-package' }, + { replace: 'ph-desk', replaceWith: 'an-desk' }, + { replace: 'ph-target', replaceWith: 'an-target' }, + { replace: 'ph-phone', replaceWith: 'an-phone' }, + { replace: 'ph-text-b', replaceWith: 'an-text-b' }, + { replace: 'ph-text-italic', replaceWith: 'an-text-italic' }, + { replace: 'ph-text-underline', replaceWith: 'an-text-underline' }, + { replace: 'ph-hand-tap', replaceWith: 'an-hand-tap' }, + { replace: 'ph-suitcase-rolling', replaceWith: 'an-suitcase-rolling' }, + { replace: 'ph-truck', replaceWith: 'an-truck' }, + { replace: 'ph-upload-simple', replaceWith: 'an-upload-simple' }, + { replace: 'ph-cloud-arrow-up', replaceWith: 'an-cloud-arrow-up' }, + { replace: 'ph-user', replaceWith: 'an-user' }, + { replace: 'ph-user-plus', replaceWith: 'an-user-plus' }, + { replace: 'ph-user-x', replaceWith: 'an-user-x' }, + { replace: 'ph-users', replaceWith: 'an-users' }, + { replace: 'ph-video-camera', replaceWith: 'an-video-camera' }, + { replace: 'ph-waiter', replaceWith: 'an-waiter' }, + { replace: 'ph-wallet', replaceWith: 'an-wallet' }, + { replace: 'ph-warehouse', replaceWith: 'an-warehouse' }, + { replace: 'ph-warning-circle', replaceWith: 'an-warning-circle' }, + { replace: 'ph-weight', replaceWith: 'an-weight' }, + { replace: 'ph-globe', replaceWith: 'an-globe' }, + { replace: 'ph-file-xml', replaceWith: 'an-file-xml' }, + { replace: 'ph-magnifying-glass-plus', replaceWith: 'an-magnifying-glass-plus' }, + { replace: 'ph-magnifying-glass-minus', replaceWith: 'an-magnifying-glass-minus' } +]; + +export interface ReplaceChanges { + replace: string | RegExp; + replaceWith: string | Function; + fill?: boolean; +} + +export const updateDepedenciesVersion: UpdateDependencies = { + dependencies: [ + '@po-ui/ng-components', + '@po-ui/ng-code-editor', + '@po-ui/ng-templates', + '@po-ui/ng-storage', + '@po-ui/ng-sync', + '@po-ui/style' + ] +}; + +export const poIconInsideReplaces: Array = [{ replace: regexRemovePoIconInside, replaceWith: '' }]; + +export const poIconReplaces: Array = [{ replace: regexRemovePoIcon, replaceWith: '' }]; diff --git a/projects/ui/schematics/ng-update/v19/index.ts b/projects/ui/schematics/ng-update/v19/index.ts new file mode 100644 index 0000000000..025b8d83a4 --- /dev/null +++ b/projects/ui/schematics/ng-update/v19/index.ts @@ -0,0 +1,304 @@ +import { Rule, SchematicContext, Tree, chain } from '@angular-devkit/schematics'; +import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks'; + +import { updatePackageJson } from '@po-ui/ng-schematics/package-config'; + +import { + getProjectFromWorkspace, + getProjectMainFile, + getWorkspaceConfigGracefully +} from '@po-ui/ng-schematics/project'; +import { addProviderToModule } from '@schematics/angular/utility/ast-utils'; +import { + iconsReplaced, + poIconInsideReplaces, + poIconReplaces, + ReplaceChanges, + updateDepedenciesVersion +} from './changes'; + +import { getSourceFile } from '@po-ui/ng-schematics/module'; +import { getAppModulePath, isStandaloneApp } from '@schematics/angular/utility/ng-ast-utils'; +import { WorkspaceSchema } from '@schematics/angular/utility/workspace-models'; + +import * as readline from 'readline'; + +const IconsDictionaryName = 'ICONS_DICTIONARY'; +const poIconDictionary = 'PoIconDictionary'; +const poModuleSourcePath = '@po-ui/ng-components'; + +const newProviderDictionary = ` + { + provide: 'ICONS_DICTIONARY', + useValue: 'PoIconDictionary' + }`; + +function askQuestion(query: string): Promise { + const rl = readline.createInterface({ + input: process.stdin, + output: process.stdout + }); + + return new Promise(resolve => + rl.question(query, (answer: any) => { + rl.close(); + resolve(answer); + }) + ); +} + +async function main(options: any): Promise { + const configureNewIcon = await askQuestion( + 'A Lib de ícones PO Icon está depreciada e será removida na versão 20, gostaria de usar a nova lib?(yes/no)' + ); + + if ( + configureNewIcon.toLowerCase() === 'yes' || + configureNewIcon.toLowerCase() === 'y' || + configureNewIcon.toLowerCase() === 'sim' || + configureNewIcon.toLowerCase() === '' + ) { + return chain([updatePackageJson('0.0.0-PLACEHOLDER', updateDepedenciesVersion), createUpgradeRule(), postUpdate()]); + } else { + return chain([ + updatePackageJson('0.0.0-PLACEHOLDER', updateDepedenciesVersion), + addImportOnly(options, [IconsDictionaryName, poIconDictionary], poModuleSourcePath), + addProviderToAppModule(options, newProviderDictionary), + updateAppConfigFileRule(), + postUpdate() + ]); + } +} + +export default function (options: any): Rule { + return (_tree: Tree, _context: SchematicContext) => main(options); +} + +export function addImportOnly(_: any, moduleNames: string | Array, importPath: string) { + return (host: Tree) => { + const workspace = getWorkspaceConfigGracefully(host) ?? ({} as WorkspaceSchema); + + const projectNames = Object.keys(workspace.projects); + for (const projectName of projectNames) { + const project: any = getProjectFromWorkspace(workspace, projectName); + + const browserEntryPoint = getProjectMainFile(project); + + if (isStandaloneApp(host, browserEntryPoint)) { + return host; + } + + const modulePath = getAppModulePath(host, browserEntryPoint); + let importStatement: string; + + if (Array.isArray(moduleNames)) { + const names = moduleNames.join(', '); + importStatement = `import { ${names} } from '${importPath}';\n`; + } else { + importStatement = `import { ${moduleNames} } from '${importPath}';\n`; + } + + const recorder = host.beginUpdate(modulePath); + recorder.insertLeft(0, importStatement); + host.commitUpdate(recorder); + } + return host; + }; +} + +export function addProviderToAppModule(_: any, provider: { provide: string; useValue: string } | string) { + return (host: Tree) => { + const workspace = getWorkspaceConfigGracefully(host) ?? ({} as WorkspaceSchema); + const projectNames = Object.keys(workspace.projects); + for (const projectName of projectNames) { + const project: any = getProjectFromWorkspace(workspace, projectName); + const browserEntryPoint = getProjectMainFile(project); + + if (isStandaloneApp(host, browserEntryPoint)) { + return host; + } + + const appModulePath = getAppModulePath(host, browserEntryPoint); + + addProviderToModuleProvider(host, appModulePath, provider); + } + return host; + }; +} + +// para inserir variáveis no provider +export function addProviderToModuleProvider( + tree: Tree, + modulePath: string, + provider: { provide: string; useValue: string } | string +) { + const moduleSource = getSourceFile(tree, modulePath); + const changes = addProviderToModule( + moduleSource as any, + modulePath, + ` + ${provider}`, + null as any + ); + + return insertChanges(tree, changes, modulePath); +} + +function insertChanges(tree: Tree, changes: Array, modulePath: string) { + const recorder = tree.beginUpdate(modulePath); + + changes.forEach(change => { + if (change) { + recorder.insertLeft(change.pos, change.toAdd); + } + }); + + tree.commitUpdate(recorder); +} + +function updateAppConfigFileRule(): Rule { + return (tree: Tree) => { + const workspace = getWorkspaceConfigGracefully(tree) ?? ({} as WorkspaceSchema); + const projectNames = Object.keys(workspace.projects); + + for (const projectName of projectNames) { + const project: any = getProjectFromWorkspace(workspace, projectName); + const browserEntryPoint = getProjectMainFile(project); + + if (!isStandaloneApp(tree, browserEntryPoint)) { + return tree; + } + + const content = tree.read('src/app/app.config.ts')?.toString('utf-8') || ''; + + const conteudoModificado = updateAppConfigFile(content); + + tree.overwrite('src/app/app.config.ts', conteudoModificado); + } + return tree; + }; +} + +export function updateAppConfigFile(content: string): string { + const newImports = `import { ICONS_DICTIONARY, PoIconDictionary } from '@po-ui/ng-components';`; + + const newProvider = ` + { + provide: ICONS_DICTIONARY, + useValue: PoIconDictionary + },`; + + // Verificar se já existe o import e o provider + const importExists = content.includes(newImports); + const providerExists = content.includes(newProvider.trim()); + + let modifiedContent = content; + + if (!importExists) { + // Adiciona o novo import + modifiedContent = modifiedContent.replace( + /import { ApplicationConfig,[^}]+} from '@angular\/core';/, + match => `${match}\n${newImports}` + ); + } + + if (!providerExists) { + // Adiciona o novo provider + modifiedContent = modifiedContent.replace(/providers: \[[^\]]+\]/, match => + match.replace('providers: [', `providers: [${newProvider}`) + ); + } + + return modifiedContent.trim(); +} + +function createUpgradeRule() { + return (tree: Tree, context: SchematicContext) => { + const logger = context.logger; + const workspace = getWorkspaceConfigGracefully(tree) ?? ({} as WorkspaceSchema); + + if (workspace === null) { + logger.error('Não foi possível encontrar o arquivo de configuração de workspace.'); + return; + } + + const projectNames = Object.keys(workspace.projects); + for (const projectName of projectNames) { + const project = workspace.projects[projectName]; + const entryFolderProject = project.projectType === 'library' ? 'lib' : 'app'; + const sourceDir = `${project.sourceRoot}/${entryFolderProject}`; + + applyUpdateInContent(tree, sourceDir); + } + }; +} + +function applyUpdateInContent(tree: Tree, path: string) { + const directory = tree.getDir(path); + + // Função recursiva para processar arquivos e subdiretórios + const processDirectory = (dir: any) => { + // Processa todos os arquivos no diretório atual + if (dir.subfiles.length) { + dir.subfiles.forEach((file: string) => { + const filePath = dir.path + '/' + file; + const content = tree.read(filePath)!.toString('utf-8'); + if (!content) { + return; + } + + let updated = content; + + if (file.endsWith('.html') || file.endsWith('.ts')) { + // Atualiza para as instâncias dos novos ícones + updated = replaceWithChanges(poIconInsideReplaces, updated); + updated = replaceWithChanges(poIconReplaces, updated); + + const icons = iconsReplaced.filter((icon: any) => updated.includes(icon.replace)); + + icons.forEach(icon => { + const regexChange = new RegExp('(class="\\s?)?' + icon.replace + '(\\s?)?(?="|>|\\s|$|\'|")', 'gmi'); + + if (icon.fill) { + updated = replaceWithChanges([{ replace: regexChange, replaceWith: `$1${icon.replaceWith}$2` }], updated); + } else { + updated = replaceWithChanges( + [{ replace: regexChange, replaceWith: `$1ph ${icon.replaceWith}$2` }], + updated + ); + } + }); + + if (updated !== content) { + tree.overwrite(filePath, updated); + } + } + }); + } + + // Processa subdiretórios recursivamente + if (dir.subdirs.length) { + dir.subdirs.forEach((subdir: string) => { + processDirectory(tree.getDir(dir.path + '/' + subdir)); + }); + } + }; + + // Inicia o processamento a partir do diretório especificado + processDirectory(directory); +} + +function replaceWithChanges(replaces: Array, content: string = '') { + replaces.forEach(({ replace, replaceWith }) => { + const regex = new RegExp(replace, 'gi'); + content = content.replace(regex, replaceWith); + }); + + return content; +} + +function postUpdate() { + return (_: Tree, context: SchematicContext) => { + context.addTask(new NodePackageInstallTask()); + }; +} diff --git a/projects/ui/src/lib/components/po-accordion/po-accordion-item-body/po-accordion-item-body.component.ts b/projects/ui/src/lib/components/po-accordion/po-accordion-item-body/po-accordion-item-body.component.ts index 1a2a4f4db2..2414b2cdfb 100644 --- a/projects/ui/src/lib/components/po-accordion/po-accordion-item-body/po-accordion-item-body.component.ts +++ b/projects/ui/src/lib/components/po-accordion/po-accordion-item-body/po-accordion-item-body.component.ts @@ -9,7 +9,8 @@ import { animate, style, transition, trigger } from '@angular/animations'; transition('* => void', [style({ height: '*' }), animate(200, style({ height: 0 }))]), transition('void => *', [style({ height: '0' }), animate(200, style({ height: '*' }))]) ]) - ] + ], + standalone: false }) export class PoAccordionItemBodyComponent { @Input('p-expanded') expanded: boolean = false; diff --git a/projects/ui/src/lib/components/po-accordion/po-accordion-item-header/po-accordion-item-header.component.ts b/projects/ui/src/lib/components/po-accordion/po-accordion-item-header/po-accordion-item-header.component.ts index 395f3cf7b3..fd9a3205ff 100644 --- a/projects/ui/src/lib/components/po-accordion/po-accordion-item-header/po-accordion-item-header.component.ts +++ b/projects/ui/src/lib/components/po-accordion/po-accordion-item-header/po-accordion-item-header.component.ts @@ -5,7 +5,8 @@ import { poLocaleDefault } from '../../../services/po-language/po-language.const @Component({ selector: 'po-accordion-item-header', templateUrl: 'po-accordion-item-header.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoAccordionItemHeaderComponent { private language: string = poLocaleDefault; diff --git a/projects/ui/src/lib/components/po-accordion/po-accordion-item/po-accordion-item.component.ts b/projects/ui/src/lib/components/po-accordion/po-accordion-item/po-accordion-item.component.ts index 306f69afed..2eb83ab22f 100644 --- a/projects/ui/src/lib/components/po-accordion/po-accordion-item/po-accordion-item.component.ts +++ b/projects/ui/src/lib/components/po-accordion/po-accordion-item/po-accordion-item.component.ts @@ -38,7 +38,8 @@ import { PoAccordionService } from '../services/po-accordion.service'; */ @Component({ selector: 'po-accordion-item', - templateUrl: 'po-accordion-item.component.html' + templateUrl: 'po-accordion-item.component.html', + standalone: false }) export class PoAccordionItemComponent implements OnDestroy { private _type?: PoTagType; diff --git a/projects/ui/src/lib/components/po-accordion/po-accordion-manager/po-accordion-manager.component.ts b/projects/ui/src/lib/components/po-accordion/po-accordion-manager/po-accordion-manager.component.ts index e5e6227a72..8e5a997262 100644 --- a/projects/ui/src/lib/components/po-accordion/po-accordion-manager/po-accordion-manager.component.ts +++ b/projects/ui/src/lib/components/po-accordion/po-accordion-manager/po-accordion-manager.component.ts @@ -14,7 +14,8 @@ import { PoAccordionLiterals } from '../interfaces/po-accordion-literals.interfa @Component({ selector: 'po-accordion-manager', - templateUrl: 'po-accordion-manager.component.html' + templateUrl: 'po-accordion-manager.component.html', + standalone: false }) export class PoAccordionManagerComponent implements OnChanges { labelValue: string = ''; diff --git a/projects/ui/src/lib/components/po-accordion/po-accordion.component.spec.ts b/projects/ui/src/lib/components/po-accordion/po-accordion.component.spec.ts index 5708ffd0c1..aeca031853 100644 --- a/projects/ui/src/lib/components/po-accordion/po-accordion.component.spec.ts +++ b/projects/ui/src/lib/components/po-accordion/po-accordion.component.spec.ts @@ -12,7 +12,8 @@ import { PoAccordionService } from './services/po-accordion.service'; Item 1 Item 2 - ` + `, + standalone: false }) class PoAccordionMockComponent {} diff --git a/projects/ui/src/lib/components/po-accordion/po-accordion.component.ts b/projects/ui/src/lib/components/po-accordion/po-accordion.component.ts index 4ca23b7c46..929d562042 100644 --- a/projects/ui/src/lib/components/po-accordion/po-accordion.component.ts +++ b/projects/ui/src/lib/components/po-accordion/po-accordion.component.ts @@ -33,7 +33,8 @@ import { PoAccordionService } from './services/po-accordion.service'; @Component({ selector: 'po-accordion', templateUrl: 'po-accordion.component.html', - providers: [PoAccordionService] + providers: [PoAccordionService], + standalone: false }) export class PoAccordionComponent extends PoAccordionBaseComponent implements OnDestroy { @ViewChildren(PoAccordionItemHeaderComponent) accordionsHeader: QueryList; diff --git a/projects/ui/src/lib/components/po-accordion/samples/sample-po-accordion-basic/sample-po-accordion-basic.component.ts b/projects/ui/src/lib/components/po-accordion/samples/sample-po-accordion-basic/sample-po-accordion-basic.component.ts index 0592041e95..f1763af443 100644 --- a/projects/ui/src/lib/components/po-accordion/samples/sample-po-accordion-basic/sample-po-accordion-basic.component.ts +++ b/projects/ui/src/lib/components/po-accordion/samples/sample-po-accordion-basic/sample-po-accordion-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-accordion-basic', - templateUrl: './sample-po-accordion-basic.component.html' + templateUrl: './sample-po-accordion-basic.component.html', + standalone: false }) export class SamplePoAccordionBasicComponent {} diff --git a/projects/ui/src/lib/components/po-accordion/samples/sample-po-accordion-faq/sample-po-accordion-faq.component.ts b/projects/ui/src/lib/components/po-accordion/samples/sample-po-accordion-faq/sample-po-accordion-faq.component.ts index 6c7d1f1dbc..e4686a42f0 100644 --- a/projects/ui/src/lib/components/po-accordion/samples/sample-po-accordion-faq/sample-po-accordion-faq.component.ts +++ b/projects/ui/src/lib/components/po-accordion/samples/sample-po-accordion-faq/sample-po-accordion-faq.component.ts @@ -4,7 +4,8 @@ import { PoAccordionItemComponent } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-accordion-faq', - templateUrl: './sample-po-accordion-faq.component.html' + templateUrl: './sample-po-accordion-faq.component.html', + standalone: false }) export class SamplePoAccordionFaqComponent implements AfterContentInit { @ViewChild(PoAccordionItemComponent, { static: true }) questionOne: PoAccordionItemComponent; diff --git a/projects/ui/src/lib/components/po-accordion/samples/sample-po-accordion-labs/sample-po-accordion-labs.component.ts b/projects/ui/src/lib/components/po-accordion/samples/sample-po-accordion-labs/sample-po-accordion-labs.component.ts index 8de8da067c..afd1516d8b 100644 --- a/projects/ui/src/lib/components/po-accordion/samples/sample-po-accordion-labs/sample-po-accordion-labs.component.ts +++ b/projects/ui/src/lib/components/po-accordion/samples/sample-po-accordion-labs/sample-po-accordion-labs.component.ts @@ -11,7 +11,8 @@ import { @Component({ selector: 'sample-po-accordion-labs', - templateUrl: './sample-po-accordion-labs.component.html' + templateUrl: './sample-po-accordion-labs.component.html', + standalone: false }) export class SamplePoAccordionLabsComponent implements OnInit { accordionFieldsForm: Array = [ diff --git a/projects/ui/src/lib/components/po-accordion/services/po-accordion.service.ts b/projects/ui/src/lib/components/po-accordion/services/po-accordion.service.ts index 2a863b2976..0625ca34ff 100644 --- a/projects/ui/src/lib/components/po-accordion/services/po-accordion.service.ts +++ b/projects/ui/src/lib/components/po-accordion/services/po-accordion.service.ts @@ -12,7 +12,9 @@ import { PoAccordionItemComponent } from '../po-accordion-item/po-accordion-item * Serviço para poder notificar o componente `po-accordion` quando um `po-accordion-item` for * expandido/colapsado. */ -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoAccordionService { private subjectChild = new Subject(); diff --git a/projects/ui/src/lib/components/po-avatar/po-avatar.component.ts b/projects/ui/src/lib/components/po-avatar/po-avatar.component.ts index 15e7280326..53554bb665 100644 --- a/projects/ui/src/lib/components/po-avatar/po-avatar.component.ts +++ b/projects/ui/src/lib/components/po-avatar/po-avatar.component.ts @@ -27,7 +27,8 @@ import { PoAvatarBaseComponent } from './po-avatar-base.component'; @Component({ selector: 'po-avatar', templateUrl: './po-avatar.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoAvatarComponent extends PoAvatarBaseComponent implements OnInit { ngOnInit(): void { diff --git a/projects/ui/src/lib/components/po-avatar/samples/sample-po-avatar-basic/sample-po-avatar-basic.component.ts b/projects/ui/src/lib/components/po-avatar/samples/sample-po-avatar-basic/sample-po-avatar-basic.component.ts index 4df3df8f9a..a59f1ae24d 100644 --- a/projects/ui/src/lib/components/po-avatar/samples/sample-po-avatar-basic/sample-po-avatar-basic.component.ts +++ b/projects/ui/src/lib/components/po-avatar/samples/sample-po-avatar-basic/sample-po-avatar-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-avatar-basic', - templateUrl: './sample-po-avatar-basic.component.html' + templateUrl: './sample-po-avatar-basic.component.html', + standalone: false }) export class SamplePoAvatarBasicComponent {} diff --git a/projects/ui/src/lib/components/po-avatar/samples/sample-po-avatar-business-card/sample-po-avatar-business-card.component.ts b/projects/ui/src/lib/components/po-avatar/samples/sample-po-avatar-business-card/sample-po-avatar-business-card.component.ts index 67fecad8fe..99e18a6cf2 100644 --- a/projects/ui/src/lib/components/po-avatar/samples/sample-po-avatar-business-card/sample-po-avatar-business-card.component.ts +++ b/projects/ui/src/lib/components/po-avatar/samples/sample-po-avatar-business-card/sample-po-avatar-business-card.component.ts @@ -10,7 +10,8 @@ import { Component } from '@angular/core'; } ` ], - templateUrl: './sample-po-avatar-business-card.component.html' + templateUrl: './sample-po-avatar-business-card.component.html', + standalone: false }) export class SamplePoAvatarBusinessCardComponent { avatar = 'http://lorempixel.com/300/300/cats/'; diff --git a/projects/ui/src/lib/components/po-avatar/samples/sample-po-avatar-labs/sample-po-avatar-labs.component.ts b/projects/ui/src/lib/components/po-avatar/samples/sample-po-avatar-labs/sample-po-avatar-labs.component.ts index e8613b2d4c..d495c66c5c 100644 --- a/projects/ui/src/lib/components/po-avatar/samples/sample-po-avatar-labs/sample-po-avatar-labs.component.ts +++ b/projects/ui/src/lib/components/po-avatar/samples/sample-po-avatar-labs/sample-po-avatar-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-avatar-labs', - templateUrl: './sample-po-avatar-labs.component.html' + templateUrl: './sample-po-avatar-labs.component.html', + standalone: false }) export class SamplePoAvatarLabsComponent implements OnInit { src: string; diff --git a/projects/ui/src/lib/components/po-badge/po-badge.component.ts b/projects/ui/src/lib/components/po-badge/po-badge.component.ts index cf877eaef6..3c8c6ebe1f 100644 --- a/projects/ui/src/lib/components/po-badge/po-badge.component.ts +++ b/projects/ui/src/lib/components/po-badge/po-badge.component.ts @@ -31,7 +31,8 @@ const PO_BADGE_MAX_NOTIFICATIONS = 9; @Component({ selector: 'po-badge', templateUrl: './po-badge.component.html', - styles: [':host { display: inline-block; vertical-align: middle; }'] + styles: [':host { display: inline-block; vertical-align: middle; }'], + standalone: false }) export class PoBadgeComponent extends PoBadgeBaseComponent implements OnInit, OnChanges { isNotification: boolean = false; diff --git a/projects/ui/src/lib/components/po-badge/samples/sample-po-badge-basic/sample-po-badge-basic.component.ts b/projects/ui/src/lib/components/po-badge/samples/sample-po-badge-basic/sample-po-badge-basic.component.ts index c8ff9622d7..30e613f2ea 100644 --- a/projects/ui/src/lib/components/po-badge/samples/sample-po-badge-basic/sample-po-badge-basic.component.ts +++ b/projects/ui/src/lib/components/po-badge/samples/sample-po-badge-basic/sample-po-badge-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-badge-basic', - templateUrl: './sample-po-badge-basic.component.html' + templateUrl: './sample-po-badge-basic.component.html', + standalone: false }) export class SamplePoBadgeBasicComponent {} diff --git a/projects/ui/src/lib/components/po-badge/samples/sample-po-badge-labs/sample-po-badge-labs.component.ts b/projects/ui/src/lib/components/po-badge/samples/sample-po-badge-labs/sample-po-badge-labs.component.ts index 47f203de7a..1401752d68 100644 --- a/projects/ui/src/lib/components/po-badge/samples/sample-po-badge-labs/sample-po-badge-labs.component.ts +++ b/projects/ui/src/lib/components/po-badge/samples/sample-po-badge-labs/sample-po-badge-labs.component.ts @@ -3,7 +3,8 @@ import { PoCheckboxGroupOption, PoRadioGroupOption } from '@po-ui/ng-components' @Component({ selector: 'sample-po-badge-labs', - templateUrl: './sample-po-badge-labs.component.html' + templateUrl: './sample-po-badge-labs.component.html', + standalone: false }) export class SamplePoBadgeLabsComponent implements OnInit { value: number; diff --git a/projects/ui/src/lib/components/po-badge/samples/sample-po-badge-message/sample-po-badge-message.component.ts b/projects/ui/src/lib/components/po-badge/samples/sample-po-badge-message/sample-po-badge-message.component.ts index 74e28d0c24..dd594045cf 100644 --- a/projects/ui/src/lib/components/po-badge/samples/sample-po-badge-message/sample-po-badge-message.component.ts +++ b/projects/ui/src/lib/components/po-badge/samples/sample-po-badge-message/sample-po-badge-message.component.ts @@ -3,7 +3,8 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-badge-message', templateUrl: './sample-po-badge-message.component.html', - styleUrls: ['./sample-po-badge-message.component.css'] + styleUrls: ['./sample-po-badge-message.component.css'], + standalone: false }) export class SamplePoBadgeMessageComponent { users: Array = [ diff --git a/projects/ui/src/lib/components/po-breadcrumb/po-breadcrumb-favorite/po-breadcrumb-favorite.component.ts b/projects/ui/src/lib/components/po-breadcrumb/po-breadcrumb-favorite/po-breadcrumb-favorite.component.ts index 92b45ee9bb..037dcfa18b 100644 --- a/projects/ui/src/lib/components/po-breadcrumb/po-breadcrumb-favorite/po-breadcrumb-favorite.component.ts +++ b/projects/ui/src/lib/components/po-breadcrumb/po-breadcrumb-favorite/po-breadcrumb-favorite.component.ts @@ -6,7 +6,7 @@ import { PoBreadcrumbItem } from './../po-breadcrumb-item.interface'; import { PoBreadcrumbFavoriteService } from './po-breadcrumb-favorite.service'; import { PoLanguageService } from '../../../services/po-language/po-language.service'; -export const PoBreadcrumbLiterals: Object = { +export const PoBreadcrumbLiterals: object = { en: { favorite: 'Favorite', unfavorite: 'Unfavorite' @@ -36,7 +36,8 @@ export const PoBreadcrumbLiterals: Object = { @Component({ selector: 'po-breadcrumb-favorite', templateUrl: './po-breadcrumb-favorite.component.html', - providers: [PoBreadcrumbFavoriteService] + providers: [PoBreadcrumbFavoriteService], + standalone: false }) export class PoBreadcrumbFavoriteComponent implements OnInit, OnDestroy { // URL do serviço. diff --git a/projects/ui/src/lib/components/po-breadcrumb/po-breadcrumb-favorite/po-breadcrumb-favorite.service.ts b/projects/ui/src/lib/components/po-breadcrumb/po-breadcrumb-favorite/po-breadcrumb-favorite.service.ts index 4e976fdb3f..5aff456a42 100644 --- a/projects/ui/src/lib/components/po-breadcrumb/po-breadcrumb-favorite/po-breadcrumb-favorite.service.ts +++ b/projects/ui/src/lib/components/po-breadcrumb/po-breadcrumb-favorite/po-breadcrumb-favorite.service.ts @@ -17,7 +17,9 @@ import { Observable } from 'rxjs'; * junto com a requisição. * */ -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoBreadcrumbFavoriteService { private _url: string; private _bodyParams: object; diff --git a/projects/ui/src/lib/components/po-breadcrumb/po-breadcrumb.component.spec.ts b/projects/ui/src/lib/components/po-breadcrumb/po-breadcrumb.component.spec.ts index 442fcb7400..299b2b9e9a 100644 --- a/projects/ui/src/lib/components/po-breadcrumb/po-breadcrumb.component.spec.ts +++ b/projects/ui/src/lib/components/po-breadcrumb/po-breadcrumb.component.spec.ts @@ -8,10 +8,16 @@ import { PoBreadcrumbComponent } from './po-breadcrumb.component'; import { PoBreadcrumbFavoriteComponent } from './po-breadcrumb-favorite/po-breadcrumb-favorite.component'; import { PoBreadcrumbItem } from './po-breadcrumb-item.interface'; -@Component({ template: 'Documentation' }) +@Component({ + template: 'Documentation', + standalone: false +}) export class DocumentationComponent {} -@Component({ template: 'Guides' }) +@Component({ + template: 'Guides', + standalone: false +}) export class GuidesComponent {} export const routes: Routes = [ diff --git a/projects/ui/src/lib/components/po-breadcrumb/po-breadcrumb.component.ts b/projects/ui/src/lib/components/po-breadcrumb/po-breadcrumb.component.ts index 20bd60b7fa..c4e62753b7 100644 --- a/projects/ui/src/lib/components/po-breadcrumb/po-breadcrumb.component.ts +++ b/projects/ui/src/lib/components/po-breadcrumb/po-breadcrumb.component.ts @@ -14,7 +14,7 @@ import { PoBreadcrumbItem } from './po-breadcrumb-item.interface'; import { PoPopupComponent } from '../po-popup/po-popup.component'; import { PoLanguageService } from '../../services/po-language/po-language.service'; -export const poBreadcrumbLiterals: Object = { +export const poBreadcrumbLiterals: object = { en: { literalButtonPopup: 'Menu pop up collapsed' }, @@ -46,7 +46,8 @@ export const poBreadcrumbLiterals: Object = { */ @Component({ selector: 'po-breadcrumb', - templateUrl: './po-breadcrumb.component.html' + templateUrl: './po-breadcrumb.component.html', + standalone: false }) export class PoBreadcrumbComponent extends PoBreadcrumbBaseComponent implements AfterViewInit, DoCheck, OnDestroy { @ViewChild('breadcrumb', { read: ElementRef, static: true }) breadcrumbElement: ElementRef; diff --git a/projects/ui/src/lib/components/po-breadcrumb/samples/sample-po-breadcrumb-basic/sample-po-breadcrumb-basic.component.ts b/projects/ui/src/lib/components/po-breadcrumb/samples/sample-po-breadcrumb-basic/sample-po-breadcrumb-basic.component.ts index 7b8045f54a..4d5bdd93a2 100644 --- a/projects/ui/src/lib/components/po-breadcrumb/samples/sample-po-breadcrumb-basic/sample-po-breadcrumb-basic.component.ts +++ b/projects/ui/src/lib/components/po-breadcrumb/samples/sample-po-breadcrumb-basic/sample-po-breadcrumb-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-breadcrumb-basic', - templateUrl: './sample-po-breadcrumb-basic.component.html' + templateUrl: './sample-po-breadcrumb-basic.component.html', + standalone: false }) export class SamplePoBreadcrumbBasicComponent {} diff --git a/projects/ui/src/lib/components/po-breadcrumb/samples/sample-po-breadcrumb-labs/sample-po-breadcrumb-labs.component.ts b/projects/ui/src/lib/components/po-breadcrumb/samples/sample-po-breadcrumb-labs/sample-po-breadcrumb-labs.component.ts index ffcc447ece..333bb4c38f 100644 --- a/projects/ui/src/lib/components/po-breadcrumb/samples/sample-po-breadcrumb-labs/sample-po-breadcrumb-labs.component.ts +++ b/projects/ui/src/lib/components/po-breadcrumb/samples/sample-po-breadcrumb-labs/sample-po-breadcrumb-labs.component.ts @@ -4,7 +4,8 @@ import { PoBreadcrumbItem, PoNotificationService } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-breadcrumb-labs', - templateUrl: './sample-po-breadcrumb-labs.component.html' + templateUrl: './sample-po-breadcrumb-labs.component.html', + standalone: false }) export class SamplePoBreadcrumbLabsComponent implements OnInit { breadcrumbItem: PoBreadcrumbItem; diff --git a/projects/ui/src/lib/components/po-button-group/po-button-group.component.ts b/projects/ui/src/lib/components/po-button-group/po-button-group.component.ts index aa545ea6ec..ce0dbdcd72 100644 --- a/projects/ui/src/lib/components/po-button-group/po-button-group.component.ts +++ b/projects/ui/src/lib/components/po-button-group/po-button-group.component.ts @@ -30,7 +30,8 @@ import { PoButtonGroupBaseComponent } from './po-button-group-base.component'; */ @Component({ selector: 'po-button-group', - templateUrl: './po-button-group.component.html' + templateUrl: './po-button-group.component.html', + standalone: false }) export class PoButtonGroupComponent extends PoButtonGroupBaseComponent { constructor(viewRef: ViewContainerRef) { diff --git a/projects/ui/src/lib/components/po-button-group/samples/sample-po-button-group-attendance/sample-po-button-group-attendance.component.ts b/projects/ui/src/lib/components/po-button-group/samples/sample-po-button-group-attendance/sample-po-button-group-attendance.component.ts index d2c3a6a35b..c33d16abb6 100644 --- a/projects/ui/src/lib/components/po-button-group/samples/sample-po-button-group-attendance/sample-po-button-group-attendance.component.ts +++ b/projects/ui/src/lib/components/po-button-group/samples/sample-po-button-group-attendance/sample-po-button-group-attendance.component.ts @@ -4,7 +4,8 @@ import { PoButtonGroupItem, PoNotificationService } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-button-group-attendance', - templateUrl: './sample-po-button-group-attendance.component.html' + templateUrl: './sample-po-button-group-attendance.component.html', + standalone: false }) export class SamplePoButtonGroupAttendanceComponent { attendances: Array = [ diff --git a/projects/ui/src/lib/components/po-button-group/samples/sample-po-button-group-basic/sample-po-button-group-basic.component.ts b/projects/ui/src/lib/components/po-button-group/samples/sample-po-button-group-basic/sample-po-button-group-basic.component.ts index 7553929a8d..13333fed43 100644 --- a/projects/ui/src/lib/components/po-button-group/samples/sample-po-button-group-basic/sample-po-button-group-basic.component.ts +++ b/projects/ui/src/lib/components/po-button-group/samples/sample-po-button-group-basic/sample-po-button-group-basic.component.ts @@ -4,7 +4,8 @@ import { PoButtonGroupItem } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-button-group-basic', - templateUrl: './sample-po-button-group-basic.component.html' + templateUrl: './sample-po-button-group-basic.component.html', + standalone: false }) export class SamplePoButtonGroupBasicComponent { buttons: Array = [ diff --git a/projects/ui/src/lib/components/po-button-group/samples/sample-po-button-group-labs/sample-po-button-group-labs.component.ts b/projects/ui/src/lib/components/po-button-group/samples/sample-po-button-group-labs/sample-po-button-group-labs.component.ts index 6fde52f000..89572e9f46 100644 --- a/projects/ui/src/lib/components/po-button-group/samples/sample-po-button-group-labs/sample-po-button-group-labs.component.ts +++ b/projects/ui/src/lib/components/po-button-group/samples/sample-po-button-group-labs/sample-po-button-group-labs.component.ts @@ -10,7 +10,8 @@ import { @Component({ selector: 'sample-po-button-group-labs', - templateUrl: './sample-po-button-group-labs.component.html' + templateUrl: './sample-po-button-group-labs.component.html', + standalone: false }) export class SamplePoButtonGroupLabsComponent implements OnInit { button: any; diff --git a/projects/ui/src/lib/components/po-button-group/samples/sample-po-button-group-post/sample-po-button-group-post.component.ts b/projects/ui/src/lib/components/po-button-group/samples/sample-po-button-group-post/sample-po-button-group-post.component.ts index eb28b63849..8e3aa718b9 100644 --- a/projects/ui/src/lib/components/po-button-group/samples/sample-po-button-group-post/sample-po-button-group-post.component.ts +++ b/projects/ui/src/lib/components/po-button-group/samples/sample-po-button-group-post/sample-po-button-group-post.component.ts @@ -4,7 +4,8 @@ import { PoButtonGroupItem } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-button-group-post', - templateUrl: './sample-po-button-group-post.component.html' + templateUrl: './sample-po-button-group-post.component.html', + standalone: false }) export class SamplePoButtonGroupPostComponent { setBold: boolean; diff --git a/projects/ui/src/lib/components/po-button/po-button.component.ts b/projects/ui/src/lib/components/po-button/po-button.component.ts index 70963687c4..b9bf85bc2e 100644 --- a/projects/ui/src/lib/components/po-button/po-button.component.ts +++ b/projects/ui/src/lib/components/po-button/po-button.component.ts @@ -29,7 +29,8 @@ import { PoButtonBaseComponent } from './po-button-base.component'; @Component({ selector: 'po-button', templateUrl: './po-button.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoButtonComponent extends PoButtonBaseComponent { @ViewChild('button', { static: true }) buttonElement: ElementRef; diff --git a/projects/ui/src/lib/components/po-button/samples/sample-po-button-basic/sample-po-button-basic.component.ts b/projects/ui/src/lib/components/po-button/samples/sample-po-button-basic/sample-po-button-basic.component.ts index e117b93888..3ee3f001d6 100644 --- a/projects/ui/src/lib/components/po-button/samples/sample-po-button-basic/sample-po-button-basic.component.ts +++ b/projects/ui/src/lib/components/po-button/samples/sample-po-button-basic/sample-po-button-basic.component.ts @@ -2,7 +2,8 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-button-basic', - templateUrl: './sample-po-button-basic.component.html' + templateUrl: './sample-po-button-basic.component.html', + standalone: false }) export class SamplePoButtonBasicComponent { onClick() { diff --git a/projects/ui/src/lib/components/po-button/samples/sample-po-button-labs/sample-po-button-labs.component.ts b/projects/ui/src/lib/components/po-button/samples/sample-po-button-labs/sample-po-button-labs.component.ts index e1bc19a99a..84c38cbde8 100644 --- a/projects/ui/src/lib/components/po-button/samples/sample-po-button-labs/sample-po-button-labs.component.ts +++ b/projects/ui/src/lib/components/po-button/samples/sample-po-button-labs/sample-po-button-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption, PoRadioGroupOption, PoDialogService, PoButtonTyp @Component({ selector: 'sample-po-button-labs', - templateUrl: './sample-po-button-labs.component.html' + templateUrl: './sample-po-button-labs.component.html', + standalone: false }) export class SamplePoButtonLabsComponent implements OnInit { label: string; diff --git a/projects/ui/src/lib/components/po-button/samples/sample-po-button-social-network/sample-po-button-social-network.component.ts b/projects/ui/src/lib/components/po-button/samples/sample-po-button-social-network/sample-po-button-social-network.component.ts index 272ac6b25e..b6d1ee37dc 100644 --- a/projects/ui/src/lib/components/po-button/samples/sample-po-button-social-network/sample-po-button-social-network.component.ts +++ b/projects/ui/src/lib/components/po-button/samples/sample-po-button-social-network/sample-po-button-social-network.component.ts @@ -4,7 +4,8 @@ import { PoNotificationService } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-button-social-network', - templateUrl: './sample-po-button-social-network.component.html' + templateUrl: './sample-po-button-social-network.component.html', + standalone: false }) export class SamplePoButtonSocialNetworkComponent implements OnInit { currentFriend: object; diff --git a/projects/ui/src/lib/components/po-calendar/po-calendar-header/po-calendar-header.component.ts b/projects/ui/src/lib/components/po-calendar/po-calendar-header/po-calendar-header.component.ts index 3293cfb8ce..7fc10a11b4 100644 --- a/projects/ui/src/lib/components/po-calendar/po-calendar-header/po-calendar-header.component.ts +++ b/projects/ui/src/lib/components/po-calendar/po-calendar-header/po-calendar-header.component.ts @@ -3,7 +3,8 @@ import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from @Component({ selector: 'po-calendar-header', templateUrl: './po-calendar-header.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoCalendarHeaderComponent { @Input('p-hide-previous') hidePrevious = false; diff --git a/projects/ui/src/lib/components/po-calendar/po-calendar-wrapper/po-calendar-wrapper.component.ts b/projects/ui/src/lib/components/po-calendar/po-calendar-wrapper/po-calendar-wrapper.component.ts index 56159d971a..8ed78775aa 100644 --- a/projects/ui/src/lib/components/po-calendar/po-calendar-wrapper/po-calendar-wrapper.component.ts +++ b/projects/ui/src/lib/components/po-calendar/po-calendar-wrapper/po-calendar-wrapper.component.ts @@ -11,7 +11,8 @@ import { PoDateService } from '../../../services/po-date/po-date.service'; selector: 'po-calendar-wrapper', templateUrl: './po-calendar-wrapper.component.html', providers: [PoCalendarService], - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoCalendarWrapperComponent implements OnInit, OnChanges { @Input('p-value') value; diff --git a/projects/ui/src/lib/components/po-calendar/po-calendar.component.ts b/projects/ui/src/lib/components/po-calendar/po-calendar.component.ts index 54555ae5e0..155d1e541e 100644 --- a/projects/ui/src/lib/components/po-calendar/po-calendar.component.ts +++ b/projects/ui/src/lib/components/po-calendar/po-calendar.component.ts @@ -56,7 +56,8 @@ const poCalendarRangeWidth = 600; selector: 'po-calendar', templateUrl: './po-calendar.component.html', changeDetection: ChangeDetectionStrategy.OnPush, - providers + providers, + standalone: false }) export class PoCalendarComponent extends PoCalendarBaseComponent implements OnInit, OnChanges { hoverValue: Date; diff --git a/projects/ui/src/lib/components/po-calendar/samples/sample-po-calendar-basic/sample-po-calendar-basic.component.ts b/projects/ui/src/lib/components/po-calendar/samples/sample-po-calendar-basic/sample-po-calendar-basic.component.ts index 346ff13489..4709d77cb4 100644 --- a/projects/ui/src/lib/components/po-calendar/samples/sample-po-calendar-basic/sample-po-calendar-basic.component.ts +++ b/projects/ui/src/lib/components/po-calendar/samples/sample-po-calendar-basic/sample-po-calendar-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-calendar-basic', - templateUrl: './sample-po-calendar-basic.component.html' + templateUrl: './sample-po-calendar-basic.component.html', + standalone: false }) export class SamplePoCalendarBasicComponent {} diff --git a/projects/ui/src/lib/components/po-calendar/samples/sample-po-calendar-labs/sample-po-calendar-labs.component.ts b/projects/ui/src/lib/components/po-calendar/samples/sample-po-calendar-labs/sample-po-calendar-labs.component.ts index d86f8ba240..1d4f2b146c 100644 --- a/projects/ui/src/lib/components/po-calendar/samples/sample-po-calendar-labs/sample-po-calendar-labs.component.ts +++ b/projects/ui/src/lib/components/po-calendar/samples/sample-po-calendar-labs/sample-po-calendar-labs.component.ts @@ -4,7 +4,8 @@ import { PoRadioGroupOption, PoCalendarMode } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-calendar-labs', - templateUrl: './sample-po-calendar-labs.component.html' + templateUrl: './sample-po-calendar-labs.component.html', + standalone: false }) export class SamplePoCalendarLabsComponent implements OnInit { calendar; diff --git a/projects/ui/src/lib/components/po-calendar/samples/sample-po-calendar-ticket-sales/sample-po-calendar-ticket-sales.component.ts b/projects/ui/src/lib/components/po-calendar/samples/sample-po-calendar-ticket-sales/sample-po-calendar-ticket-sales.component.ts index 7ae7600754..cf96a6587d 100644 --- a/projects/ui/src/lib/components/po-calendar/samples/sample-po-calendar-ticket-sales/sample-po-calendar-ticket-sales.component.ts +++ b/projects/ui/src/lib/components/po-calendar/samples/sample-po-calendar-ticket-sales/sample-po-calendar-ticket-sales.component.ts @@ -4,7 +4,8 @@ import { PoNotificationService, PoPageAction, PoSelectOption } from '@po-ui/ng-c @Component({ selector: 'sample-po-calendar-ticket-sales', - templateUrl: './sample-po-calendar-ticket-sales.component.html' + templateUrl: './sample-po-calendar-ticket-sales.component.html', + standalone: false }) export class SamplePoCalendarTicketSalesComponent { date: string; diff --git a/projects/ui/src/lib/components/po-calendar/services/po-calendar.service.ts b/projects/ui/src/lib/components/po-calendar/services/po-calendar.service.ts index 0e8cfa8875..f71af58d93 100644 --- a/projects/ui/src/lib/components/po-calendar/services/po-calendar.service.ts +++ b/projects/ui/src/lib/components/po-calendar/services/po-calendar.service.ts @@ -2,7 +2,9 @@ import { Injectable } from '@angular/core'; const poCalendarServiceFirstWeekDayDefault: number = 0; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoCalendarService { monthDates(year: any, month: any, dayFormatter: any = null, weekFormatter: any = null) { if (typeof month !== 'number' || month < 0 || month > 11) { diff --git a/projects/ui/src/lib/components/po-chart/directives/po-resize-observer.directive.spec.ts b/projects/ui/src/lib/components/po-chart/directives/po-resize-observer.directive.spec.ts index 9bd0ef9c82..afaa64e9b5 100644 --- a/projects/ui/src/lib/components/po-chart/directives/po-resize-observer.directive.spec.ts +++ b/projects/ui/src/lib/components/po-chart/directives/po-resize-observer.directive.spec.ts @@ -22,7 +22,8 @@ import { PoResizeObserverDirective } from './po-resize-observer.directive'; > - ` + `, + standalone: false }) export class TestComponent { testResize() {} diff --git a/projects/ui/src/lib/components/po-chart/directives/po-resize-observer.directive.ts b/projects/ui/src/lib/components/po-chart/directives/po-resize-observer.directive.ts index 5387fccab8..e15649613e 100644 --- a/projects/ui/src/lib/components/po-chart/directives/po-resize-observer.directive.ts +++ b/projects/ui/src/lib/components/po-chart/directives/po-resize-observer.directive.ts @@ -5,7 +5,8 @@ import { Subject, Subscription } from 'rxjs'; import { debounceTime } from 'rxjs/operators'; @Directive({ - selector: '[p-resize-observer]' + selector: '[p-resize-observer]', + standalone: false }) export class PoResizeObserverDirective implements OnDestroy, OnInit { @Output('p-resize-observer') resize = new EventEmitter(); diff --git a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-axis/po-chart-axis-label/po-chart-axis-label.component.ts b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-axis/po-chart-axis-label/po-chart-axis-label.component.ts index a6e6e5fc09..da948fdabb 100644 --- a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-axis/po-chart-axis-label/po-chart-axis-label.component.ts +++ b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-axis/po-chart-axis-label/po-chart-axis-label.component.ts @@ -5,7 +5,8 @@ import { PoChartLabelCoordinates } from '../../../interfaces/po-chart-label-coor @Component({ selector: '[po-chart-axis-label]', - templateUrl: './po-chart-axis-label.component.svg' + templateUrl: './po-chart-axis-label.component.svg', + standalone: false }) export class PoChartAxisLabelComponent { @Input('p-align-by-the-corners') alignByTheCorners: boolean = false; diff --git a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-axis/po-chart-axis-path/po-chart-axis-path.component.ts b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-axis/po-chart-axis-path/po-chart-axis-path.component.ts index 7b13a06a00..336a833691 100644 --- a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-axis/po-chart-axis-path/po-chart-axis-path.component.ts +++ b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-axis/po-chart-axis-path/po-chart-axis-path.component.ts @@ -4,7 +4,8 @@ import { PoChartPathCoordinates } from '../../../interfaces/po-chart-path-coordi @Component({ selector: '[po-chart-axis-path]', - templateUrl: './po-chart-axis-path.component.svg' + templateUrl: './po-chart-axis-path.component.svg', + standalone: false }) export class PoChartAxisPathComponent { @Input('p-axis-x-coordinates') axisXCoordinates: Array; diff --git a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-axis/po-chart-axis.component.ts b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-axis/po-chart-axis.component.ts index 4307972661..80ad66c328 100644 --- a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-axis/po-chart-axis.component.ts +++ b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-axis/po-chart-axis.component.ts @@ -16,7 +16,8 @@ import { PoChartType } from '../../enums/po-chart-type.enum'; @Component({ selector: '[po-chart-axis]', - templateUrl: './po-chart-axis.component.svg' + templateUrl: './po-chart-axis.component.svg', + standalone: false }) export class PoChartAxisComponent { @Input('p-align-by-the-corners') alignByTheCorners: boolean = false; diff --git a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-bar/po-chart-bar-path/po-chart-bar-path.component.ts b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-bar/po-chart-bar-path/po-chart-bar-path.component.ts index e1036baa7a..c2ace4e96d 100644 --- a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-bar/po-chart-bar-path/po-chart-bar-path.component.ts +++ b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-bar/po-chart-bar-path/po-chart-bar-path.component.ts @@ -4,7 +4,8 @@ import { PoChartBarCoordinates } from '../../../interfaces/po-chart-bar-coordina @Component({ selector: '[po-chart-bar-path]', - templateUrl: './po-chart-bar-path.component.svg' + templateUrl: './po-chart-bar-path.component.svg', + standalone: false }) export class PoChartBarPathComponent { @Input('p-color') color?: string; diff --git a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-bar/po-chart-bar.component.ts b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-bar/po-chart-bar.component.ts index b18a09b0c7..eec6b42140 100644 --- a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-bar/po-chart-bar.component.ts +++ b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-bar/po-chart-bar.component.ts @@ -10,7 +10,8 @@ import { PoChartMinMaxValues } from './../../interfaces/po-chart-min-max-values. @Component({ selector: '[po-chart-bar]', - templateUrl: './po-chart-bar.component.svg' + templateUrl: './po-chart-bar.component.svg', + standalone: false }) export class PoChartBarComponent extends PoChartBarBaseComponent { readonly tooltipPosition = 'right'; diff --git a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-bar/po-chart-column/po-chart-column.component.ts b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-bar/po-chart-column/po-chart-column.component.ts index c0f980c8ae..2ff2d0e5db 100644 --- a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-bar/po-chart-column/po-chart-column.component.ts +++ b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-bar/po-chart-column/po-chart-column.component.ts @@ -10,7 +10,8 @@ import { PoChartMinMaxValues } from '../../../interfaces/po-chart-min-max-values @Component({ selector: '[po-chart-column]', - templateUrl: '../po-chart-bar.component.svg' + templateUrl: '../po-chart-bar.component.svg', + standalone: false }) export class PoChartColumnComponent extends PoChartBarBaseComponent { readonly tooltipPosition = 'top'; diff --git a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular-label/po-chart-circular-label.component.ts b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular-label/po-chart-circular-label.component.ts index f79642c170..194563364e 100644 --- a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular-label/po-chart-circular-label.component.ts +++ b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular-label/po-chart-circular-label.component.ts @@ -4,7 +4,8 @@ import { PoChartLabelCoordinates } from '../../../interfaces/po-chart-label-coor @Component({ selector: '[po-chart-circular-label]', - templateUrl: './po-chart-circular-label.component.svg' + templateUrl: './po-chart-circular-label.component.svg', + standalone: false }) export class PoChartCircularLabelComponent { @Input('p-serie') serie: PoChartLabelCoordinates; diff --git a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular-path/po-chart-circular-path.component.ts b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular-path/po-chart-circular-path.component.ts index 59e36762d9..f891461247 100644 --- a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular-path/po-chart-circular-path.component.ts +++ b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular-path/po-chart-circular-path.component.ts @@ -4,7 +4,8 @@ import { PoChartPathCoordinates } from '../../../interfaces/po-chart-path-coordi @Component({ selector: '[po-chart-circular-path]', - templateUrl: './po-chart-circular-path.component.svg' + templateUrl: './po-chart-circular-path.component.svg', + standalone: false }) export class PoChartCircularPathComponent { @Input('p-serie') serie: PoChartPathCoordinates; diff --git a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular-path/po-chart-tooltip.directive.spec.ts b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular-path/po-chart-tooltip.directive.spec.ts index c71a78fb17..2a856fc389 100644 --- a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular-path/po-chart-tooltip.directive.spec.ts +++ b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular-path/po-chart-tooltip.directive.spec.ts @@ -25,7 +25,8 @@ import { PoChartTooltipDirective } from './po-chart-tooltip.directive'; > - ` + `, + standalone: false }) export class TestComponent {} diff --git a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular-path/po-chart-tooltip.directive.ts b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular-path/po-chart-tooltip.directive.ts index f055a6a8b1..eda94980e7 100644 --- a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular-path/po-chart-tooltip.directive.ts +++ b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular-path/po-chart-tooltip.directive.ts @@ -1,7 +1,8 @@ import { Directive, ElementRef, HostListener, Input, Renderer2 } from '@angular/core'; @Directive({ - selector: '[p-chart-tooltip]' + selector: '[p-chart-tooltip]', + standalone: false }) export class PoChartTooltipDirective { @Input('p-chart-tooltip') tooltip: string; diff --git a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular.component.spec.ts b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular.component.spec.ts index ff5b09b5ff..4ec47b13b6 100644 --- a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular.component.spec.ts +++ b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular.component.spec.ts @@ -13,7 +13,8 @@ import { expectPropertiesValues } from 'projects/templates/src/lib/util-test/uti @Component({ selector: 'po-chart-circular-test', - template: ` ` + template: ` `, + standalone: false }) class PoChartPieComponent extends PoChartCircularComponent { constructor(ngZone: NgZone, changeDetector: ChangeDetectorRef) { diff --git a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-donut/po-chart-donut.component.ts b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-donut/po-chart-donut.component.ts index 08882214b3..dcb6caf123 100644 --- a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-donut/po-chart-donut.component.ts +++ b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-donut/po-chart-donut.component.ts @@ -8,7 +8,8 @@ import { PoChartCircularComponent } from '../po-chart-circular.component'; @Component({ selector: '[po-chart-donut]', - templateUrl: '../po-chart-circular.component.svg' + templateUrl: '../po-chart-circular.component.svg', + standalone: false }) export class PoChartDonutComponent extends PoChartCircularComponent implements OnChanges { private readonly poChartBlackColor = '#000000'; diff --git a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-pie/po-chart-pie.component.ts b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-pie/po-chart-pie.component.ts index a89b703ed7..a9596f7100 100644 --- a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-pie/po-chart-pie.component.ts +++ b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-pie/po-chart-pie.component.ts @@ -4,7 +4,8 @@ import { PoChartCircularComponent } from '../po-chart-circular.component'; @Component({ selector: '[po-chart-pie]', - templateUrl: '../po-chart-circular.component.svg' + templateUrl: '../po-chart-circular.component.svg', + standalone: false }) export class PoChartPieComponent extends PoChartCircularComponent implements OnChanges { /* istanbul ignore next */ diff --git a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-container.component.ts b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-container.component.ts index 0659267796..4213ef9768 100644 --- a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-container.component.ts +++ b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-container.component.ts @@ -11,7 +11,8 @@ import { PoChartDataLabel } from '../interfaces/po-chart-serie-data-label.interf @Component({ selector: 'po-chart-container', - templateUrl: './po-chart-container.component.html' + templateUrl: './po-chart-container.component.html', + standalone: false }) export class PoChartContainerComponent implements OnChanges { @Input('p-categories') categories: Array; diff --git a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-area/po-chart-area.component.ts b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-area/po-chart-area.component.ts index 0a3ba5f9bf..71ebb9cc97 100644 --- a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-area/po-chart-area.component.ts +++ b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-area/po-chart-area.component.ts @@ -10,7 +10,8 @@ import { PoChartPointsCoordinates } from '../../../interfaces/po-chart-points-co @Component({ selector: '[po-chart-area]', - templateUrl: '../po-chart-line.component.svg' + templateUrl: '../po-chart-line.component.svg', + standalone: false }) export class PoChartAreaComponent extends PoChartLineBaseComponent { private currentActiveSerieIndex: number; diff --git a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-line-base.component.spec.ts b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-line-base.component.spec.ts index 3efe7134f4..04c06d4a19 100644 --- a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-line-base.component.spec.ts +++ b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-line-base.component.spec.ts @@ -12,7 +12,8 @@ import { expectPropertiesValues } from 'projects/ui/src/lib/util-test/util-expec @Component({ selector: 'po-chart-line-test', - template: ` ` + template: ` `, + standalone: false }) class PoChartLineComponent extends PoChartLineBaseComponent { constructor(mathsService: PoChartMathsService, renderer: Renderer2, elementRef: ElementRef) { diff --git a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-line.component.ts b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-line.component.ts index 79e21d0c4b..ec2f633342 100644 --- a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-line.component.ts +++ b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-line.component.ts @@ -6,7 +6,8 @@ import { PoChartPathCoordinates } from '../../interfaces/po-chart-path-coordinat @Component({ selector: '[po-chart-line]', - templateUrl: './po-chart-line.component.svg' + templateUrl: './po-chart-line.component.svg', + standalone: false }) export class PoChartLineComponent extends PoChartLineBaseComponent implements OnChanges { selectedPath: PoChartPathCoordinates; diff --git a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-path/po-chart-path.component.ts b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-path/po-chart-path.component.ts index 7486ee2ee1..d6f6e28a2b 100644 --- a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-path/po-chart-path.component.ts +++ b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-path/po-chart-path.component.ts @@ -6,7 +6,8 @@ const pathDashoffsetDefaultWidth = 0; @Component({ selector: '[po-chart-path]', - templateUrl: './po-chart-path.component.svg' + templateUrl: './po-chart-path.component.svg', + standalone: false }) export class PoChartPathComponent implements AfterViewInit { @Input({ alias: 'p-is-active', transform: convertToBoolean }) isActive: boolean = true; diff --git a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-series-point/po-chart-series-point.component.ts b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-series-point/po-chart-series-point.component.ts index 03baadded8..4b0849baea 100644 --- a/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-series-point/po-chart-series-point.component.ts +++ b/projects/ui/src/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-series-point/po-chart-series-point.component.ts @@ -12,7 +12,8 @@ const ANIMATION_DURATION_TIME = 700; @Component({ selector: '[po-chart-series-point]', - templateUrl: './po-chart-series-point.component.svg' + templateUrl: './po-chart-series-point.component.svg', + standalone: false }) export class PoChartSeriesPointComponent { @Input('p-animate') animate: boolean; diff --git a/projects/ui/src/lib/components/po-chart/po-chart-legend/po-chart-legend.component.ts b/projects/ui/src/lib/components/po-chart/po-chart-legend/po-chart-legend.component.ts index c1eebd89f5..46ef55daa1 100644 --- a/projects/ui/src/lib/components/po-chart/po-chart-legend/po-chart-legend.component.ts +++ b/projects/ui/src/lib/components/po-chart/po-chart-legend/po-chart-legend.component.ts @@ -5,7 +5,8 @@ import { PoChartType } from '../enums/po-chart-type.enum'; @Component({ selector: 'po-chart-legend', templateUrl: './po-chart-legend.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoChartLegendComponent { @Input('p-type') type: PoChartType; diff --git a/projects/ui/src/lib/components/po-chart/po-chart-types/po-chart-circular/po-chart-circular.spec.ts b/projects/ui/src/lib/components/po-chart/po-chart-types/po-chart-circular/po-chart-circular.spec.ts index 7f31f454de..f01418cc21 100644 --- a/projects/ui/src/lib/components/po-chart/po-chart-types/po-chart-circular/po-chart-circular.spec.ts +++ b/projects/ui/src/lib/components/po-chart/po-chart-types/po-chart-circular/po-chart-circular.spec.ts @@ -10,7 +10,8 @@ import { PoChartType } from '../../enums/po-chart-type.enum'; @Component({ selector: 'po-chart-circular-test', - templateUrl: '../po-chart-dynamic-type.component.html' + templateUrl: '../po-chart-dynamic-type.component.html', + standalone: false }) class PoChartCircularComponent extends PoChartCircular { constructor(el: ElementRef, ngZone: NgZone, renderer: Renderer2) { diff --git a/projects/ui/src/lib/components/po-chart/po-chart.component.ts b/projects/ui/src/lib/components/po-chart/po-chart.component.ts index 3b0495fa06..375dd5e8a9 100644 --- a/projects/ui/src/lib/components/po-chart/po-chart.component.ts +++ b/projects/ui/src/lib/components/po-chart/po-chart.component.ts @@ -53,7 +53,8 @@ import { PoChartMathsService } from './services/po-chart-maths.service'; */ @Component({ selector: 'po-chart', - templateUrl: './po-chart.component.html' + templateUrl: './po-chart.component.html', + standalone: false }) export class PoChartComponent extends PoChartBaseComponent implements AfterViewInit, DoCheck, OnDestroy, OnInit { @ViewChild('chartContainer', { read: ViewContainerRef, static: true }) chartContainer: ViewContainerRef; diff --git a/projects/ui/src/lib/components/po-chart/samples/sample-po-chart-basic/sample-po-chart-basic.component.ts b/projects/ui/src/lib/components/po-chart/samples/sample-po-chart-basic/sample-po-chart-basic.component.ts index 2a57fb96d4..a6191d620e 100644 --- a/projects/ui/src/lib/components/po-chart/samples/sample-po-chart-basic/sample-po-chart-basic.component.ts +++ b/projects/ui/src/lib/components/po-chart/samples/sample-po-chart-basic/sample-po-chart-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-chart-basic', - templateUrl: './sample-po-chart-basic.component.html' + templateUrl: './sample-po-chart-basic.component.html', + standalone: false }) export class SamplePoChartBasicComponent {} diff --git a/projects/ui/src/lib/components/po-chart/samples/sample-po-chart-coffee-ranking/sample-po-chart-coffee-ranking.component.ts b/projects/ui/src/lib/components/po-chart/samples/sample-po-chart-coffee-ranking/sample-po-chart-coffee-ranking.component.ts index 34b42ef001..6f8175dbbd 100644 --- a/projects/ui/src/lib/components/po-chart/samples/sample-po-chart-coffee-ranking/sample-po-chart-coffee-ranking.component.ts +++ b/projects/ui/src/lib/components/po-chart/samples/sample-po-chart-coffee-ranking/sample-po-chart-coffee-ranking.component.ts @@ -5,7 +5,8 @@ import { PoChartType, PoChartOptions, PoChartSerie, PoDialogService } from '@po- @Component({ selector: 'sample-po-chart-coffee-ranking', templateUrl: './sample-po-chart-coffee-ranking.component.html', - providers: [PoDialogService] + providers: [PoDialogService], + standalone: false }) export class SamplePoChartCoffeeRankingComponent { participationByCountryInWorldExportsType: PoChartType = PoChartType.Line; diff --git a/projects/ui/src/lib/components/po-chart/samples/sample-po-chart-labs/sample-po-chart-labs.component.ts b/projects/ui/src/lib/components/po-chart/samples/sample-po-chart-labs/sample-po-chart-labs.component.ts index 8f20eb44d6..434eb90cce 100644 --- a/projects/ui/src/lib/components/po-chart/samples/sample-po-chart-labs/sample-po-chart-labs.component.ts +++ b/projects/ui/src/lib/components/po-chart/samples/sample-po-chart-labs/sample-po-chart-labs.component.ts @@ -11,7 +11,8 @@ import { @Component({ selector: 'sample-po-chart-labs', - templateUrl: './sample-po-chart-labs.component.html' + templateUrl: './sample-po-chart-labs.component.html', + standalone: false }) export class SamplePoChartLabsComponent implements OnInit { allCategories: Array = []; diff --git a/projects/ui/src/lib/components/po-chart/samples/sample-po-chart-world-exports/sample-po-chart-world-exports.component.ts b/projects/ui/src/lib/components/po-chart/samples/sample-po-chart-world-exports/sample-po-chart-world-exports.component.ts index 6bb5049933..29f8a7689c 100644 --- a/projects/ui/src/lib/components/po-chart/samples/sample-po-chart-world-exports/sample-po-chart-world-exports.component.ts +++ b/projects/ui/src/lib/components/po-chart/samples/sample-po-chart-world-exports/sample-po-chart-world-exports.component.ts @@ -4,7 +4,8 @@ import { PoChartOptions, PoChartSerie, PoChartType } from '@po-ui/ng-components' @Component({ selector: 'sample-po-chart-world-exports', - templateUrl: './sample-po-chart-world-exports.component.html' + templateUrl: './sample-po-chart-world-exports.component.html', + standalone: false }) export class SamplePoChartWorldExportsComponent { participationByCountryInWorldExportsType: PoChartType = PoChartType.Line; diff --git a/projects/ui/src/lib/components/po-container/po-container.component.ts b/projects/ui/src/lib/components/po-container/po-container.component.ts index 62c3fc83a3..77176b3685 100644 --- a/projects/ui/src/lib/components/po-container/po-container.component.ts +++ b/projects/ui/src/lib/components/po-container/po-container.component.ts @@ -25,6 +25,7 @@ import { PoContainerBaseComponent } from './po-container-base.component'; */ @Component({ selector: 'po-container', - templateUrl: './po-container.component.html' + templateUrl: './po-container.component.html', + standalone: false }) export class PoContainerComponent extends PoContainerBaseComponent {} diff --git a/projects/ui/src/lib/components/po-container/samples/sample-po-container-basic/sample-po-container-basic.component.ts b/projects/ui/src/lib/components/po-container/samples/sample-po-container-basic/sample-po-container-basic.component.ts index 3683e2e48b..205a98e862 100644 --- a/projects/ui/src/lib/components/po-container/samples/sample-po-container-basic/sample-po-container-basic.component.ts +++ b/projects/ui/src/lib/components/po-container/samples/sample-po-container-basic/sample-po-container-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-container-basic', - templateUrl: './sample-po-container-basic.component.html' + templateUrl: './sample-po-container-basic.component.html', + standalone: false }) export class SamplePoContainerBasicComponent {} diff --git a/projects/ui/src/lib/components/po-container/samples/sample-po-container-dashboard/sample-po-container-dashboard.component.ts b/projects/ui/src/lib/components/po-container/samples/sample-po-container-dashboard/sample-po-container-dashboard.component.ts index bfee1be773..9e2811c48b 100644 --- a/projects/ui/src/lib/components/po-container/samples/sample-po-container-dashboard/sample-po-container-dashboard.component.ts +++ b/projects/ui/src/lib/components/po-container/samples/sample-po-container-dashboard/sample-po-container-dashboard.component.ts @@ -24,7 +24,8 @@ import { } ` ], - providers: [SampleDashboardService] + providers: [SampleDashboardService], + standalone: false }) export class SamplePoContainerDashboardComponent implements AfterContentChecked, OnInit { @ViewChild('formShare', { static: true }) formShare: NgForm; diff --git a/projects/ui/src/lib/components/po-container/samples/sample-po-container-dashboard/sample-po-container-dashboard.service.ts b/projects/ui/src/lib/components/po-container/samples/sample-po-container-dashboard/sample-po-container-dashboard.service.ts index 21ec458489..5a4d0b6046 100644 --- a/projects/ui/src/lib/components/po-container/samples/sample-po-container-dashboard/sample-po-container-dashboard.service.ts +++ b/projects/ui/src/lib/components/po-container/samples/sample-po-container-dashboard/sample-po-container-dashboard.service.ts @@ -2,7 +2,9 @@ import { Injectable } from '@angular/core'; import { PoTableColumn } from '@po-ui/ng-components'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class SampleDashboardService { getColumns(): Array { return [ diff --git a/projects/ui/src/lib/components/po-container/samples/sample-po-container-labs/sample-po-container-labs.component.ts b/projects/ui/src/lib/components/po-container/samples/sample-po-container-labs/sample-po-container-labs.component.ts index 8f7569c373..0610b9a414 100644 --- a/projects/ui/src/lib/components/po-container/samples/sample-po-container-labs/sample-po-container-labs.component.ts +++ b/projects/ui/src/lib/components/po-container/samples/sample-po-container-labs/sample-po-container-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-container-labs', - templateUrl: './sample-po-container-labs.component.html' + templateUrl: './sample-po-container-labs.component.html', + standalone: false }) export class SamplePoContainerLabsComponent implements OnInit { content: string; diff --git a/projects/ui/src/lib/components/po-disclaimer-group/po-disclaimer-group.component.ts b/projects/ui/src/lib/components/po-disclaimer-group/po-disclaimer-group.component.ts index c4037f3277..5a85fc8d1c 100644 --- a/projects/ui/src/lib/components/po-disclaimer-group/po-disclaimer-group.component.ts +++ b/projects/ui/src/lib/components/po-disclaimer-group/po-disclaimer-group.component.ts @@ -41,7 +41,8 @@ import { PoDisclaimer } from '../po-disclaimer/po-disclaimer.interface'; @Component({ selector: 'po-disclaimer-group', templateUrl: './po-disclaimer-group.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoDisclaimerGroupComponent extends PoDisclaimerGroupBaseComponent implements AfterViewInit, OnChanges { private subscription: Subscription = new Subscription(); diff --git a/projects/ui/src/lib/components/po-disclaimer-group/po-disclaimer-remove/po-disclaimer-remove.component.ts b/projects/ui/src/lib/components/po-disclaimer-group/po-disclaimer-remove/po-disclaimer-remove.component.ts index 600621b50b..1f35404d8e 100644 --- a/projects/ui/src/lib/components/po-disclaimer-group/po-disclaimer-remove/po-disclaimer-remove.component.ts +++ b/projects/ui/src/lib/components/po-disclaimer-group/po-disclaimer-remove/po-disclaimer-remove.component.ts @@ -9,7 +9,8 @@ import { Component, EventEmitter, Input, Output } from '@angular/core'; */ @Component({ selector: 'po-disclaimer-remove', - templateUrl: './po-disclaimer-remove.component.html' + templateUrl: './po-disclaimer-remove.component.html', + standalone: false }) export class PoDisclaimerRemoveComponent { /** Texto exibido. */ diff --git a/projects/ui/src/lib/components/po-disclaimer-group/samples/sample-po-disclaimer-group-basic/sample-po-disclaimer-group-basic.component.ts b/projects/ui/src/lib/components/po-disclaimer-group/samples/sample-po-disclaimer-group-basic/sample-po-disclaimer-group-basic.component.ts index 62a765aec0..c9b3a6447a 100644 --- a/projects/ui/src/lib/components/po-disclaimer-group/samples/sample-po-disclaimer-group-basic/sample-po-disclaimer-group-basic.component.ts +++ b/projects/ui/src/lib/components/po-disclaimer-group/samples/sample-po-disclaimer-group-basic/sample-po-disclaimer-group-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-disclaimer-group-basic', - templateUrl: './sample-po-disclaimer-group-basic.component.html' + templateUrl: './sample-po-disclaimer-group-basic.component.html', + standalone: false }) export class SamplePoDisclaimerGroupBasicComponent {} diff --git a/projects/ui/src/lib/components/po-disclaimer-group/samples/sample-po-disclaimer-group-labs/sample-po-disclaimer-group-labs.component.ts b/projects/ui/src/lib/components/po-disclaimer-group/samples/sample-po-disclaimer-group-labs/sample-po-disclaimer-group-labs.component.ts index ec6d858996..b9450266c7 100644 --- a/projects/ui/src/lib/components/po-disclaimer-group/samples/sample-po-disclaimer-group-labs/sample-po-disclaimer-group-labs.component.ts +++ b/projects/ui/src/lib/components/po-disclaimer-group/samples/sample-po-disclaimer-group-labs/sample-po-disclaimer-group-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption, PoDisclaimer } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-disclaimer-group-labs', - templateUrl: './sample-po-disclaimer-group-labs.component.html' + templateUrl: './sample-po-disclaimer-group-labs.component.html', + standalone: false }) export class SamplePoDisclaimerGroupLabsComponent implements OnInit { disclaimer: PoDisclaimer; diff --git a/projects/ui/src/lib/components/po-disclaimer-group/samples/sample-po-disclaimer-group-sw-planets/sample-po-disclaimer-group-sw-planets.component.ts b/projects/ui/src/lib/components/po-disclaimer-group/samples/sample-po-disclaimer-group-sw-planets/sample-po-disclaimer-group-sw-planets.component.ts index 52d4c2d19f..3b53a8e152 100644 --- a/projects/ui/src/lib/components/po-disclaimer-group/samples/sample-po-disclaimer-group-sw-planets/sample-po-disclaimer-group-sw-planets.component.ts +++ b/projects/ui/src/lib/components/po-disclaimer-group/samples/sample-po-disclaimer-group-sw-planets/sample-po-disclaimer-group-sw-planets.component.ts @@ -7,7 +7,8 @@ import { SamplePoDisclaimerGroupSwPlanetsService } from './sample-po-disclaimer- @Component({ selector: 'sample-po-disclaimer-group-sw-planets', templateUrl: './sample-po-disclaimer-group-sw-planets.component.html', - providers: [SamplePoDisclaimerGroupSwPlanetsService] + providers: [SamplePoDisclaimerGroupSwPlanetsService], + standalone: false }) export class SamplePoDisclaimerGroupSwPlanetsComponent implements OnInit { climate: string; diff --git a/projects/ui/src/lib/components/po-disclaimer-group/samples/sample-po-disclaimer-group-sw-planets/sample-po-disclaimer-group-sw-planets.service.ts b/projects/ui/src/lib/components/po-disclaimer-group/samples/sample-po-disclaimer-group-sw-planets/sample-po-disclaimer-group-sw-planets.service.ts index e310a144a4..c36d3c135f 100644 --- a/projects/ui/src/lib/components/po-disclaimer-group/samples/sample-po-disclaimer-group-sw-planets/sample-po-disclaimer-group-sw-planets.service.ts +++ b/projects/ui/src/lib/components/po-disclaimer-group/samples/sample-po-disclaimer-group-sw-planets/sample-po-disclaimer-group-sw-planets.service.ts @@ -6,7 +6,9 @@ import { map } from 'rxjs/operators'; import { PoComboOption, PoTableColumn } from '@po-ui/ng-components'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class SamplePoDisclaimerGroupSwPlanetsService { constructor(private http: HttpClient) {} diff --git a/projects/ui/src/lib/components/po-disclaimer/po-disclaimer.component.ts b/projects/ui/src/lib/components/po-disclaimer/po-disclaimer.component.ts index 9b6685583a..d08fdc2df8 100644 --- a/projects/ui/src/lib/components/po-disclaimer/po-disclaimer.component.ts +++ b/projects/ui/src/lib/components/po-disclaimer/po-disclaimer.component.ts @@ -18,7 +18,8 @@ import { PoDisclaimerBaseComponent } from './po-disclaimer-base.component'; */ @Component({ selector: 'po-disclaimer', - templateUrl: './po-disclaimer.component.html' + templateUrl: './po-disclaimer.component.html', + standalone: false }) export class PoDisclaimerComponent extends PoDisclaimerBaseComponent { @ViewChild('disclaimerContainer', { static: true }) disclaimerContainer: ElementRef; diff --git a/projects/ui/src/lib/components/po-disclaimer/samples/sample-po-disclaimer.component.ts b/projects/ui/src/lib/components/po-disclaimer/samples/sample-po-disclaimer.component.ts index fe9cb471be..b4516a6df3 100644 --- a/projects/ui/src/lib/components/po-disclaimer/samples/sample-po-disclaimer.component.ts +++ b/projects/ui/src/lib/components/po-disclaimer/samples/sample-po-disclaimer.component.ts @@ -2,7 +2,8 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-disclaimer', - templateUrl: './sample-po-disclaimer.component.html' + templateUrl: './sample-po-disclaimer.component.html', + standalone: false }) export class SamplePoDisclaimerComponent { exclude; diff --git a/projects/ui/src/lib/components/po-divider/po-divider.component.ts b/projects/ui/src/lib/components/po-divider/po-divider.component.ts index b296be38d4..dc089e3a6e 100644 --- a/projects/ui/src/lib/components/po-divider/po-divider.component.ts +++ b/projects/ui/src/lib/components/po-divider/po-divider.component.ts @@ -25,6 +25,7 @@ import { PoDividerBaseComponent } from './po-divider-base.component'; @Component({ selector: 'po-divider', templateUrl: './po-divider.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoDividerComponent extends PoDividerBaseComponent {} diff --git a/projects/ui/src/lib/components/po-divider/samples/sample-po-divider-basic/sample-po-divider-basic.component.ts b/projects/ui/src/lib/components/po-divider/samples/sample-po-divider-basic/sample-po-divider-basic.component.ts index 538f80ce0b..3e26129609 100644 --- a/projects/ui/src/lib/components/po-divider/samples/sample-po-divider-basic/sample-po-divider-basic.component.ts +++ b/projects/ui/src/lib/components/po-divider/samples/sample-po-divider-basic/sample-po-divider-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-divider-basic', - templateUrl: './sample-po-divider-basic.component.html' + templateUrl: './sample-po-divider-basic.component.html', + standalone: false }) export class SamplePoDividerBasicComponent {} diff --git a/projects/ui/src/lib/components/po-divider/samples/sample-po-divider-labs/sample-po-divider-labs.component.ts b/projects/ui/src/lib/components/po-divider/samples/sample-po-divider-labs/sample-po-divider-labs.component.ts index aea16f590a..26da20b7b1 100644 --- a/projects/ui/src/lib/components/po-divider/samples/sample-po-divider-labs/sample-po-divider-labs.component.ts +++ b/projects/ui/src/lib/components/po-divider/samples/sample-po-divider-labs/sample-po-divider-labs.component.ts @@ -4,7 +4,8 @@ import { PoSelectOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-divider-labs', - templateUrl: './sample-po-divider-labs.component.html' + templateUrl: './sample-po-divider-labs.component.html', + standalone: false }) export class SamplePoDividerLabsComponent implements OnInit { borderWidth: string; diff --git a/projects/ui/src/lib/components/po-divider/samples/sample-po-divider-user-detail/sample-po-divider-user-detail.component.ts b/projects/ui/src/lib/components/po-divider/samples/sample-po-divider-user-detail/sample-po-divider-user-detail.component.ts index ed7faaa346..12ff332e32 100644 --- a/projects/ui/src/lib/components/po-divider/samples/sample-po-divider-user-detail/sample-po-divider-user-detail.component.ts +++ b/projects/ui/src/lib/components/po-divider/samples/sample-po-divider-user-detail/sample-po-divider-user-detail.component.ts @@ -5,7 +5,8 @@ import { PoBreadcrumb } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-divider-user-detail', - templateUrl: './sample-po-divider-user-detail.component.html' + templateUrl: './sample-po-divider-user-detail.component.html', + standalone: false }) export class SamplePoDividerUserDetailComponent { birthDate: string = '26/12/1978'; diff --git a/projects/ui/src/lib/components/po-dropdown/po-dropdown.component.ts b/projects/ui/src/lib/components/po-dropdown/po-dropdown.component.ts index 047d1ea467..ea166305db 100644 --- a/projects/ui/src/lib/components/po-dropdown/po-dropdown.component.ts +++ b/projects/ui/src/lib/components/po-dropdown/po-dropdown.component.ts @@ -29,7 +29,8 @@ import { PoDropdownBaseComponent } from './po-dropdown-base.component'; @Component({ selector: 'po-dropdown', templateUrl: './po-dropdown.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoDropdownComponent extends PoDropdownBaseComponent { @ViewChild('dropdownRef', { read: ElementRef, static: true }) dropdownRef: ElementRef; diff --git a/projects/ui/src/lib/components/po-dropdown/samples/sample-po-dropdown-basic/sample-po-dropdown-basic.component.ts b/projects/ui/src/lib/components/po-dropdown/samples/sample-po-dropdown-basic/sample-po-dropdown-basic.component.ts index 751a71c687..080b9264e2 100644 --- a/projects/ui/src/lib/components/po-dropdown/samples/sample-po-dropdown-basic/sample-po-dropdown-basic.component.ts +++ b/projects/ui/src/lib/components/po-dropdown/samples/sample-po-dropdown-basic/sample-po-dropdown-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-dropdown-basic', - templateUrl: './sample-po-dropdown-basic.component.html' + templateUrl: './sample-po-dropdown-basic.component.html', + standalone: false }) export class SamplePoDropdownBasicComponent {} diff --git a/projects/ui/src/lib/components/po-dropdown/samples/sample-po-dropdown-labs/sample-po-dropdown-labs.component.ts b/projects/ui/src/lib/components/po-dropdown/samples/sample-po-dropdown-labs/sample-po-dropdown-labs.component.ts index e0352c5c1c..265c94c405 100644 --- a/projects/ui/src/lib/components/po-dropdown/samples/sample-po-dropdown-labs/sample-po-dropdown-labs.component.ts +++ b/projects/ui/src/lib/components/po-dropdown/samples/sample-po-dropdown-labs/sample-po-dropdown-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption, PoSelectOption, PoDropdownAction, PoNotification @Component({ selector: 'sample-po-dropdown-labs', - templateUrl: './sample-po-dropdown-labs.component.html' + templateUrl: './sample-po-dropdown-labs.component.html', + standalone: false }) export class SamplePoDropdownLabsComponent implements OnInit { action: PoDropdownAction; diff --git a/projects/ui/src/lib/components/po-dropdown/samples/sample-po-dropdown-social-network/sample-po-dropdown-social-network.component.ts b/projects/ui/src/lib/components/po-dropdown/samples/sample-po-dropdown-social-network/sample-po-dropdown-social-network.component.ts index 5897f511ca..3619803956 100644 --- a/projects/ui/src/lib/components/po-dropdown/samples/sample-po-dropdown-social-network/sample-po-dropdown-social-network.component.ts +++ b/projects/ui/src/lib/components/po-dropdown/samples/sample-po-dropdown-social-network/sample-po-dropdown-social-network.component.ts @@ -4,7 +4,8 @@ import { PoNotificationService } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-dropdown-social-network', - templateUrl: './sample-po-dropdown-social-network.component.html' + templateUrl: './sample-po-dropdown-social-network.component.html', + standalone: false }) export class SamplePoDropdownSocialNetworkComponent implements OnInit { currentFriend: object; diff --git a/projects/ui/src/lib/components/po-dynamic/po-dynamic-container/po-dynamic-container.component.ts b/projects/ui/src/lib/components/po-dynamic/po-dynamic-container/po-dynamic-container.component.ts index 4392bad140..54d4be5643 100644 --- a/projects/ui/src/lib/components/po-dynamic/po-dynamic-container/po-dynamic-container.component.ts +++ b/projects/ui/src/lib/components/po-dynamic/po-dynamic-container/po-dynamic-container.component.ts @@ -2,7 +2,8 @@ import { Component, Input, TemplateRef } from '@angular/core'; @Component({ selector: 'po-dynamic-container', - templateUrl: './po-dynamic-container.component.html' + templateUrl: './po-dynamic-container.component.html', + standalone: false }) export class PoDynamicContainerComponent { @Input('p-content') content: TemplateRef | any; diff --git a/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields.component.ts b/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields.component.ts index 1a638ee295..ae85313187 100644 --- a/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields.component.ts +++ b/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields.component.ts @@ -18,7 +18,8 @@ import { PoDynamicFormFieldsBaseComponent } from './po-dynamic-form-fields-base. selector: 'po-dynamic-form-fields', templateUrl: 'po-dynamic-form-fields.component.html', viewProviders: [{ provide: ControlContainer, useExisting: NgForm }], - providers: [PoDynamicFormValidationService] + providers: [PoDynamicFormValidationService], + standalone: false }) export class PoDynamicFormFieldsComponent extends PoDynamicFormFieldsBaseComponent implements OnChanges { @ViewChildren('component') components: QueryList<{ name: string; focus: () => void }>; diff --git a/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-load/po-dynamic-form-load.service.ts b/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-load/po-dynamic-form-load.service.ts index 0b9f8162dd..b7ecb1055a 100644 --- a/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-load/po-dynamic-form-load.service.ts +++ b/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-load/po-dynamic-form-load.service.ts @@ -6,7 +6,9 @@ import { map } from 'rxjs/operators'; import { PoDynamicFormField } from '../po-dynamic-form-field.interface'; import { PoDynamicFormOperation } from '../po-dynamic-form-operation/po-dynamic-form-operation'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoDynamicFormLoadService extends PoDynamicFormOperation { constructor(http: HttpClient) { super(http); diff --git a/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-validation/po-dynamic-form-validation.service.ts b/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-validation/po-dynamic-form-validation.service.ts index 9917c96db3..021b68c6ff 100644 --- a/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-validation/po-dynamic-form-validation.service.ts +++ b/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-validation/po-dynamic-form-validation.service.ts @@ -9,7 +9,9 @@ import { PoDynamicFormFieldChanged } from './po-dynamic-form-field-changed.inter import { PoDynamicFormOperation } from '../po-dynamic-form-operation/po-dynamic-form-operation'; import { PoDynamicFormValidation } from './po-dynamic-form-validation.interface'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoDynamicFormValidationService extends PoDynamicFormOperation { constructor(http: HttpClient) { super(http); diff --git a/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form.component.ts b/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form.component.ts index a553e38876..72c041015e 100644 --- a/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form.component.ts +++ b/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form.component.ts @@ -36,7 +36,8 @@ import { PoDynamicFormValidationService } from './po-dynamic-form-validation/po- @Component({ selector: 'po-dynamic-form', - templateUrl: './po-dynamic-form.component.html' + templateUrl: './po-dynamic-form.component.html', + standalone: false }) export class PoDynamicFormComponent extends PoDynamicFormBaseComponent implements OnInit, OnDestroy { @ViewChild('fieldsComponent') fieldsComponent: { focus: (property: string) => void; updatePreviousValue: () => void }; diff --git a/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/samples/sample-po-dynamic-form-basic/sample-po-dynamic-form-basic.component.ts b/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/samples/sample-po-dynamic-form-basic/sample-po-dynamic-form-basic.component.ts index dd11365cf3..188e8f2a74 100644 --- a/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/samples/sample-po-dynamic-form-basic/sample-po-dynamic-form-basic.component.ts +++ b/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/samples/sample-po-dynamic-form-basic/sample-po-dynamic-form-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-dynamic-form-basic', - templateUrl: './sample-po-dynamic-form-basic.component.html' + templateUrl: './sample-po-dynamic-form-basic.component.html', + standalone: false }) export class SamplePoDynamicFormBasicComponent {} diff --git a/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/samples/sample-po-dynamic-form-container/sample-po-dynamic-form-container.component.ts b/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/samples/sample-po-dynamic-form-container/sample-po-dynamic-form-container.component.ts index d48427a140..0bd02682fc 100644 --- a/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/samples/sample-po-dynamic-form-container/sample-po-dynamic-form-container.component.ts +++ b/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/samples/sample-po-dynamic-form-container/sample-po-dynamic-form-container.component.ts @@ -12,7 +12,8 @@ import { PoDynamicFormContainerService } from './sample-po-dynamic-form-containe @Component({ selector: 'sample-po-dynamic-form-container', templateUrl: './sample-po-dynamic-form-container.component.html', - providers: [PoDynamicFormContainerService] + providers: [PoDynamicFormContainerService], + standalone: false }) export class SamplePoDynamicFormContainerComponent implements OnInit { person = {}; diff --git a/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/samples/sample-po-dynamic-form-container/sample-po-dynamic-form-container.service.ts b/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/samples/sample-po-dynamic-form-container/sample-po-dynamic-form-container.service.ts index ee4fa0e71d..cba38b381e 100644 --- a/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/samples/sample-po-dynamic-form-container/sample-po-dynamic-form-container.service.ts +++ b/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/samples/sample-po-dynamic-form-container/sample-po-dynamic-form-container.service.ts @@ -1,6 +1,8 @@ import { Injectable } from '@angular/core'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoDynamicFormContainerService { getCity(state: number) { switch (state) { diff --git a/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/samples/sample-po-dynamic-form-register/sample-po-dynamic-form-register.component.ts b/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/samples/sample-po-dynamic-form-register/sample-po-dynamic-form-register.component.ts index 8135fd4e26..834a14c1a5 100644 --- a/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/samples/sample-po-dynamic-form-register/sample-po-dynamic-form-register.component.ts +++ b/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/samples/sample-po-dynamic-form-register/sample-po-dynamic-form-register.component.ts @@ -12,7 +12,8 @@ import { PoDynamicFormRegisterService } from './sample-po-dynamic-form-register. @Component({ selector: 'sample-po-dynamic-form-register', templateUrl: './sample-po-dynamic-form-register.component.html', - providers: [PoDynamicFormRegisterService] + providers: [PoDynamicFormRegisterService], + standalone: false }) export class SamplePoDynamicFormRegisterComponent implements OnInit { person = {}; diff --git a/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/samples/sample-po-dynamic-form-register/sample-po-dynamic-form-register.service.ts b/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/samples/sample-po-dynamic-form-register/sample-po-dynamic-form-register.service.ts index 6d0ff6738a..6a2b0b2e8c 100644 --- a/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/samples/sample-po-dynamic-form-register/sample-po-dynamic-form-register.service.ts +++ b/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/samples/sample-po-dynamic-form-register/sample-po-dynamic-form-register.service.ts @@ -1,6 +1,8 @@ import { Injectable } from '@angular/core'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoDynamicFormRegisterService { getCity(state: number) { switch (state) { diff --git a/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view.component.ts b/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view.component.ts index 731d884a79..f0e5895ea2 100644 --- a/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view.component.ts +++ b/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view.component.ts @@ -37,7 +37,8 @@ import { PoMultiselectFilterService } from '../../po-field/po-multiselect/po-mul */ @Component({ selector: 'po-dynamic-view', - templateUrl: './po-dynamic-view.component.html' + templateUrl: './po-dynamic-view.component.html', + standalone: false }) export class PoDynamicViewComponent extends PoDynamicViewBaseComponent implements OnChanges, OnInit { initChanges; diff --git a/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/samples/sample-po-dynamic-view-basic/sample-po-dynamic-view-basic.component.ts b/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/samples/sample-po-dynamic-view-basic/sample-po-dynamic-view-basic.component.ts index d4226b6528..4d8203939f 100644 --- a/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/samples/sample-po-dynamic-view-basic/sample-po-dynamic-view-basic.component.ts +++ b/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/samples/sample-po-dynamic-view-basic/sample-po-dynamic-view-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-dynamic-view-basic', - templateUrl: './sample-po-dynamic-view-basic.component.html' + templateUrl: './sample-po-dynamic-view-basic.component.html', + standalone: false }) export class SamplePoDynamicViewBasicComponent {} diff --git a/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/samples/sample-po-dynamic-view-container/sample-po-dynamic-view-container.component.ts b/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/samples/sample-po-dynamic-view-container/sample-po-dynamic-view-container.component.ts index 7ea3928cfd..1c7d2642e2 100644 --- a/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/samples/sample-po-dynamic-view-container/sample-po-dynamic-view-container.component.ts +++ b/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/samples/sample-po-dynamic-view-container/sample-po-dynamic-view-container.component.ts @@ -3,7 +3,8 @@ import { PoDynamicViewField } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-dynamic-view-container', - templateUrl: './sample-po-dynamic-view-container.component.html' + templateUrl: './sample-po-dynamic-view-container.component.html', + standalone: false }) export class SamplePoDynamicViewContainerComponent { fields: Array = [ diff --git a/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/samples/sample-po-dynamic-view-employee-on-load/sample-po-dynamic-view-employee-on-load.component.ts b/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/samples/sample-po-dynamic-view-employee-on-load/sample-po-dynamic-view-employee-on-load.component.ts index a142832c28..e3d1314f18 100644 --- a/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/samples/sample-po-dynamic-view-employee-on-load/sample-po-dynamic-view-employee-on-load.component.ts +++ b/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/samples/sample-po-dynamic-view-employee-on-load/sample-po-dynamic-view-employee-on-load.component.ts @@ -6,7 +6,8 @@ import { SamplePoDynamicViewEmployeeOnLoadService } from './sample-po-dynamic-vi @Component({ selector: 'sample-po-dynamic-view-employee-on-load', templateUrl: './sample-po-dynamic-view-employee-on-load.component.html', - providers: [SamplePoDynamicViewEmployeeOnLoadService] + providers: [SamplePoDynamicViewEmployeeOnLoadService], + standalone: false }) export class SamplePoDynamicViewEmployeeOnLoadComponent implements OnInit { employee = { diff --git a/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/samples/sample-po-dynamic-view-employee-on-load/sample-po-dynamic-view-employee-on-load.service.ts b/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/samples/sample-po-dynamic-view-employee-on-load/sample-po-dynamic-view-employee-on-load.service.ts index 6a1df9be28..5c514eafb6 100644 --- a/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/samples/sample-po-dynamic-view-employee-on-load/sample-po-dynamic-view-employee-on-load.service.ts +++ b/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/samples/sample-po-dynamic-view-employee-on-load/sample-po-dynamic-view-employee-on-load.service.ts @@ -2,7 +2,9 @@ import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable, map } from 'rxjs'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class SamplePoDynamicViewEmployeeOnLoadService { readonly headers: HttpHeaders = new HttpHeaders({ 'X-PO-No-Message': 'true' diff --git a/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/samples/sample-po-dynamic-view-employee/sample-po-dynamic-view-employee.component.ts b/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/samples/sample-po-dynamic-view-employee/sample-po-dynamic-view-employee.component.ts index 6b0e4cf397..9e3f16b490 100644 --- a/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/samples/sample-po-dynamic-view-employee/sample-po-dynamic-view-employee.component.ts +++ b/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/samples/sample-po-dynamic-view-employee/sample-po-dynamic-view-employee.component.ts @@ -4,7 +4,8 @@ import { PoDynamicViewField } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-dynamic-view-employee', - templateUrl: './sample-po-dynamic-view-employee.component.html' + templateUrl: './sample-po-dynamic-view-employee.component.html', + standalone: false }) export class SamplePoDynamicViewEmployeeComponent { fields: Array = [ diff --git a/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/services/po-dynamic-view.service.ts b/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/services/po-dynamic-view.service.ts index 141b192b74..974412341e 100644 --- a/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/services/po-dynamic-view.service.ts +++ b/projects/ui/src/lib/components/po-dynamic/po-dynamic-view/services/po-dynamic-view.service.ts @@ -11,7 +11,9 @@ import { PoDynamicViewField } from '../po-dynamic-view-field.interface'; * * Serviço padrão utilizado para filtrar os dados dos campos que utilizam a propriedade `searchService`. */ -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoDynamicViewService { readonly headers: HttpHeaders = new HttpHeaders({ 'X-PO-No-Message': 'true' diff --git a/projects/ui/src/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.ts b/projects/ui/src/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.ts index 1f4b560a5f..45f95162f0 100644 --- a/projects/ui/src/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.ts +++ b/projects/ui/src/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.ts @@ -51,7 +51,8 @@ import { PoCheckboxGroupBaseComponent } from './po-checkbox-group-base.component useExisting: forwardRef(() => PoCheckboxGroupComponent), multi: true } - ] + ], + standalone: false }) export class PoCheckboxGroupComponent extends PoCheckboxGroupBaseComponent implements AfterViewChecked, AfterViewInit { @ViewChildren('checkboxLabel') checkboxLabels: QueryList; diff --git a/projects/ui/src/lib/components/po-field/po-checkbox-group/samples/sample-po-checkbox-group-basic/sample-po-checkbox-group-basic.component.ts b/projects/ui/src/lib/components/po-field/po-checkbox-group/samples/sample-po-checkbox-group-basic/sample-po-checkbox-group-basic.component.ts index ee14525f26..689b1a1fd8 100644 --- a/projects/ui/src/lib/components/po-field/po-checkbox-group/samples/sample-po-checkbox-group-basic/sample-po-checkbox-group-basic.component.ts +++ b/projects/ui/src/lib/components/po-field/po-checkbox-group/samples/sample-po-checkbox-group-basic/sample-po-checkbox-group-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-checkbox-group-basic', - templateUrl: './sample-po-checkbox-group-basic.component.html' + templateUrl: './sample-po-checkbox-group-basic.component.html', + standalone: false }) export class SamplePoCheckboxGroupBasicComponent {} diff --git a/projects/ui/src/lib/components/po-field/po-checkbox-group/samples/sample-po-checkbox-group-labs/sample-po-checkbox-group-labs.component.ts b/projects/ui/src/lib/components/po-field/po-checkbox-group/samples/sample-po-checkbox-group-labs/sample-po-checkbox-group-labs.component.ts index d04ffd3eb6..61f2a81125 100644 --- a/projects/ui/src/lib/components/po-field/po-checkbox-group/samples/sample-po-checkbox-group-labs/sample-po-checkbox-group-labs.component.ts +++ b/projects/ui/src/lib/components/po-field/po-checkbox-group/samples/sample-po-checkbox-group-labs/sample-po-checkbox-group-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption, PoRadioGroupOption } from '@po-ui/ng-components' @Component({ selector: 'sample-po-checkbox-group-labs', - templateUrl: './sample-po-checkbox-group-labs.component.html' + templateUrl: './sample-po-checkbox-group-labs.component.html', + standalone: false }) export class SamplePoCheckboxGroupLabsComponent implements OnInit { checkboxGroup: object; diff --git a/projects/ui/src/lib/components/po-field/po-checkbox-group/samples/sample-po-checkbox-group-password-policy/sample-po-checkbox-group-password-policy.component.ts b/projects/ui/src/lib/components/po-field/po-checkbox-group/samples/sample-po-checkbox-group-password-policy/sample-po-checkbox-group-password-policy.component.ts index 820d96f0f4..c29e12c89b 100644 --- a/projects/ui/src/lib/components/po-field/po-checkbox-group/samples/sample-po-checkbox-group-password-policy/sample-po-checkbox-group-password-policy.component.ts +++ b/projects/ui/src/lib/components/po-field/po-checkbox-group/samples/sample-po-checkbox-group-password-policy/sample-po-checkbox-group-password-policy.component.ts @@ -6,7 +6,8 @@ import { PoNotificationService } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-checkbox-group-password-policy', - templateUrl: './sample-po-checkbox-group-password-policy.component.html' + templateUrl: './sample-po-checkbox-group-password-policy.component.html', + standalone: false }) export class SamplePoCheckboxGroupPasswordPolicyComponent { attempts: number; diff --git a/projects/ui/src/lib/components/po-field/po-checkbox/po-checkbox.component.ts b/projects/ui/src/lib/components/po-field/po-checkbox/po-checkbox.component.ts index dad77ad814..ee2b8ebddd 100644 --- a/projects/ui/src/lib/components/po-field/po-checkbox/po-checkbox.component.ts +++ b/projects/ui/src/lib/components/po-field/po-checkbox/po-checkbox.component.ts @@ -46,7 +46,8 @@ import { PoCheckboxBaseComponent } from './po-checkbox-base.component'; useExisting: forwardRef(() => PoCheckboxComponent), multi: true } - ] + ], + standalone: false }) export class PoCheckboxComponent extends PoCheckboxBaseComponent implements AfterViewInit { private _iconToken: { [key: string]: string }; diff --git a/projects/ui/src/lib/components/po-field/po-checkbox/samples/sample-po-checkbox-acceptance-term/sample-po-checkbox-acceptance-term.component.ts b/projects/ui/src/lib/components/po-field/po-checkbox/samples/sample-po-checkbox-acceptance-term/sample-po-checkbox-acceptance-term.component.ts index e69e3a5dbf..d679199279 100644 --- a/projects/ui/src/lib/components/po-field/po-checkbox/samples/sample-po-checkbox-acceptance-term/sample-po-checkbox-acceptance-term.component.ts +++ b/projects/ui/src/lib/components/po-field/po-checkbox/samples/sample-po-checkbox-acceptance-term/sample-po-checkbox-acceptance-term.component.ts @@ -4,7 +4,8 @@ import { PoModalAction, PoModalComponent } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-checkbox-acceptance-term', - templateUrl: './sample-po-checkbox-acceptance-term.component.html' + templateUrl: './sample-po-checkbox-acceptance-term.component.html', + standalone: false }) export class SamplePoCheckboxAcceptanceTermComponent { @ViewChild(PoModalComponent, { static: true }) modalTerm: PoModalComponent; diff --git a/projects/ui/src/lib/components/po-field/po-checkbox/samples/sample-po-checkbox-basic/sample-po-checkbox-basic.component.ts b/projects/ui/src/lib/components/po-field/po-checkbox/samples/sample-po-checkbox-basic/sample-po-checkbox-basic.component.ts index d3db09866e..d97fea01e2 100644 --- a/projects/ui/src/lib/components/po-field/po-checkbox/samples/sample-po-checkbox-basic/sample-po-checkbox-basic.component.ts +++ b/projects/ui/src/lib/components/po-field/po-checkbox/samples/sample-po-checkbox-basic/sample-po-checkbox-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-checkbox-basic', - templateUrl: './sample-po-checkbox-basic.component.html' + templateUrl: './sample-po-checkbox-basic.component.html', + standalone: false }) export class SamplePoCheckboxBasicComponent {} diff --git a/projects/ui/src/lib/components/po-field/po-checkbox/samples/sample-po-checkbox-labs/sample-po-checkbox-labs.component.ts b/projects/ui/src/lib/components/po-field/po-checkbox/samples/sample-po-checkbox-labs/sample-po-checkbox-labs.component.ts index 8bfd1c9f22..178e79f069 100644 --- a/projects/ui/src/lib/components/po-field/po-checkbox/samples/sample-po-checkbox-labs/sample-po-checkbox-labs.component.ts +++ b/projects/ui/src/lib/components/po-field/po-checkbox/samples/sample-po-checkbox-labs/sample-po-checkbox-labs.component.ts @@ -2,7 +2,8 @@ import { Component, OnInit } from '@angular/core'; @Component({ selector: 'sample-po-checkbox-labs', - templateUrl: './sample-po-checkbox-labs.component.html' + templateUrl: './sample-po-checkbox-labs.component.html', + standalone: false }) export class SamplePoCheckboxLabsComponent implements OnInit { checkbox: boolean | null; diff --git a/projects/ui/src/lib/components/po-field/po-clean/po-clean.component.ts b/projects/ui/src/lib/components/po-field/po-clean/po-clean.component.ts index a5ee3dbd0a..cd0f082b8b 100644 --- a/projects/ui/src/lib/components/po-field/po-clean/po-clean.component.ts +++ b/projects/ui/src/lib/components/po-field/po-clean/po-clean.component.ts @@ -16,7 +16,8 @@ import { PoCleanBaseComponent } from './po-clean-base.component'; */ @Component({ selector: 'po-clean', - templateUrl: './po-clean.component.html' + templateUrl: './po-clean.component.html', + standalone: false }) export class PoCleanComponent extends PoCleanBaseComponent { setInputValue(value?: string) { diff --git a/projects/ui/src/lib/components/po-field/po-clean/samples/sample-po-clean-labs.component.ts b/projects/ui/src/lib/components/po-field/po-clean/samples/sample-po-clean-labs.component.ts index 0f32dbcb40..47a31e9309 100644 --- a/projects/ui/src/lib/components/po-field/po-clean/samples/sample-po-clean-labs.component.ts +++ b/projects/ui/src/lib/components/po-field/po-clean/samples/sample-po-clean-labs.component.ts @@ -2,7 +2,8 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-clean-labs', - templateUrl: './sample-po-clean-labs.component.html' + templateUrl: './sample-po-clean-labs.component.html', + standalone: false }) export class SamplePoCleanLabsComponent { fieldValue: string; diff --git a/projects/ui/src/lib/components/po-field/po-combo/po-combo-filter.service.ts b/projects/ui/src/lib/components/po-field/po-combo/po-combo-filter.service.ts index fbf94222be..25ebb96664 100644 --- a/projects/ui/src/lib/components/po-field/po-combo/po-combo-filter.service.ts +++ b/projects/ui/src/lib/components/po-field/po-combo/po-combo-filter.service.ts @@ -16,7 +16,9 @@ import { validateObjectType } from '../../../utils/util'; * * Serviço padrão utilizado para filtrar os dados do componente po-combo. */ -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoComboFilterService implements PoComboFilter { fieldLabel: string = 'label'; fieldValue: string = 'value'; diff --git a/projects/ui/src/lib/components/po-field/po-combo/po-combo-option-template/po-combo-option-template.directive.ts b/projects/ui/src/lib/components/po-field/po-combo/po-combo-option-template/po-combo-option-template.directive.ts index e826d0eafc..645051f3d0 100644 --- a/projects/ui/src/lib/components/po-field/po-combo/po-combo-option-template/po-combo-option-template.directive.ts +++ b/projects/ui/src/lib/components/po-field/po-combo/po-combo-option-template/po-combo-option-template.directive.ts @@ -66,7 +66,8 @@ import { Directive, TemplateRef } from '@angular/core'; * ``` */ @Directive({ - selector: '[p-combo-option-template]' + selector: '[p-combo-option-template]', + standalone: false }) export class PoComboOptionTemplateDirective { // Necessário manter templateRef para o funcionamento do row template. diff --git a/projects/ui/src/lib/components/po-field/po-combo/po-combo.component.ts b/projects/ui/src/lib/components/po-field/po-combo/po-combo.component.ts index 49ff698f51..97b5fc6fe7 100644 --- a/projects/ui/src/lib/components/po-field/po-combo/po-combo.component.ts +++ b/projects/ui/src/lib/components/po-field/po-combo/po-combo.component.ts @@ -97,7 +97,8 @@ const poComboContainerPositionDefault = 'bottom'; useExisting: forwardRef(() => PoComboComponent), multi: true } - ] + ], + standalone: false }) export class PoComboComponent extends PoComboBaseComponent implements AfterViewInit, OnChanges, OnDestroy { @ContentChild(PoComboOptionTemplateDirective, { static: true }) comboOptionTemplate: PoComboOptionTemplateDirective; diff --git a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-basic/sample-po-combo-basic.component.ts b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-basic/sample-po-combo-basic.component.ts index b30b79f4cf..470405b2a7 100644 --- a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-basic/sample-po-combo-basic.component.ts +++ b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-basic/sample-po-combo-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-combo-basic', - templateUrl: './sample-po-combo-basic.component.html' + templateUrl: './sample-po-combo-basic.component.html', + standalone: false }) export class SamplePoComboBasicComponent {} diff --git a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-heroes-reactive-form/sample-po-combo-heroes-reactive-form.component.ts b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-heroes-reactive-form/sample-po-combo-heroes-reactive-form.component.ts index 16b7e4a363..a657a64227 100644 --- a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-heroes-reactive-form/sample-po-combo-heroes-reactive-form.component.ts +++ b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-heroes-reactive-form/sample-po-combo-heroes-reactive-form.component.ts @@ -6,7 +6,8 @@ import { Observable } from 'rxjs'; @Component({ selector: 'sample-po-combo-heroes-reactive-form', - templateUrl: './sample-po-combo-heroes-reactive-form.component.html' + templateUrl: './sample-po-combo-heroes-reactive-form.component.html', + standalone: false }) export class SamplePoComboHeroesReactiveFormComponent implements OnInit { form: UntypedFormGroup; diff --git a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-heroes/sample-po-combo-heroes.component.ts b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-heroes/sample-po-combo-heroes.component.ts index 92c07f8f56..571da40851 100644 --- a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-heroes/sample-po-combo-heroes.component.ts +++ b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-heroes/sample-po-combo-heroes.component.ts @@ -5,7 +5,8 @@ import { Observable } from 'rxjs'; @Component({ selector: 'sample-po-combo-heroes', - templateUrl: './sample-po-combo-heroes.component.html' + templateUrl: './sample-po-combo-heroes.component.html', + standalone: false }) export class SamplePoComboHeroesComponent { hero$: Observable; diff --git a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-hotels/sample-po-combo-hotels.component.ts b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-hotels/sample-po-combo-hotels.component.ts index 94d097a23d..0a68cc5585 100644 --- a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-hotels/sample-po-combo-hotels.component.ts +++ b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-hotels/sample-po-combo-hotels.component.ts @@ -5,7 +5,8 @@ import { PoDatepickerComponent, PoNotificationService, PoSelectOption } from '@p @Component({ selector: 'sample-po-combo-hotels', - templateUrl: './sample-po-combo-hotels.component.html' + templateUrl: './sample-po-combo-hotels.component.html', + standalone: false }) export class SamplePoComboHotelsComponent { @ViewChild('bookingForm', { static: true }) form: NgForm; diff --git a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-infinity-scroll/sample-po-combo-infinity-scroll.component.ts b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-infinity-scroll/sample-po-combo-infinity-scroll.component.ts index 4b7d2ed334..247f09b06c 100644 --- a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-infinity-scroll/sample-po-combo-infinity-scroll.component.ts +++ b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-infinity-scroll/sample-po-combo-infinity-scroll.component.ts @@ -4,7 +4,8 @@ import { Observable } from 'rxjs'; @Component({ selector: 'sample-po-combo-infinity-scroll', - templateUrl: './sample-po-combo-infinity-scroll.component.html' + templateUrl: './sample-po-combo-infinity-scroll.component.html', + standalone: false }) export class SamplePoComboInfinityScrollComponent { peopleName: string; diff --git a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-labs/sample-po-combo-labs.component.ts b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-labs/sample-po-combo-labs.component.ts index 7692ae3209..20bfc647d0 100644 --- a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-labs/sample-po-combo-labs.component.ts +++ b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-labs/sample-po-combo-labs.component.ts @@ -11,7 +11,8 @@ import { @Component({ selector: 'sample-po-combo-labs', - templateUrl: './sample-po-combo-labs.component.html' + templateUrl: './sample-po-combo-labs.component.html', + standalone: false }) export class SamplePoComboLabsComponent implements OnInit { combo: string; diff --git a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-scheduling/sample-po-combo-scheduling.component.ts b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-scheduling/sample-po-combo-scheduling.component.ts index 31f51c5ee4..73468ee8dd 100644 --- a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-scheduling/sample-po-combo-scheduling.component.ts +++ b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-scheduling/sample-po-combo-scheduling.component.ts @@ -7,7 +7,8 @@ import { SamplePoComboSchedulingService } from './sample-po-combo-scheduling.ser @Component({ selector: 'sample-po-combo-scheduling', templateUrl: './sample-po-combo-scheduling.component.html', - providers: [SamplePoComboSchedulingService] + providers: [SamplePoComboSchedulingService], + standalone: false }) export class SamplePoComboSchedulingComponent implements OnInit { @ViewChild('schedulingForm', { static: true }) form: NgForm; diff --git a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-scheduling/sample-po-combo-scheduling.service.ts b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-scheduling/sample-po-combo-scheduling.service.ts index eb23879928..2a252243eb 100644 --- a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-scheduling/sample-po-combo-scheduling.service.ts +++ b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-scheduling/sample-po-combo-scheduling.service.ts @@ -2,7 +2,9 @@ import { Injectable } from '@angular/core'; import { PoComboOptionGroup } from '@po-ui/ng-components'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class SamplePoComboSchedulingService { getcities(): Array { return [ diff --git a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-transfer/sample-po-combo-transfer.component.ts b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-transfer/sample-po-combo-transfer.component.ts index b452043a3e..278b29e38e 100644 --- a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-transfer/sample-po-combo-transfer.component.ts +++ b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-transfer/sample-po-combo-transfer.component.ts @@ -5,7 +5,8 @@ import { PoModalAction, PoModalComponent, PoNotificationService, PoSelectOption @Component({ selector: 'sample-po-combo-transfer', - templateUrl: './sample-po-combo-transfer.component.html' + templateUrl: './sample-po-combo-transfer.component.html', + standalone: false }) export class SamplePoComboTransferComponent { @ViewChild('transferForm', { static: true }) form: NgForm; diff --git a/projects/ui/src/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.ts b/projects/ui/src/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.ts index d5f0503752..4d1908f0df 100644 --- a/projects/ui/src/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.ts +++ b/projects/ui/src/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.ts @@ -76,8 +76,9 @@ const providers = [ @Component({ selector: 'po-datepicker-range', templateUrl: './po-datepicker-range.component.html', + changeDetection: ChangeDetectionStrategy.OnPush, providers, - changeDetection: ChangeDetectionStrategy.OnPush + standalone: false }) export class PoDatepickerRangeComponent extends PoDatepickerRangeBaseComponent diff --git a/projects/ui/src/lib/components/po-field/po-datepicker-range/samples/sample-po-datepicker-range-basic/sample-po-datepicker-range-basic.component.ts b/projects/ui/src/lib/components/po-field/po-datepicker-range/samples/sample-po-datepicker-range-basic/sample-po-datepicker-range-basic.component.ts index 7564e65d18..8b9acd7bff 100644 --- a/projects/ui/src/lib/components/po-field/po-datepicker-range/samples/sample-po-datepicker-range-basic/sample-po-datepicker-range-basic.component.ts +++ b/projects/ui/src/lib/components/po-field/po-datepicker-range/samples/sample-po-datepicker-range-basic/sample-po-datepicker-range-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-datepicker-range-basic', - templateUrl: './sample-po-datepicker-range-basic.component.html' + templateUrl: './sample-po-datepicker-range-basic.component.html', + standalone: false }) export class SamplePoDatepickerRangeBasicComponent {} diff --git a/projects/ui/src/lib/components/po-field/po-datepicker-range/samples/sample-po-datepicker-range-labs/sample-po-datepicker-range-labs.component.ts b/projects/ui/src/lib/components/po-field/po-datepicker-range/samples/sample-po-datepicker-range-labs/sample-po-datepicker-range-labs.component.ts index 1160a3e918..edcce87ae9 100644 --- a/projects/ui/src/lib/components/po-field/po-datepicker-range/samples/sample-po-datepicker-range-labs/sample-po-datepicker-range-labs.component.ts +++ b/projects/ui/src/lib/components/po-field/po-datepicker-range/samples/sample-po-datepicker-range-labs/sample-po-datepicker-range-labs.component.ts @@ -9,7 +9,8 @@ import { @Component({ selector: 'sample-po-datepicker-range-labs', - templateUrl: './sample-po-datepicker-range-labs.component.html' + templateUrl: './sample-po-datepicker-range-labs.component.html', + standalone: false }) export class SamplePoDatepickerRangeLabsComponent implements OnInit { clean: boolean; diff --git a/projects/ui/src/lib/components/po-field/po-datepicker-range/samples/sample-po-datepicker-range-vacations-reactive-form/sample-po-datepicker-range-vacations-reactive-form.component.ts b/projects/ui/src/lib/components/po-field/po-datepicker-range/samples/sample-po-datepicker-range-vacations-reactive-form/sample-po-datepicker-range-vacations-reactive-form.component.ts index 08b3807438..877b20df6e 100644 --- a/projects/ui/src/lib/components/po-field/po-datepicker-range/samples/sample-po-datepicker-range-vacations-reactive-form/sample-po-datepicker-range-vacations-reactive-form.component.ts +++ b/projects/ui/src/lib/components/po-field/po-datepicker-range/samples/sample-po-datepicker-range-vacations-reactive-form/sample-po-datepicker-range-vacations-reactive-form.component.ts @@ -5,7 +5,8 @@ import { PoDatepickerRange, PoModalAction, PoModalComponent, PoNotificationServi @Component({ selector: 'sample-po-datepicker-range-vacations-reactive-form', - templateUrl: './sample-po-datepicker-range-vacations-reactive-form.component.html' + templateUrl: './sample-po-datepicker-range-vacations-reactive-form.component.html', + standalone: false }) export class SamplePoDatepickerRangeVacationsReactiveFormComponent implements OnInit { @ViewChild(PoModalComponent, { static: true }) poModal: PoModalComponent; diff --git a/projects/ui/src/lib/components/po-field/po-datepicker-range/samples/sample-po-datepicker-range-vacations/sample-po-datepicker-range-vacations.component.ts b/projects/ui/src/lib/components/po-field/po-datepicker-range/samples/sample-po-datepicker-range-vacations/sample-po-datepicker-range-vacations.component.ts index 09f5ae24cf..610a6087cb 100644 --- a/projects/ui/src/lib/components/po-field/po-datepicker-range/samples/sample-po-datepicker-range-vacations/sample-po-datepicker-range-vacations.component.ts +++ b/projects/ui/src/lib/components/po-field/po-datepicker-range/samples/sample-po-datepicker-range-vacations/sample-po-datepicker-range-vacations.component.ts @@ -5,7 +5,8 @@ import { PoDatepickerRange, PoModalAction, PoModalComponent, PoNotificationServi @Component({ selector: 'sample-po-datepicker-range-vacations', - templateUrl: './sample-po-datepicker-range-vacations.component.html' + templateUrl: './sample-po-datepicker-range-vacations.component.html', + standalone: false }) export class SamplePoDatepickerRangeVacationsComponent { @ViewChild('formVacationSuggestion', { static: true }) formVacationSuggestion: UntypedFormControl; diff --git a/projects/ui/src/lib/components/po-field/po-datepicker/po-datepicker.component.spec.ts b/projects/ui/src/lib/components/po-field/po-datepicker/po-datepicker.component.spec.ts index 1f17ca7c7f..f4b6874127 100644 --- a/projects/ui/src/lib/components/po-field/po-datepicker/po-datepicker.component.spec.ts +++ b/projects/ui/src/lib/components/po-field/po-datepicker/po-datepicker.component.spec.ts @@ -229,7 +229,8 @@ describe('PoDatepickerComponent:', () => {
- ` + `, + standalone: false }) class ContentProjectionComponent { value = new Date().toISOString(); diff --git a/projects/ui/src/lib/components/po-field/po-datepicker/po-datepicker.component.ts b/projects/ui/src/lib/components/po-field/po-datepicker/po-datepicker.component.ts index 0f7057c575..7f5e6fb792 100644 --- a/projects/ui/src/lib/components/po-field/po-datepicker/po-datepicker.component.ts +++ b/projects/ui/src/lib/components/po-field/po-datepicker/po-datepicker.component.ts @@ -77,7 +77,8 @@ const poCalendarPositionDefault = 'bottom-left'; }, PoControlPositionService ], - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoDatepickerComponent extends PoDatepickerBaseComponent implements AfterViewInit, OnDestroy { @ViewChild('calendar', { static: true }) calendar: PoCalendarComponent; diff --git a/projects/ui/src/lib/components/po-field/po-datepicker/samples/sample-po-datepicker-airfare-reactive-form/sample-po-datepicker-airfare-reactive-form.component.ts b/projects/ui/src/lib/components/po-field/po-datepicker/samples/sample-po-datepicker-airfare-reactive-form/sample-po-datepicker-airfare-reactive-form.component.ts index 71fde6e75a..6a9466d9de 100644 --- a/projects/ui/src/lib/components/po-field/po-datepicker/samples/sample-po-datepicker-airfare-reactive-form/sample-po-datepicker-airfare-reactive-form.component.ts +++ b/projects/ui/src/lib/components/po-field/po-datepicker/samples/sample-po-datepicker-airfare-reactive-form/sample-po-datepicker-airfare-reactive-form.component.ts @@ -5,7 +5,8 @@ import { PoDialogService, PoNotificationService, PoSelectOption } from '@po-ui/n @Component({ selector: 'sample-po-datepicker-airfare-reactive-form', - templateUrl: './sample-po-datepicker-airfare-reactive-form.component.html' + templateUrl: './sample-po-datepicker-airfare-reactive-form.component.html', + standalone: false }) export class SamplePoDatepickerAirfareReactiveFormComponent implements OnInit { formAirfare: UntypedFormGroup; diff --git a/projects/ui/src/lib/components/po-field/po-datepicker/samples/sample-po-datepicker-airfare/sample-po-datepicker-airfare.component.ts b/projects/ui/src/lib/components/po-field/po-datepicker/samples/sample-po-datepicker-airfare/sample-po-datepicker-airfare.component.ts index 8af0a65b9b..a72d526f27 100644 --- a/projects/ui/src/lib/components/po-field/po-datepicker/samples/sample-po-datepicker-airfare/sample-po-datepicker-airfare.component.ts +++ b/projects/ui/src/lib/components/po-field/po-datepicker/samples/sample-po-datepicker-airfare/sample-po-datepicker-airfare.component.ts @@ -5,7 +5,8 @@ import { PoDialogService, PoNotificationService, PoSelectOption } from '@po-ui/n @Component({ selector: 'sample-po-datepicker-airfare', - templateUrl: './sample-po-datepicker-airfare.component.html' + templateUrl: './sample-po-datepicker-airfare.component.html', + standalone: false }) export class SamplePoDatepickerAirfareComponent { @ViewChild('formAirfare', { static: true }) formAirfare: UntypedFormControl; diff --git a/projects/ui/src/lib/components/po-field/po-datepicker/samples/sample-po-datepicker-basic/sample-po-datepicker-basic.component.ts b/projects/ui/src/lib/components/po-field/po-datepicker/samples/sample-po-datepicker-basic/sample-po-datepicker-basic.component.ts index e7412a7b0b..eba58f6496 100644 --- a/projects/ui/src/lib/components/po-field/po-datepicker/samples/sample-po-datepicker-basic/sample-po-datepicker-basic.component.ts +++ b/projects/ui/src/lib/components/po-field/po-datepicker/samples/sample-po-datepicker-basic/sample-po-datepicker-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-datepicker-basic', - templateUrl: './sample-po-datepicker-basic.component.html' + templateUrl: './sample-po-datepicker-basic.component.html', + standalone: false }) export class SamplePoDatepickerBasicComponent {} diff --git a/projects/ui/src/lib/components/po-field/po-datepicker/samples/sample-po-datepicker-labs/sample-po-datepicker-labs.component.ts b/projects/ui/src/lib/components/po-field/po-datepicker/samples/sample-po-datepicker-labs/sample-po-datepicker-labs.component.ts index 449854eb28..52fcae7bc2 100644 --- a/projects/ui/src/lib/components/po-field/po-datepicker/samples/sample-po-datepicker-labs/sample-po-datepicker-labs.component.ts +++ b/projects/ui/src/lib/components/po-field/po-datepicker/samples/sample-po-datepicker-labs/sample-po-datepicker-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption, PoDatepickerIsoFormat, PoRadioGroupOption } from @Component({ selector: 'sample-po-datepicker-labs', - templateUrl: './sample-po-datepicker-labs.component.html' + templateUrl: './sample-po-datepicker-labs.component.html', + standalone: false }) export class SamplePoDatepickerLabsComponent implements OnInit { datepicker: string | Date; diff --git a/projects/ui/src/lib/components/po-field/po-decimal/po-decimal.component.ts b/projects/ui/src/lib/components/po-field/po-decimal/po-decimal.component.ts index bb729d39d2..25c4d22cbe 100644 --- a/projects/ui/src/lib/components/po-field/po-decimal/po-decimal.component.ts +++ b/projects/ui/src/lib/components/po-field/po-decimal/po-decimal.component.ts @@ -78,7 +78,8 @@ const poDecimalTotalLengthLimit = 16; useExisting: forwardRef(() => PoDecimalComponent), multi: true } - ] + ], + standalone: false }) export class PoDecimalComponent extends PoInputBaseComponent implements AfterViewInit, OnInit, OnDestroy { @ViewChild('inp', { read: ElementRef, static: true }) inputEl: ElementRef; diff --git a/projects/ui/src/lib/components/po-field/po-decimal/samples/sample-po-decimal-basic/sample-po-decimal-basic.component.ts b/projects/ui/src/lib/components/po-field/po-decimal/samples/sample-po-decimal-basic/sample-po-decimal-basic.component.ts index 5f1e229a4d..eb6db18251 100644 --- a/projects/ui/src/lib/components/po-field/po-decimal/samples/sample-po-decimal-basic/sample-po-decimal-basic.component.ts +++ b/projects/ui/src/lib/components/po-field/po-decimal/samples/sample-po-decimal-basic/sample-po-decimal-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-decimal-basic', - templateUrl: './sample-po-decimal-basic.component.html' + templateUrl: './sample-po-decimal-basic.component.html', + standalone: false }) export class SamplePoDecimalBasicComponent {} diff --git a/projects/ui/src/lib/components/po-field/po-decimal/samples/sample-po-decimal-hourly-wage-reactive-form/sample-po-decimal-hourly-wage-reactive-form.component.ts b/projects/ui/src/lib/components/po-field/po-decimal/samples/sample-po-decimal-hourly-wage-reactive-form/sample-po-decimal-hourly-wage-reactive-form.component.ts index 146ad7cba1..5b4d27d986 100644 --- a/projects/ui/src/lib/components/po-field/po-decimal/samples/sample-po-decimal-hourly-wage-reactive-form/sample-po-decimal-hourly-wage-reactive-form.component.ts +++ b/projects/ui/src/lib/components/po-field/po-decimal/samples/sample-po-decimal-hourly-wage-reactive-form/sample-po-decimal-hourly-wage-reactive-form.component.ts @@ -3,7 +3,8 @@ import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms @Component({ selector: 'sample-po-decimal-hourly-wage-reactive-form', - templateUrl: './sample-po-decimal-hourly-wage-reactive-form.component.html' + templateUrl: './sample-po-decimal-hourly-wage-reactive-form.component.html', + standalone: false }) export class SamplePoDecimalHourlyWageReactiveFormComponent implements OnInit { formCalculateHourlyWage: UntypedFormGroup; diff --git a/projects/ui/src/lib/components/po-field/po-decimal/samples/sample-po-decimal-hourly-wage/sample-po-decimal-hourly-wage.component.ts b/projects/ui/src/lib/components/po-field/po-decimal/samples/sample-po-decimal-hourly-wage/sample-po-decimal-hourly-wage.component.ts index 195dfbb222..979c05f0e3 100644 --- a/projects/ui/src/lib/components/po-field/po-decimal/samples/sample-po-decimal-hourly-wage/sample-po-decimal-hourly-wage.component.ts +++ b/projects/ui/src/lib/components/po-field/po-decimal/samples/sample-po-decimal-hourly-wage/sample-po-decimal-hourly-wage.component.ts @@ -2,7 +2,8 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-decimal-hourly-wage', - templateUrl: './sample-po-decimal-hourly-wage.component.html' + templateUrl: './sample-po-decimal-hourly-wage.component.html', + standalone: false }) export class SamplePoDecimalHourlyWageComponent { hourlyWage: number; diff --git a/projects/ui/src/lib/components/po-field/po-decimal/samples/sample-po-decimal-labs/sample-po-decimal-labs.component.ts b/projects/ui/src/lib/components/po-field/po-decimal/samples/sample-po-decimal-labs/sample-po-decimal-labs.component.ts index d0f7146529..c74b70749c 100644 --- a/projects/ui/src/lib/components/po-field/po-decimal/samples/sample-po-decimal-labs/sample-po-decimal-labs.component.ts +++ b/projects/ui/src/lib/components/po-field/po-decimal/samples/sample-po-decimal-labs/sample-po-decimal-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption, PoSelectOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-decimal-labs', - templateUrl: './sample-po-decimal-labs.component.html' + templateUrl: './sample-po-decimal-labs.component.html', + standalone: false }) export class SamplePoDecimalLabsComponent implements OnInit { decimal: number; diff --git a/projects/ui/src/lib/components/po-field/po-email/po-email.component.ts b/projects/ui/src/lib/components/po-field/po-email/po-email.component.ts index d49921ab7d..be16ba059c 100644 --- a/projects/ui/src/lib/components/po-field/po-email/po-email.component.ts +++ b/projects/ui/src/lib/components/po-field/po-email/po-email.component.ts @@ -58,7 +58,8 @@ const providers = [ selector: 'po-email', templateUrl: '../po-input/po-input.component.html', changeDetection: ChangeDetectionStrategy.OnPush, - providers + providers, + standalone: false }) export class PoEmailComponent extends PoInputGeneric implements AfterViewInit, OnDestroy { id = `po-email[${uuid()}]`; diff --git a/projects/ui/src/lib/components/po-field/po-email/samples/sample-po-email-basic/sample-po-email-basic.component.ts b/projects/ui/src/lib/components/po-field/po-email/samples/sample-po-email-basic/sample-po-email-basic.component.ts index 436b0c6f9d..6fd48786d8 100644 --- a/projects/ui/src/lib/components/po-field/po-email/samples/sample-po-email-basic/sample-po-email-basic.component.ts +++ b/projects/ui/src/lib/components/po-field/po-email/samples/sample-po-email-basic/sample-po-email-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-email-basic', - templateUrl: './sample-po-email-basic.component.html' + templateUrl: './sample-po-email-basic.component.html', + standalone: false }) export class SamplePoEmailBasicComponent {} diff --git a/projects/ui/src/lib/components/po-field/po-email/samples/sample-po-email-labs/sample-po-email-labs.component.ts b/projects/ui/src/lib/components/po-field/po-email/samples/sample-po-email-labs/sample-po-email-labs.component.ts index b6856b8501..6fd9166e1b 100644 --- a/projects/ui/src/lib/components/po-field/po-email/samples/sample-po-email-labs/sample-po-email-labs.component.ts +++ b/projects/ui/src/lib/components/po-field/po-email/samples/sample-po-email-labs/sample-po-email-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-email-labs', - templateUrl: './sample-po-email-labs.component.html' + templateUrl: './sample-po-email-labs.component.html', + standalone: false }) export class SamplePoEmailLabsComponent implements OnInit { email: string; diff --git a/projects/ui/src/lib/components/po-field/po-email/samples/sample-po-email-newsletter/sample-po-email-newsletter.component.ts b/projects/ui/src/lib/components/po-field/po-email/samples/sample-po-email-newsletter/sample-po-email-newsletter.component.ts index 86c81f17ce..759e81e19e 100644 --- a/projects/ui/src/lib/components/po-field/po-email/samples/sample-po-email-newsletter/sample-po-email-newsletter.component.ts +++ b/projects/ui/src/lib/components/po-field/po-email/samples/sample-po-email-newsletter/sample-po-email-newsletter.component.ts @@ -4,7 +4,8 @@ import { PoDialogService } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-email-newsletter', - templateUrl: './sample-po-email-newsletter.component.html' + templateUrl: './sample-po-email-newsletter.component.html', + standalone: false }) export class SamplePoEmailNewsletterComponent { email: string = ''; diff --git a/projects/ui/src/lib/components/po-field/po-field-container/po-field-container-bottom/po-field-container-bottom.component.ts b/projects/ui/src/lib/components/po-field/po-field-container/po-field-container-bottom/po-field-container-bottom.component.ts index 6c0328bbb0..40f3175480 100644 --- a/projects/ui/src/lib/components/po-field/po-field-container/po-field-container-bottom/po-field-container-bottom.component.ts +++ b/projects/ui/src/lib/components/po-field/po-field-container/po-field-container-bottom/po-field-container-bottom.component.ts @@ -11,7 +11,8 @@ import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; @Component({ selector: 'po-field-container-bottom', templateUrl: './po-field-container-bottom.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoFieldContainerBottomComponent { /** diff --git a/projects/ui/src/lib/components/po-field/po-field-container/po-field-container.component.ts b/projects/ui/src/lib/components/po-field/po-field-container/po-field-container.component.ts index d7a20ba366..82fd44fe93 100644 --- a/projects/ui/src/lib/components/po-field/po-field-container/po-field-container.component.ts +++ b/projects/ui/src/lib/components/po-field/po-field-container/po-field-container.component.ts @@ -12,7 +12,8 @@ import { poFieldContainerLiterals } from './po-field-container-literals'; @Component({ selector: 'po-field-container', templateUrl: './po-field-container.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoFieldContainerComponent implements OnInit, OnChanges { /** Indica se o campo será desabilitado. */ diff --git a/projects/ui/src/lib/components/po-field/po-input-generic/po-input-generic.spec.ts b/projects/ui/src/lib/components/po-field/po-input-generic/po-input-generic.spec.ts index aa2ba29681..0ed45b89db 100644 --- a/projects/ui/src/lib/components/po-field/po-input-generic/po-input-generic.spec.ts +++ b/projects/ui/src/lib/components/po-field/po-input-generic/po-input-generic.spec.ts @@ -12,7 +12,8 @@ import { of, Subscription } from 'rxjs'; template: ` - ` + `, + standalone: false }) class ContentProjectionComponent extends PoInputGeneric { constructor(el: ElementRef) { diff --git a/projects/ui/src/lib/components/po-field/po-input/po-input.component.ts b/projects/ui/src/lib/components/po-field/po-input/po-input.component.ts index eab4791b0a..f208101199 100644 --- a/projects/ui/src/lib/components/po-field/po-input/po-input.component.ts +++ b/projects/ui/src/lib/components/po-field/po-input/po-input.component.ts @@ -47,7 +47,8 @@ import { PoInputGeneric } from '../po-input-generic/po-input-generic'; multi: true } ], - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoInputComponent extends PoInputGeneric { @ViewChild('inp', { static: true }) inp: ElementRef; diff --git a/projects/ui/src/lib/components/po-field/po-input/samples/sample-po-input-basic/sample-po-input-basic.component.ts b/projects/ui/src/lib/components/po-field/po-input/samples/sample-po-input-basic/sample-po-input-basic.component.ts index bf1fa2d88b..bfa541de10 100644 --- a/projects/ui/src/lib/components/po-field/po-input/samples/sample-po-input-basic/sample-po-input-basic.component.ts +++ b/projects/ui/src/lib/components/po-field/po-input/samples/sample-po-input-basic/sample-po-input-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-input-basic', - templateUrl: './sample-po-input-basic.component.html' + templateUrl: './sample-po-input-basic.component.html', + standalone: false }) export class SamplePoInputBasicComponent {} diff --git a/projects/ui/src/lib/components/po-field/po-input/samples/sample-po-input-labs/sample-po-input-labs.component.ts b/projects/ui/src/lib/components/po-field/po-input/samples/sample-po-input-labs/sample-po-input-labs.component.ts index 501a2651f9..ff49e7f661 100644 --- a/projects/ui/src/lib/components/po-field/po-input/samples/sample-po-input-labs/sample-po-input-labs.component.ts +++ b/projects/ui/src/lib/components/po-field/po-input/samples/sample-po-input-labs/sample-po-input-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption, PoSelectOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-input-labs', - templateUrl: './sample-po-input-labs.component.html' + templateUrl: './sample-po-input-labs.component.html', + standalone: false }) export class SamplePoInputLabsComponent implements OnInit { input: string; diff --git a/projects/ui/src/lib/components/po-field/po-input/samples/sample-po-input-reactive-form/sample-po-input-reactive-form.component.ts b/projects/ui/src/lib/components/po-field/po-input/samples/sample-po-input-reactive-form/sample-po-input-reactive-form.component.ts index 95f0e42898..7d0fb24a4e 100644 --- a/projects/ui/src/lib/components/po-field/po-input/samples/sample-po-input-reactive-form/sample-po-input-reactive-form.component.ts +++ b/projects/ui/src/lib/components/po-field/po-input/samples/sample-po-input-reactive-form/sample-po-input-reactive-form.component.ts @@ -5,7 +5,8 @@ import { PoModalAction, PoModalComponent } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-input-reactive-form', - templateUrl: './sample-po-input-reactive-form.component.html' + templateUrl: './sample-po-input-reactive-form.component.html', + standalone: false }) export class SamplePoInputReactiveFormComponent { @ViewChild('reactiveFormData', { static: true }) reactiveFormModal: PoModalComponent; diff --git a/projects/ui/src/lib/components/po-field/po-login/po-login.component.ts b/projects/ui/src/lib/components/po-field/po-login/po-login.component.ts index 66778e71d3..47a7036174 100644 --- a/projects/ui/src/lib/components/po-field/po-login/po-login.component.ts +++ b/projects/ui/src/lib/components/po-field/po-login/po-login.component.ts @@ -49,7 +49,8 @@ const providers = [ selector: 'po-login', templateUrl: './po-login.component.html', changeDetection: ChangeDetectionStrategy.OnPush, - providers + providers, + standalone: false }) export class PoLoginComponent extends PoInputGeneric { id = `po-login[${uuid()}]`; diff --git a/projects/ui/src/lib/components/po-field/po-login/samples/sample-po-login-basic/sample-po-login-basic.component.ts b/projects/ui/src/lib/components/po-field/po-login/samples/sample-po-login-basic/sample-po-login-basic.component.ts index 11b11a6fd3..3f30c9d30c 100644 --- a/projects/ui/src/lib/components/po-field/po-login/samples/sample-po-login-basic/sample-po-login-basic.component.ts +++ b/projects/ui/src/lib/components/po-field/po-login/samples/sample-po-login-basic/sample-po-login-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-login-basic', - templateUrl: './sample-po-login-basic.component.html' + templateUrl: './sample-po-login-basic.component.html', + standalone: false }) export class SamplePoLoginBasicComponent {} diff --git a/projects/ui/src/lib/components/po-field/po-login/samples/sample-po-login-confirm/sample-po-login-confirm.component.ts b/projects/ui/src/lib/components/po-field/po-login/samples/sample-po-login-confirm/sample-po-login-confirm.component.ts index 836407a9f4..a897f81774 100644 --- a/projects/ui/src/lib/components/po-field/po-login/samples/sample-po-login-confirm/sample-po-login-confirm.component.ts +++ b/projects/ui/src/lib/components/po-field/po-login/samples/sample-po-login-confirm/sample-po-login-confirm.component.ts @@ -5,7 +5,8 @@ import { PoNotificationService } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-login-confirm', - templateUrl: './sample-po-login-confirm.component.html' + templateUrl: './sample-po-login-confirm.component.html', + standalone: false }) export class SamplePoLoginConfirmComponent { @ViewChild(PoModalComponent, { static: true }) poModal: PoModalComponent; diff --git a/projects/ui/src/lib/components/po-field/po-login/samples/sample-po-login-labs/sample-po-login-labs.component.ts b/projects/ui/src/lib/components/po-field/po-login/samples/sample-po-login-labs/sample-po-login-labs.component.ts index 22733b6401..e5dddd65f6 100644 --- a/projects/ui/src/lib/components/po-field/po-login/samples/sample-po-login-labs/sample-po-login-labs.component.ts +++ b/projects/ui/src/lib/components/po-field/po-login/samples/sample-po-login-labs/sample-po-login-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-login-labs', - templateUrl: './sample-po-login-labs.component.html' + templateUrl: './sample-po-login-labs.component.html', + standalone: false }) export class SamplePoLoginLabsComponent implements OnInit { errorPattern: string; diff --git a/projects/ui/src/lib/components/po-field/po-lookup/po-lookup-base.component.ts b/projects/ui/src/lib/components/po-field/po-lookup/po-lookup-base.component.ts index a4d4710ec2..060e5fa8a4 100644 --- a/projects/ui/src/lib/components/po-field/po-lookup/po-lookup-base.component.ts +++ b/projects/ui/src/lib/components/po-field/po-lookup/po-lookup-base.component.ts @@ -432,7 +432,7 @@ export abstract class PoLookupBaseComponent * O componente envia como parâmetro um array de string com as colunas configuradas inicialmente. * Por exemplo: ["idCard", "name", "hireStatus", "age"]. */ - @Output('p-restore-column-manager') columnRestoreManager = new EventEmitter>(); + @Output('p-restore-column-manager') columnRestoreManager = new EventEmitter>(); service: any; diff --git a/projects/ui/src/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.ts b/projects/ui/src/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.ts index 3d48437b88..e4bd1bb5bc 100644 --- a/projects/ui/src/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.ts +++ b/projects/ui/src/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.ts @@ -201,7 +201,7 @@ export abstract class PoLookupModalBaseComponent implements OnDestroy, OnInit { * O componente envia como parâmetro um array de string com as colunas configuradas inicialmente. * Por exemplo: ["idCard", "name", "hireStatus", "age"]. */ - @Output('p-restore-column-manager') columnRestoreManager = new EventEmitter>(); + @Output('p-restore-column-manager') columnRestoreManager = new EventEmitter>(); hasNext = true; isLoading = false; @@ -500,7 +500,7 @@ export abstract class PoLookupModalBaseComponent implements OnDestroy, OnInit { private getAdvancedFilters(advancedParams: any) { if (advancedParams && advancedParams.length > 0) { - const filters: Object = {}; + const filters: object = {}; let validatedAdvacendFilters: any; advancedParams.forEach((filter: any) => { diff --git a/projects/ui/src/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal.component.ts b/projects/ui/src/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal.component.ts index c5859f7645..80d26c63f9 100644 --- a/projects/ui/src/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal.component.ts +++ b/projects/ui/src/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal.component.ts @@ -26,7 +26,8 @@ import { sortArrayOfObjects } from '../../../../utils/util'; @Component({ selector: 'po-lookup-modal', templateUrl: './po-lookup-modal.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoLookupModalComponent extends PoLookupModalBaseComponent implements OnInit { @ViewChild('inpsearch') inputSearchEl: ElementRef; diff --git a/projects/ui/src/lib/components/po-field/po-lookup/po-lookup.component.spec.ts b/projects/ui/src/lib/components/po-field/po-lookup/po-lookup.component.spec.ts index 86d6d7a444..de64dfff65 100644 --- a/projects/ui/src/lib/components/po-field/po-lookup/po-lookup.component.spec.ts +++ b/projects/ui/src/lib/components/po-field/po-lookup/po-lookup.component.spec.ts @@ -704,7 +704,7 @@ describe('PoLookupComponent:', () => { }); it(`calculateVisibleItems: should set 'visibleDisclaimers' with value and '+1' in input`, () => { - const arrayDisclaimers: Array = [116, 97]; + const arrayDisclaimers: Array = [116, 97]; const spyGetDisclaimersWidth = spyOn(component, 'getDisclaimersWidth').and.returnValue(arrayDisclaimers); const spyGetInputWidth = spyOn(component, 'getInputWidth').and.returnValue(186); const expectValue = [ @@ -739,7 +739,7 @@ describe('PoLookupComponent:', () => { }); it(`calculateVisibleItems: should set empty array in'visibleDisclaimers' if 'InputWidth' is less than 0`, () => { - const arrayDisclaimers: Array = [116, 97]; + const arrayDisclaimers: Array = [116, 97]; const spyGetDisclaimersWidth = spyOn(component, 'getDisclaimersWidth').and.returnValue(arrayDisclaimers); const spyGetInputWidth = spyOn(component, 'getInputWidth').and.returnValue(0); @@ -765,7 +765,7 @@ describe('PoLookupComponent:', () => { }); it(`calculateVisibleItems: should set empty array in 'visibleDisclaimers' if 'disclaimers' are empty`, () => { - const arrayDisclaimers: Array = [116, 97]; + const arrayDisclaimers: Array = [116, 97]; const spyGetDisclaimersWidth = spyOn(component, 'getDisclaimersWidth').and.returnValue(arrayDisclaimers); const spyGetInputWidth = spyOn(component, 'getInputWidth').and.returnValue(0); @@ -782,7 +782,7 @@ describe('PoLookupComponent:', () => { }); it(`calculateVisibleItems: set 'Object' in 'disclaimers' when 'visibleDisclaimers' is empty but 'disclaimers' contain item`, () => { - const arrayDisclaimers: Array = [90]; + const arrayDisclaimers: Array = [90]; const spyGetDisclaimersWidth = spyOn(component, 'getDisclaimersWidth').and.returnValue(arrayDisclaimers); const spyGetInputWidth = spyOn(component, 'getInputWidth').and.returnValue(1); const expectValue = [ @@ -814,7 +814,7 @@ describe('PoLookupComponent:', () => { }); it(`calculateVisibleItems: set object in 'visibleDisclaimers' if disclaimers is empty `, () => { - const arrayDisclaimers: Array = [90]; + const arrayDisclaimers: Array = [90]; const spyGetDisclaimersWidth = spyOn(component, 'getDisclaimersWidth').and.returnValue(arrayDisclaimers); const spyGetInputWidth = spyOn(component, 'getInputWidth').and.returnValue(1); diff --git a/projects/ui/src/lib/components/po-field/po-lookup/po-lookup.component.ts b/projects/ui/src/lib/components/po-field/po-lookup/po-lookup.component.ts index 62bd55181c..d9e91f0763 100644 --- a/projects/ui/src/lib/components/po-field/po-lookup/po-lookup.component.ts +++ b/projects/ui/src/lib/components/po-field/po-lookup/po-lookup.component.ts @@ -138,7 +138,8 @@ const providers = [ selector: 'po-lookup', templateUrl: './po-lookup.component.html', changeDetection: ChangeDetectionStrategy.OnPush, - providers + providers, + standalone: false }) export class PoLookupComponent extends PoLookupBaseComponent implements AfterViewInit, OnDestroy, OnInit, DoCheck { @ViewChild('inp', { read: ElementRef, static: false }) inputEl: ElementRef; diff --git a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-basic/sample-po-lookup-basic.component.ts b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-basic/sample-po-lookup-basic.component.ts index 0721a7de04..d71b617426 100644 --- a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-basic/sample-po-lookup-basic.component.ts +++ b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-basic/sample-po-lookup-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-lookup-basic', - templateUrl: './sample-po-lookup-basic.component.html' + templateUrl: './sample-po-lookup-basic.component.html', + standalone: false }) export class SamplePoLookupBasicComponent {} diff --git a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-hero-reactive-form/sample-po-lookup-hero-reactive-form.component.ts b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-hero-reactive-form/sample-po-lookup-hero-reactive-form.component.ts index 57830fd420..68f144f255 100644 --- a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-hero-reactive-form/sample-po-lookup-hero-reactive-form.component.ts +++ b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-hero-reactive-form/sample-po-lookup-hero-reactive-form.component.ts @@ -10,7 +10,8 @@ import { SamplePoLookupService } from '../sample-po-lookup.service'; @Component({ selector: 'sample-po-lookup-hero-reactive-form', templateUrl: './sample-po-lookup-hero-reactive-form.component.html', - providers: [SamplePoLookupService] + providers: [SamplePoLookupService], + standalone: false }) export class SamplePoLookupHeroReactiveFormComponent implements OnInit { formMission: UntypedFormGroup; diff --git a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-hero/sample-po-lookup-hero.component.ts b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-hero/sample-po-lookup-hero.component.ts index f117383581..5a10ad241e 100644 --- a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-hero/sample-po-lookup-hero.component.ts +++ b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-hero/sample-po-lookup-hero.component.ts @@ -9,7 +9,8 @@ import { SamplePoLookupService } from '../sample-po-lookup.service'; @Component({ selector: 'sample-po-lookup-hero', templateUrl: './sample-po-lookup-hero.component.html', - providers: [SamplePoLookupService] + providers: [SamplePoLookupService], + standalone: false }) export class SamplePoLookupHeroComponent { hero: string; diff --git a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-labs/sample-po-lookup-labs.component.ts b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-labs/sample-po-lookup-labs.component.ts index aefa1ae75a..a2028804d2 100644 --- a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-labs/sample-po-lookup-labs.component.ts +++ b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-labs/sample-po-lookup-labs.component.ts @@ -16,7 +16,8 @@ import { SamplePoLookupService } from '../sample-po-lookup.service'; @Component({ selector: 'sample-po-lookup-labs', templateUrl: './sample-po-lookup-labs.component.html', - providers: [SamplePoLookupService] + providers: [SamplePoLookupService], + standalone: false }) export class SamplePoLookupLabsComponent implements OnInit { columns: Array; diff --git a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-multiple/sample-po-lookup-multiple.component.ts b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-multiple/sample-po-lookup-multiple.component.ts index 575450b1c2..70a8ae7cce 100644 --- a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-multiple/sample-po-lookup-multiple.component.ts +++ b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-multiple/sample-po-lookup-multiple.component.ts @@ -6,7 +6,8 @@ import { SamplePoLookupMultipleService } from './sample-po-lookup-multiple.servi @Component({ selector: 'sample-po-lookup-multiple', templateUrl: './sample-po-lookup-multiple.component.html', - styles: [] + styles: [], + standalone: false }) export class SamplePoLookupMultipleComponent { loading: boolean = false; diff --git a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-sw-films/sample-po-lookup-sw-films.component.ts b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-sw-films/sample-po-lookup-sw-films.component.ts index be02e2ada0..845d80f8fe 100644 --- a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-sw-films/sample-po-lookup-sw-films.component.ts +++ b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-sw-films/sample-po-lookup-sw-films.component.ts @@ -5,7 +5,8 @@ import { SamplePoLookupSwFilmsService } from './sample-po-lookup-sw-films.servic @Component({ selector: 'sample-po-lookup-sw-films', templateUrl: './sample-po-lookup-sw-films.component.html', - providers: [SamplePoLookupSwFilmsService] + providers: [SamplePoLookupSwFilmsService], + standalone: false }) export class SamplePoLookupSwFilmsComponent implements OnInit { entity; diff --git a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-sw-films/sample-po-lookup-sw-films.service.ts b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-sw-films/sample-po-lookup-sw-films.service.ts index e1d241d0d8..2c38785349 100644 --- a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-sw-films/sample-po-lookup-sw-films.service.ts +++ b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-sw-films/sample-po-lookup-sw-films.service.ts @@ -6,7 +6,9 @@ import { Observable } from 'rxjs'; import { PoLookupFilter, PoLookupResponseApi, PoLookupFilteredItemsParams } from '@po-ui/ng-components'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class SamplePoLookupSwFilmsService implements PoLookupFilter { private baseUrl = 'https://swapi.dev/api'; private filmsUrl = 'https://swapi.dev/api/films/'; diff --git a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup.service.ts b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup.service.ts index ddc6b3368b..f566d39bab 100644 --- a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup.service.ts +++ b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup.service.ts @@ -5,7 +5,9 @@ import { Observable } from 'rxjs'; import { PoLookupFilter, PoLookupFilteredItemsParams } from '@po-ui/ng-components'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class SamplePoLookupService implements PoLookupFilter { private url = 'https://po-sample-api.onrender.com/v1/heroes'; diff --git a/projects/ui/src/lib/components/po-field/po-lookup/services/po-lookup-filter.service.ts b/projects/ui/src/lib/components/po-field/po-lookup/services/po-lookup-filter.service.ts index 4501cfe931..75e324e1fc 100644 --- a/projects/ui/src/lib/components/po-field/po-lookup/services/po-lookup-filter.service.ts +++ b/projects/ui/src/lib/components/po-field/po-lookup/services/po-lookup-filter.service.ts @@ -16,7 +16,9 @@ import { PoLookupFilteredItemsParams } from '../interfaces/po-lookup-filtered-it * * Serviço padrão utilizado para filtrar os dados do componente po-lookup. */ -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoLookupFilterService implements PoLookupFilter { readonly headers: HttpHeaders = new HttpHeaders({ 'X-PO-No-Message': 'true' diff --git a/projects/ui/src/lib/components/po-field/po-lookup/services/po-lookup-modal.service.ts b/projects/ui/src/lib/components/po-field/po-lookup/services/po-lookup-modal.service.ts index 3fb68a173e..af4b40bf07 100644 --- a/projects/ui/src/lib/components/po-field/po-lookup/services/po-lookup-modal.service.ts +++ b/projects/ui/src/lib/components/po-field/po-lookup/services/po-lookup-modal.service.ts @@ -12,7 +12,9 @@ import { PoLookupModalComponent } from '../po-lookup-modal/po-lookup-modal.compo * * Serviço responsável por controlar a abertura do componente Po Lookup Modal. */ -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoLookupModalService { selectValueEvent: EventEmitter = new EventEmitter(); diff --git a/projects/ui/src/lib/components/po-field/po-multiselect/po-multiselect-dropdown/po-multiselect-dropdown.component.ts b/projects/ui/src/lib/components/po-field/po-multiselect/po-multiselect-dropdown/po-multiselect-dropdown.component.ts index aeb518530e..ee093ccd04 100644 --- a/projects/ui/src/lib/components/po-field/po-multiselect/po-multiselect-dropdown/po-multiselect-dropdown.component.ts +++ b/projects/ui/src/lib/components/po-field/po-multiselect/po-multiselect-dropdown/po-multiselect-dropdown.component.ts @@ -24,7 +24,8 @@ import { PoListBoxComponent } from './../../../po-listbox/po-listbox.component'; @Component({ selector: 'po-multiselect-dropdown', templateUrl: './po-multiselect-dropdown.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoMultiselectDropdownComponent { /** Propriedade que indica se deve exibir o loading. */ diff --git a/projects/ui/src/lib/components/po-field/po-multiselect/po-multiselect-filter.service.ts b/projects/ui/src/lib/components/po-field/po-multiselect/po-multiselect-filter.service.ts index e982544402..6925dc6f53 100644 --- a/projects/ui/src/lib/components/po-field/po-multiselect/po-multiselect-filter.service.ts +++ b/projects/ui/src/lib/components/po-field/po-multiselect/po-multiselect-filter.service.ts @@ -6,7 +6,9 @@ import { map } from 'rxjs/operators'; import { PoMultiselectFilter } from './po-multiselect-filter.interface'; import { PoMultiselectOption } from './po-multiselect-option.interface'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoMultiselectFilterService implements PoMultiselectFilter { fieldLabel: string = 'label'; fieldValue: string = 'value'; diff --git a/projects/ui/src/lib/components/po-field/po-multiselect/po-multiselect-option-template/po-multiselect-option-template.directive.ts b/projects/ui/src/lib/components/po-field/po-multiselect/po-multiselect-option-template/po-multiselect-option-template.directive.ts index 572139e2fe..0073c025bd 100644 --- a/projects/ui/src/lib/components/po-field/po-multiselect/po-multiselect-option-template/po-multiselect-option-template.directive.ts +++ b/projects/ui/src/lib/components/po-field/po-multiselect/po-multiselect-option-template/po-multiselect-option-template.directive.ts @@ -32,7 +32,8 @@ import { Directive, TemplateRef } from '@angular/core'; * */ @Directive({ - selector: '[p-multiselect-option-template]' + selector: '[p-multiselect-option-template]', + standalone: false }) export class PoMultiselectOptionTemplateDirective { // Necessário manter templateRef para o funcionamento do row template. diff --git a/projects/ui/src/lib/components/po-field/po-multiselect/po-multiselect.component.ts b/projects/ui/src/lib/components/po-field/po-multiselect/po-multiselect.component.ts index 298cf3c969..be4f6d2fc8 100644 --- a/projects/ui/src/lib/components/po-field/po-multiselect/po-multiselect.component.ts +++ b/projects/ui/src/lib/components/po-field/po-multiselect/po-multiselect.component.ts @@ -113,7 +113,8 @@ const providers = [ selector: 'po-multiselect', templateUrl: './po-multiselect.component.html', changeDetection: ChangeDetectionStrategy.OnPush, - providers + providers, + standalone: false }) export class PoMultiselectComponent extends PoMultiselectBaseComponent diff --git a/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-any-array/sample-po-multiselect-any-array.component.ts b/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-any-array/sample-po-multiselect-any-array.component.ts index 8338780c48..6cd953366f 100644 --- a/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-any-array/sample-po-multiselect-any-array.component.ts +++ b/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-any-array/sample-po-multiselect-any-array.component.ts @@ -4,7 +4,8 @@ import { PoSelectOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-multiselect-any-array', - templateUrl: './sample-po-multiselect-any-array.component.html' + templateUrl: './sample-po-multiselect-any-array.component.html', + standalone: false }) export class SamplePoMultiselectAnyArrayComponent { company; diff --git a/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-basic/sample-po-multiselect-basic.component.ts b/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-basic/sample-po-multiselect-basic.component.ts index 74e4715fa3..754817d32d 100644 --- a/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-basic/sample-po-multiselect-basic.component.ts +++ b/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-basic/sample-po-multiselect-basic.component.ts @@ -4,7 +4,8 @@ import { PoMultiselectOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-multiselect-basic', - templateUrl: './sample-po-multiselect-basic.component.html' + templateUrl: './sample-po-multiselect-basic.component.html', + standalone: false }) export class SamplePoMultiselectBasicComponent { options: Array = [ diff --git a/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-heroes/sample-po-multiselect-heroes.component.ts b/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-heroes/sample-po-multiselect-heroes.component.ts index a17574823e..e3f16f8fca 100644 --- a/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-heroes/sample-po-multiselect-heroes.component.ts +++ b/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-heroes/sample-po-multiselect-heroes.component.ts @@ -6,7 +6,8 @@ import { SamplePoMultiselectHeroesService } from './sample-po-multiselect-heroes @Component({ selector: 'sample-po-multiselect-heroes', templateUrl: './sample-po-multiselect-heroes.component.html', - providers: [SamplePoMultiselectHeroesService] + providers: [SamplePoMultiselectHeroesService], + standalone: false }) export class SamplePoMultiselectHeroesComponent { debounce = 500; diff --git a/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-heroes/sample-po-multiselect-heroes.service.ts b/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-heroes/sample-po-multiselect-heroes.service.ts index a62d3eae70..78e25302da 100644 --- a/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-heroes/sample-po-multiselect-heroes.service.ts +++ b/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-heroes/sample-po-multiselect-heroes.service.ts @@ -6,7 +6,9 @@ import { map } from 'rxjs/operators'; import { PoMultiselectFilter, PoMultiselectOption } from '@po-ui/ng-components'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class SamplePoMultiselectHeroesService implements PoMultiselectFilter { constructor(private http: HttpClient) {} diff --git a/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-labs/sample-po-multiselect-labs.component.ts b/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-labs/sample-po-multiselect-labs.component.ts index 46b6e9db00..64ff12d1e8 100644 --- a/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-labs/sample-po-multiselect-labs.component.ts +++ b/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-labs/sample-po-multiselect-labs.component.ts @@ -9,7 +9,8 @@ import { @Component({ selector: 'sample-po-multiselect-labs', - templateUrl: './sample-po-multiselect-labs.component.html' + templateUrl: './sample-po-multiselect-labs.component.html', + standalone: false }) export class SamplePoMultiselectLabsComponent implements OnInit { customLiterals: PoMultiselectLiterals; diff --git a/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-template/sample-po-multiselect-template.component.ts b/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-template/sample-po-multiselect-template.component.ts index bb45028caf..c9faba17fd 100644 --- a/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-template/sample-po-multiselect-template.component.ts +++ b/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-template/sample-po-multiselect-template.component.ts @@ -23,7 +23,8 @@ import { PoSelectOption } from '@po-ui/ng-components'; padding: 8px; } ` - ] + ], + standalone: false }) export class SamplePoMultiselectTemplateComponent { employee; diff --git a/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-vacation-reactive-form/sample-po-multiselect-vacation-reactive-form.component.ts b/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-vacation-reactive-form/sample-po-multiselect-vacation-reactive-form.component.ts index e519d29419..73d9438a70 100644 --- a/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-vacation-reactive-form/sample-po-multiselect-vacation-reactive-form.component.ts +++ b/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-vacation-reactive-form/sample-po-multiselect-vacation-reactive-form.component.ts @@ -5,7 +5,8 @@ import { PoMultiselectOption, PoRadioGroupOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-multiselect-vacation-reactive-form', - templateUrl: './sample-po-multiselect-vacation-reactive-form.component.html' + templateUrl: './sample-po-multiselect-vacation-reactive-form.component.html', + standalone: false }) export class SamplePoMultiselectVacationReactiveFormComponent implements OnInit { days: number; diff --git a/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-vacation/sample-po-multiselect-vacation.component.ts b/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-vacation/sample-po-multiselect-vacation.component.ts index b70a6c449f..75d63bc9e5 100644 --- a/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-vacation/sample-po-multiselect-vacation.component.ts +++ b/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-vacation/sample-po-multiselect-vacation.component.ts @@ -4,7 +4,8 @@ import { PoMultiselectOption, PoRadioGroupOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-multiselect-vacation', - templateUrl: './sample-po-multiselect-vacation.component.html' + templateUrl: './sample-po-multiselect-vacation.component.html', + standalone: false }) export class SamplePoMultiselectVacationComponent implements OnInit { days: number; diff --git a/projects/ui/src/lib/components/po-field/po-number/po-number-base.component.spec.ts b/projects/ui/src/lib/components/po-field/po-number/po-number-base.component.spec.ts index 645b8b6739..ad57f4467f 100644 --- a/projects/ui/src/lib/components/po-field/po-number/po-number-base.component.spec.ts +++ b/projects/ui/src/lib/components/po-field/po-number/po-number-base.component.spec.ts @@ -12,7 +12,8 @@ import { of } from 'rxjs'; template: ` - ` + `, + standalone: false }) class ContentProjectionComponent extends PoNumberBaseComponent { constructor(el: ElementRef, cd: ChangeDetectorRef) { diff --git a/projects/ui/src/lib/components/po-field/po-number/po-number.component.ts b/projects/ui/src/lib/components/po-field/po-number/po-number.component.ts index 5992a59b42..0cf19e6326 100644 --- a/projects/ui/src/lib/components/po-field/po-number/po-number.component.ts +++ b/projects/ui/src/lib/components/po-field/po-number/po-number.component.ts @@ -56,7 +56,8 @@ import { uuid } from '../../../utils/util'; useExisting: forwardRef(() => PoNumberComponent), multi: true } - ] + ], + standalone: false }) export class PoNumberComponent extends PoNumberBaseComponent { /** diff --git a/projects/ui/src/lib/components/po-field/po-number/samples/sample-po-number-basic/sample-po-number-basic.component.ts b/projects/ui/src/lib/components/po-field/po-number/samples/sample-po-number-basic/sample-po-number-basic.component.ts index 0b8a9a55da..95daddbf00 100644 --- a/projects/ui/src/lib/components/po-field/po-number/samples/sample-po-number-basic/sample-po-number-basic.component.ts +++ b/projects/ui/src/lib/components/po-field/po-number/samples/sample-po-number-basic/sample-po-number-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-number-basic', - templateUrl: './sample-po-number-basic.component.html' + templateUrl: './sample-po-number-basic.component.html', + standalone: false }) export class SamplePoNumberBasicComponent {} diff --git a/projects/ui/src/lib/components/po-field/po-number/samples/sample-po-number-calculate/sample-po-number-calculate.component.ts b/projects/ui/src/lib/components/po-field/po-number/samples/sample-po-number-calculate/sample-po-number-calculate.component.ts index 0dab7c4b6b..4215c32322 100644 --- a/projects/ui/src/lib/components/po-field/po-number/samples/sample-po-number-calculate/sample-po-number-calculate.component.ts +++ b/projects/ui/src/lib/components/po-field/po-number/samples/sample-po-number-calculate/sample-po-number-calculate.component.ts @@ -4,7 +4,8 @@ import { PoSelectOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-number-calculate', - templateUrl: './sample-po-number-calculate.component.html' + templateUrl: './sample-po-number-calculate.component.html', + standalone: false }) export class SamplePoNumberCalculateComponent { icms: number; diff --git a/projects/ui/src/lib/components/po-field/po-number/samples/sample-po-number-labs/sample-po-number-labs.component.ts b/projects/ui/src/lib/components/po-field/po-number/samples/sample-po-number-labs/sample-po-number-labs.component.ts index 9c8f4bfdc1..ce8569df8b 100644 --- a/projects/ui/src/lib/components/po-field/po-number/samples/sample-po-number-labs/sample-po-number-labs.component.ts +++ b/projects/ui/src/lib/components/po-field/po-number/samples/sample-po-number-labs/sample-po-number-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption, PoSelectOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-number-labs', - templateUrl: './sample-po-number-labs.component.html' + templateUrl: './sample-po-number-labs.component.html', + standalone: false }) export class SamplePoNumberLabsComponent implements OnInit { event: string; diff --git a/projects/ui/src/lib/components/po-field/po-password/po-password.component.ts b/projects/ui/src/lib/components/po-field/po-password/po-password.component.ts index 534da23c8e..676cddf8d3 100644 --- a/projects/ui/src/lib/components/po-field/po-password/po-password.component.ts +++ b/projects/ui/src/lib/components/po-field/po-password/po-password.component.ts @@ -42,7 +42,8 @@ import { PoInputGeneric } from '../po-input-generic/po-input-generic'; useExisting: forwardRef(() => PoPasswordComponent), multi: true } - ] + ], + standalone: false }) export class PoPasswordComponent extends PoInputGeneric { id = `po-password[${uuid()}]`; diff --git a/projects/ui/src/lib/components/po-field/po-password/samples/sample-po-password-basic/sample-po-password-basic.component.ts b/projects/ui/src/lib/components/po-field/po-password/samples/sample-po-password-basic/sample-po-password-basic.component.ts index e018650c6f..cb5a8bade5 100644 --- a/projects/ui/src/lib/components/po-field/po-password/samples/sample-po-password-basic/sample-po-password-basic.component.ts +++ b/projects/ui/src/lib/components/po-field/po-password/samples/sample-po-password-basic/sample-po-password-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-password-basic', - templateUrl: './sample-po-password-basic.component.html' + templateUrl: './sample-po-password-basic.component.html', + standalone: false }) export class SamplePoPasswordBasicComponent {} diff --git a/projects/ui/src/lib/components/po-field/po-password/samples/sample-po-password-labs/sample-po-password-labs.component.ts b/projects/ui/src/lib/components/po-field/po-password/samples/sample-po-password-labs/sample-po-password-labs.component.ts index 4b951fc631..1d9d679e61 100644 --- a/projects/ui/src/lib/components/po-field/po-password/samples/sample-po-password-labs/sample-po-password-labs.component.ts +++ b/projects/ui/src/lib/components/po-field/po-password/samples/sample-po-password-labs/sample-po-password-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-password-labs', - templateUrl: './sample-po-password-labs.component.html' + templateUrl: './sample-po-password-labs.component.html', + standalone: false }) export class SamplePoPasswordLabsComponent implements OnInit { errorPattern: string; diff --git a/projects/ui/src/lib/components/po-field/po-password/samples/sample-po-password-reset/sample-po-password-reset.component.ts b/projects/ui/src/lib/components/po-field/po-password/samples/sample-po-password-reset/sample-po-password-reset.component.ts index bb8a7bbc9f..f57ea5f8cb 100644 --- a/projects/ui/src/lib/components/po-field/po-password/samples/sample-po-password-reset/sample-po-password-reset.component.ts +++ b/projects/ui/src/lib/components/po-field/po-password/samples/sample-po-password-reset/sample-po-password-reset.component.ts @@ -5,7 +5,8 @@ import { PoDialogService } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-password-reset', templateUrl: './sample-po-password-reset.component.html', - providers: [PoDialogService] + providers: [PoDialogService], + standalone: false }) export class SamplePoPasswordResetComponent { confirmNewPassword: string; diff --git a/projects/ui/src/lib/components/po-field/po-radio-group/po-radio-group.component.ts b/projects/ui/src/lib/components/po-field/po-radio-group/po-radio-group.component.ts index 914bc6f0e9..a1344cead2 100644 --- a/projects/ui/src/lib/components/po-field/po-radio-group/po-radio-group.component.ts +++ b/projects/ui/src/lib/components/po-field/po-radio-group/po-radio-group.component.ts @@ -62,7 +62,8 @@ import { PoRadioGroupBaseComponent } from './po-radio-group-base.component'; useExisting: forwardRef(() => PoRadioGroupComponent), multi: true } - ] + ], + standalone: false }) export class PoRadioGroupComponent extends PoRadioGroupBaseComponent implements AfterViewInit, DoCheck { /** Label do campo. */ diff --git a/projects/ui/src/lib/components/po-field/po-radio-group/samples/sample-po-radio-group-basic/sample-po-radio-group-basic.component.ts b/projects/ui/src/lib/components/po-field/po-radio-group/samples/sample-po-radio-group-basic/sample-po-radio-group-basic.component.ts index d76261ce18..76cff302eb 100644 --- a/projects/ui/src/lib/components/po-field/po-radio-group/samples/sample-po-radio-group-basic/sample-po-radio-group-basic.component.ts +++ b/projects/ui/src/lib/components/po-field/po-radio-group/samples/sample-po-radio-group-basic/sample-po-radio-group-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-radio-group-basic', - templateUrl: './sample-po-radio-group-basic.component.html' + templateUrl: './sample-po-radio-group-basic.component.html', + standalone: false }) export class SamplePoRadioGroupBasicComponent {} diff --git a/projects/ui/src/lib/components/po-field/po-radio-group/samples/sample-po-radio-group-labs/sample-po-radio-group-labs.component.ts b/projects/ui/src/lib/components/po-field/po-radio-group/samples/sample-po-radio-group-labs/sample-po-radio-group-labs.component.ts index 113d48a52f..1711dec2e4 100644 --- a/projects/ui/src/lib/components/po-field/po-radio-group/samples/sample-po-radio-group-labs/sample-po-radio-group-labs.component.ts +++ b/projects/ui/src/lib/components/po-field/po-radio-group/samples/sample-po-radio-group-labs/sample-po-radio-group-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption, PoRadioGroupOption } from '@po-ui/ng-components' @Component({ selector: 'sample-po-radio-group-labs', - templateUrl: './sample-po-radio-group-labs.component.html' + templateUrl: './sample-po-radio-group-labs.component.html', + standalone: false }) export class SamplePoRadioGroupLabsComponent implements OnInit { columns: number; diff --git a/projects/ui/src/lib/components/po-field/po-radio-group/samples/sample-po-radio-group-translator-reactive-form/sample-po-radio-group-translator-reactive-form.component.ts b/projects/ui/src/lib/components/po-field/po-radio-group/samples/sample-po-radio-group-translator-reactive-form/sample-po-radio-group-translator-reactive-form.component.ts index 40a169243d..1db52fdfb9 100644 --- a/projects/ui/src/lib/components/po-field/po-radio-group/samples/sample-po-radio-group-translator-reactive-form/sample-po-radio-group-translator-reactive-form.component.ts +++ b/projects/ui/src/lib/components/po-field/po-radio-group/samples/sample-po-radio-group-translator-reactive-form/sample-po-radio-group-translator-reactive-form.component.ts @@ -5,7 +5,8 @@ import { PoRadioGroupOption, PoSelectOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-radio-group-translator-reactive-form', - templateUrl: './sample-po-radio-group-translator-reactive-form.component.html' + templateUrl: './sample-po-radio-group-translator-reactive-form.component.html', + standalone: false }) export class SamplePoRadioGroupTranslatorReactiveFormComponent implements OnInit { translatorForm: UntypedFormGroup; diff --git a/projects/ui/src/lib/components/po-field/po-radio-group/samples/sample-po-radio-group-translator/sample-po-radio-group-translator.component.ts b/projects/ui/src/lib/components/po-field/po-radio-group/samples/sample-po-radio-group-translator/sample-po-radio-group-translator.component.ts index 8ee1d62a47..405cb5ad41 100644 --- a/projects/ui/src/lib/components/po-field/po-radio-group/samples/sample-po-radio-group-translator/sample-po-radio-group-translator.component.ts +++ b/projects/ui/src/lib/components/po-field/po-radio-group/samples/sample-po-radio-group-translator/sample-po-radio-group-translator.component.ts @@ -4,7 +4,8 @@ import { PoRadioGroupOption, PoSelectOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-radio-group-translator', - templateUrl: './sample-po-radio-group-translator.component.html' + templateUrl: './sample-po-radio-group-translator.component.html', + standalone: false }) export class SamplePoRadioGroupTranslatorComponent { language: string = 'es'; diff --git a/projects/ui/src/lib/components/po-field/po-radio/po-radio.component.ts b/projects/ui/src/lib/components/po-field/po-radio/po-radio.component.ts index d94a03cd62..7403d3fbbd 100644 --- a/projects/ui/src/lib/components/po-field/po-radio/po-radio.component.ts +++ b/projects/ui/src/lib/components/po-field/po-radio/po-radio.component.ts @@ -29,7 +29,8 @@ import { PoRadioSize } from './po-radio-size.enum'; useExisting: forwardRef(() => PoRadioComponent), multi: true } - ] + ], + standalone: false }) export class PoRadioComponent extends PoFieldModel { @ViewChild('radio', { static: true }) radio: ElementRef; diff --git a/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text-body/po-rich-text-body.component.ts b/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text-body/po-rich-text-body.component.ts index bc43db0b62..55ffb8b4c7 100644 --- a/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text-body/po-rich-text-body.component.ts +++ b/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text-body/po-rich-text-body.component.ts @@ -20,7 +20,8 @@ const poRichTextBodyCommands = [ @Component({ selector: 'po-rich-text-body', - templateUrl: './po-rich-text-body.component.html' + templateUrl: './po-rich-text-body.component.html', + standalone: false }) export class PoRichTextBodyComponent implements OnInit, OnDestroy { @ViewChild('bodyElement', { static: true }) bodyElement: ElementRef; diff --git a/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text-image-modal/po-rich-text-image-modal.component.ts b/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text-image-modal/po-rich-text-image-modal.component.ts index 6f47592317..7d577167f0 100644 --- a/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text-image-modal/po-rich-text-image-modal.component.ts +++ b/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text-image-modal/po-rich-text-image-modal.component.ts @@ -13,7 +13,8 @@ const uploadRestrictions = ['.apng', '.bmp', '.gif', '.ico', '.jpeg', '.jpg', '. @Component({ selector: 'po-rich-text-image-modal', - templateUrl: './po-rich-text-image-modal.component.html' + templateUrl: './po-rich-text-image-modal.component.html', + standalone: false }) export class PoRichTextImageModalComponent { @ViewChild('modal', { static: true }) modal: PoModalComponent; diff --git a/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text-link-modal/po-rich-text-link-modal.component.ts b/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text-link-modal/po-rich-text-link-modal.component.ts index 6e2faa63b1..a042122b19 100644 --- a/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text-link-modal/po-rich-text-link-modal.component.ts +++ b/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text-link-modal/po-rich-text-link-modal.component.ts @@ -9,7 +9,8 @@ import { poRichTextLiteralsDefault } from '../po-rich-text-literals'; @Component({ selector: 'po-rich-text-link-modal', - templateUrl: './po-rich-text-link-modal.component.html' + templateUrl: './po-rich-text-link-modal.component.html', + standalone: false }) export class PoRichTextLinkModalComponent implements OnInit { @ViewChild('modal', { static: true }) modal: PoModalComponent; diff --git a/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text-toolbar/po-rich-text-toolbar.component.ts b/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text-toolbar/po-rich-text-toolbar.component.ts index 15d9532fd5..434aaa0831 100644 --- a/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text-toolbar/po-rich-text-toolbar.component.ts +++ b/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text-toolbar/po-rich-text-toolbar.component.ts @@ -14,7 +14,8 @@ const poRichTextDefaultColor = '#000000'; @Component({ selector: 'po-rich-text-toolbar', - templateUrl: './po-rich-text-toolbar.component.html' + templateUrl: './po-rich-text-toolbar.component.html', + standalone: false }) export class PoRichTextToolbarComponent implements AfterViewInit { @ViewChild('colorPickerInput', { read: ElementRef }) colorPickerInput: ElementRef; diff --git a/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text.component.ts b/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text.component.ts index a13b29a6ef..0d41aa39bf 100644 --- a/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text.component.ts +++ b/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text.component.ts @@ -62,8 +62,9 @@ const providers = [ @Component({ selector: 'po-rich-text', templateUrl: './po-rich-text.component.html', + changeDetection: ChangeDetectionStrategy.OnPush, providers, - changeDetection: ChangeDetectionStrategy.OnPush + standalone: false }) export class PoRichTextComponent extends PoRichTextBaseComponent diff --git a/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text.service.ts b/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text.service.ts index a2e1ade45c..30c74abf32 100644 --- a/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text.service.ts +++ b/projects/ui/src/lib/components/po-field/po-rich-text/po-rich-text.service.ts @@ -2,7 +2,9 @@ import { Injectable } from '@angular/core'; import { Subject } from 'rxjs'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoRichTextService { private model = new Subject(); diff --git a/projects/ui/src/lib/components/po-field/po-rich-text/samples/sample-po-rich-text-basic/sample-po-rich-text-basic.component.ts b/projects/ui/src/lib/components/po-field/po-rich-text/samples/sample-po-rich-text-basic/sample-po-rich-text-basic.component.ts index 70c9b5d0a3..48156ff668 100644 --- a/projects/ui/src/lib/components/po-field/po-rich-text/samples/sample-po-rich-text-basic/sample-po-rich-text-basic.component.ts +++ b/projects/ui/src/lib/components/po-field/po-rich-text/samples/sample-po-rich-text-basic/sample-po-rich-text-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-rich-text-basic', - templateUrl: './sample-po-rich-text-basic.component.html' + templateUrl: './sample-po-rich-text-basic.component.html', + standalone: false }) export class SamplePoRichTextBasicComponent {} diff --git a/projects/ui/src/lib/components/po-field/po-rich-text/samples/sample-po-rich-text-labs/sample-po-rich-text-labs.component.ts b/projects/ui/src/lib/components/po-field/po-rich-text/samples/sample-po-rich-text-labs/sample-po-rich-text-labs.component.ts index 4c70142c6a..98d5b70151 100644 --- a/projects/ui/src/lib/components/po-field/po-rich-text/samples/sample-po-rich-text-labs/sample-po-rich-text-labs.component.ts +++ b/projects/ui/src/lib/components/po-field/po-rich-text/samples/sample-po-rich-text-labs/sample-po-rich-text-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption, PoMultiselectOption, PoRichTextToolbarActions } @Component({ selector: 'sample-po-rich-text-labs', - templateUrl: './sample-po-rich-text-labs.component.html' + templateUrl: './sample-po-rich-text-labs.component.html', + standalone: false }) export class SamplePoRichTextLabsComponent implements OnInit { errorMessage: string; diff --git a/projects/ui/src/lib/components/po-field/po-rich-text/samples/sample-po-rich-text-recipe/sample-po-rich-text-recipe.component.ts b/projects/ui/src/lib/components/po-field/po-rich-text/samples/sample-po-rich-text-recipe/sample-po-rich-text-recipe.component.ts index 73b6fe91a2..06dfb952f0 100644 --- a/projects/ui/src/lib/components/po-field/po-rich-text/samples/sample-po-rich-text-recipe/sample-po-rich-text-recipe.component.ts +++ b/projects/ui/src/lib/components/po-field/po-rich-text/samples/sample-po-rich-text-recipe/sample-po-rich-text-recipe.component.ts @@ -3,7 +3,8 @@ import image from './sample-po-rich-text-recipe-image-base-64'; @Component({ selector: 'sample-po-rich-text-recipe', - templateUrl: './sample-po-rich-text-recipe.component.html' + templateUrl: './sample-po-rich-text-recipe.component.html', + standalone: false }) export class SamplePoRichTextRecipeComponent { recipe = ` diff --git a/projects/ui/src/lib/components/po-field/po-select/po-select.component.ts b/projects/ui/src/lib/components/po-field/po-select/po-select.component.ts index 958553367a..57aa776dec 100644 --- a/projects/ui/src/lib/components/po-field/po-select/po-select.component.ts +++ b/projects/ui/src/lib/components/po-field/po-select/po-select.component.ts @@ -118,7 +118,8 @@ const PO_SELECT_FIELD_VALUE_DEFAULT = 'value'; useExisting: forwardRef(() => PoSelectComponent), multi: true } - ] + ], + standalone: false }) export class PoSelectComponent extends PoFieldValidateModel implements OnChanges { private _iconToken: { [key: string]: string }; diff --git a/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-basic/sample-po-select-basic.component.ts b/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-basic/sample-po-select-basic.component.ts index e23964eeed..9e092b13a2 100644 --- a/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-basic/sample-po-select-basic.component.ts +++ b/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-basic/sample-po-select-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-select-basic', - templateUrl: './sample-po-select-basic.component.html' + templateUrl: './sample-po-select-basic.component.html', + standalone: false }) export class SamplePoSelectBasicComponent {} diff --git a/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-companies/sample-po-select-companies.component.ts b/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-companies/sample-po-select-companies.component.ts index dbe74abb2d..8671ba8a62 100644 --- a/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-companies/sample-po-select-companies.component.ts +++ b/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-companies/sample-po-select-companies.component.ts @@ -4,12 +4,13 @@ import { PoSelectOption, PoSelectOptionGroup } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-select-companies', - templateUrl: './sample-po-select-companies.component.html' + templateUrl: './sample-po-select-companies.component.html', + standalone: false }) export class SamplePoSelectCompaniesComponent { select: Array; - fieldLabel = undefined ?? 'nomeFantasia'; - fieldValue = undefined ?? 'cnpj'; + fieldLabel = 'nomeFantasia'; + fieldValue = 'cnpj'; empresas: Array = [ { diff --git a/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-customer-registration/sample-po-select-customer-registration.component.ts b/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-customer-registration/sample-po-select-customer-registration.component.ts index a4d8c10b0e..9c076f5b86 100644 --- a/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-customer-registration/sample-po-select-customer-registration.component.ts +++ b/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-customer-registration/sample-po-select-customer-registration.component.ts @@ -31,7 +31,8 @@ import { SamplePoSelectCustomerRegistrationService } from './sample-po-select-cu text-transform: uppercase; } ` - ] + ], + standalone: false }) export class SamplePoSelectCustomerRegistrationComponent implements OnDestroy, OnInit { address: string; diff --git a/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-customer-registration/sample-po-select-customer-registration.service.ts b/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-customer-registration/sample-po-select-customer-registration.service.ts index feb086d206..9901b80702 100644 --- a/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-customer-registration/sample-po-select-customer-registration.service.ts +++ b/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-customer-registration/sample-po-select-customer-registration.service.ts @@ -1,7 +1,9 @@ import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class SamplePoSelectCustomerRegistrationService { private url: string = 'https://po-sample-api.onrender.com/v1/sampleSelect'; diff --git a/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-labs/sample-po-select-labs.component.ts b/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-labs/sample-po-select-labs.component.ts index 03d80f82a5..2eec4884c4 100644 --- a/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-labs/sample-po-select-labs.component.ts +++ b/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-labs/sample-po-select-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption, PoSelectOption, PoSelectOptionGroup } from '@po- @Component({ selector: 'sample-po-select-labs', - templateUrl: './sample-po-select-labs.component.html' + templateUrl: './sample-po-select-labs.component.html', + standalone: false }) export class SamplePoSelectLabsComponent implements OnInit { event: string; diff --git a/projects/ui/src/lib/components/po-field/po-switch/po-switch.component.ts b/projects/ui/src/lib/components/po-field/po-switch/po-switch.component.ts index d4ad814f77..e0510803a9 100644 --- a/projects/ui/src/lib/components/po-field/po-switch/po-switch.component.ts +++ b/projects/ui/src/lib/components/po-field/po-switch/po-switch.component.ts @@ -100,7 +100,8 @@ import { PoSwitchLabelPosition } from './po-switch-label-position.enum'; useExisting: forwardRef(() => PoSwitchComponent), multi: true } - ] + ], + standalone: false }) export class PoSwitchComponent extends PoFieldModel { @ViewChild('switchContainer', { static: true }) switchContainer: ElementRef; diff --git a/projects/ui/src/lib/components/po-field/po-switch/samples/sample-po-switch-basic/sample-po-switch-basic.component.ts b/projects/ui/src/lib/components/po-field/po-switch/samples/sample-po-switch-basic/sample-po-switch-basic.component.ts index 9580729aad..6bc64f40f2 100644 --- a/projects/ui/src/lib/components/po-field/po-switch/samples/sample-po-switch-basic/sample-po-switch-basic.component.ts +++ b/projects/ui/src/lib/components/po-field/po-switch/samples/sample-po-switch-basic/sample-po-switch-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-switch-basic', - templateUrl: './sample-po-switch-basic.component.html' + templateUrl: './sample-po-switch-basic.component.html', + standalone: false }) export class SamplePoSwitchBasicComponent {} diff --git a/projects/ui/src/lib/components/po-field/po-switch/samples/sample-po-switch-labs/sample-po-switch-labs.component.ts b/projects/ui/src/lib/components/po-field/po-switch/samples/sample-po-switch-labs/sample-po-switch-labs.component.ts index 800eef9d4b..0b68ff8580 100644 --- a/projects/ui/src/lib/components/po-field/po-switch/samples/sample-po-switch-labs/sample-po-switch-labs.component.ts +++ b/projects/ui/src/lib/components/po-field/po-switch/samples/sample-po-switch-labs/sample-po-switch-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption, PoRadioGroupOption, PoSwitchLabelPosition } from @Component({ selector: 'sample-po-switch-labs', - templateUrl: './sample-po-switch-labs.component.html' + templateUrl: './sample-po-switch-labs.component.html', + standalone: false }) export class SamplePoSwitchLabsComponent implements OnInit { event: string; diff --git a/projects/ui/src/lib/components/po-field/po-switch/samples/sample-po-switch-order-reactive-form/sample-po-switch-order-reactive-form.component.ts b/projects/ui/src/lib/components/po-field/po-switch/samples/sample-po-switch-order-reactive-form/sample-po-switch-order-reactive-form.component.ts index 4fc06b13a6..b7630fff79 100644 --- a/projects/ui/src/lib/components/po-field/po-switch/samples/sample-po-switch-order-reactive-form/sample-po-switch-order-reactive-form.component.ts +++ b/projects/ui/src/lib/components/po-field/po-switch/samples/sample-po-switch-order-reactive-form/sample-po-switch-order-reactive-form.component.ts @@ -5,7 +5,8 @@ import { PoNotificationService, PoSwitchLabelPosition, PoTableColumn } from '@po @Component({ selector: 'sample-po-switch-order-reactive-form', - templateUrl: './sample-po-switch-order-reactive-form.component.html' + templateUrl: './sample-po-switch-order-reactive-form.component.html', + standalone: false }) export class SamplePoSwitchOrderReactiveFormComponent implements OnInit { formOrderSummary: UntypedFormGroup; diff --git a/projects/ui/src/lib/components/po-field/po-switch/samples/sample-po-switch-order/sample-po-switch-order.component.ts b/projects/ui/src/lib/components/po-field/po-switch/samples/sample-po-switch-order/sample-po-switch-order.component.ts index ad1fb743c2..d7beb40439 100644 --- a/projects/ui/src/lib/components/po-field/po-switch/samples/sample-po-switch-order/sample-po-switch-order.component.ts +++ b/projects/ui/src/lib/components/po-field/po-switch/samples/sample-po-switch-order/sample-po-switch-order.component.ts @@ -4,7 +4,8 @@ import { PoNotificationService, PoSwitchLabelPosition, PoTableColumn } from '@po @Component({ selector: 'sample-po-switch-order', - templateUrl: './sample-po-switch-order.component.html' + templateUrl: './sample-po-switch-order.component.html', + standalone: false }) export class SamplePoSwitchOrderComponent { labelPosition: PoSwitchLabelPosition = PoSwitchLabelPosition.Left; diff --git a/projects/ui/src/lib/components/po-field/po-textarea/po-textarea.component.ts b/projects/ui/src/lib/components/po-field/po-textarea/po-textarea.component.ts index aaa898af27..cbf38316ef 100644 --- a/projects/ui/src/lib/components/po-field/po-textarea/po-textarea.component.ts +++ b/projects/ui/src/lib/components/po-field/po-textarea/po-textarea.component.ts @@ -54,7 +54,8 @@ import { PoTextareaBaseComponent } from './po-textarea-base.component'; useExisting: forwardRef(() => PoTextareaComponent), multi: true } - ] + ], + standalone: false }) export class PoTextareaComponent extends PoTextareaBaseComponent implements AfterViewInit { @ViewChild('inp', { read: ElementRef, static: true }) inputEl: ElementRef; diff --git a/projects/ui/src/lib/components/po-field/po-textarea/samples/sample-po-textarea-basic/sample-po-textarea-basic.component.ts b/projects/ui/src/lib/components/po-field/po-textarea/samples/sample-po-textarea-basic/sample-po-textarea-basic.component.ts index 35588debd7..57d7eb7e8a 100644 --- a/projects/ui/src/lib/components/po-field/po-textarea/samples/sample-po-textarea-basic/sample-po-textarea-basic.component.ts +++ b/projects/ui/src/lib/components/po-field/po-textarea/samples/sample-po-textarea-basic/sample-po-textarea-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-textarea-basic', - templateUrl: './sample-po-textarea-basic.component.html' + templateUrl: './sample-po-textarea-basic.component.html', + standalone: false }) export class SamplePoTextareaBasicComponent {} diff --git a/projects/ui/src/lib/components/po-field/po-textarea/samples/sample-po-textarea-email-reactive-form/sample-po-textarea-email-reactive-form.component.ts b/projects/ui/src/lib/components/po-field/po-textarea/samples/sample-po-textarea-email-reactive-form/sample-po-textarea-email-reactive-form.component.ts index ae158d3bcd..7d62afb38c 100644 --- a/projects/ui/src/lib/components/po-field/po-textarea/samples/sample-po-textarea-email-reactive-form/sample-po-textarea-email-reactive-form.component.ts +++ b/projects/ui/src/lib/components/po-field/po-textarea/samples/sample-po-textarea-email-reactive-form/sample-po-textarea-email-reactive-form.component.ts @@ -6,7 +6,8 @@ import { PoPageAction } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-textarea-email-reactive-form', - templateUrl: './sample-po-textarea-email-reactive-form.component.html' + templateUrl: './sample-po-textarea-email-reactive-form.component.html', + standalone: false }) export class SamplePoTextareaEmailReactiveFormComponent implements OnInit { @ViewChild(PoModalComponent, { static: true }) poModal: PoModalComponent; diff --git a/projects/ui/src/lib/components/po-field/po-textarea/samples/sample-po-textarea-email/sample-po-textarea-email.component.ts b/projects/ui/src/lib/components/po-field/po-textarea/samples/sample-po-textarea-email/sample-po-textarea-email.component.ts index 3f20052066..cc6c1bd1da 100644 --- a/projects/ui/src/lib/components/po-field/po-textarea/samples/sample-po-textarea-email/sample-po-textarea-email.component.ts +++ b/projects/ui/src/lib/components/po-field/po-textarea/samples/sample-po-textarea-email/sample-po-textarea-email.component.ts @@ -6,7 +6,8 @@ import { PoPageAction } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-textarea-email', - templateUrl: './sample-po-textarea-email.component.html' + templateUrl: './sample-po-textarea-email.component.html', + standalone: false }) export class SamplePoTextareaEmailComponent { @ViewChild('formEmail', { static: true }) formEmail: UntypedFormControl; diff --git a/projects/ui/src/lib/components/po-field/po-textarea/samples/sample-po-textarea-labs/sample-po-textarea-labs.component.ts b/projects/ui/src/lib/components/po-field/po-textarea/samples/sample-po-textarea-labs/sample-po-textarea-labs.component.ts index 8a32b83cc1..766f511d8e 100644 --- a/projects/ui/src/lib/components/po-field/po-textarea/samples/sample-po-textarea-labs/sample-po-textarea-labs.component.ts +++ b/projects/ui/src/lib/components/po-field/po-textarea/samples/sample-po-textarea-labs/sample-po-textarea-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-textarea-labs', - templateUrl: './sample-po-textarea-labs.component.html' + templateUrl: './sample-po-textarea-labs.component.html', + standalone: false }) export class SamplePoTextareaLabsComponent implements OnInit { event: string; diff --git a/projects/ui/src/lib/components/po-field/po-upload/po-upload-base.component.spec.ts b/projects/ui/src/lib/components/po-field/po-upload/po-upload-base.component.spec.ts index 1ad4ce5500..c1a7bfe2f7 100644 --- a/projects/ui/src/lib/components/po-field/po-upload/po-upload-base.component.spec.ts +++ b/projects/ui/src/lib/components/po-field/po-upload/po-upload-base.component.spec.ts @@ -16,7 +16,8 @@ import { PoUploadService } from './po-upload.service'; @Component({ selector: 'po-upload', - template: ` ` + template: ` `, + standalone: false }) class PoUploadComponent extends PoUploadBaseComponent { constructor(uploadService: PoUploadService) { diff --git a/projects/ui/src/lib/components/po-field/po-upload/po-upload-base.service.ts b/projects/ui/src/lib/components/po-field/po-upload/po-upload-base.service.ts index ae7422153f..3b0318ef51 100644 --- a/projects/ui/src/lib/components/po-field/po-upload/po-upload-base.service.ts +++ b/projects/ui/src/lib/components/po-field/po-upload/po-upload-base.service.ts @@ -12,7 +12,9 @@ import { PoUploadFile } from './po-upload-file'; import { Observable, Subscription } from 'rxjs'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoUploadBaseService { formField: string = 'files'; requests: Array = []; diff --git a/projects/ui/src/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop-area-overlay/po-upload-drag-drop-area-overlay.component.ts b/projects/ui/src/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop-area-overlay/po-upload-drag-drop-area-overlay.component.ts index 443a2a6897..0098ce0bc7 100644 --- a/projects/ui/src/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop-area-overlay/po-upload-drag-drop-area-overlay.component.ts +++ b/projects/ui/src/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop-area-overlay/po-upload-drag-drop-area-overlay.component.ts @@ -15,7 +15,8 @@ import { PoUploadLiterals } from '../../interfaces/po-upload-literals.interface' @Component({ selector: 'po-upload-drag-drop-area-overlay', templateUrl: 'po-upload-drag-drop-area-overlay.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoUploadDragDropAreaOverlayComponent implements AfterViewInit { @ViewChild('DragDropAreaFixed', { read: ElementRef, static: true }) DragDropAreaFixed: ElementRef; diff --git a/projects/ui/src/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop-area/po-upload-drag-drop-area.component.ts b/projects/ui/src/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop-area/po-upload-drag-drop-area.component.ts index 9dbf2d09e7..645639cba6 100644 --- a/projects/ui/src/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop-area/po-upload-drag-drop-area.component.ts +++ b/projects/ui/src/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop-area/po-upload-drag-drop-area.component.ts @@ -5,7 +5,8 @@ import { PoUploadLiterals } from '../../interfaces/po-upload-literals.interface' @Component({ selector: 'po-upload-drag-drop-area', templateUrl: './po-upload-drag-drop-area.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoUploadDragDropAreaComponent { @Input('p-directory-compatible') directoryCompatible: boolean; diff --git a/projects/ui/src/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.component.ts b/projects/ui/src/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.component.ts index cc0412231e..5f0713c28d 100644 --- a/projects/ui/src/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.component.ts +++ b/projects/ui/src/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.component.ts @@ -20,7 +20,8 @@ const PoUploadDragDropHeightMin = 160; @Component({ selector: 'po-upload-drag-drop', templateUrl: './po-upload-drag-drop.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoUploadDragDropComponent { @ViewChild('dragDropOverlay', { read: ElementRef }) dragDropOverlayElement: ElementRef; diff --git a/projects/ui/src/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.directive.spec.ts b/projects/ui/src/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.directive.spec.ts index efd62a79d7..fbbd5c98cd 100644 --- a/projects/ui/src/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.directive.spec.ts +++ b/projects/ui/src/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.directive.spec.ts @@ -5,7 +5,8 @@ import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testin import { PoUploadDragDropDirective } from './po-upload-drag-drop.directive'; @Component({ - template: `
` + template: `
`, + standalone: false }) export class TestComponent {} diff --git a/projects/ui/src/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.directive.ts b/projects/ui/src/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.directive.ts index 74346b47b6..30938344eb 100644 --- a/projects/ui/src/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.directive.ts +++ b/projects/ui/src/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.directive.ts @@ -6,7 +6,8 @@ import { PoUploadLiterals } from '../interfaces/po-upload-literals.interface'; @Directive({ selector: '[p-upload-drag-drop]', - providers: [PoI18nPipe] + providers: [PoI18nPipe], + standalone: false }) export class PoUploadDragDropDirective { @Input('p-area-element') areaElement: HTMLElement; diff --git a/projects/ui/src/lib/components/po-field/po-upload/po-upload-file-restrictions/po-upload-file-restrictions.component.ts b/projects/ui/src/lib/components/po-field/po-upload/po-upload-file-restrictions/po-upload-file-restrictions.component.ts index 0334cf4b15..1190f68810 100644 --- a/projects/ui/src/lib/components/po-field/po-upload/po-upload-file-restrictions/po-upload-file-restrictions.component.ts +++ b/projects/ui/src/lib/components/po-field/po-upload/po-upload-file-restrictions/po-upload-file-restrictions.component.ts @@ -9,7 +9,8 @@ import { poUploadLiteralsDefault } from '../po-upload-base.component'; @Component({ selector: 'po-upload-file-restrictions', templateUrl: './po-upload-file-restrictions.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoUploadFileRestrictionsComponent implements OnInit { @Input('p-max-files') maxFiles: number; diff --git a/projects/ui/src/lib/components/po-field/po-upload/po-upload.component.ts b/projects/ui/src/lib/components/po-field/po-upload/po-upload.component.ts index 45c1bae39e..da9e0808e8 100644 --- a/projects/ui/src/lib/components/po-field/po-upload/po-upload.component.ts +++ b/projects/ui/src/lib/components/po-field/po-upload/po-upload.component.ts @@ -65,7 +65,8 @@ import { PoUploadService } from './po-upload.service'; useExisting: forwardRef(() => PoUploadComponent), multi: true } - ] + ], + standalone: false }) export class PoUploadComponent extends PoUploadBaseComponent implements AfterViewInit { @ViewChild('inputFile', { read: ElementRef, static: true }) private inputFile: ElementRef; diff --git a/projects/ui/src/lib/components/po-field/po-upload/po-upload.service.ts b/projects/ui/src/lib/components/po-field/po-upload/po-upload.service.ts index 12b0a85c11..22e12dd8b2 100644 --- a/projects/ui/src/lib/components/po-field/po-upload/po-upload.service.ts +++ b/projects/ui/src/lib/components/po-field/po-upload/po-upload.service.ts @@ -2,5 +2,7 @@ import { Injectable } from '@angular/core'; import { PoUploadBaseService } from './po-upload-base.service'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoUploadService extends PoUploadBaseService {} diff --git a/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-basic/sample-po-upload-basic.component.ts b/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-basic/sample-po-upload-basic.component.ts index abde6f2446..ad1dccf509 100644 --- a/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-basic/sample-po-upload-basic.component.ts +++ b/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-basic/sample-po-upload-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-upload-basic', - templateUrl: 'sample-po-upload-basic.component.html' + templateUrl: 'sample-po-upload-basic.component.html', + standalone: false }) export class SamplePoUploadBasicComponent {} diff --git a/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-labs/sample-po-upload-labs.component.ts b/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-labs/sample-po-upload-labs.component.ts index 79c9197cd9..a1e6059cf9 100644 --- a/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-labs/sample-po-upload-labs.component.ts +++ b/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-labs/sample-po-upload-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption, PoUploadFileRestrictions, PoUploadLiterals } fro @Component({ selector: 'sample-po-upload-labs', - templateUrl: './sample-po-upload-labs.component.html' + templateUrl: './sample-po-upload-labs.component.html', + standalone: false }) export class SamplePoUploadLabsComponent implements OnInit { allowedExtensions: string; diff --git a/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-resume-drag-drop/sample-po-upload-resume-drag-drop.component.ts b/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-resume-drag-drop/sample-po-upload-resume-drag-drop.component.ts index 4b9e05cc56..28d5d2289a 100644 --- a/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-resume-drag-drop/sample-po-upload-resume-drag-drop.component.ts +++ b/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-resume-drag-drop/sample-po-upload-resume-drag-drop.component.ts @@ -5,7 +5,8 @@ import { PoNotificationService } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-upload-resume-drag-drop', - templateUrl: 'sample-po-upload-resume-drag-drop.component.html' + templateUrl: 'sample-po-upload-resume-drag-drop.component.html', + standalone: false }) export class SamplePoUploadResumeDragDropComponent implements OnInit { @ViewChild('formOpportunity', { static: true }) formOpportunity: UntypedFormControl; diff --git a/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-resume/sample-po-upload-resume.component.ts b/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-resume/sample-po-upload-resume.component.ts index fe661d9826..bf70f3780f 100644 --- a/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-resume/sample-po-upload-resume.component.ts +++ b/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-resume/sample-po-upload-resume.component.ts @@ -5,7 +5,8 @@ import { PoNotificationService } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-upload-resume', - templateUrl: 'sample-po-upload-resume.component.html' + templateUrl: 'sample-po-upload-resume.component.html', + standalone: false }) export class SamplePoUploadResumeComponent implements OnInit { @ViewChild('formOpportunity', { static: true }) formOpportunity: UntypedFormControl; diff --git a/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-rs/sample-po-upload-rs.component.ts b/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-rs/sample-po-upload-rs.component.ts index bd644c1eee..9199322ade 100644 --- a/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-rs/sample-po-upload-rs.component.ts +++ b/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-rs/sample-po-upload-rs.component.ts @@ -5,7 +5,8 @@ import { PoModalAction, PoModalComponent, PoStepperComponent, PoUploadComponent @Component({ selector: 'sample-po-upload-rs', - templateUrl: 'sample-po-upload-rs.component.html' + templateUrl: 'sample-po-upload-rs.component.html', + standalone: false }) export class SamplePoUploadRsComponent implements OnInit { @ViewChild('upload', { static: true }) upload: PoUploadComponent; diff --git a/projects/ui/src/lib/components/po-field/po-url/po-url.component.ts b/projects/ui/src/lib/components/po-field/po-url/po-url.component.ts index 1917c67fc5..18d9baf311 100644 --- a/projects/ui/src/lib/components/po-field/po-url/po-url.component.ts +++ b/projects/ui/src/lib/components/po-field/po-url/po-url.component.ts @@ -52,7 +52,8 @@ import { PoInputGeneric } from '../po-input-generic/po-input-generic'; useExisting: forwardRef(() => PoUrlComponent), multi: true } - ] + ], + standalone: false }) export class PoUrlComponent extends PoInputGeneric implements AfterViewInit, OnDestroy { id = `po-url[${uuid()}]`; diff --git a/projects/ui/src/lib/components/po-field/po-url/samples/sample-po-url-basic/sample-po-url-basic.component.ts b/projects/ui/src/lib/components/po-field/po-url/samples/sample-po-url-basic/sample-po-url-basic.component.ts index 1b7a9d9b8b..0bf1e8f7fe 100644 --- a/projects/ui/src/lib/components/po-field/po-url/samples/sample-po-url-basic/sample-po-url-basic.component.ts +++ b/projects/ui/src/lib/components/po-field/po-url/samples/sample-po-url-basic/sample-po-url-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-url-basic', - templateUrl: './sample-po-url-basic.component.html' + templateUrl: './sample-po-url-basic.component.html', + standalone: false }) export class SamplePoUrlBasicComponent {} diff --git a/projects/ui/src/lib/components/po-field/po-url/samples/sample-po-url-labs/sample-po-url-labs.component.ts b/projects/ui/src/lib/components/po-field/po-url/samples/sample-po-url-labs/sample-po-url-labs.component.ts index 3852fa9ccc..8b7065c123 100644 --- a/projects/ui/src/lib/components/po-field/po-url/samples/sample-po-url-labs/sample-po-url-labs.component.ts +++ b/projects/ui/src/lib/components/po-field/po-url/samples/sample-po-url-labs/sample-po-url-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-url-labs', - templateUrl: './sample-po-url-labs.component.html' + templateUrl: './sample-po-url-labs.component.html', + standalone: false }) export class SamplePoUrlLabsComponent implements OnInit { errorPattern: string; diff --git a/projects/ui/src/lib/components/po-field/po-url/samples/sample-po-url-shortener/sample-po-url-shortener.component.ts b/projects/ui/src/lib/components/po-field/po-url/samples/sample-po-url-shortener/sample-po-url-shortener.component.ts index fbe3eb6ffb..4cecba7edf 100644 --- a/projects/ui/src/lib/components/po-field/po-url/samples/sample-po-url-shortener/sample-po-url-shortener.component.ts +++ b/projects/ui/src/lib/components/po-field/po-url/samples/sample-po-url-shortener/sample-po-url-shortener.component.ts @@ -4,7 +4,8 @@ import { PoNotificationService, PoTableColumn } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-url-shortener', - templateUrl: './sample-po-url-shortener.component.html' + templateUrl: './sample-po-url-shortener.component.html', + standalone: false }) export class SamplePoUrlShortenerComponent { @ViewChild('boxUrl', { read: ElementRef, static: true }) boxUrlElement; diff --git a/projects/ui/src/lib/components/po-gauge/po-gauge-description/po-gauge-description.component.ts b/projects/ui/src/lib/components/po-gauge/po-gauge-description/po-gauge-description.component.ts index d01b74de5a..45ddaeabf3 100644 --- a/projects/ui/src/lib/components/po-gauge/po-gauge-description/po-gauge-description.component.ts +++ b/projects/ui/src/lib/components/po-gauge/po-gauge-description/po-gauge-description.component.ts @@ -2,7 +2,8 @@ import { Component, ElementRef, Input, ViewChild } from '@angular/core'; @Component({ selector: 'po-gauge-description', - templateUrl: './po-gauge-description.component.html' + templateUrl: './po-gauge-description.component.html', + standalone: false }) export class PoGaugeDescriptionComponent { @Input('p-description') description: string; diff --git a/projects/ui/src/lib/components/po-gauge/po-gauge-legend/po-gauge-legend.component.ts b/projects/ui/src/lib/components/po-gauge/po-gauge-legend/po-gauge-legend.component.ts index 4418bd6e81..471173e61b 100644 --- a/projects/ui/src/lib/components/po-gauge/po-gauge-legend/po-gauge-legend.component.ts +++ b/projects/ui/src/lib/components/po-gauge/po-gauge-legend/po-gauge-legend.component.ts @@ -4,7 +4,8 @@ import { PoGaugeRanges } from '../interfaces/po-gauge-ranges.interface'; @Component({ selector: 'po-gauge-legend', - templateUrl: './po-gauge-legend.component.html' + templateUrl: './po-gauge-legend.component.html', + standalone: false }) export class PoGaugeLegendComponent { private _ranges: Array; diff --git a/projects/ui/src/lib/components/po-gauge/po-gauge-svg/po-gauge-path/po-gauge-path.component.ts b/projects/ui/src/lib/components/po-gauge/po-gauge-svg/po-gauge-path/po-gauge-path.component.ts index 47b91fe841..368850ea5b 100644 --- a/projects/ui/src/lib/components/po-gauge/po-gauge-svg/po-gauge-path/po-gauge-path.component.ts +++ b/projects/ui/src/lib/components/po-gauge/po-gauge-svg/po-gauge-path/po-gauge-path.component.ts @@ -4,7 +4,8 @@ import { PoGaugeCoordinates } from '../../interfaces/po-gauge-coordinates.interf @Component({ selector: '[po-gauge-path]', - templateUrl: './po-gauge-path.component.svg' + templateUrl: './po-gauge-path.component.svg', + standalone: false }) export class PoGaugePathComponent { @Input('p-base-coordinates') baseCoordinates: PoGaugeCoordinates; diff --git a/projects/ui/src/lib/components/po-gauge/po-gauge-svg/po-gauge-pointer/po-gauge-pointer.component.ts b/projects/ui/src/lib/components/po-gauge/po-gauge-svg/po-gauge-pointer/po-gauge-pointer.component.ts index cda760c813..aa6cb636f9 100644 --- a/projects/ui/src/lib/components/po-gauge/po-gauge-svg/po-gauge-pointer/po-gauge-pointer.component.ts +++ b/projects/ui/src/lib/components/po-gauge/po-gauge-svg/po-gauge-pointer/po-gauge-pointer.component.ts @@ -3,7 +3,8 @@ import { PoGaugeCoordinates } from '../../interfaces/po-gauge-coordinates.interf @Component({ selector: '[po-gauge-pointer]', - templateUrl: './po-gauge-pointer.component.svg' + templateUrl: './po-gauge-pointer.component.svg', + standalone: false }) export class PoGaugePointerComponent implements AfterViewInit { @ViewChild('pointer') pointer: ElementRef; diff --git a/projects/ui/src/lib/components/po-gauge/po-gauge-svg/po-gauge-svg.component.ts b/projects/ui/src/lib/components/po-gauge/po-gauge-svg/po-gauge-svg.component.ts index 81108eb95e..3ffb25e4ed 100644 --- a/projects/ui/src/lib/components/po-gauge/po-gauge-svg/po-gauge-svg.component.ts +++ b/projects/ui/src/lib/components/po-gauge/po-gauge-svg/po-gauge-svg.component.ts @@ -12,7 +12,8 @@ export const poGaugeStartAngle = -Math.PI; @Component({ selector: 'po-gauge-svg', - templateUrl: './po-gauge-svg.component.html' + templateUrl: './po-gauge-svg.component.html', + standalone: false }) export class PoGaugeSvgComponent implements OnChanges { @Input('p-container') container: PoGaugeSvgContainer; diff --git a/projects/ui/src/lib/components/po-gauge/po-gauge-title/po-gauge-title.component.ts b/projects/ui/src/lib/components/po-gauge/po-gauge-title/po-gauge-title.component.ts index d87b5a759b..f6d8612a4a 100644 --- a/projects/ui/src/lib/components/po-gauge/po-gauge-title/po-gauge-title.component.ts +++ b/projects/ui/src/lib/components/po-gauge/po-gauge-title/po-gauge-title.component.ts @@ -2,7 +2,8 @@ import { Component, Input, OnInit } from '@angular/core'; @Component({ selector: 'po-gauge-title', - templateUrl: './po-gauge-title.component.html' + templateUrl: './po-gauge-title.component.html', + standalone: false }) export class PoGaugeTitleComponent { @Input('p-title') title?: string; diff --git a/projects/ui/src/lib/components/po-gauge/po-gauge.component.ts b/projects/ui/src/lib/components/po-gauge/po-gauge.component.ts index 64fbe77ed6..1cfda05601 100644 --- a/projects/ui/src/lib/components/po-gauge/po-gauge.component.ts +++ b/projects/ui/src/lib/components/po-gauge/po-gauge.component.ts @@ -27,7 +27,8 @@ import { PoGaugeSvgContainer } from './interfaces/po-gauge-svg-container.interfa */ @Component({ selector: 'po-gauge', - templateUrl: './po-gauge.component.html' + templateUrl: './po-gauge.component.html', + standalone: false }) export class PoGaugeComponent extends PoGaugeBaseComponent implements DoCheck { @ViewChild('descriptionEl', { read: ElementRef }) descriptionEl: ElementRef; diff --git a/projects/ui/src/lib/components/po-gauge/samples/sample-po-gauge-basic/sample-po-gauge-basic.component.ts b/projects/ui/src/lib/components/po-gauge/samples/sample-po-gauge-basic/sample-po-gauge-basic.component.ts index cbacc1cfa7..36969c29e4 100644 --- a/projects/ui/src/lib/components/po-gauge/samples/sample-po-gauge-basic/sample-po-gauge-basic.component.ts +++ b/projects/ui/src/lib/components/po-gauge/samples/sample-po-gauge-basic/sample-po-gauge-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-gauge-basic', - templateUrl: './sample-po-gauge-basic.component.html' + templateUrl: './sample-po-gauge-basic.component.html', + standalone: false }) export class SamplePoGaugeBasicComponent {} diff --git a/projects/ui/src/lib/components/po-gauge/samples/sample-po-gauge-labs/sample-po-gauge-labs.component.ts b/projects/ui/src/lib/components/po-gauge/samples/sample-po-gauge-labs/sample-po-gauge-labs.component.ts index 9269412349..993b47814d 100644 --- a/projects/ui/src/lib/components/po-gauge/samples/sample-po-gauge-labs/sample-po-gauge-labs.component.ts +++ b/projects/ui/src/lib/components/po-gauge/samples/sample-po-gauge-labs/sample-po-gauge-labs.component.ts @@ -4,7 +4,8 @@ import { PoGaugeRanges } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-gauge-labs', - templateUrl: './sample-po-gauge-labs.component.html' + templateUrl: './sample-po-gauge-labs.component.html', + standalone: false }) export class SamplePoGaugeLabsComponent implements OnInit { description: string; diff --git a/projects/ui/src/lib/components/po-gauge/samples/sample-po-gauge-summary/sample-po-gauge-summary.component.ts b/projects/ui/src/lib/components/po-gauge/samples/sample-po-gauge-summary/sample-po-gauge-summary.component.ts index 14e7f81d13..562292fde0 100644 --- a/projects/ui/src/lib/components/po-gauge/samples/sample-po-gauge-summary/sample-po-gauge-summary.component.ts +++ b/projects/ui/src/lib/components/po-gauge/samples/sample-po-gauge-summary/sample-po-gauge-summary.component.ts @@ -4,7 +4,8 @@ import { PoGaugeRanges } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-gauge-summary', - templateUrl: './sample-po-gauge-summary.component.html' + templateUrl: './sample-po-gauge-summary.component.html', + standalone: false }) export class SamplePoGaugeSummaryComponent { salesRanges: Array = [ diff --git a/projects/ui/src/lib/components/po-grid/po-grid-cell-action/po-grid-cell-action.component.ts b/projects/ui/src/lib/components/po-grid/po-grid-cell-action/po-grid-cell-action.component.ts index 5695bb0fd4..d3b7f37012 100644 --- a/projects/ui/src/lib/components/po-grid/po-grid-cell-action/po-grid-cell-action.component.ts +++ b/projects/ui/src/lib/components/po-grid/po-grid-cell-action/po-grid-cell-action.component.ts @@ -2,7 +2,8 @@ import { Component, Input } from '@angular/core'; @Component({ selector: 'po-grid-cell-action', - templateUrl: './po-grid-cell-action.component.html' + templateUrl: './po-grid-cell-action.component.html', + standalone: false }) export class PoGridCellActionComponent { @Input('p-position') position?: string = ''; diff --git a/projects/ui/src/lib/components/po-grid/po-grid-cell/po-grid-cell.component.ts b/projects/ui/src/lib/components/po-grid/po-grid-cell/po-grid-cell.component.ts index 8e1d16ab84..ef63c64ef7 100644 --- a/projects/ui/src/lib/components/po-grid/po-grid-cell/po-grid-cell.component.ts +++ b/projects/ui/src/lib/components/po-grid/po-grid-cell/po-grid-cell.component.ts @@ -2,7 +2,8 @@ import { Component, Input, ViewChild, ElementRef, ChangeDetectorRef, Output, Eve @Component({ selector: 'po-grid-cell', - templateUrl: './po-grid-cell.component.html' + templateUrl: './po-grid-cell.component.html', + standalone: false }) export class PoGridCellComponent { @Input('p-align') align?: string = 'left'; diff --git a/projects/ui/src/lib/components/po-grid/po-grid-head/po-grid-head.component.ts b/projects/ui/src/lib/components/po-grid/po-grid-head/po-grid-head.component.ts index cf3090d6e4..8d77141878 100644 --- a/projects/ui/src/lib/components/po-grid/po-grid-head/po-grid-head.component.ts +++ b/projects/ui/src/lib/components/po-grid/po-grid-head/po-grid-head.component.ts @@ -2,7 +2,8 @@ import { Component, Input } from '@angular/core'; @Component({ selector: 'po-grid-head', - templateUrl: './po-grid-head.component.html' + templateUrl: './po-grid-head.component.html', + standalone: false }) export class PoGridHeadComponent { @Input('p-align') align?: string = 'left'; diff --git a/projects/ui/src/lib/components/po-grid/po-grid.component.ts b/projects/ui/src/lib/components/po-grid/po-grid.component.ts index deb730ce31..24062efedd 100644 --- a/projects/ui/src/lib/components/po-grid/po-grid.component.ts +++ b/projects/ui/src/lib/components/po-grid/po-grid.component.ts @@ -33,7 +33,8 @@ import { PoGridRowActions } from './po-grid-row-actions.interface'; */ @Component({ selector: 'po-grid', - templateUrl: './po-grid.component.html' + templateUrl: './po-grid.component.html', + standalone: false }) export class PoGridComponent implements OnDestroy { @ViewChild('table', { static: true }) tableElement: ElementRef; diff --git a/projects/ui/src/lib/components/po-grid/samples/sample-po-grid-basic/sample-po-grid-basic.component.ts b/projects/ui/src/lib/components/po-grid/samples/sample-po-grid-basic/sample-po-grid-basic.component.ts index ace8f078db..d058aaf36f 100644 --- a/projects/ui/src/lib/components/po-grid/samples/sample-po-grid-basic/sample-po-grid-basic.component.ts +++ b/projects/ui/src/lib/components/po-grid/samples/sample-po-grid-basic/sample-po-grid-basic.component.ts @@ -2,7 +2,8 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-grid-basic', - templateUrl: './sample-po-grid-basic.component.html' + templateUrl: './sample-po-grid-basic.component.html', + standalone: false }) export class SamplePoGridBasicComponent { rowActions = { diff --git a/projects/ui/src/lib/components/po-icon/po-icon.component.ts b/projects/ui/src/lib/components/po-icon/po-icon.component.ts index 2c2a86385e..41ac876068 100644 --- a/projects/ui/src/lib/components/po-icon/po-icon.component.ts +++ b/projects/ui/src/lib/components/po-icon/po-icon.component.ts @@ -12,7 +12,8 @@ import { ICONS_DICTIONARY, PhosphorIconDictionary } from './po-icon-dictionary'; @Component({ selector: 'po-icon', templateUrl: './po-icon.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoIconComponent { class: string; diff --git a/projects/ui/src/lib/components/po-image/po-image.component.ts b/projects/ui/src/lib/components/po-image/po-image.component.ts index 53a9973f0d..88a7d024e3 100644 --- a/projects/ui/src/lib/components/po-image/po-image.component.ts +++ b/projects/ui/src/lib/components/po-image/po-image.component.ts @@ -25,6 +25,7 @@ import { PoImageBaseComponent } from './po-image-base.component'; @Component({ selector: 'po-image', - templateUrl: './po-image.component.html' + templateUrl: './po-image.component.html', + standalone: false }) export class PoImageComponent extends PoImageBaseComponent {} diff --git a/projects/ui/src/lib/components/po-image/samples/sample-po-image-basic/sample-po-image-basic.component.ts b/projects/ui/src/lib/components/po-image/samples/sample-po-image-basic/sample-po-image-basic.component.ts index 277e0ee789..b389cea436 100644 --- a/projects/ui/src/lib/components/po-image/samples/sample-po-image-basic/sample-po-image-basic.component.ts +++ b/projects/ui/src/lib/components/po-image/samples/sample-po-image-basic/sample-po-image-basic.component.ts @@ -2,7 +2,8 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-image-basic', - templateUrl: './sample-po-image-basic.component.html' + templateUrl: './sample-po-image-basic.component.html', + standalone: false }) export class SamplePoImageBasicComponent { srcImage = 'https://raw.githubusercontent.com/po-ui/po-angular/master/docs/assets/po-logos/po_color_bg.svg'; diff --git a/projects/ui/src/lib/components/po-image/samples/sample-po-image-labs/sample-po-image-labs.component.ts b/projects/ui/src/lib/components/po-image/samples/sample-po-image-labs/sample-po-image-labs.component.ts index c4e1d3973f..ad6b9b4c0b 100644 --- a/projects/ui/src/lib/components/po-image/samples/sample-po-image-labs/sample-po-image-labs.component.ts +++ b/projects/ui/src/lib/components/po-image/samples/sample-po-image-labs/sample-po-image-labs.component.ts @@ -2,7 +2,8 @@ import { Component, OnInit } from '@angular/core'; @Component({ selector: 'sample-po-image-labs', - templateUrl: './sample-po-image-labs.component.html' + templateUrl: './sample-po-image-labs.component.html', + standalone: false }) export class SamplePoImageLabsComponent implements OnInit { alt: string; diff --git a/projects/ui/src/lib/components/po-image/samples/sample-po-image-travel/sample-po-image-travel.component.ts b/projects/ui/src/lib/components/po-image/samples/sample-po-image-travel/sample-po-image-travel.component.ts index 3071d90118..d288aa1b73 100644 --- a/projects/ui/src/lib/components/po-image/samples/sample-po-image-travel/sample-po-image-travel.component.ts +++ b/projects/ui/src/lib/components/po-image/samples/sample-po-image-travel/sample-po-image-travel.component.ts @@ -4,7 +4,8 @@ import { PoDatepickerComponent, PoNotificationService, PoSelectOption } from '@p @Component({ selector: 'sample-po-image-travel', - templateUrl: './sample-po-image-travel.component.html' + templateUrl: './sample-po-image-travel.component.html', + standalone: false }) export class SamplePoImageTravelComponent { @ViewChild('bookingForm', { static: true }) form: NgForm; diff --git a/projects/ui/src/lib/components/po-info/po-info.component.ts b/projects/ui/src/lib/components/po-info/po-info.component.ts index 9bd46f1a16..773d1cb758 100644 --- a/projects/ui/src/lib/components/po-info/po-info.component.ts +++ b/projects/ui/src/lib/components/po-info/po-info.component.ts @@ -27,7 +27,8 @@ import { PoInfoBaseComponent } from './po-info-base.component'; @Component({ selector: 'po-info', templateUrl: './po-info.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoInfoComponent extends PoInfoBaseComponent { get isExternalLink() { diff --git a/projects/ui/src/lib/components/po-info/samples/sample-po-info-basic/sample-po-info-basic.component.ts b/projects/ui/src/lib/components/po-info/samples/sample-po-info-basic/sample-po-info-basic.component.ts index 8276e580d7..01d5b93ec3 100644 --- a/projects/ui/src/lib/components/po-info/samples/sample-po-info-basic/sample-po-info-basic.component.ts +++ b/projects/ui/src/lib/components/po-info/samples/sample-po-info-basic/sample-po-info-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-info-basic', - templateUrl: './sample-po-info-basic.component.html' + templateUrl: './sample-po-info-basic.component.html', + standalone: false }) export class SamplePoInfoBasicComponent {} diff --git a/projects/ui/src/lib/components/po-info/samples/sample-po-info-labs/sample-po-info-labs.component.ts b/projects/ui/src/lib/components/po-info/samples/sample-po-info-labs/sample-po-info-labs.component.ts index 91b65aa015..453969c7a7 100644 --- a/projects/ui/src/lib/components/po-info/samples/sample-po-info-labs/sample-po-info-labs.component.ts +++ b/projects/ui/src/lib/components/po-info/samples/sample-po-info-labs/sample-po-info-labs.component.ts @@ -4,7 +4,8 @@ import { PoInfoOrientation, PoRadioGroupOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-info-labs', - templateUrl: './sample-po-info-labs.component.html' + templateUrl: './sample-po-info-labs.component.html', + standalone: false }) export class SamplePoInfoLabsComponent implements OnInit { label: string; diff --git a/projects/ui/src/lib/components/po-label/po-label.component.ts b/projects/ui/src/lib/components/po-label/po-label.component.ts index 30573003ea..b4f1c894a4 100644 --- a/projects/ui/src/lib/components/po-label/po-label.component.ts +++ b/projects/ui/src/lib/components/po-label/po-label.component.ts @@ -9,7 +9,8 @@ import { convertToBoolean } from '../../utils/util'; @Component({ selector: 'po-label', - templateUrl: './po-label.component.html' + templateUrl: './po-label.component.html', + standalone: false }) export class PoLabelComponent { private _disabled?: boolean = false; diff --git a/projects/ui/src/lib/components/po-link/po-link.component.ts b/projects/ui/src/lib/components/po-link/po-link.component.ts index af0899f08f..ac6900119d 100644 --- a/projects/ui/src/lib/components/po-link/po-link.component.ts +++ b/projects/ui/src/lib/components/po-link/po-link.component.ts @@ -24,7 +24,8 @@ import { PoLinkBaseComponent } from './po-link-base.component'; */ @Component({ selector: 'po-link', - templateUrl: './po-link.component.html' + templateUrl: './po-link.component.html', + standalone: false }) export class PoLinkComponent extends PoLinkBaseComponent { onClick() { diff --git a/projects/ui/src/lib/components/po-link/samples/sample-po-link-basic/sample-po-link-basic.component.ts b/projects/ui/src/lib/components/po-link/samples/sample-po-link-basic/sample-po-link-basic.component.ts index fe28aeb99b..f3f21b06bd 100644 --- a/projects/ui/src/lib/components/po-link/samples/sample-po-link-basic/sample-po-link-basic.component.ts +++ b/projects/ui/src/lib/components/po-link/samples/sample-po-link-basic/sample-po-link-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-link-basic', - templateUrl: './sample-po-link-basic.component.html' + templateUrl: './sample-po-link-basic.component.html', + standalone: false }) export class SamplePoLinkBasicComponent {} diff --git a/projects/ui/src/lib/components/po-link/samples/sample-po-link-heroes/sample-po-link-heroes.component.ts b/projects/ui/src/lib/components/po-link/samples/sample-po-link-heroes/sample-po-link-heroes.component.ts index 84839304a5..2638953e09 100644 --- a/projects/ui/src/lib/components/po-link/samples/sample-po-link-heroes/sample-po-link-heroes.component.ts +++ b/projects/ui/src/lib/components/po-link/samples/sample-po-link-heroes/sample-po-link-heroes.component.ts @@ -4,7 +4,8 @@ import { PoTableColumn, PoModalComponent } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-link-heroes', - templateUrl: './sample-po-link-heroes.component.html' + templateUrl: './sample-po-link-heroes.component.html', + standalone: false }) export class SamplePoLinkHeroesComponent { @ViewChild(PoModalComponent, { static: true }) poModal: PoModalComponent; diff --git a/projects/ui/src/lib/components/po-link/samples/sample-po-link-labs/sample-po-link-labs.component.ts b/projects/ui/src/lib/components/po-link/samples/sample-po-link-labs/sample-po-link-labs.component.ts index fcd919604d..9a11315dbd 100644 --- a/projects/ui/src/lib/components/po-link/samples/sample-po-link-labs/sample-po-link-labs.component.ts +++ b/projects/ui/src/lib/components/po-link/samples/sample-po-link-labs/sample-po-link-labs.component.ts @@ -2,7 +2,8 @@ import { Component, OnInit } from '@angular/core'; @Component({ selector: 'sample-po-link-labs', - templateUrl: './sample-po-link-labs.component.html' + templateUrl: './sample-po-link-labs.component.html', + standalone: false }) export class SamplePoLinkLabsComponent implements OnInit { url: string; diff --git a/projects/ui/src/lib/components/po-list-view/po-list-view-content-template/po-list-view-content-template.directive.ts b/projects/ui/src/lib/components/po-list-view/po-list-view-content-template/po-list-view-content-template.directive.ts index 254da9ad85..b287468e63 100644 --- a/projects/ui/src/lib/components/po-list-view/po-list-view-content-template/po-list-view-content-template.directive.ts +++ b/projects/ui/src/lib/components/po-list-view/po-list-view-content-template/po-list-view-content-template.directive.ts @@ -83,7 +83,8 @@ import { Directive, Input, TemplateRef } from '@angular/core'; * ``` */ @Directive({ - selector: '[p-list-view-content-template]' + selector: '[p-list-view-content-template]', + standalone: false }) export class PoListViewContentTemplateDirective { /** diff --git a/projects/ui/src/lib/components/po-list-view/po-list-view-detail-template/po-list-view-detail-template.directive.ts b/projects/ui/src/lib/components/po-list-view/po-list-view-detail-template/po-list-view-detail-template.directive.ts index fb51569f4b..efc73c6a9e 100644 --- a/projects/ui/src/lib/components/po-list-view/po-list-view-detail-template/po-list-view-detail-template.directive.ts +++ b/projects/ui/src/lib/components/po-list-view/po-list-view-detail-template/po-list-view-detail-template.directive.ts @@ -46,7 +46,8 @@ import { Directive, TemplateRef, Input } from '@angular/core'; * ``` */ @Directive({ - selector: '[p-list-view-detail-template]' + selector: '[p-list-view-detail-template]', + standalone: false }) export class PoListViewDetailTemplateDirective { /** diff --git a/projects/ui/src/lib/components/po-list-view/po-list-view.component.ts b/projects/ui/src/lib/components/po-list-view/po-list-view.component.ts index 50c0ee9354..31151fe618 100644 --- a/projects/ui/src/lib/components/po-list-view/po-list-view.component.ts +++ b/projects/ui/src/lib/components/po-list-view/po-list-view.component.ts @@ -49,7 +49,8 @@ import { PoListViewDetailTemplateDirective } from './po-list-view-detail-templat transition('* => void', [style({ height: '*', 'overflow-y': 'hidden' }), animate(100, style({ height: 0 }))]), transition('void => *', [style({ height: '0' }), animate(100, style({ height: '*' }))]) ]) - ] + ], + standalone: false }) export class PoListViewComponent extends PoListViewBaseComponent implements AfterContentInit, DoCheck { @ContentChild(PoListViewContentTemplateDirective, { static: true }) diff --git a/projects/ui/src/lib/components/po-list-view/samples/sample-po-list-view-basic/sample-po-list-view-basic.component.ts b/projects/ui/src/lib/components/po-list-view/samples/sample-po-list-view-basic/sample-po-list-view-basic.component.ts index acb2d6948a..f5e6cfc5ce 100644 --- a/projects/ui/src/lib/components/po-list-view/samples/sample-po-list-view-basic/sample-po-list-view-basic.component.ts +++ b/projects/ui/src/lib/components/po-list-view/samples/sample-po-list-view-basic/sample-po-list-view-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-list-view-basic', - templateUrl: './sample-po-list-view-basic.component.html' + templateUrl: './sample-po-list-view-basic.component.html', + standalone: false }) export class SamplePoListViewBasicComponent {} diff --git a/projects/ui/src/lib/components/po-list-view/samples/sample-po-list-view-hiring-processes/sample-po-list-view-hiring-processes.component.ts b/projects/ui/src/lib/components/po-list-view/samples/sample-po-list-view-hiring-processes/sample-po-list-view-hiring-processes.component.ts index 30bf2bda24..ee35454de8 100644 --- a/projects/ui/src/lib/components/po-list-view/samples/sample-po-list-view-hiring-processes/sample-po-list-view-hiring-processes.component.ts +++ b/projects/ui/src/lib/components/po-list-view/samples/sample-po-list-view-hiring-processes/sample-po-list-view-hiring-processes.component.ts @@ -13,7 +13,8 @@ import { SamplePoListViewHiringProcessesService } from './sample-po-list-view-hi @Component({ selector: 'sample-po-list-view-hiring-processes', templateUrl: 'sample-po-list-view-hiring-processes.component.html', - providers: [SamplePoListViewHiringProcessesService] + providers: [SamplePoListViewHiringProcessesService], + standalone: false }) export class SamplePoListViewHiringProcessesComponent implements OnInit { @ViewChild('detailsModal', { static: true }) detailsModalElement: PoModalComponent; diff --git a/projects/ui/src/lib/components/po-list-view/samples/sample-po-list-view-hiring-processes/sample-po-list-view-hiring-processes.service.ts b/projects/ui/src/lib/components/po-list-view/samples/sample-po-list-view-hiring-processes/sample-po-list-view-hiring-processes.service.ts index 7d6af84d89..40dbfffc70 100644 --- a/projects/ui/src/lib/components/po-list-view/samples/sample-po-list-view-hiring-processes/sample-po-list-view-hiring-processes.service.ts +++ b/projects/ui/src/lib/components/po-list-view/samples/sample-po-list-view-hiring-processes/sample-po-list-view-hiring-processes.service.ts @@ -1,6 +1,8 @@ import { Injectable } from '@angular/core'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class SamplePoListViewHiringProcessesService { getItems() { return [ diff --git a/projects/ui/src/lib/components/po-list-view/samples/sample-po-list-view-labs/sample-po-list-view-labs.component.ts b/projects/ui/src/lib/components/po-list-view/samples/sample-po-list-view-labs/sample-po-list-view-labs.component.ts index 1af0c22540..14b3f3fa10 100644 --- a/projects/ui/src/lib/components/po-list-view/samples/sample-po-list-view-labs/sample-po-list-view-labs.component.ts +++ b/projects/ui/src/lib/components/po-list-view/samples/sample-po-list-view-labs/sample-po-list-view-labs.component.ts @@ -10,7 +10,8 @@ import { @Component({ selector: 'sample-po-list-view-labs', - templateUrl: './sample-po-list-view-labs.component.html' + templateUrl: './sample-po-list-view-labs.component.html', + standalone: false }) export class SamplePoListViewLabsComponent implements OnInit { action: PoListViewAction; diff --git a/projects/ui/src/lib/components/po-listbox/po-item-list/po-item-list.component.ts b/projects/ui/src/lib/components/po-listbox/po-item-list/po-item-list.component.ts index a3933c2c74..dafc5369a6 100644 --- a/projects/ui/src/lib/components/po-listbox/po-item-list/po-item-list.component.ts +++ b/projects/ui/src/lib/components/po-listbox/po-item-list/po-item-list.component.ts @@ -8,7 +8,8 @@ import { PoItemListFilterMode } from '../enums/po-item-list-filter-mode.enum'; @Component({ selector: 'po-item-list', - templateUrl: './po-item-list.component.html' + templateUrl: './po-item-list.component.html', + standalone: false }) export class PoItemListComponent extends PoItemListBaseComponent implements OnChanges { @ViewChild('itemList', { static: true }) itemList: ElementRef; diff --git a/projects/ui/src/lib/components/po-listbox/po-listbox.component.ts b/projects/ui/src/lib/components/po-listbox/po-listbox.component.ts index 4288e9e93c..a9f9de1ef6 100644 --- a/projects/ui/src/lib/components/po-listbox/po-listbox.component.ts +++ b/projects/ui/src/lib/components/po-listbox/po-listbox.component.ts @@ -22,7 +22,8 @@ import { Observable, Subscription, debounceTime, fromEvent } from 'rxjs'; @Component({ selector: 'po-listbox', - templateUrl: './po-listbox.component.html' + templateUrl: './po-listbox.component.html', + standalone: false }) export class PoListBoxComponent extends PoListBoxBaseComponent implements AfterViewInit, OnChanges, OnDestroy { @ViewChild('listbox', { static: true }) listbox: ElementRef; diff --git a/projects/ui/src/lib/components/po-listbox/po-search-list/po-search-list.component.ts b/projects/ui/src/lib/components/po-listbox/po-search-list/po-search-list.component.ts index 8f7078cad1..201d06af6e 100644 --- a/projects/ui/src/lib/components/po-listbox/po-search-list/po-search-list.component.ts +++ b/projects/ui/src/lib/components/po-listbox/po-search-list/po-search-list.component.ts @@ -20,7 +20,8 @@ import { PoListBoxLiterals } from '../interfaces/po-listbox-literals.interface'; @Component({ selector: 'po-search-list', templateUrl: './po-search-list.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoSearchListComponent { @ViewChild('inputElement', { read: ElementRef, static: true }) inputElement: ElementRef; diff --git a/projects/ui/src/lib/components/po-loading/po-loading-icon/po-loading-icon.component.ts b/projects/ui/src/lib/components/po-loading/po-loading-icon/po-loading-icon.component.ts index 98accf8a8d..c267b4c557 100644 --- a/projects/ui/src/lib/components/po-loading/po-loading-icon/po-loading-icon.component.ts +++ b/projects/ui/src/lib/components/po-loading/po-loading-icon/po-loading-icon.component.ts @@ -13,7 +13,8 @@ import { PoLoadingIconSize } from './po-loading-icon-size-enum'; */ @Component({ selector: 'po-loading-icon', - templateUrl: 'po-loading-icon.component.html' + templateUrl: 'po-loading-icon.component.html', + standalone: false }) export class PoLoadingIconComponent { private _neutralColor: boolean; diff --git a/projects/ui/src/lib/components/po-loading/po-loading-overlay/po-loading-overlay.component.ts b/projects/ui/src/lib/components/po-loading/po-loading-overlay/po-loading-overlay.component.ts index 7ad9e5a368..d13a7e250c 100644 --- a/projects/ui/src/lib/components/po-loading/po-loading-overlay/po-loading-overlay.component.ts +++ b/projects/ui/src/lib/components/po-loading/po-loading-overlay/po-loading-overlay.component.ts @@ -27,7 +27,8 @@ import { PoLoadingOverlayBaseComponent } from './po-loading-overlay-base.compone */ @Component({ selector: 'po-loading-overlay', - templateUrl: 'po-loading-overlay.component.html' + templateUrl: 'po-loading-overlay.component.html', + standalone: false }) export class PoLoadingOverlayComponent extends PoLoadingOverlayBaseComponent { constructor( diff --git a/projects/ui/src/lib/components/po-loading/po-loading-overlay/samples/sample-po-loading-overlay-basic/sample-po-loading-overlay-basic.component.ts b/projects/ui/src/lib/components/po-loading/po-loading-overlay/samples/sample-po-loading-overlay-basic/sample-po-loading-overlay-basic.component.ts index 2696cd1d7b..571ade471c 100644 --- a/projects/ui/src/lib/components/po-loading/po-loading-overlay/samples/sample-po-loading-overlay-basic/sample-po-loading-overlay-basic.component.ts +++ b/projects/ui/src/lib/components/po-loading/po-loading-overlay/samples/sample-po-loading-overlay-basic/sample-po-loading-overlay-basic.component.ts @@ -10,6 +10,7 @@ import { Component } from '@angular/core'; height: 300px; } ` - ] + ], + standalone: false }) export class SamplePoLoadingOverlayBasicComponent {} diff --git a/projects/ui/src/lib/components/po-loading/po-loading-overlay/samples/sample-po-loading-overlay-connection-test/sample-po-loading-overlay-connection-test.component.ts b/projects/ui/src/lib/components/po-loading/po-loading-overlay/samples/sample-po-loading-overlay-connection-test/sample-po-loading-overlay-connection-test.component.ts index e34add5ee7..04b0bc553e 100644 --- a/projects/ui/src/lib/components/po-loading/po-loading-overlay/samples/sample-po-loading-overlay-connection-test/sample-po-loading-overlay-connection-test.component.ts +++ b/projects/ui/src/lib/components/po-loading/po-loading-overlay/samples/sample-po-loading-overlay-connection-test/sample-po-loading-overlay-connection-test.component.ts @@ -4,7 +4,8 @@ import { PoNotificationService } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-loading-overlay-connection-test', - templateUrl: 'sample-po-loading-overlay-connection-test.component.html' + templateUrl: 'sample-po-loading-overlay-connection-test.component.html', + standalone: false }) export class SamplePoLoadingOverlayConnectionTestComponent { environment = { diff --git a/projects/ui/src/lib/components/po-loading/po-loading-overlay/samples/sample-po-loading-overlay-labs/sample-po-loading-overlay-labs.component.ts b/projects/ui/src/lib/components/po-loading/po-loading-overlay/samples/sample-po-loading-overlay-labs/sample-po-loading-overlay-labs.component.ts index d5ae1c9c2d..df419b10ab 100644 --- a/projects/ui/src/lib/components/po-loading/po-loading-overlay/samples/sample-po-loading-overlay-labs/sample-po-loading-overlay-labs.component.ts +++ b/projects/ui/src/lib/components/po-loading/po-loading-overlay/samples/sample-po-loading-overlay-labs/sample-po-loading-overlay-labs.component.ts @@ -12,7 +12,8 @@ import { PoCheckboxGroupOption, PoRadioGroupOption } from '@po-ui/ng-components' height: 300px; } ` - ] + ], + standalone: false }) export class SamplePoLoadingOverlayLabsComponent implements OnInit { properties: Array = []; diff --git a/projects/ui/src/lib/components/po-loading/po-loading.component.ts b/projects/ui/src/lib/components/po-loading/po-loading.component.ts index 6c73b1cc39..d6e75ff7ff 100644 --- a/projects/ui/src/lib/components/po-loading/po-loading.component.ts +++ b/projects/ui/src/lib/components/po-loading/po-loading.component.ts @@ -9,6 +9,7 @@ import { PoLoadingBaseComponent } from './po-loading-base.component'; */ @Component({ selector: 'po-loading', - templateUrl: 'po-loading.component.html' + templateUrl: 'po-loading.component.html', + standalone: false }) export class PoLoadingComponent extends PoLoadingBaseComponent {} diff --git a/projects/ui/src/lib/components/po-logo/po-logo.component.ts b/projects/ui/src/lib/components/po-logo/po-logo.component.ts index cddca57e74..43c08368a9 100644 --- a/projects/ui/src/lib/components/po-logo/po-logo.component.ts +++ b/projects/ui/src/lib/components/po-logo/po-logo.component.ts @@ -22,7 +22,8 @@ const MAX_LENGHT: number = 125; @Component({ selector: 'po-logo', - templateUrl: './po-logo.component.html' + templateUrl: './po-logo.component.html', + standalone: false }) export class PoLogoComponent { readonly literals: any; diff --git a/projects/ui/src/lib/components/po-menu-panel/po-menu-panel-item/po-menu-panel-item.component.ts b/projects/ui/src/lib/components/po-menu-panel/po-menu-panel-item/po-menu-panel-item.component.ts index 9192b7b886..687ca86c59 100644 --- a/projects/ui/src/lib/components/po-menu-panel/po-menu-panel-item/po-menu-panel-item.component.ts +++ b/projects/ui/src/lib/components/po-menu-panel/po-menu-panel-item/po-menu-panel-item.component.ts @@ -14,7 +14,8 @@ import { PoMenuPanelItemsService } from '../services/po-menu-panel-items.service */ @Component({ selector: 'po-menu-panel-item', - templateUrl: './po-menu-panel-item.component.html' + templateUrl: './po-menu-panel-item.component.html', + standalone: false }) export class PoMenuPanelItemComponent implements OnDestroy, OnInit { @Input('p-menu-item-internal') menuItemInternal: PoMenuPanelItemInternal; diff --git a/projects/ui/src/lib/components/po-menu-panel/po-menu-panel.component.spec.ts b/projects/ui/src/lib/components/po-menu-panel/po-menu-panel.component.spec.ts index 647dbe0245..c1060fd42c 100644 --- a/projects/ui/src/lib/components/po-menu-panel/po-menu-panel.component.spec.ts +++ b/projects/ui/src/lib/components/po-menu-panel/po-menu-panel.component.spec.ts @@ -10,10 +10,16 @@ import { PoMenuPanelItemComponent } from './po-menu-panel-item/po-menu-panel-ite import { PoMenuPanelComponent } from './po-menu-panel.component'; import { PoMenuPanelItemsService } from './services/po-menu-panel-items.service'; -@Component({ template: 'Search' }) +@Component({ + template: 'Search', + standalone: false +}) export class SearchComponent {} -@Component({ template: 'Home' }) +@Component({ + template: 'Home', + standalone: false +}) export class HomeComponent {} export const routes: Routes = [ diff --git a/projects/ui/src/lib/components/po-menu-panel/po-menu-panel.component.ts b/projects/ui/src/lib/components/po-menu-panel/po-menu-panel.component.ts index 3b1ad9dc57..e2e5f20ae6 100644 --- a/projects/ui/src/lib/components/po-menu-panel/po-menu-panel.component.ts +++ b/projects/ui/src/lib/components/po-menu-panel/po-menu-panel.component.ts @@ -81,7 +81,8 @@ import { PoMenuPanelItemsService } from './services/po-menu-panel-items.service' @Component({ selector: 'po-menu-panel', - templateUrl: './po-menu-panel.component.html' + templateUrl: './po-menu-panel.component.html', + standalone: false }) export class PoMenuPanelComponent extends PoMenuPanelBaseComponent implements OnDestroy, OnInit { activeMenuItem: PoMenuPanelItem; diff --git a/projects/ui/src/lib/components/po-menu-panel/samples/sample-po-menu-panel-basic/sample-po-menu-panel-basic.component.ts b/projects/ui/src/lib/components/po-menu-panel/samples/sample-po-menu-panel-basic/sample-po-menu-panel-basic.component.ts index ae844aefc1..d9f10760d9 100644 --- a/projects/ui/src/lib/components/po-menu-panel/samples/sample-po-menu-panel-basic/sample-po-menu-panel-basic.component.ts +++ b/projects/ui/src/lib/components/po-menu-panel/samples/sample-po-menu-panel-basic/sample-po-menu-panel-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-menu-panel-basic', - templateUrl: './sample-po-menu-panel-basic.component.html' + templateUrl: './sample-po-menu-panel-basic.component.html', + standalone: false }) export class SamplePoMenuPanelBasicComponent {} diff --git a/projects/ui/src/lib/components/po-menu-panel/samples/sample-po-menu-panel-customer/sample-po-menu-panel-customer.component.ts b/projects/ui/src/lib/components/po-menu-panel/samples/sample-po-menu-panel-customer/sample-po-menu-panel-customer.component.ts index 604a60eb72..0b54b8a5cb 100644 --- a/projects/ui/src/lib/components/po-menu-panel/samples/sample-po-menu-panel-customer/sample-po-menu-panel-customer.component.ts +++ b/projects/ui/src/lib/components/po-menu-panel/samples/sample-po-menu-panel-customer/sample-po-menu-panel-customer.component.ts @@ -4,7 +4,8 @@ import { PoMenuPanelItem } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-menu-panel-customer', - templateUrl: './sample-po-menu-panel-customer.component.html' + templateUrl: './sample-po-menu-panel-customer.component.html', + standalone: false }) export class SamplePoMenuPanelCustomerComponent { title: string = 'Customers'; diff --git a/projects/ui/src/lib/components/po-menu-panel/samples/sample-po-menu-panel-labs/sample-po-menu-panel-labs.component.ts b/projects/ui/src/lib/components/po-menu-panel/samples/sample-po-menu-panel-labs/sample-po-menu-panel-labs.component.ts index daa8136ea6..5646a643dc 100644 --- a/projects/ui/src/lib/components/po-menu-panel/samples/sample-po-menu-panel-labs/sample-po-menu-panel-labs.component.ts +++ b/projects/ui/src/lib/components/po-menu-panel/samples/sample-po-menu-panel-labs/sample-po-menu-panel-labs.component.ts @@ -4,7 +4,8 @@ import { PoMenuPanelItem, PoRadioGroupOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-menu-panel-labs', - templateUrl: './sample-po-menu-panel-labs.component.html' + templateUrl: './sample-po-menu-panel-labs.component.html', + standalone: false }) export class SamplePoMenuPanelLabsComponent implements OnInit { menuItem: PoMenuPanelItem = { icon: undefined, label: undefined }; diff --git a/projects/ui/src/lib/components/po-menu-panel/services/po-menu-panel-items.service.ts b/projects/ui/src/lib/components/po-menu-panel/services/po-menu-panel-items.service.ts index fcc0c44f03..50cfe13551 100644 --- a/projects/ui/src/lib/components/po-menu-panel/services/po-menu-panel-items.service.ts +++ b/projects/ui/src/lib/components/po-menu-panel/services/po-menu-panel-items.service.ts @@ -9,7 +9,9 @@ import { Observable, Subject } from 'rxjs'; * * Serviço que implementa a comunicação entre os items do po-menu-panel. */ -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoMenuPanelItemsService { private subjectChild = new Subject(); private subjectParent = new Subject(); diff --git a/projects/ui/src/lib/components/po-menu/po-menu-filter/po-menu-filter.component.ts b/projects/ui/src/lib/components/po-menu/po-menu-filter/po-menu-filter.component.ts index b232e930f7..568a698f7e 100644 --- a/projects/ui/src/lib/components/po-menu/po-menu-filter/po-menu-filter.component.ts +++ b/projects/ui/src/lib/components/po-menu/po-menu-filter/po-menu-filter.component.ts @@ -18,7 +18,8 @@ export const poMenuFilterLiteralsDefault = { */ @Component({ selector: 'po-menu-filter', - templateUrl: './po-menu-filter.component.html' + templateUrl: './po-menu-filter.component.html', + standalone: false }) export class PoMenuFilterComponent { @Input('p-loading') loading: boolean; diff --git a/projects/ui/src/lib/components/po-menu/po-menu-header-template/po-menu-header-template.directive.ts b/projects/ui/src/lib/components/po-menu/po-menu-header-template/po-menu-header-template.directive.ts index ef6cb7a9e7..7ff4f05f6a 100644 --- a/projects/ui/src/lib/components/po-menu/po-menu-header-template/po-menu-header-template.directive.ts +++ b/projects/ui/src/lib/components/po-menu/po-menu-header-template/po-menu-header-template.directive.ts @@ -36,7 +36,8 @@ import { Directive, TemplateRef } from '@angular/core'; * > Quando o menu estiver colapsado ou tela for _mobile_ o conteúdo personalizado não será exibido. */ @Directive({ - selector: '[p-menu-header-template]' + selector: '[p-menu-header-template]', + standalone: false }) export class PoMenuHeaderTemplateDirective { // Necessário manter templateRef para o funcionamento do row template. diff --git a/projects/ui/src/lib/components/po-menu/po-menu-item/po-menu-item.component.spec.ts b/projects/ui/src/lib/components/po-menu/po-menu-item/po-menu-item.component.spec.ts index ff8fdb55dc..4b84fcf985 100644 --- a/projects/ui/src/lib/components/po-menu/po-menu-item/po-menu-item.component.spec.ts +++ b/projects/ui/src/lib/components/po-menu/po-menu-item/po-menu-item.component.spec.ts @@ -12,10 +12,16 @@ import { PoIconModule } from '../../po-icon/po-icon.module'; import { PoMenuItemsService } from '../services/po-menu-items.service'; import { PoMenuItemComponent } from './po-menu-item.component'; -@Component({ template: 'Search' }) +@Component({ + template: 'Search', + standalone: false +}) export class SearchComponent {} -@Component({ template: 'Home' }) +@Component({ + template: 'Home', + standalone: false +}) export class HomeComponent {} export const routes: Routes = [ diff --git a/projects/ui/src/lib/components/po-menu/po-menu-item/po-menu-item.component.ts b/projects/ui/src/lib/components/po-menu/po-menu-item/po-menu-item.component.ts index 060443d7c5..5a7502c686 100644 --- a/projects/ui/src/lib/components/po-menu/po-menu-item/po-menu-item.component.ts +++ b/projects/ui/src/lib/components/po-menu/po-menu-item/po-menu-item.component.ts @@ -19,7 +19,8 @@ const poMenuItemSubItemSize = 98; */ @Component({ selector: 'po-menu-item', - templateUrl: './po-menu-item.component.html' + templateUrl: './po-menu-item.component.html', + standalone: false }) export class PoMenuItemComponent implements OnDestroy, OnInit { // Ação que será chamada ao clicar no item. diff --git a/projects/ui/src/lib/components/po-menu/po-menu.component.spec.ts b/projects/ui/src/lib/components/po-menu/po-menu.component.spec.ts index 995d918b08..8bbf722b02 100644 --- a/projects/ui/src/lib/components/po-menu/po-menu.component.spec.ts +++ b/projects/ui/src/lib/components/po-menu/po-menu.component.spec.ts @@ -21,10 +21,16 @@ import { PoMenuItemsService } from './services/po-menu-items.service'; import { PoMenuService } from './services/po-menu.service'; import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http'; -@Component({ template: 'Search' }) +@Component({ + template: 'Search', + standalone: false +}) export class SearchComponent {} -@Component({ template: 'Home' }) +@Component({ + template: 'Home', + standalone: false +}) export class HomeComponent {} export const routes: Routes = [ diff --git a/projects/ui/src/lib/components/po-menu/po-menu.component.ts b/projects/ui/src/lib/components/po-menu/po-menu.component.ts index 1cf2f32130..0e69346280 100644 --- a/projects/ui/src/lib/components/po-menu/po-menu.component.ts +++ b/projects/ui/src/lib/components/po-menu/po-menu.component.ts @@ -115,7 +115,8 @@ const poMenuRootLevel = 1; @Component({ selector: 'po-menu', templateUrl: './po-menu.component.html', - providers: [PoMenuItemsService, PoMenuService] + providers: [PoMenuItemsService, PoMenuService], + standalone: false }) export class PoMenuComponent extends PoMenuBaseComponent implements AfterViewInit, OnDestroy, OnInit, DoCheck { @ContentChild(PoMenuHeaderTemplateDirective, { static: true }) menuHeaderTemplate: PoMenuHeaderTemplateDirective; diff --git a/projects/ui/src/lib/components/po-menu/samples/sample-po-menu-basic/sample-po-menu-basic.component.ts b/projects/ui/src/lib/components/po-menu/samples/sample-po-menu-basic/sample-po-menu-basic.component.ts index 476d0e222d..bf3215469d 100644 --- a/projects/ui/src/lib/components/po-menu/samples/sample-po-menu-basic/sample-po-menu-basic.component.ts +++ b/projects/ui/src/lib/components/po-menu/samples/sample-po-menu-basic/sample-po-menu-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-menu-basic', - templateUrl: './sample-po-menu-basic.component.html' + templateUrl: './sample-po-menu-basic.component.html', + standalone: false }) export class SamplePoMenuBasicComponent {} diff --git a/projects/ui/src/lib/components/po-menu/samples/sample-po-menu-human-resources/sample-po-menu-human-resources.component.ts b/projects/ui/src/lib/components/po-menu/samples/sample-po-menu-human-resources/sample-po-menu-human-resources.component.ts index 3975ce2b0f..b78d13c6bb 100644 --- a/projects/ui/src/lib/components/po-menu/samples/sample-po-menu-human-resources/sample-po-menu-human-resources.component.ts +++ b/projects/ui/src/lib/components/po-menu/samples/sample-po-menu-human-resources/sample-po-menu-human-resources.component.ts @@ -14,7 +14,8 @@ import { SamplePoMenuHumanResourcesService } from './sample-po-menu-human-resour color: #9da7a9; } ` - ] + ], + standalone: false }) export class SamplePoMenuHumanResourcesComponent { menuItemSelected: string; diff --git a/projects/ui/src/lib/components/po-menu/samples/sample-po-menu-human-resources/sample-po-menu-human-resources.service.ts b/projects/ui/src/lib/components/po-menu/samples/sample-po-menu-human-resources/sample-po-menu-human-resources.service.ts index bb32925e96..0901db3394 100644 --- a/projects/ui/src/lib/components/po-menu/samples/sample-po-menu-human-resources/sample-po-menu-human-resources.service.ts +++ b/projects/ui/src/lib/components/po-menu/samples/sample-po-menu-human-resources/sample-po-menu-human-resources.service.ts @@ -6,7 +6,9 @@ import { map } from 'rxjs/operators'; import { PoMenuFilter, PoMenuItemFiltered } from '@po-ui/ng-components'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class SamplePoMenuHumanResourcesService implements PoMenuFilter { private url: string = 'https://po-sample-api.onrender.com/v1/menus'; diff --git a/projects/ui/src/lib/components/po-menu/samples/sample-po-menu-labs/sample-po-menu-labs.component.ts b/projects/ui/src/lib/components/po-menu/samples/sample-po-menu-labs/sample-po-menu-labs.component.ts index 15f6211615..182467a4c1 100644 --- a/projects/ui/src/lib/components/po-menu/samples/sample-po-menu-labs/sample-po-menu-labs.component.ts +++ b/projects/ui/src/lib/components/po-menu/samples/sample-po-menu-labs/sample-po-menu-labs.component.ts @@ -18,7 +18,8 @@ import { PoButtonGroupItem, PoMenuComponent, PoMenuItem, PoSelectOption } from ' vertical-align: middle; } ` - ] + ], + standalone: false }) export class SamplePoMenuLabsComponent implements OnInit { @ViewChild(PoMenuComponent, { static: true }) menu: PoMenuComponent; diff --git a/projects/ui/src/lib/components/po-menu/services/po-menu-items.service.ts b/projects/ui/src/lib/components/po-menu/services/po-menu-items.service.ts index d197fb1a00..1d16b8347e 100644 --- a/projects/ui/src/lib/components/po-menu/services/po-menu-items.service.ts +++ b/projects/ui/src/lib/components/po-menu/services/po-menu-items.service.ts @@ -9,7 +9,9 @@ import { Observable, Subject } from 'rxjs'; * * Serviço que implementa a comunicação entre os items do po-menu. */ -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoMenuItemsService { private subjectParent = new Subject(); private subjectChild = new Subject(); diff --git a/projects/ui/src/lib/components/po-menu/services/po-menu.service.ts b/projects/ui/src/lib/components/po-menu/services/po-menu.service.ts index 4dd13a8a87..ef2d95042f 100644 --- a/projects/ui/src/lib/components/po-menu/services/po-menu.service.ts +++ b/projects/ui/src/lib/components/po-menu/services/po-menu.service.ts @@ -15,7 +15,9 @@ import { PoMenuFilter } from '../po-menu-filter/po-menu-filter.interface'; * Serviço que implementa a interface `PoMenuFilter`, utilizado para fazer requisições ao serviço informado pelo usuário, * caso for uma URL, no componente `po-menu`. */ -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoMenuService implements PoMenuFilter { private _url: string; diff --git a/projects/ui/src/lib/components/po-modal/po-modal-footer/po-modal-footer.component.ts b/projects/ui/src/lib/components/po-modal/po-modal-footer/po-modal-footer.component.ts index 7e5225c896..e0c83d1430 100644 --- a/projects/ui/src/lib/components/po-modal/po-modal-footer/po-modal-footer.component.ts +++ b/projects/ui/src/lib/components/po-modal/po-modal-footer/po-modal-footer.component.ts @@ -18,7 +18,8 @@ import { Component, Input } from '@angular/core'; */ @Component({ selector: 'po-modal-footer', - templateUrl: './po-modal-footer.component.html' + templateUrl: './po-modal-footer.component.html', + standalone: false }) export class PoModalFooterComponent { /** diff --git a/projects/ui/src/lib/components/po-modal/po-modal.component.spec.ts b/projects/ui/src/lib/components/po-modal/po-modal.component.spec.ts index ff7963156c..2a25866b9e 100644 --- a/projects/ui/src/lib/components/po-modal/po-modal.component.spec.ts +++ b/projects/ui/src/lib/components/po-modal/po-modal.component.spec.ts @@ -24,7 +24,8 @@ import { PoModalFooterComponent } from '.'; - ` + `, + standalone: false }) class ContentProjectionComponent { @ViewChild(PoModalComponent, { static: true }) poModal; diff --git a/projects/ui/src/lib/components/po-modal/po-modal.component.ts b/projects/ui/src/lib/components/po-modal/po-modal.component.ts index ceb6e35644..560d225210 100644 --- a/projects/ui/src/lib/components/po-modal/po-modal.component.ts +++ b/projects/ui/src/lib/components/po-modal/po-modal.component.ts @@ -30,7 +30,8 @@ import { PoLanguageService } from '../../services/po-language/po-language.servic @Component({ selector: 'po-modal', - templateUrl: './po-modal.component.html' + templateUrl: './po-modal.component.html', + standalone: false }) export class PoModalComponent extends PoModalBaseComponent { @ViewChild('modalContent', { read: ElementRef }) modalContent: ElementRef; diff --git a/projects/ui/src/lib/components/po-modal/samples/sample-po-modal-basic/sample-po-modal-basic.component.ts b/projects/ui/src/lib/components/po-modal/samples/sample-po-modal-basic/sample-po-modal-basic.component.ts index 1305d3ea66..82d62b7547 100644 --- a/projects/ui/src/lib/components/po-modal/samples/sample-po-modal-basic/sample-po-modal-basic.component.ts +++ b/projects/ui/src/lib/components/po-modal/samples/sample-po-modal-basic/sample-po-modal-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-modal-basic', - templateUrl: './sample-po-modal-basic.component.html' + templateUrl: './sample-po-modal-basic.component.html', + standalone: false }) export class SamplePoModalBasicComponent {} diff --git a/projects/ui/src/lib/components/po-modal/samples/sample-po-modal-fruits-salad/sample-po-modal-fruits-salad.component.ts b/projects/ui/src/lib/components/po-modal/samples/sample-po-modal-fruits-salad/sample-po-modal-fruits-salad.component.ts index e0b04329cc..817e91c4f8 100644 --- a/projects/ui/src/lib/components/po-modal/samples/sample-po-modal-fruits-salad/sample-po-modal-fruits-salad.component.ts +++ b/projects/ui/src/lib/components/po-modal/samples/sample-po-modal-fruits-salad/sample-po-modal-fruits-salad.component.ts @@ -9,7 +9,8 @@ import { PoModalComponent } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-modal-fruits-salad', - templateUrl: './sample-po-modal-fruits-salad.component.html' + templateUrl: './sample-po-modal-fruits-salad.component.html', + standalone: false }) export class SamplePoModalFruitsSaladComponent { @ViewChild('optionsForm', { static: true }) form: NgForm; diff --git a/projects/ui/src/lib/components/po-modal/samples/sample-po-modal-labs/sample-po-modal-labs.component.ts b/projects/ui/src/lib/components/po-modal/samples/sample-po-modal-labs/sample-po-modal-labs.component.ts index 5a41e1dd84..9f35458dbe 100644 --- a/projects/ui/src/lib/components/po-modal/samples/sample-po-modal-labs/sample-po-modal-labs.component.ts +++ b/projects/ui/src/lib/components/po-modal/samples/sample-po-modal-labs/sample-po-modal-labs.component.ts @@ -10,7 +10,8 @@ import { @Component({ selector: 'sample-po-modal-labs', - templateUrl: './sample-po-modal-labs.component.html' + templateUrl: './sample-po-modal-labs.component.html', + standalone: false }) export class SamplePoModalLabsComponent implements OnInit { @ViewChild(PoModalComponent, { static: true }) poModal: PoModalComponent; diff --git a/projects/ui/src/lib/components/po-navbar/po-navbar-actions/po-navbar-action-popup/po-navbar-action-popup.component.ts b/projects/ui/src/lib/components/po-navbar/po-navbar-actions/po-navbar-action-popup/po-navbar-action-popup.component.ts index 1b507ef544..5f94d3b794 100644 --- a/projects/ui/src/lib/components/po-navbar/po-navbar-actions/po-navbar-action-popup/po-navbar-action-popup.component.ts +++ b/projects/ui/src/lib/components/po-navbar/po-navbar-actions/po-navbar-action-popup/po-navbar-action-popup.component.ts @@ -4,7 +4,8 @@ import { PoNavbarIconAction } from '../../interfaces/po-navbar-icon-action.inter @Component({ selector: 'po-navbar-action-popup', - templateUrl: './po-navbar-action-popup.component.html' + templateUrl: './po-navbar-action-popup.component.html', + standalone: false }) export class PoNavbarActionPopupComponent { @Input('p-icon-actions') iconActions: Array; diff --git a/projects/ui/src/lib/components/po-navbar/po-navbar-actions/po-navbar-action/po-navbar-action.component.ts b/projects/ui/src/lib/components/po-navbar/po-navbar-actions/po-navbar-action/po-navbar-action.component.ts index d97c9574cf..d19b5d321d 100644 --- a/projects/ui/src/lib/components/po-navbar/po-navbar-actions/po-navbar-action/po-navbar-action.component.ts +++ b/projects/ui/src/lib/components/po-navbar/po-navbar-actions/po-navbar-action/po-navbar-action.component.ts @@ -5,7 +5,8 @@ import { callFunction, isExternalLink, openExternalLink } from '../../../../util @Component({ selector: 'po-navbar-action', - templateUrl: './po-navbar-action.component.html' + templateUrl: './po-navbar-action.component.html', + standalone: false }) export class PoNavbarActionComponent { @Input('p-action') action?: Function; diff --git a/projects/ui/src/lib/components/po-navbar/po-navbar-actions/po-navbar-actions.component.ts b/projects/ui/src/lib/components/po-navbar/po-navbar-actions/po-navbar-actions.component.ts index 61f0c38ba3..e1aa721393 100644 --- a/projects/ui/src/lib/components/po-navbar/po-navbar-actions/po-navbar-actions.component.ts +++ b/projects/ui/src/lib/components/po-navbar/po-navbar-actions/po-navbar-actions.component.ts @@ -4,7 +4,8 @@ import { PoNavbarIconAction } from '../interfaces/po-navbar-icon-action.interfac @Component({ selector: 'po-navbar-actions', - templateUrl: './po-navbar-actions.component.html' + templateUrl: './po-navbar-actions.component.html', + standalone: false }) export class PoNavbarActionsComponent { private _iconActions: Array; diff --git a/projects/ui/src/lib/components/po-navbar/po-navbar-item-navigation/po-navbar-item-navigation-icon/po-navbar-item-navigation-icon.component.ts b/projects/ui/src/lib/components/po-navbar/po-navbar-item-navigation/po-navbar-item-navigation-icon/po-navbar-item-navigation-icon.component.ts index cefeffff65..bd6d7c44b2 100644 --- a/projects/ui/src/lib/components/po-navbar/po-navbar-item-navigation/po-navbar-item-navigation-icon/po-navbar-item-navigation-icon.component.ts +++ b/projects/ui/src/lib/components/po-navbar/po-navbar-item-navigation/po-navbar-item-navigation-icon/po-navbar-item-navigation-icon.component.ts @@ -2,7 +2,8 @@ import { Component, EventEmitter, Input, Output } from '@angular/core'; @Component({ selector: 'po-navbar-item-navigation-icon', - templateUrl: './po-navbar-item-navigation-icon.component.html' + templateUrl: './po-navbar-item-navigation-icon.component.html', + standalone: false }) export class PoNavbarItemNavigationIconComponent { @Input('p-disabled') disabled: boolean; diff --git a/projects/ui/src/lib/components/po-navbar/po-navbar-item-navigation/po-navbar-item-navigation.component.ts b/projects/ui/src/lib/components/po-navbar/po-navbar-item-navigation/po-navbar-item-navigation.component.ts index 75e0c81d71..3db8a3b678 100644 --- a/projects/ui/src/lib/components/po-navbar/po-navbar-item-navigation/po-navbar-item-navigation.component.ts +++ b/projects/ui/src/lib/components/po-navbar/po-navbar-item-navigation/po-navbar-item-navigation.component.ts @@ -2,7 +2,8 @@ import { Component, EventEmitter, Input, Output } from '@angular/core'; @Component({ selector: 'po-navbar-item-navigation', - templateUrl: './po-navbar-item-navigation.component.html' + templateUrl: './po-navbar-item-navigation.component.html', + standalone: false }) export class PoNavbarItemNavigationComponent { @Input('p-disable-left') disableLeft: boolean; diff --git a/projects/ui/src/lib/components/po-navbar/po-navbar-items/po-navbar-item/po-navbar-item.component.ts b/projects/ui/src/lib/components/po-navbar/po-navbar-items/po-navbar-item/po-navbar-item.component.ts index 2873944116..adbb5d0ee1 100644 --- a/projects/ui/src/lib/components/po-navbar/po-navbar-items/po-navbar-item/po-navbar-item.component.ts +++ b/projects/ui/src/lib/components/po-navbar/po-navbar-items/po-navbar-item/po-navbar-item.component.ts @@ -6,7 +6,8 @@ import { isExternalLink } from '../../../../utils/util'; @Component({ selector: 'po-navbar-item', - templateUrl: './po-navbar-item.component.html' + templateUrl: './po-navbar-item.component.html', + standalone: false }) export class PoNavbarItemComponent { @Input('p-action') action: Function; diff --git a/projects/ui/src/lib/components/po-navbar/po-navbar-items/po-navbar-items.component.ts b/projects/ui/src/lib/components/po-navbar/po-navbar-items/po-navbar-items.component.ts index ea2ff4d510..02d0628005 100644 --- a/projects/ui/src/lib/components/po-navbar/po-navbar-items/po-navbar-items.component.ts +++ b/projects/ui/src/lib/components/po-navbar/po-navbar-items/po-navbar-items.component.ts @@ -8,7 +8,8 @@ import { PoNavbarItemComponent } from './po-navbar-item/po-navbar-item.component @Component({ selector: 'po-navbar-items', - templateUrl: './po-navbar-items.component.html' + templateUrl: './po-navbar-items.component.html', + standalone: false }) export class PoNavbarItemsComponent implements OnInit, OnDestroy { @ViewChild('navbarItemsContainer', { read: ElementRef, static: true }) navbarItemsContainer: ElementRef; diff --git a/projects/ui/src/lib/components/po-navbar/po-navbar-logo/po-navbar-logo.component.ts b/projects/ui/src/lib/components/po-navbar/po-navbar-logo/po-navbar-logo.component.ts index 445602ad46..bb8feb7689 100644 --- a/projects/ui/src/lib/components/po-navbar/po-navbar-logo/po-navbar-logo.component.ts +++ b/projects/ui/src/lib/components/po-navbar/po-navbar-logo/po-navbar-logo.component.ts @@ -2,7 +2,8 @@ import { Component, Input } from '@angular/core'; @Component({ selector: 'po-navbar-logo', - templateUrl: './po-navbar-logo.component.html' + templateUrl: './po-navbar-logo.component.html', + standalone: false }) export class PoNavbarLogoComponent { @Input('p-logo') logo?: string; diff --git a/projects/ui/src/lib/components/po-navbar/po-navbar.component.ts b/projects/ui/src/lib/components/po-navbar/po-navbar.component.ts index ea40255e35..5e5cfa20a9 100644 --- a/projects/ui/src/lib/components/po-navbar/po-navbar.component.ts +++ b/projects/ui/src/lib/components/po-navbar/po-navbar.component.ts @@ -33,7 +33,8 @@ const poNavbarTiming = '250ms ease'; */ @Component({ selector: 'po-navbar', - templateUrl: './po-navbar.component.html' + templateUrl: './po-navbar.component.html', + standalone: false }) export class PoNavbarComponent extends PoNavbarBaseComponent implements AfterViewInit, OnDestroy, OnInit { @ViewChild(PoNavbarItemsComponent, { read: ElementRef, static: true }) navbarItemsElement: ElementRef; diff --git a/projects/ui/src/lib/components/po-overlay/po-overlay.component.ts b/projects/ui/src/lib/components/po-overlay/po-overlay.component.ts index 78680ed8c8..ff55394c33 100644 --- a/projects/ui/src/lib/components/po-overlay/po-overlay.component.ts +++ b/projects/ui/src/lib/components/po-overlay/po-overlay.component.ts @@ -3,6 +3,7 @@ import { PoOverlayBaseComponent } from './po-overlay-base.component'; @Component({ selector: 'po-overlay', - templateUrl: './po-overlay.component.html' + templateUrl: './po-overlay.component.html', + standalone: false }) export class PoOverlayComponent extends PoOverlayBaseComponent {} diff --git a/projects/ui/src/lib/components/po-page/po-page-content/po-page-content.component.spec.ts b/projects/ui/src/lib/components/po-page/po-page-content/po-page-content.component.spec.ts index 6b5aee91c6..b755dee8ad 100644 --- a/projects/ui/src/lib/components/po-page/po-page-content/po-page-content.component.spec.ts +++ b/projects/ui/src/lib/components/po-page/po-page-content/po-page-content.component.spec.ts @@ -22,7 +22,8 @@ import { PoPageContentComponent } from './po-page-content.component'; width: 100%; } ` - ] + ], + standalone: false }) class ContentDivComponent {} diff --git a/projects/ui/src/lib/components/po-page/po-page-content/po-page-content.component.ts b/projects/ui/src/lib/components/po-page/po-page-content/po-page-content.component.ts index 7b6d2eaf4c..0c6d30b14c 100644 --- a/projects/ui/src/lib/components/po-page/po-page-content/po-page-content.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page-content/po-page-content.component.ts @@ -9,7 +9,8 @@ import { PoPageContentBaseComponent } from './po-page-content-base.component'; */ @Component({ selector: 'po-page-content', - templateUrl: './po-page-content.component.html' + templateUrl: './po-page-content.component.html', + standalone: false }) export class PoPageContentComponent extends PoPageContentBaseComponent implements AfterViewInit, OnDestroy { contentOpacity: number = 0; diff --git a/projects/ui/src/lib/components/po-page/po-page-default/po-page-default.component.spec.ts b/projects/ui/src/lib/components/po-page/po-page-default/po-page-default.component.spec.ts index 75b6d0e5f1..0b60bbc5cf 100644 --- a/projects/ui/src/lib/components/po-page/po-page-default/po-page-default.component.spec.ts +++ b/projects/ui/src/lib/components/po-page/po-page-default/po-page-default.component.spec.ts @@ -23,7 +23,8 @@ const eventResize = document.createEvent('Event'); eventResize.initEvent('resize', false, true); @Component({ - template: ` ` + template: ` `, + standalone: false }) class MobileComponent { public actions: Array<{}> = [ @@ -134,7 +135,8 @@ describe('PoPageDefaultComponent mobile', () => { }); @Component({ - template: ` ` + template: ` `, + standalone: false }) class DesktopComponent { public actions: Array<{}> = [ diff --git a/projects/ui/src/lib/components/po-page/po-page-default/po-page-default.component.ts b/projects/ui/src/lib/components/po-page/po-page-default/po-page-default.component.ts index 130446ee54..4f58365e70 100644 --- a/projects/ui/src/lib/components/po-page/po-page-default/po-page-default.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page-default/po-page-default.component.ts @@ -31,7 +31,8 @@ import { PoPageDefaultBaseComponent } from './po-page-default-base.component'; */ @Component({ selector: 'po-page-default', - templateUrl: './po-page-default.component.html' + templateUrl: './po-page-default.component.html', + standalone: false }) export class PoPageDefaultComponent extends PoPageDefaultBaseComponent implements AfterContentInit, OnChanges { limitPrimaryActions: number = 3; diff --git a/projects/ui/src/lib/components/po-page/po-page-default/samples/sample-po-page-default-basic/sample-po-page-default-basic.component.ts b/projects/ui/src/lib/components/po-page/po-page-default/samples/sample-po-page-default-basic/sample-po-page-default-basic.component.ts index 8f5d8aa35c..142cbb2f3a 100644 --- a/projects/ui/src/lib/components/po-page/po-page-default/samples/sample-po-page-default-basic/sample-po-page-default-basic.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page-default/samples/sample-po-page-default-basic/sample-po-page-default-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-page-default-basic', - templateUrl: './sample-po-page-default-basic.component.html' + templateUrl: './sample-po-page-default-basic.component.html', + standalone: false }) export class SamplePoPageDefaultBasicComponent {} diff --git a/projects/ui/src/lib/components/po-page/po-page-default/samples/sample-po-page-default-dashboard/sample-po-page-default-dashboard.component.ts b/projects/ui/src/lib/components/po-page/po-page-default/samples/sample-po-page-default-dashboard/sample-po-page-default-dashboard.component.ts index 385bf5bdc0..13964b4436 100644 --- a/projects/ui/src/lib/components/po-page/po-page-default/samples/sample-po-page-default-dashboard/sample-po-page-default-dashboard.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page-default/samples/sample-po-page-default-dashboard/sample-po-page-default-dashboard.component.ts @@ -22,7 +22,8 @@ import { SampleDashboardService } from './sample-po-page-default-dashboard.servi } ` ], - providers: [SampleDashboardService] + providers: [SampleDashboardService], + standalone: false }) export class SamplePoPageDefaultDashboardComponent implements OnInit { @ViewChild('formShare', { static: true }) formShare: NgForm; diff --git a/projects/ui/src/lib/components/po-page/po-page-default/samples/sample-po-page-default-dashboard/sample-po-page-default-dashboard.service.ts b/projects/ui/src/lib/components/po-page/po-page-default/samples/sample-po-page-default-dashboard/sample-po-page-default-dashboard.service.ts index 46d8a83855..605ea6e39f 100644 --- a/projects/ui/src/lib/components/po-page/po-page-default/samples/sample-po-page-default-dashboard/sample-po-page-default-dashboard.service.ts +++ b/projects/ui/src/lib/components/po-page/po-page-default/samples/sample-po-page-default-dashboard/sample-po-page-default-dashboard.service.ts @@ -2,7 +2,9 @@ import { Injectable } from '@angular/core'; import { PoTableColumn } from '@po-ui/ng-components'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class SampleDashboardService { getColumns(): Array { return [ diff --git a/projects/ui/src/lib/components/po-page/po-page-default/samples/sample-po-page-default-labs/sample-po-page-default-labs.component.ts b/projects/ui/src/lib/components/po-page/po-page-default/samples/sample-po-page-default-labs/sample-po-page-default-labs.component.ts index fa4c668824..bc977bfdc8 100644 --- a/projects/ui/src/lib/components/po-page/po-page-default/samples/sample-po-page-default-labs/sample-po-page-default-labs.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page-default/samples/sample-po-page-default-labs/sample-po-page-default-labs.component.ts @@ -8,7 +8,8 @@ import { PoPageAction, PoPageDefaultLiterals } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-page-default-labs', - templateUrl: './sample-po-page-default-labs.component.html' + templateUrl: './sample-po-page-default-labs.component.html', + standalone: false }) export class SamplePoPageDefaultLabsComponent implements OnInit { action: PoPageAction; diff --git a/projects/ui/src/lib/components/po-page/po-page-detail/po-page-detail.component.spec.ts b/projects/ui/src/lib/components/po-page/po-page-detail/po-page-detail.component.spec.ts index 758458ffab..b1f22635c3 100644 --- a/projects/ui/src/lib/components/po-page/po-page-detail/po-page-detail.component.spec.ts +++ b/projects/ui/src/lib/components/po-page/po-page-detail/po-page-detail.component.spec.ts @@ -16,7 +16,8 @@ import { PoPageHeaderComponent } from '../po-page-header/po-page-header.componen @Component({ template: ` - ` + `, + standalone: false }) class ContainerComponent { back(): boolean { diff --git a/projects/ui/src/lib/components/po-page/po-page-detail/po-page-detail.component.ts b/projects/ui/src/lib/components/po-page/po-page-detail/po-page-detail.component.ts index 1a7821e586..93b52a3186 100644 --- a/projects/ui/src/lib/components/po-page/po-page-detail/po-page-detail.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page-detail/po-page-detail.component.ts @@ -24,7 +24,8 @@ import { PoPageDetailBaseComponent } from './po-page-detail-base.component'; */ @Component({ selector: 'po-page-detail', - templateUrl: './po-page-detail.component.html' + templateUrl: './po-page-detail.component.html', + standalone: false }) export class PoPageDetailComponent extends PoPageDetailBaseComponent { hasAnyAction(): boolean { diff --git a/projects/ui/src/lib/components/po-page/po-page-detail/samples/sample-po-page-detail-basic/sample-po-page-detail-basic.component.ts b/projects/ui/src/lib/components/po-page/po-page-detail/samples/sample-po-page-detail-basic/sample-po-page-detail-basic.component.ts index cca37f98ea..b4fd857a7d 100644 --- a/projects/ui/src/lib/components/po-page/po-page-detail/samples/sample-po-page-detail-basic/sample-po-page-detail-basic.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page-detail/samples/sample-po-page-detail-basic/sample-po-page-detail-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-page-detail-basic', - templateUrl: './sample-po-page-detail-basic.component.html' + templateUrl: './sample-po-page-detail-basic.component.html', + standalone: false }) export class SamplePoPageDetailBasicComponent {} diff --git a/projects/ui/src/lib/components/po-page/po-page-detail/samples/sample-po-page-detail-labs/sample-po-page-detail-labs.component.ts b/projects/ui/src/lib/components/po-page/po-page-detail/samples/sample-po-page-detail-labs/sample-po-page-detail-labs.component.ts index 059f259e29..35eb1162fc 100644 --- a/projects/ui/src/lib/components/po-page/po-page-detail/samples/sample-po-page-detail-labs/sample-po-page-detail-labs.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page-detail/samples/sample-po-page-detail-labs/sample-po-page-detail-labs.component.ts @@ -5,7 +5,8 @@ import { PoPageDetailLiterals } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-page-detail-labs', - templateUrl: './sample-po-page-detail-labs.component.html' + templateUrl: './sample-po-page-detail-labs.component.html', + standalone: false }) export class SamplePoPageDetailLabsComponent implements OnInit { action: string; diff --git a/projects/ui/src/lib/components/po-page/po-page-detail/samples/sample-po-page-detail-user/sample-po-page-detail-user.component.ts b/projects/ui/src/lib/components/po-page/po-page-detail/samples/sample-po-page-detail-user/sample-po-page-detail-user.component.ts index 018c614619..19bf336eff 100644 --- a/projects/ui/src/lib/components/po-page/po-page-detail/samples/sample-po-page-detail-user/sample-po-page-detail-user.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page-detail/samples/sample-po-page-detail-user/sample-po-page-detail-user.component.ts @@ -5,7 +5,8 @@ import { PoBreadcrumb } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-page-detail-user', - templateUrl: './sample-po-page-detail-user.component.html' + templateUrl: './sample-po-page-detail-user.component.html', + standalone: false }) export class SamplePoPageDetailUserComponent { birthDate: string = '26/12/1978'; diff --git a/projects/ui/src/lib/components/po-page/po-page-edit/po-page-edit.component.spec.ts b/projects/ui/src/lib/components/po-page/po-page-edit/po-page-edit.component.spec.ts index 1ded57d77b..d2773755b9 100644 --- a/projects/ui/src/lib/components/po-page/po-page-edit/po-page-edit.component.spec.ts +++ b/projects/ui/src/lib/components/po-page/po-page-edit/po-page-edit.component.spec.ts @@ -16,7 +16,8 @@ import { PoPageHeaderComponent } from '../po-page-header/po-page-header.componen @Component({ template: ` - ` + `, + standalone: false }) class ContainerComponent { cancel(): boolean { diff --git a/projects/ui/src/lib/components/po-page/po-page-edit/po-page-edit.component.ts b/projects/ui/src/lib/components/po-page/po-page-edit/po-page-edit.component.ts index b4ce5288bd..e3124cf587 100644 --- a/projects/ui/src/lib/components/po-page/po-page-edit/po-page-edit.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page-edit/po-page-edit.component.ts @@ -24,7 +24,8 @@ import { PoPageEditBaseComponent } from './po-page-edit-base.component'; */ @Component({ selector: 'po-page-edit', - templateUrl: './po-page-edit.component.html' + templateUrl: './po-page-edit.component.html', + standalone: false }) export class PoPageEditComponent extends PoPageEditBaseComponent { getIcon(icon: string): string { diff --git a/projects/ui/src/lib/components/po-page/po-page-edit/samples/sample-po-page-edit-basic/sample-po-page-edit-basic.component.ts b/projects/ui/src/lib/components/po-page/po-page-edit/samples/sample-po-page-edit-basic/sample-po-page-edit-basic.component.ts index 9cd8573798..fe3e4c86fe 100644 --- a/projects/ui/src/lib/components/po-page/po-page-edit/samples/sample-po-page-edit-basic/sample-po-page-edit-basic.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page-edit/samples/sample-po-page-edit-basic/sample-po-page-edit-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-page-edit-basic', - templateUrl: './sample-po-page-edit-basic.component.html' + templateUrl: './sample-po-page-edit-basic.component.html', + standalone: false }) export class SamplePoPageEditBasicComponent {} diff --git a/projects/ui/src/lib/components/po-page/po-page-edit/samples/sample-po-page-edit-labs/sample-po-page-edit-labs.component.ts b/projects/ui/src/lib/components/po-page/po-page-edit/samples/sample-po-page-edit-labs/sample-po-page-edit-labs.component.ts index 635bd366c4..6874d67070 100644 --- a/projects/ui/src/lib/components/po-page/po-page-edit/samples/sample-po-page-edit-labs/sample-po-page-edit-labs.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page-edit/samples/sample-po-page-edit-labs/sample-po-page-edit-labs.component.ts @@ -7,7 +7,8 @@ import { PoPageEditLiterals } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-page-edit-labs', - templateUrl: './sample-po-page-edit-labs.component.html' + templateUrl: './sample-po-page-edit-labs.component.html', + standalone: false }) export class SamplePoPageEditLabsComponent implements OnInit { action: string; diff --git a/projects/ui/src/lib/components/po-page/po-page-edit/samples/sample-po-page-edit-user/sample-po-page-edit-user.component.ts b/projects/ui/src/lib/components/po-page/po-page-edit/samples/sample-po-page-edit-user/sample-po-page-edit-user.component.ts index 7ca7abe5e5..6c28761b01 100644 --- a/projects/ui/src/lib/components/po-page/po-page-edit/samples/sample-po-page-edit-user/sample-po-page-edit-user.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page-edit/samples/sample-po-page-edit-user/sample-po-page-edit-user.component.ts @@ -8,7 +8,8 @@ import { PoNotificationService } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-page-edit-user', - templateUrl: './sample-po-page-edit-user.component.html' + templateUrl: './sample-po-page-edit-user.component.html', + standalone: false }) export class SamplePoPageEditUserComponent implements OnInit { @ViewChild('formEditUser', { static: true }) formEditUser: NgForm; diff --git a/projects/ui/src/lib/components/po-page/po-page-header/po-page-header.component.spec.ts b/projects/ui/src/lib/components/po-page/po-page-header/po-page-header.component.spec.ts index 1d6f515e75..14fdc443e6 100644 --- a/projects/ui/src/lib/components/po-page/po-page-header/po-page-header.component.spec.ts +++ b/projects/ui/src/lib/components/po-page/po-page-header/po-page-header.component.spec.ts @@ -7,7 +7,10 @@ import { RouterTestingModule } from '@angular/router/testing'; import { PoBreadcrumbModule } from '../../po-breadcrumb/po-breadcrumb.module'; import { PoPageHeaderComponent } from './po-page-header.component'; -@Component({ template: 'Guides' }) +@Component({ + template: 'Guides', + standalone: false +}) export class GuidesComponent {} export const routes: Routes = [{ path: 'guides', component: GuidesComponent }]; diff --git a/projects/ui/src/lib/components/po-page/po-page-header/po-page-header.component.ts b/projects/ui/src/lib/components/po-page/po-page-header/po-page-header.component.ts index c31f973273..854e108d42 100644 --- a/projects/ui/src/lib/components/po-page/po-page-header/po-page-header.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page-header/po-page-header.component.ts @@ -8,6 +8,7 @@ import { PoPageHeaderBaseComponent } from './po-page-header-base.component'; */ @Component({ selector: 'po-page-header', - templateUrl: './po-page-header.component.html' + templateUrl: './po-page-header.component.html', + standalone: false }) export class PoPageHeaderComponent extends PoPageHeaderBaseComponent {} diff --git a/projects/ui/src/lib/components/po-page/po-page-list/po-page-list.component.spec.ts b/projects/ui/src/lib/components/po-page/po-page-list/po-page-list.component.spec.ts index 551fca7707..34cbf7d80e 100644 --- a/projects/ui/src/lib/components/po-page/po-page-list/po-page-list.component.spec.ts +++ b/projects/ui/src/lib/components/po-page/po-page-list/po-page-list.component.spec.ts @@ -36,7 +36,8 @@ const eventSubmit = document.createEvent('Event'); eventSubmit.initEvent('submit', true, false); @Component({ - template: ` ` + template: ` `, + standalone: false }) class MobileComponent { public actions: Array<{}> = [ @@ -120,7 +121,8 @@ describe('PoPageListComponent - Mobile:', () => { }); @Component({ - template: ` ` + template: ` `, + standalone: false }) class DesktopComponent { public model = '123'; diff --git a/projects/ui/src/lib/components/po-page/po-page-list/po-page-list.component.ts b/projects/ui/src/lib/components/po-page/po-page-list/po-page-list.component.ts index ce0ac09b56..4a7e3a2049 100644 --- a/projects/ui/src/lib/components/po-page/po-page-list/po-page-list.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page-list/po-page-list.component.ts @@ -45,7 +45,8 @@ import { PoPageListBaseComponent } from './po-page-list-base.component'; */ @Component({ selector: 'po-page-list', - templateUrl: './po-page-list.component.html' + templateUrl: './po-page-list.component.html', + standalone: false }) export class PoPageListComponent extends PoPageListBaseComponent diff --git a/projects/ui/src/lib/components/po-page/po-page-list/samples/sample-po-page-list-basic/sample-po-page-list-basic.component.ts b/projects/ui/src/lib/components/po-page/po-page-list/samples/sample-po-page-list-basic/sample-po-page-list-basic.component.ts index 90e9cfc8b5..bdd88f1b99 100644 --- a/projects/ui/src/lib/components/po-page/po-page-list/samples/sample-po-page-list-basic/sample-po-page-list-basic.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page-list/samples/sample-po-page-list-basic/sample-po-page-list-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-page-list-basic', - templateUrl: './sample-po-page-list-basic.component.html' + templateUrl: './sample-po-page-list-basic.component.html', + standalone: false }) export class SamplePoPageListBasicComponent {} diff --git a/projects/ui/src/lib/components/po-page/po-page-list/samples/sample-po-page-list-hiring-processes/sample-po-page-list-hiring-processes.component.ts b/projects/ui/src/lib/components/po-page/po-page-list/samples/sample-po-page-list-hiring-processes/sample-po-page-list-hiring-processes.component.ts index 8fc96f5ec0..2ddbd93efc 100644 --- a/projects/ui/src/lib/components/po-page/po-page-list/samples/sample-po-page-list-hiring-processes/sample-po-page-list-hiring-processes.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page-list/samples/sample-po-page-list-hiring-processes/sample-po-page-list-hiring-processes.component.ts @@ -16,7 +16,8 @@ import { SamplePoPageListHiringProcessesService } from './sample-po-page-list-hi @Component({ selector: 'sample-po-page-list-hiring-processes', templateUrl: './sample-po-page-list-hiring-processes.component.html', - providers: [SamplePoPageListHiringProcessesService] + providers: [SamplePoPageListHiringProcessesService], + standalone: false }) export class SamplePoPageListHiringProcessesComponent implements OnInit { @ViewChild('advancedFilterModal', { static: true }) advancedFilterModal: PoModalComponent; diff --git a/projects/ui/src/lib/components/po-page/po-page-list/samples/sample-po-page-list-hiring-processes/sample-po-page-list-hiring-processes.service.ts b/projects/ui/src/lib/components/po-page/po-page-list/samples/sample-po-page-list-hiring-processes/sample-po-page-list-hiring-processes.service.ts index d50d1d9fba..a2a9bb3931 100644 --- a/projects/ui/src/lib/components/po-page/po-page-list/samples/sample-po-page-list-hiring-processes/sample-po-page-list-hiring-processes.service.ts +++ b/projects/ui/src/lib/components/po-page/po-page-list/samples/sample-po-page-list-hiring-processes/sample-po-page-list-hiring-processes.service.ts @@ -2,7 +2,9 @@ import { Injectable } from '@angular/core'; import { PoTableColumn } from '@po-ui/ng-components'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class SamplePoPageListHiringProcessesService { getColumns(): Array { return [ diff --git a/projects/ui/src/lib/components/po-page/po-page-list/samples/sample-po-page-list-labs/sample-po-page-list-labs.component.ts b/projects/ui/src/lib/components/po-page/po-page-list/samples/sample-po-page-list-labs/sample-po-page-list-labs.component.ts index 63bbbf98da..c7d16f8ad3 100644 --- a/projects/ui/src/lib/components/po-page/po-page-list/samples/sample-po-page-list-labs/sample-po-page-list-labs.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page-list/samples/sample-po-page-list-labs/sample-po-page-list-labs.component.ts @@ -8,7 +8,8 @@ import { PoPageAction, PoPageFilter, PoPageListLiterals } from '@po-ui/ng-compon @Component({ selector: 'sample-po-page-list-labs', - templateUrl: './sample-po-page-list-labs.component.html' + templateUrl: './sample-po-page-list-labs.component.html', + standalone: false }) export class SamplePoPageListLabsComponent implements OnInit { action: PoPageAction; diff --git a/projects/ui/src/lib/components/po-page/po-page-slide/po-page-slide-footer/po-page-slide-footer.component.ts b/projects/ui/src/lib/components/po-page/po-page-slide/po-page-slide-footer/po-page-slide-footer.component.ts index 0cc16e9428..f8b1f7a9ff 100644 --- a/projects/ui/src/lib/components/po-page/po-page-slide/po-page-slide-footer/po-page-slide-footer.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page-slide/po-page-slide-footer/po-page-slide-footer.component.ts @@ -18,7 +18,8 @@ import { Component, Input } from '@angular/core'; */ @Component({ selector: 'po-page-slide-footer', - templateUrl: './po-page-slide-footer.component.html' + templateUrl: './po-page-slide-footer.component.html', + standalone: false }) export class PoPageSlideFooterComponent { /** diff --git a/projects/ui/src/lib/components/po-page/po-page-slide/po-page-slide.component.spec.ts b/projects/ui/src/lib/components/po-page/po-page-slide/po-page-slide.component.spec.ts index be12c78334..6f0c108390 100644 --- a/projects/ui/src/lib/components/po-page/po-page-slide/po-page-slide.component.spec.ts +++ b/projects/ui/src/lib/components/po-page/po-page-slide/po-page-slide.component.spec.ts @@ -16,7 +16,8 @@ import { PoPageSlideComponent } from './po-page-slide.component'; - ` + `, + standalone: false }) class TestComponent { @ViewChild(PoPageSlideComponent, { static: true }) poPage: PoPageSlideComponent; diff --git a/projects/ui/src/lib/components/po-page/po-page-slide/po-page-slide.component.ts b/projects/ui/src/lib/components/po-page/po-page-slide/po-page-slide.component.ts index 8461e09dce..dad164d6e1 100644 --- a/projects/ui/src/lib/components/po-page/po-page-slide/po-page-slide.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page-slide/po-page-slide.component.ts @@ -65,7 +65,8 @@ export const poPageSlideLiteralsDefault = { ]), transition(':leave', [animate('150ms', style({ transform: 'translateX(50px)' }))]) ]) - ] + ], + standalone: false }) export class PoPageSlideComponent extends PoPageSlideBaseComponent { private _pageContent: ElementRef; diff --git a/projects/ui/src/lib/components/po-page/po-page-slide/samples/sample-po-page-slide-basic/sample-po-page-slide-basic.component.ts b/projects/ui/src/lib/components/po-page/po-page-slide/samples/sample-po-page-slide-basic/sample-po-page-slide-basic.component.ts index 70867383cf..e13a488d44 100644 --- a/projects/ui/src/lib/components/po-page/po-page-slide/samples/sample-po-page-slide-basic/sample-po-page-slide-basic.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page-slide/samples/sample-po-page-slide-basic/sample-po-page-slide-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-page-slide-basic', - templateUrl: './sample-po-page-slide-basic.component.html' + templateUrl: './sample-po-page-slide-basic.component.html', + standalone: false }) export class SamplePoPageSlideBasicComponent {} diff --git a/projects/ui/src/lib/components/po-page/po-page-slide/samples/sample-po-page-slide-configuration/sample-po-page-slide-configuration.component.ts b/projects/ui/src/lib/components/po-page/po-page-slide/samples/sample-po-page-slide-configuration/sample-po-page-slide-configuration.component.ts index 54d79e4e18..de40cfc1a4 100644 --- a/projects/ui/src/lib/components/po-page/po-page-slide/samples/sample-po-page-slide-configuration/sample-po-page-slide-configuration.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page-slide/samples/sample-po-page-slide-configuration/sample-po-page-slide-configuration.component.ts @@ -3,7 +3,8 @@ import { Router } from '@angular/router'; @Component({ selector: 'sample-po-page-slide-configuration', - templateUrl: './sample-po-page-slide-configuration.component.html' + templateUrl: './sample-po-page-slide-configuration.component.html', + standalone: false }) export class SamplePoPageSlideConfigurationComponent { public bluetooth = true; diff --git a/projects/ui/src/lib/components/po-page/po-page-slide/samples/sample-po-page-slide-labs/sample-po-page-slide-labs.component.ts b/projects/ui/src/lib/components/po-page/po-page-slide/samples/sample-po-page-slide-labs/sample-po-page-slide-labs.component.ts index e8902465f9..a1f81d9930 100644 --- a/projects/ui/src/lib/components/po-page/po-page-slide/samples/sample-po-page-slide-labs/sample-po-page-slide-labs.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page-slide/samples/sample-po-page-slide-labs/sample-po-page-slide-labs.component.ts @@ -3,7 +3,8 @@ import { PoCheckboxGroupOption, PoPageSlideComponent, PoRadioGroupOption } from @Component({ selector: 'sample-po-page-slide-labs', - templateUrl: './sample-po-page-slide-labs.component.html' + templateUrl: './sample-po-page-slide-labs.component.html', + standalone: false }) export class SamplePoPageSlideLabsComponent implements OnInit { @ViewChild('poPageSlide') diff --git a/projects/ui/src/lib/components/po-page/po-page.component.ts b/projects/ui/src/lib/components/po-page/po-page.component.ts index 7041268566..bbb00e0544 100644 --- a/projects/ui/src/lib/components/po-page/po-page.component.ts +++ b/projects/ui/src/lib/components/po-page/po-page.component.ts @@ -9,6 +9,7 @@ import { PoPageBaseComponent } from './po-page-base.component'; */ @Component({ selector: 'po-page', - templateUrl: './po-page.component.html' + templateUrl: './po-page.component.html', + standalone: false }) export class PoPageComponent extends PoPageBaseComponent {} diff --git a/projects/ui/src/lib/components/po-popover/po-popover.component.ts b/projects/ui/src/lib/components/po-popover/po-popover.component.ts index 219731b1c2..025775e7e8 100644 --- a/projects/ui/src/lib/components/po-popover/po-popover.component.ts +++ b/projects/ui/src/lib/components/po-popover/po-popover.component.ts @@ -36,7 +36,8 @@ import { PoPopoverBaseComponent } from './po-popover-base.component'; @Component({ selector: 'po-popover', templateUrl: './po-popover.component.html', - providers: [PoControlPositionService] + providers: [PoControlPositionService], + standalone: false }) export class PoPopoverComponent extends PoPopoverBaseComponent implements AfterViewInit, OnDestroy { @ViewChild('popoverElement', { read: ElementRef, static: true }) popoverElement: ElementRef; diff --git a/projects/ui/src/lib/components/po-popover/samples/sample-po-popover-basic/sample-po-popover-basic.component.ts b/projects/ui/src/lib/components/po-popover/samples/sample-po-popover-basic/sample-po-popover-basic.component.ts index efc655882c..ea89ab729a 100644 --- a/projects/ui/src/lib/components/po-popover/samples/sample-po-popover-basic/sample-po-popover-basic.component.ts +++ b/projects/ui/src/lib/components/po-popover/samples/sample-po-popover-basic/sample-po-popover-basic.component.ts @@ -4,7 +4,8 @@ import { PoButtonComponent } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-popover-basic', - templateUrl: './sample-po-popover-basic.component.html' + templateUrl: './sample-po-popover-basic.component.html', + standalone: false }) export class SamplePoPopoverBasicComponent { @ViewChild(PoButtonComponent, { read: ElementRef, static: true }) poButton: PoButtonComponent; diff --git a/projects/ui/src/lib/components/po-popover/samples/sample-po-popover-credit-card/sample-po-popover-credit-card.component.ts b/projects/ui/src/lib/components/po-popover/samples/sample-po-popover-credit-card/sample-po-popover-credit-card.component.ts index 2a669e3a31..752a466a93 100644 --- a/projects/ui/src/lib/components/po-popover/samples/sample-po-popover-credit-card/sample-po-popover-credit-card.component.ts +++ b/projects/ui/src/lib/components/po-popover/samples/sample-po-popover-credit-card/sample-po-popover-credit-card.component.ts @@ -2,7 +2,8 @@ import { Component, ElementRef, ViewChild } from '@angular/core'; @Component({ selector: 'sample-po-popover-credit-card', - templateUrl: './sample-po-popover-credit-card.component.html' + templateUrl: './sample-po-popover-credit-card.component.html', + standalone: false }) export class SamplePoPopoverCreditCardComponent { @ViewChild('cardname', { read: ElementRef, static: true }) cardnameref: ElementRef; diff --git a/projects/ui/src/lib/components/po-popover/samples/sample-po-popover-labs/sample-po-popover-labs.component.ts b/projects/ui/src/lib/components/po-popover/samples/sample-po-popover-labs/sample-po-popover-labs.component.ts index 4cd246aced..37c4c8be9f 100644 --- a/projects/ui/src/lib/components/po-popover/samples/sample-po-popover-labs/sample-po-popover-labs.component.ts +++ b/projects/ui/src/lib/components/po-popover/samples/sample-po-popover-labs/sample-po-popover-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption, PoRadioGroupOption } from '@po-ui/ng-components' @Component({ selector: 'sample-po-popover-labs', - templateUrl: './sample-po-popover-labs.component.html' + templateUrl: './sample-po-popover-labs.component.html', + standalone: false }) export class SamplePoPopoverLabsComponent { @ViewChild('buttonClick', { read: ElementRef, static: true }) buttonClickRef: ElementRef; diff --git a/projects/ui/src/lib/components/po-popup/po-popup.component.ts b/projects/ui/src/lib/components/po-popup/po-popup.component.ts index c188defe20..995c6683a7 100644 --- a/projects/ui/src/lib/components/po-popup/po-popup.component.ts +++ b/projects/ui/src/lib/components/po-popup/po-popup.component.ts @@ -33,7 +33,8 @@ import { PoListBoxComponent } from '../po-listbox'; @Component({ selector: 'po-popup', templateUrl: './po-popup.component.html', - providers: [PoControlPositionService] + providers: [PoControlPositionService], + standalone: false }) export class PoPopupComponent extends PoPopupBaseComponent { @ViewChild('popupRef', { read: ElementRef }) popupRef: ElementRef; diff --git a/projects/ui/src/lib/components/po-popup/samples/sample-po-popup-basic/sample-po-popup-basic.component.ts b/projects/ui/src/lib/components/po-popup/samples/sample-po-popup-basic/sample-po-popup-basic.component.ts index d8b5b7beba..9420b62da9 100644 --- a/projects/ui/src/lib/components/po-popup/samples/sample-po-popup-basic/sample-po-popup-basic.component.ts +++ b/projects/ui/src/lib/components/po-popup/samples/sample-po-popup-basic/sample-po-popup-basic.component.ts @@ -2,7 +2,8 @@ import { AfterViewInit, ChangeDetectorRef, Component, ElementRef, ViewChild } fr @Component({ selector: 'sample-po-popup-basic', - templateUrl: './sample-po-popup-basic.component.html' + templateUrl: './sample-po-popup-basic.component.html', + standalone: false }) export class SamplePoPopupBasicComponent implements AfterViewInit { @ViewChild('target', { read: ElementRef }) targetRef: ElementRef; diff --git a/projects/ui/src/lib/components/po-popup/samples/sample-po-popup-email/sample-po-popup-email.component.ts b/projects/ui/src/lib/components/po-popup/samples/sample-po-popup-email/sample-po-popup-email.component.ts index 671d540024..fb00cec8d8 100644 --- a/projects/ui/src/lib/components/po-popup/samples/sample-po-popup-email/sample-po-popup-email.component.ts +++ b/projects/ui/src/lib/components/po-popup/samples/sample-po-popup-email/sample-po-popup-email.component.ts @@ -22,7 +22,8 @@ import { PoModalAction, PoModalComponent, PoPopupAction } from '@po-ui/ng-compon padding-top: 5%; } ` - ] + ], + standalone: false }) export class SamplePoPopupEmailComponent implements OnInit { @ViewChild('formEmail', { static: true }) formEmail: UntypedFormControl; diff --git a/projects/ui/src/lib/components/po-popup/samples/sample-po-popup-labs/sample-po-popup-labs.component.ts b/projects/ui/src/lib/components/po-popup/samples/sample-po-popup-labs/sample-po-popup-labs.component.ts index 62df0a7f30..9270cc9a63 100644 --- a/projects/ui/src/lib/components/po-popup/samples/sample-po-popup-labs/sample-po-popup-labs.component.ts +++ b/projects/ui/src/lib/components/po-popup/samples/sample-po-popup-labs/sample-po-popup-labs.component.ts @@ -12,7 +12,8 @@ import { PoNotificationService, PoCheckboxGroupOption, PoSelectOption, PoPopupAc margin-bottom: 20px; } ` - ] + ], + standalone: false }) export class SamplePoPopupLabsComponent implements OnInit { @ViewChild('target', { read: ElementRef, static: true }) targetRef: ElementRef; diff --git a/projects/ui/src/lib/components/po-progress/po-progress-bar/po-progress-bar.component.ts b/projects/ui/src/lib/components/po-progress/po-progress-bar/po-progress-bar.component.ts index 92858c4d3a..2d0ff676ec 100644 --- a/projects/ui/src/lib/components/po-progress/po-progress-bar/po-progress-bar.component.ts +++ b/projects/ui/src/lib/components/po-progress/po-progress-bar/po-progress-bar.component.ts @@ -3,7 +3,8 @@ import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; @Component({ selector: 'po-progress-bar', templateUrl: './po-progress-bar.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoProgressBarComponent { @Input('p-indeterminate') indeterminate: boolean; diff --git a/projects/ui/src/lib/components/po-progress/po-progress.component.ts b/projects/ui/src/lib/components/po-progress/po-progress.component.ts index e7cc965e71..a35dc0345b 100644 --- a/projects/ui/src/lib/components/po-progress/po-progress.component.ts +++ b/projects/ui/src/lib/components/po-progress/po-progress.component.ts @@ -27,7 +27,8 @@ import { poProgressLiterals } from './literals/po-progress.literals'; @Component({ selector: 'po-progress', templateUrl: './po-progress.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoProgressComponent extends PoProgressBaseComponent implements OnInit { language; diff --git a/projects/ui/src/lib/components/po-progress/samples/sample-po-progress-basic/sample-po-progress-basic.component.ts b/projects/ui/src/lib/components/po-progress/samples/sample-po-progress-basic/sample-po-progress-basic.component.ts index 7047f53f22..9f39583243 100644 --- a/projects/ui/src/lib/components/po-progress/samples/sample-po-progress-basic/sample-po-progress-basic.component.ts +++ b/projects/ui/src/lib/components/po-progress/samples/sample-po-progress-basic/sample-po-progress-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-progress-basic', - templateUrl: './sample-po-progress-basic.component.html' + templateUrl: './sample-po-progress-basic.component.html', + standalone: false }) export class SamplePoProgressBasicComponent {} diff --git a/projects/ui/src/lib/components/po-progress/samples/sample-po-progress-labs/sample-po-progress-labs.component.ts b/projects/ui/src/lib/components/po-progress/samples/sample-po-progress-labs/sample-po-progress-labs.component.ts index 162f4ee9ea..01b604b1d8 100644 --- a/projects/ui/src/lib/components/po-progress/samples/sample-po-progress-labs/sample-po-progress-labs.component.ts +++ b/projects/ui/src/lib/components/po-progress/samples/sample-po-progress-labs/sample-po-progress-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption, PoProgressStatus, PoRadioGroupOption, PoProgress @Component({ selector: 'sample-po-progress-labs', - templateUrl: './sample-po-progress-labs.component.html' + templateUrl: './sample-po-progress-labs.component.html', + standalone: false }) export class SamplePoProgressLabsComponent implements OnInit { event: any; diff --git a/projects/ui/src/lib/components/po-progress/samples/sample-po-progress-publication/sample-po-progress-publication.component.ts b/projects/ui/src/lib/components/po-progress/samples/sample-po-progress-publication/sample-po-progress-publication.component.ts index 193dfd5e10..f5878258cd 100644 --- a/projects/ui/src/lib/components/po-progress/samples/sample-po-progress-publication/sample-po-progress-publication.component.ts +++ b/projects/ui/src/lib/components/po-progress/samples/sample-po-progress-publication/sample-po-progress-publication.component.ts @@ -2,7 +2,8 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-progress-publication', - templateUrl: './sample-po-progress-publication.component.html' + templateUrl: './sample-po-progress-publication.component.html', + standalone: false }) export class SamplePoProgressPublicationComponent { buttonDisabled: boolean; diff --git a/projects/ui/src/lib/components/po-search/po-search.component.ts b/projects/ui/src/lib/components/po-search/po-search.component.ts index ee628cdf38..87054eeef1 100644 --- a/projects/ui/src/lib/components/po-search/po-search.component.ts +++ b/projects/ui/src/lib/components/po-search/po-search.component.ts @@ -59,7 +59,8 @@ const poSearchContainerPositionDefault = 'bottom'; selector: 'po-search', templateUrl: './po-search.component.html', providers: [PoControlPositionService], - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoSearchComponent extends PoSearchBaseComponent implements OnInit, OnDestroy, OnChanges { private clickoutListener: () => void; diff --git a/projects/ui/src/lib/components/po-search/samples/sample-po-search-basic/sample-po-search-basic.component.ts b/projects/ui/src/lib/components/po-search/samples/sample-po-search-basic/sample-po-search-basic.component.ts index da5aa3d572..2b3fcb0b41 100644 --- a/projects/ui/src/lib/components/po-search/samples/sample-po-search-basic/sample-po-search-basic.component.ts +++ b/projects/ui/src/lib/components/po-search/samples/sample-po-search-basic/sample-po-search-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-search-basic', - templateUrl: './sample-po-search-basic.component.html' + templateUrl: './sample-po-search-basic.component.html', + standalone: false }) export class SamplePoSearchBasicComponent {} diff --git a/projects/ui/src/lib/components/po-search/samples/sample-po-search-filter-select/sample-po-search-filter-select.component.ts b/projects/ui/src/lib/components/po-search/samples/sample-po-search-filter-select/sample-po-search-filter-select.component.ts index e85eccd439..15bc7954d4 100644 --- a/projects/ui/src/lib/components/po-search/samples/sample-po-search-filter-select/sample-po-search-filter-select.component.ts +++ b/projects/ui/src/lib/components/po-search/samples/sample-po-search-filter-select/sample-po-search-filter-select.component.ts @@ -2,7 +2,8 @@ import { Component, OnInit } from '@angular/core'; @Component({ selector: 'sample-po-search-filter-select', - templateUrl: './sample-po-search-filter-select.component.html' + templateUrl: './sample-po-search-filter-select.component.html', + standalone: false }) export class SamplePoSearchFilterSelectComponent implements OnInit { items: any; diff --git a/projects/ui/src/lib/components/po-search/samples/sample-po-search-find-people/sample-po-search-find-people.component.ts b/projects/ui/src/lib/components/po-search/samples/sample-po-search-find-people/sample-po-search-find-people.component.ts index ac0b95d0fd..b568bb3aa9 100644 --- a/projects/ui/src/lib/components/po-search/samples/sample-po-search-find-people/sample-po-search-find-people.component.ts +++ b/projects/ui/src/lib/components/po-search/samples/sample-po-search-find-people/sample-po-search-find-people.component.ts @@ -22,7 +22,8 @@ import { SamplePoSearchFindPeopleService } from './sample-po-search-find-people. } ` ], - providers: [SamplePoSearchFindPeopleService] + providers: [SamplePoSearchFindPeopleService], + standalone: false }) export class SamplePoSearchFindPeopleComponent implements OnInit { items: any; diff --git a/projects/ui/src/lib/components/po-search/samples/sample-po-search-labs/sample-po-search-labs.component.ts b/projects/ui/src/lib/components/po-search/samples/sample-po-search-labs/sample-po-search-labs.component.ts index 4c52d2f0d3..37119621cd 100644 --- a/projects/ui/src/lib/components/po-search/samples/sample-po-search-labs/sample-po-search-labs.component.ts +++ b/projects/ui/src/lib/components/po-search/samples/sample-po-search-labs/sample-po-search-labs.component.ts @@ -24,7 +24,8 @@ import { HttpClient } from '@angular/common/http'; text-transform: capitalize; } ` - ] + ], + standalone: false }) export class SamplePoSearchLabsComponent implements OnInit, OnChanges { @ViewChild('poSearch', { static: true }) PoSearch: PoSearchComponent; diff --git a/projects/ui/src/lib/components/po-search/samples/sample-po-search-listbox/sample-po-search-listbox.component.ts b/projects/ui/src/lib/components/po-search/samples/sample-po-search-listbox/sample-po-search-listbox.component.ts index a9372e02d7..fcde9281b3 100644 --- a/projects/ui/src/lib/components/po-search/samples/sample-po-search-listbox/sample-po-search-listbox.component.ts +++ b/projects/ui/src/lib/components/po-search/samples/sample-po-search-listbox/sample-po-search-listbox.component.ts @@ -4,7 +4,8 @@ import { SamplePoSearchListboxService } from './sample-po-search-listbox.service @Component({ selector: 'sample-po-search-listbox', templateUrl: './sample-po-search-listbox.component.html', - providers: [SamplePoSearchListboxService] + providers: [SamplePoSearchListboxService], + standalone: false }) export class SamplePoSearchListboxComponent implements OnInit { items: any; diff --git a/projects/ui/src/lib/components/po-slide/directives/po-slide-content-template.directive.ts b/projects/ui/src/lib/components/po-slide/directives/po-slide-content-template.directive.ts index 9db53a60ea..92a5455970 100644 --- a/projects/ui/src/lib/components/po-slide/directives/po-slide-content-template.directive.ts +++ b/projects/ui/src/lib/components/po-slide/directives/po-slide-content-template.directive.ts @@ -44,7 +44,8 @@ import { Directive, TemplateRef } from '@angular/core'; * ``` */ @Directive({ - selector: '[p-slide-content-template]' + selector: '[p-slide-content-template]', + standalone: false }) export class PoSlideContentTemplateDirective { // Necessário manter templateRef para o funcionamento do row template. diff --git a/projects/ui/src/lib/components/po-slide/po-slide-circles/po-slide-circles.component.ts b/projects/ui/src/lib/components/po-slide/po-slide-circles/po-slide-circles.component.ts index fb99f2871c..8e3da5ccb0 100644 --- a/projects/ui/src/lib/components/po-slide/po-slide-circles/po-slide-circles.component.ts +++ b/projects/ui/src/lib/components/po-slide/po-slide-circles/po-slide-circles.component.ts @@ -9,7 +9,8 @@ import { Component, EventEmitter, Input, Output } from '@angular/core'; */ @Component({ selector: 'po-slide-circles', - templateUrl: './po-slide-circles.component.html' + templateUrl: './po-slide-circles.component.html', + standalone: false }) export class PoSlideCirclesComponent { /** Index do slide atual. */ diff --git a/projects/ui/src/lib/components/po-slide/po-slide-control/po-slide-control.component.ts b/projects/ui/src/lib/components/po-slide/po-slide-control/po-slide-control.component.ts index 6ca2c2d19c..ae91f0dab3 100644 --- a/projects/ui/src/lib/components/po-slide/po-slide-control/po-slide-control.component.ts +++ b/projects/ui/src/lib/components/po-slide/po-slide-control/po-slide-control.component.ts @@ -9,7 +9,8 @@ import { Component, EventEmitter, Input, Output } from '@angular/core'; */ @Component({ selector: 'po-slide-control', - templateUrl: './po-slide-control.component.html' + templateUrl: './po-slide-control.component.html', + standalone: false }) export class PoSlideControlComponent { /** Tipo de controle que aceita os valores: 'previous' e 'next'. */ diff --git a/projects/ui/src/lib/components/po-slide/po-slide-item/po-slide-item.component.ts b/projects/ui/src/lib/components/po-slide/po-slide-item/po-slide-item.component.ts index abf6278eea..ea03368f10 100644 --- a/projects/ui/src/lib/components/po-slide/po-slide-item/po-slide-item.component.ts +++ b/projects/ui/src/lib/components/po-slide/po-slide-item/po-slide-item.component.ts @@ -13,7 +13,8 @@ import { PoSlideContentTemplateDirective } from '../directives/po-slide-content- */ @Component({ selector: 'po-slide-item', - templateUrl: './po-slide-item.component.html' + templateUrl: './po-slide-item.component.html', + standalone: false }) export class PoSlideItemComponent { @ViewChild('slideItem', { static: true }) itemElement: ElementRef; diff --git a/projects/ui/src/lib/components/po-slide/po-slide.component.ts b/projects/ui/src/lib/components/po-slide/po-slide.component.ts index 3681f07965..187a25e7b9 100644 --- a/projects/ui/src/lib/components/po-slide/po-slide.component.ts +++ b/projects/ui/src/lib/components/po-slide/po-slide.component.ts @@ -59,7 +59,8 @@ const poSlideTiming = '250ms ease'; */ @Component({ selector: 'po-slide', - templateUrl: './po-slide.component.html' + templateUrl: './po-slide.component.html', + standalone: false }) export class PoSlideComponent extends PoSlideBaseComponent implements OnInit, DoCheck, OnChanges, OnDestroy { @ContentChild(PoSlideContentTemplateDirective, { static: true }) diff --git a/projects/ui/src/lib/components/po-slide/samples/sample-po-slide-basic/sample-po-slide-basic.component.ts b/projects/ui/src/lib/components/po-slide/samples/sample-po-slide-basic/sample-po-slide-basic.component.ts index 4b201bc068..ce4967446a 100644 --- a/projects/ui/src/lib/components/po-slide/samples/sample-po-slide-basic/sample-po-slide-basic.component.ts +++ b/projects/ui/src/lib/components/po-slide/samples/sample-po-slide-basic/sample-po-slide-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-slide-basic', - templateUrl: './sample-po-slide-basic.component.html' + templateUrl: './sample-po-slide-basic.component.html', + standalone: false }) export class SamplePoSlideBasicComponent {} diff --git a/projects/ui/src/lib/components/po-slide/samples/sample-po-slide-external-controls/sample-po-slide-external-controls.component.ts b/projects/ui/src/lib/components/po-slide/samples/sample-po-slide-external-controls/sample-po-slide-external-controls.component.ts index fbbb15ce18..9ce35b79f2 100644 --- a/projects/ui/src/lib/components/po-slide/samples/sample-po-slide-external-controls/sample-po-slide-external-controls.component.ts +++ b/projects/ui/src/lib/components/po-slide/samples/sample-po-slide-external-controls/sample-po-slide-external-controls.component.ts @@ -4,7 +4,8 @@ import { PoSlideComponent } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-slide-external-controls', - templateUrl: './sample-po-slide-external-controls.component.html' + templateUrl: './sample-po-slide-external-controls.component.html', + standalone: false }) export class SamplePoSlideExternalControlsComponent { @ViewChild('slideComponent', { static: true }) slideComponent: PoSlideComponent; diff --git a/projects/ui/src/lib/components/po-slide/samples/sample-po-slide-labs/sample-po-slide-labs.component.ts b/projects/ui/src/lib/components/po-slide/samples/sample-po-slide-labs/sample-po-slide-labs.component.ts index fae2c4f9e5..afc86c465c 100644 --- a/projects/ui/src/lib/components/po-slide/samples/sample-po-slide-labs/sample-po-slide-labs.component.ts +++ b/projects/ui/src/lib/components/po-slide/samples/sample-po-slide-labs/sample-po-slide-labs.component.ts @@ -4,7 +4,8 @@ import { PoNotificationService, PoSlideItem } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-slide-labs', - templateUrl: './sample-po-slide-labs.component.html' + templateUrl: './sample-po-slide-labs.component.html', + standalone: false }) export class SamplePoSlideLabsComponent implements OnInit { height: number; diff --git a/projects/ui/src/lib/components/po-slide/samples/sample-po-slide-landscapes/sample-po-slide-landscapes.component.ts b/projects/ui/src/lib/components/po-slide/samples/sample-po-slide-landscapes/sample-po-slide-landscapes.component.ts index d44b0be70f..57383d1882 100644 --- a/projects/ui/src/lib/components/po-slide/samples/sample-po-slide-landscapes/sample-po-slide-landscapes.component.ts +++ b/projects/ui/src/lib/components/po-slide/samples/sample-po-slide-landscapes/sample-po-slide-landscapes.component.ts @@ -4,7 +4,8 @@ import { PoModalComponent, PoSlideItem } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-slide-landscapes', - templateUrl: './sample-po-slide-landscapes.component.html' + templateUrl: './sample-po-slide-landscapes.component.html', + standalone: false }) export class SamplePoSlideLandscapesComponent { @ViewChild(PoModalComponent, { static: true }) modal: PoModalComponent; diff --git a/projects/ui/src/lib/components/po-slide/samples/sample-po-slide-useful-articles/sample-po-slide-useful-articles.component.ts b/projects/ui/src/lib/components/po-slide/samples/sample-po-slide-useful-articles/sample-po-slide-useful-articles.component.ts index 5031c51f72..1411e88507 100644 --- a/projects/ui/src/lib/components/po-slide/samples/sample-po-slide-useful-articles/sample-po-slide-useful-articles.component.ts +++ b/projects/ui/src/lib/components/po-slide/samples/sample-po-slide-useful-articles/sample-po-slide-useful-articles.component.ts @@ -2,7 +2,8 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-slide-useful-articles', - templateUrl: './sample-po-slide-useful-articles.component.html' + templateUrl: './sample-po-slide-useful-articles.component.html', + standalone: false }) export class SamplePoSlideUsefulArticlesComponent { sampleItems: Array = [ diff --git a/projects/ui/src/lib/components/po-stepper/po-step/po-step.component.ts b/projects/ui/src/lib/components/po-stepper/po-step/po-step.component.ts index 0c27e5ff9d..de1bac8909 100644 --- a/projects/ui/src/lib/components/po-stepper/po-step/po-step.component.ts +++ b/projects/ui/src/lib/components/po-stepper/po-step/po-step.component.ts @@ -44,7 +44,8 @@ import { PoStepperStatus } from '../enums/po-stepper-status.enum'; */ @Component({ selector: 'po-step', - templateUrl: 'po-step.component.html' + templateUrl: 'po-step.component.html', + standalone: false }) export class PoStepComponent implements AfterContentInit { /** diff --git a/projects/ui/src/lib/components/po-stepper/po-stepper-circle/po-stepper-circle.component.ts b/projects/ui/src/lib/components/po-stepper/po-stepper-circle/po-stepper-circle.component.ts index 7aa7c8ca56..fb5068305a 100644 --- a/projects/ui/src/lib/components/po-stepper/po-stepper-circle/po-stepper-circle.component.ts +++ b/projects/ui/src/lib/components/po-stepper/po-stepper-circle/po-stepper-circle.component.ts @@ -14,7 +14,8 @@ const poLargeStepSize = 48; */ @Component({ selector: 'po-stepper-circle', - templateUrl: './po-stepper-circle.component.html' + templateUrl: './po-stepper-circle.component.html', + standalone: false }) export class PoStepperCircleComponent { // Alinhamento do *step*. diff --git a/projects/ui/src/lib/components/po-stepper/po-stepper-label/po-stepper-label.component.ts b/projects/ui/src/lib/components/po-stepper/po-stepper-label/po-stepper-label.component.ts index 19f5c5071d..9c30a79540 100644 --- a/projects/ui/src/lib/components/po-stepper/po-stepper-label/po-stepper-label.component.ts +++ b/projects/ui/src/lib/components/po-stepper/po-stepper-label/po-stepper-label.component.ts @@ -20,7 +20,8 @@ import { */ @Component({ selector: 'po-stepper-label', - templateUrl: './po-stepper-label.component.html' + templateUrl: './po-stepper-label.component.html', + standalone: false }) export class PoStepperLabelComponent implements AfterViewInit, OnChanges { // Alinhamento da label. diff --git a/projects/ui/src/lib/components/po-stepper/po-stepper-step/po-stepper-step.component.ts b/projects/ui/src/lib/components/po-stepper/po-stepper-step/po-stepper-step.component.ts index f850e87955..dd93d1aca1 100644 --- a/projects/ui/src/lib/components/po-stepper/po-stepper-step/po-stepper-step.component.ts +++ b/projects/ui/src/lib/components/po-stepper/po-stepper-step/po-stepper-step.component.ts @@ -22,7 +22,8 @@ const poStepLiteralsDefault = { */ @Component({ selector: 'po-stepper-step', - templateUrl: 'po-stepper-step.component.html' + templateUrl: 'po-stepper-step.component.html', + standalone: false }) export class PoStepperStepComponent implements OnChanges { // Alinhamento do *step* e da label. diff --git a/projects/ui/src/lib/components/po-stepper/po-stepper.component.ts b/projects/ui/src/lib/components/po-stepper/po-stepper.component.ts index 61809ae734..461ea70606 100644 --- a/projects/ui/src/lib/components/po-stepper/po-stepper.component.ts +++ b/projects/ui/src/lib/components/po-stepper/po-stepper.component.ts @@ -41,7 +41,8 @@ import { PoStepperItem } from './po-stepper-item.interface'; */ @Component({ selector: 'po-stepper', - templateUrl: './po-stepper.component.html' + templateUrl: './po-stepper.component.html', + standalone: false }) export class PoStepperComponent extends PoStepperBaseComponent implements AfterContentInit { @ContentChildren(PoStepComponent) poSteps: QueryList; diff --git a/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-active/sample-po-stepper-active.component.ts b/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-active/sample-po-stepper-active.component.ts index 94fe7425ec..12df0e2f31 100644 --- a/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-active/sample-po-stepper-active.component.ts +++ b/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-active/sample-po-stepper-active.component.ts @@ -6,7 +6,8 @@ import { SamplePoStepperActiveService } from './sample-po-stepper-active.service @Component({ selector: 'sample-po-stepper-active', - templateUrl: './sample-po-stepper-active.component.html' + templateUrl: './sample-po-stepper-active.component.html', + standalone: false }) export class SamplePoStepperActiveComponent implements OnInit, AfterViewInit, OnDestroy { @ViewChild('basicInformation', { static: true }) basicInformationForm: NgForm; diff --git a/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-basic/sample-po-stepper-basic.component.ts b/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-basic/sample-po-stepper-basic.component.ts index 6731587da5..243f721068 100644 --- a/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-basic/sample-po-stepper-basic.component.ts +++ b/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-basic/sample-po-stepper-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-stepper-basic', - templateUrl: './sample-po-stepper-basic.component.html' + templateUrl: './sample-po-stepper-basic.component.html', + standalone: false }) export class SamplePoStepperBasicComponent {} diff --git a/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-labs/sample-po-stepper-labs.component.ts b/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-labs/sample-po-stepper-labs.component.ts index 647c5741c4..0a2833dce5 100644 --- a/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-labs/sample-po-stepper-labs.component.ts +++ b/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-labs/sample-po-stepper-labs.component.ts @@ -4,7 +4,8 @@ import { PoDynamicFormField, PoStepperItem } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-stepper-labs', - templateUrl: './sample-po-stepper-labs.component.html' + templateUrl: './sample-po-stepper-labs.component.html', + standalone: false }) export class SamplePoStepperLabsComponent implements OnInit { event: any; diff --git a/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-sales/sample-po-stepper-sales.component.ts b/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-sales/sample-po-stepper-sales.component.ts index 01fec6a2e5..b8e7fcf433 100644 --- a/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-sales/sample-po-stepper-sales.component.ts +++ b/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-sales/sample-po-stepper-sales.component.ts @@ -7,7 +7,8 @@ import { delay, finalize, map, tap } from 'rxjs/operators'; @Component({ selector: 'sample-po-stepper-sales', - templateUrl: './sample-po-stepper-sales.component.html' + templateUrl: './sample-po-stepper-sales.component.html', + standalone: false }) export class SamplePoStepperSalesComponent { @ViewChild('addressForm', { static: true }) addressForm: NgForm; diff --git a/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-steps/sample-po-stepper-steps.component.ts b/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-steps/sample-po-stepper-steps.component.ts index efd42c35ec..40cc236950 100644 --- a/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-steps/sample-po-stepper-steps.component.ts +++ b/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-steps/sample-po-stepper-steps.component.ts @@ -3,7 +3,8 @@ import { PoStepperItem, PoStepperStatus } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-stepper-steps', - templateUrl: './sample-po-stepper-steps.component.html' + templateUrl: './sample-po-stepper-steps.component.html', + standalone: false }) export class SamplePoStepperStepsComponent implements AfterViewInit { currentStep: number; diff --git a/projects/ui/src/lib/components/po-table/po-table-base.component.ts b/projects/ui/src/lib/components/po-table/po-table-base.component.ts index 3bc08916ca..5c437e9bcf 100644 --- a/projects/ui/src/lib/components/po-table/po-table-base.component.ts +++ b/projects/ui/src/lib/components/po-table/po-table-base.component.ts @@ -462,7 +462,7 @@ export abstract class PoTableBaseComponent implements OnChanges, OnDestroy { * O componente envia como parâmetro um array de string com as colunas configuradas inicialmente. * Por exemplo: ["idCard", "name", "hireStatus", "age"]. */ - @Output('p-restore-column-manager') columnRestoreManager = new EventEmitter>(); + @Output('p-restore-column-manager') columnRestoreManager = new EventEmitter>(); allColumnsWidthPixels: boolean; columnMasterDetail: PoTableColumn; @@ -477,7 +477,7 @@ export abstract class PoTableBaseComponent implements OnChanges, OnDestroy { initialColumns: Array; showBatchActions: boolean = false; itemsSelected: Array = []; - paramsFilter: {}; + paramsFilter = {}; filteredItems: Array = []; initialized = false; fixedLayout: boolean = false; diff --git a/projects/ui/src/lib/components/po-table/po-table-cell-template/po-table-cell-template.directive.ts b/projects/ui/src/lib/components/po-table/po-table-cell-template/po-table-cell-template.directive.ts index 23436e59c1..b944340f64 100644 --- a/projects/ui/src/lib/components/po-table/po-table-cell-template/po-table-cell-template.directive.ts +++ b/projects/ui/src/lib/components/po-table/po-table-cell-template/po-table-cell-template.directive.ts @@ -66,7 +66,8 @@ import { Directive, TemplateRef } from '@angular/core'; * > Observação: Sempre adicionar o **type** da coluna que deseja manipular com a directiva como `cellTemplate` */ @Directive({ - selector: '[p-table-cell-template]' + selector: '[p-table-cell-template]', + standalone: false }) export class PoTableCellTemplateDirective { // Necessário manter templateRef para o funcionamento do cell template. diff --git a/projects/ui/src/lib/components/po-table/po-table-column-frozen/po-table-column-frozen.directive.spec.ts b/projects/ui/src/lib/components/po-table/po-table-column-frozen/po-table-column-frozen.directive.spec.ts index acbe38842f..e2f7fbe5af 100644 --- a/projects/ui/src/lib/components/po-table/po-table-column-frozen/po-table-column-frozen.directive.spec.ts +++ b/projects/ui/src/lib/components/po-table/po-table-column-frozen/po-table-column-frozen.directive.spec.ts @@ -9,7 +9,8 @@ import { PoTableColumnFrozenDirective } from './po-table-column-frozen.directive
- ` + `, + standalone: false }) class TestHostComponent { frozen: boolean; diff --git a/projects/ui/src/lib/components/po-table/po-table-column-frozen/po-table-column-frozen.directive.ts b/projects/ui/src/lib/components/po-table/po-table-column-frozen/po-table-column-frozen.directive.ts index 281fc453f4..5b27a1976f 100644 --- a/projects/ui/src/lib/components/po-table/po-table-column-frozen/po-table-column-frozen.directive.ts +++ b/projects/ui/src/lib/components/po-table/po-table-column-frozen/po-table-column-frozen.directive.ts @@ -5,7 +5,8 @@ import { AfterViewInit, Directive, ElementRef, Input, Renderer2, OnChanges, Simp host: { class: 'p-element', '[class.po-frozen-column]': 'frozen' - } + }, + standalone: false }) export class PoTableColumnFrozenDirective implements AfterViewInit, OnChanges { _frozen: boolean = true; diff --git a/projects/ui/src/lib/components/po-table/po-table-column-icon/po-table-column-icon.component.ts b/projects/ui/src/lib/components/po-table/po-table-column-icon/po-table-column-icon.component.ts index 6e82676188..1cf6ec7b5c 100644 --- a/projects/ui/src/lib/components/po-table/po-table-column-icon/po-table-column-icon.component.ts +++ b/projects/ui/src/lib/components/po-table/po-table-column-icon/po-table-column-icon.component.ts @@ -13,7 +13,8 @@ import { PoTableColumnIcon } from './po-table-column-icon.interface'; @Component({ selector: 'po-table-column-icon', templateUrl: './po-table-column-icon.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoTableColumnIconComponent { /** Definição da coluna que utiliza os icones. */ diff --git a/projects/ui/src/lib/components/po-table/po-table-column-label/po-table-column-label.component.ts b/projects/ui/src/lib/components/po-table/po-table-column-label/po-table-column-label.component.ts index 26ef1fee5a..f67bbe0011 100644 --- a/projects/ui/src/lib/components/po-table/po-table-column-label/po-table-column-label.component.ts +++ b/projects/ui/src/lib/components/po-table/po-table-column-label/po-table-column-label.component.ts @@ -13,7 +13,8 @@ import { PoTableColumnLabel } from './po-table-column-label.interface'; @Component({ selector: 'po-table-column-label', templateUrl: './po-table-column-label.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoTableColumnLabelComponent implements OnInit { @Input('p-value') value: PoTableColumnLabel; diff --git a/projects/ui/src/lib/components/po-table/po-table-column-link/po-table-column-link.component.ts b/projects/ui/src/lib/components/po-table/po-table-column-link/po-table-column-link.component.ts index 8fff11fb2e..9be91be3ae 100644 --- a/projects/ui/src/lib/components/po-table/po-table-column-link/po-table-column-link.component.ts +++ b/projects/ui/src/lib/components/po-table/po-table-column-link/po-table-column-link.component.ts @@ -12,7 +12,8 @@ import { isExternalLink } from '../../../utils/util'; @Component({ selector: 'po-table-column-link', templateUrl: './po-table-column-link.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoTableColumnLinkComponent { @Input('p-action') action: Function; diff --git a/projects/ui/src/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.ts b/projects/ui/src/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.ts index 0027259397..f47c5ee3fd 100644 --- a/projects/ui/src/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.ts +++ b/projects/ui/src/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.ts @@ -45,7 +45,8 @@ type Direction = 'up' | 'down'; @Component({ selector: 'po-table-column-manager', - templateUrl: './po-table-column-manager.component.html' + templateUrl: './po-table-column-manager.component.html', + standalone: false }) export class PoTableColumnManagerComponent implements OnChanges, OnDestroy { @ViewChild(PoPopoverComponent) popover: PoPopoverComponent; @@ -65,7 +66,7 @@ export class PoTableColumnManagerComponent implements OnChanges, OnDestroy { // O po-table envia como parâmetro um array de string com as colunas visíveis atualizadas. Por exemplo: ["idCard", "name", "hireStatus", "age"]. @Output('p-change-visible-columns') changeVisibleColumns = new EventEmitter>(); - @Output('p-initial-columns') initialColumns = new EventEmitter>(); + @Output('p-initial-columns') initialColumns = new EventEmitter>(); @Input({ alias: 'p-hide-action-fixed-columns', transform: convertToBoolean }) hideActionFixedColumns: boolean = false; diff --git a/projects/ui/src/lib/components/po-table/po-table-column-template/po-table-column-template.directive.ts b/projects/ui/src/lib/components/po-table/po-table-column-template/po-table-column-template.directive.ts index b4be964e87..4764bb81fd 100644 --- a/projects/ui/src/lib/components/po-table/po-table-column-template/po-table-column-template.directive.ts +++ b/projects/ui/src/lib/components/po-table/po-table-column-template/po-table-column-template.directive.ts @@ -73,7 +73,8 @@ import { Directive, Input, TemplateRef } from '@angular/core'; */ @Directive({ - selector: '[p-table-column-template]' + selector: '[p-table-column-template]', + standalone: false }) export class PoTableColumnTemplateDirective { /** diff --git a/projects/ui/src/lib/components/po-table/po-table-detail/po-table-detail.component.ts b/projects/ui/src/lib/components/po-table/po-table-detail/po-table-detail.component.ts index 53e17dd8fb..8c081f946e 100644 --- a/projects/ui/src/lib/components/po-table/po-table-detail/po-table-detail.component.ts +++ b/projects/ui/src/lib/components/po-table/po-table-detail/po-table-detail.component.ts @@ -15,7 +15,8 @@ import { PoTableDetailColumn } from './po-table-detail-column.interface'; */ @Component({ selector: 'po-table-detail', - templateUrl: './po-table-detail.component.html' + templateUrl: './po-table-detail.component.html', + standalone: false }) export class PoTableDetailComponent { /** diff --git a/projects/ui/src/lib/components/po-table/po-table-icon/po-table-icon.component.ts b/projects/ui/src/lib/components/po-table/po-table-icon/po-table-icon.component.ts index 8c6f8330dc..21d388c489 100644 --- a/projects/ui/src/lib/components/po-table/po-table-icon/po-table-icon.component.ts +++ b/projects/ui/src/lib/components/po-table/po-table-icon/po-table-icon.component.ts @@ -10,7 +10,8 @@ import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, Templa @Component({ selector: 'po-table-icon', templateUrl: './po-table-icon.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoTableIconComponent { /** Define se o ícone é clicável. */ diff --git a/projects/ui/src/lib/components/po-table/po-table-list-manager/po-table-list-manager.component.ts b/projects/ui/src/lib/components/po-table/po-table-list-manager/po-table-list-manager.component.ts index a786562bd0..7b6d22d097 100644 --- a/projects/ui/src/lib/components/po-table/po-table-list-manager/po-table-list-manager.component.ts +++ b/projects/ui/src/lib/components/po-table/po-table-list-manager/po-table-list-manager.component.ts @@ -46,7 +46,8 @@ type Direction = 'up' | 'down'; useExisting: forwardRef(() => PoTableListManagerComponent), multi: true } - ] + ], + standalone: false }) export class PoTableListManagerComponent extends PoCheckboxGroupComponent { private _iconToken: { [key: string]: string }; diff --git a/projects/ui/src/lib/components/po-table/po-table-row-template/po-table-row-template.directive.ts b/projects/ui/src/lib/components/po-table/po-table-row-template/po-table-row-template.directive.ts index 0985204500..5d2fee471e 100644 --- a/projects/ui/src/lib/components/po-table/po-table-row-template/po-table-row-template.directive.ts +++ b/projects/ui/src/lib/components/po-table/po-table-row-template/po-table-row-template.directive.ts @@ -90,7 +90,8 @@ import { PoTableRowTemplateArrowDirection } from '../enums/po-table-row-template * não correspondam à *delivered*. */ @Directive({ - selector: '[p-table-row-template]' + selector: '[p-table-row-template]', + standalone: false }) export class PoTableRowTemplateDirective { /** diff --git a/projects/ui/src/lib/components/po-table/po-table-show-subtitle/po-table-show-subtitle.component.ts b/projects/ui/src/lib/components/po-table/po-table-show-subtitle/po-table-show-subtitle.component.ts index 3fac27b6d5..409eacc1ff 100644 --- a/projects/ui/src/lib/components/po-table/po-table-show-subtitle/po-table-show-subtitle.component.ts +++ b/projects/ui/src/lib/components/po-table/po-table-show-subtitle/po-table-show-subtitle.component.ts @@ -11,7 +11,8 @@ import { PoTableSubtitleColumn } from '../po-table-subtitle-footer/po-table-subt */ @Component({ selector: 'po-table-show-subtitle', - templateUrl: './po-table-show-subtitle.component.html' + templateUrl: './po-table-show-subtitle.component.html', + standalone: false }) export class PoTableShowSubtitleComponent { /** Objeto com os dados da legenda. */ diff --git a/projects/ui/src/lib/components/po-table/po-table-subtitle-circle/po-table-subtitle-circle.component.ts b/projects/ui/src/lib/components/po-table/po-table-subtitle-circle/po-table-subtitle-circle.component.ts index d6dde1f8a9..259606eb4a 100644 --- a/projects/ui/src/lib/components/po-table/po-table-subtitle-circle/po-table-subtitle-circle.component.ts +++ b/projects/ui/src/lib/components/po-table/po-table-subtitle-circle/po-table-subtitle-circle.component.ts @@ -13,7 +13,8 @@ import { PoTableSubtitleColumn } from './../po-table-subtitle-footer/po-table-su @Component({ selector: 'po-table-subtitle-circle', templateUrl: './po-table-subtitle-circle.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoTableSubtitleCircleComponent { /** Esconde a tooltip. */ diff --git a/projects/ui/src/lib/components/po-table/po-table-subtitle-footer/po-table-subtitle-footer.component.ts b/projects/ui/src/lib/components/po-table/po-table-subtitle-footer/po-table-subtitle-footer.component.ts index 863727539e..99dd43fe98 100644 --- a/projects/ui/src/lib/components/po-table/po-table-subtitle-footer/po-table-subtitle-footer.component.ts +++ b/projects/ui/src/lib/components/po-table/po-table-subtitle-footer/po-table-subtitle-footer.component.ts @@ -11,7 +11,8 @@ import { PoTableSubtitleColumn } from './po-table-subtitle-column.interface'; */ @Component({ selector: 'po-table-subtitle-footer', - templateUrl: './po-table-subtitle-footer.component.html' + templateUrl: './po-table-subtitle-footer.component.html', + standalone: false }) export class PoTableSubtitleFooterComponent implements AfterViewInit, DoCheck, OnDestroy { /** Propriedade que recebe as literais definidas no `po-table`. */ diff --git a/projects/ui/src/lib/components/po-table/po-table.component.spec.ts b/projects/ui/src/lib/components/po-table/po-table.component.spec.ts index 0985622a51..21752be9e5 100644 --- a/projects/ui/src/lib/components/po-table/po-table.component.spec.ts +++ b/projects/ui/src/lib/components/po-table/po-table.component.spec.ts @@ -25,10 +25,16 @@ import { PoTableModule } from './po-table.module'; import { PoTableService } from './services/po-table.service'; import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http'; -@Component({ template: 'Search' }) +@Component({ + template: 'Search', + standalone: false +}) export class SearchComponent {} -@Component({ template: 'Home' }) +@Component({ + template: 'Home', + standalone: false +}) export class TestMenuComponent {} export const routes: Routes = [ diff --git a/projects/ui/src/lib/components/po-table/po-table.component.ts b/projects/ui/src/lib/components/po-table/po-table.component.ts index 236ce23f3a..d8bc191c12 100644 --- a/projects/ui/src/lib/components/po-table/po-table.component.ts +++ b/projects/ui/src/lib/components/po-table/po-table.component.ts @@ -101,7 +101,8 @@ import { PoTableService } from './services/po-table.service'; @Component({ selector: 'po-table', templateUrl: './po-table.component.html', - providers: [PoDateService] + providers: [PoDateService], + standalone: false }) export class PoTableComponent extends PoTableBaseComponent implements AfterViewInit, DoCheck, OnDestroy, OnInit { @ContentChild(PoTableRowTemplateDirective, { static: true }) tableRowTemplate: PoTableRowTemplateDirective; @@ -581,7 +582,7 @@ export class PoTableComponent extends PoTableBaseComponent implements AfterViewI this.changeVisibleColumns.emit(columns); } - onColumnRestoreManager(value: Array) { + onColumnRestoreManager(value: Array) { this.columnRestoreManager.emit(value); } diff --git a/projects/ui/src/lib/components/po-table/samples/sample-po-table-airfare/sample-po-table-airfare.component.ts b/projects/ui/src/lib/components/po-table/samples/sample-po-table-airfare/sample-po-table-airfare.component.ts index 60c55852fc..1bef720509 100644 --- a/projects/ui/src/lib/components/po-table/samples/sample-po-table-airfare/sample-po-table-airfare.component.ts +++ b/projects/ui/src/lib/components/po-table/samples/sample-po-table-airfare/sample-po-table-airfare.component.ts @@ -14,7 +14,8 @@ import { SamplePoTableAirfareService } from './sample-po-table-airfare.service'; @Component({ selector: 'sample-po-table-airfare', templateUrl: './sample-po-table-airfare.component.html', - providers: [SamplePoTableAirfareService, PoDialogService] + providers: [SamplePoTableAirfareService, PoDialogService], + standalone: false }) export class SamplePoTableAirfareComponent implements AfterViewInit, OnInit { @ViewChild(PoModalComponent, { static: true }) poModal: PoModalComponent; diff --git a/projects/ui/src/lib/components/po-table/samples/sample-po-table-airfare/sample-po-table-airfare.service.ts b/projects/ui/src/lib/components/po-table/samples/sample-po-table-airfare/sample-po-table-airfare.service.ts index 3804f43118..8e9454a07f 100644 --- a/projects/ui/src/lib/components/po-table/samples/sample-po-table-airfare/sample-po-table-airfare.service.ts +++ b/projects/ui/src/lib/components/po-table/samples/sample-po-table-airfare/sample-po-table-airfare.service.ts @@ -2,7 +2,9 @@ import { Injectable } from '@angular/core'; import { PoTableColumn, PoTableDetail } from '@po-ui/ng-components'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class SamplePoTableAirfareService { getColumns(): Array { const airfareDetail: PoTableDetail = { diff --git a/projects/ui/src/lib/components/po-table/samples/sample-po-table-basic/sample-po-table-basic.component.ts b/projects/ui/src/lib/components/po-table/samples/sample-po-table-basic/sample-po-table-basic.component.ts index 32a475943a..36ee213959 100644 --- a/projects/ui/src/lib/components/po-table/samples/sample-po-table-basic/sample-po-table-basic.component.ts +++ b/projects/ui/src/lib/components/po-table/samples/sample-po-table-basic/sample-po-table-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-table-basic', - templateUrl: './sample-po-table-basic.component.html' + templateUrl: './sample-po-table-basic.component.html', + standalone: false }) export class SamplePoTableBasicComponent {} diff --git a/projects/ui/src/lib/components/po-table/samples/sample-po-table-components/sample-po-table-components.component.ts b/projects/ui/src/lib/components/po-table/samples/sample-po-table-components/sample-po-table-components.component.ts index b53bcbf329..53a982b8b4 100644 --- a/projects/ui/src/lib/components/po-table/samples/sample-po-table-components/sample-po-table-components.component.ts +++ b/projects/ui/src/lib/components/po-table/samples/sample-po-table-components/sample-po-table-components.component.ts @@ -10,7 +10,8 @@ import { SamplePoTableComponentsService } from './sample-po-table-components.ser selector: 'sample-po-table-components', templateUrl: './sample-po-table-components.component.html', styleUrls: ['./sample-po-table-components.component.css'], - providers: [SamplePoTableComponentsService] + providers: [SamplePoTableComponentsService], + standalone: false }) export class SamplePoTableComponentsComponent implements OnInit { @ViewChild(PoModalComponent, { static: true }) poModal: PoModalComponent; diff --git a/projects/ui/src/lib/components/po-table/samples/sample-po-table-components/sample-po-table-components.service.ts b/projects/ui/src/lib/components/po-table/samples/sample-po-table-components/sample-po-table-components.service.ts index bbbe65f441..9a683ca565 100644 --- a/projects/ui/src/lib/components/po-table/samples/sample-po-table-components/sample-po-table-components.service.ts +++ b/projects/ui/src/lib/components/po-table/samples/sample-po-table-components/sample-po-table-components.service.ts @@ -2,7 +2,9 @@ import { Injectable } from '@angular/core'; import { PoTableColumnSort, PoTableColumnSortType } from '@po-ui/ng-components'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class SamplePoTableComponentsService { readonly items = [ { diff --git a/projects/ui/src/lib/components/po-table/samples/sample-po-table-draggable/sample-po-table-draggable.component.ts b/projects/ui/src/lib/components/po-table/samples/sample-po-table-draggable/sample-po-table-draggable.component.ts index 4b99500966..5c1df1f765 100644 --- a/projects/ui/src/lib/components/po-table/samples/sample-po-table-draggable/sample-po-table-draggable.component.ts +++ b/projects/ui/src/lib/components/po-table/samples/sample-po-table-draggable/sample-po-table-draggable.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-table-draggable', - templateUrl: './sample-po-table-draggable.component.html' + templateUrl: './sample-po-table-draggable.component.html', + standalone: false }) export class SamplePoTableDraggableComponent {} diff --git a/projects/ui/src/lib/components/po-table/samples/sample-po-table-heroes/sample-po-table-heroes.component.ts b/projects/ui/src/lib/components/po-table/samples/sample-po-table-heroes/sample-po-table-heroes.component.ts index 1ba2449faf..beb20f89e0 100644 --- a/projects/ui/src/lib/components/po-table/samples/sample-po-table-heroes/sample-po-table-heroes.component.ts +++ b/projects/ui/src/lib/components/po-table/samples/sample-po-table-heroes/sample-po-table-heroes.component.ts @@ -6,7 +6,8 @@ import { SamplePoTableHeroesService } from './sample-po-table-heroes.service'; @Component({ selector: 'sample-po-table-heroes', templateUrl: './sample-po-table-heroes.component.html', - providers: [SamplePoTableHeroesService] + providers: [SamplePoTableHeroesService], + standalone: false }) export class SamplePoTableHeroesComponent implements OnInit { @ViewChild('POItemsOri', { static: true }) poItemsOri: PoTableComponent; diff --git a/projects/ui/src/lib/components/po-table/samples/sample-po-table-heroes/sample-po-table-heroes.service.ts b/projects/ui/src/lib/components/po-table/samples/sample-po-table-heroes/sample-po-table-heroes.service.ts index 251f01b9e1..5f54e8c23f 100644 --- a/projects/ui/src/lib/components/po-table/samples/sample-po-table-heroes/sample-po-table-heroes.service.ts +++ b/projects/ui/src/lib/components/po-table/samples/sample-po-table-heroes/sample-po-table-heroes.service.ts @@ -4,7 +4,9 @@ import { PoTableColumn } from '@po-ui/ng-components'; import { Observable } from 'rxjs'; import { pluck } from 'rxjs/operators'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class SamplePoTableHeroesService { constructor(private http: HttpClient) {} getColumns(): Array { diff --git a/projects/ui/src/lib/components/po-table/samples/sample-po-table-labs/sample-po-table-labs.component.ts b/projects/ui/src/lib/components/po-table/samples/sample-po-table-labs/sample-po-table-labs.component.ts index 3d42e4d2ad..da74b04dfa 100644 --- a/projects/ui/src/lib/components/po-table/samples/sample-po-table-labs/sample-po-table-labs.component.ts +++ b/projects/ui/src/lib/components/po-table/samples/sample-po-table-labs/sample-po-table-labs.component.ts @@ -16,7 +16,8 @@ import { SamplePoTableLabsService } from './sample-po-table-labs.service'; @Component({ selector: 'sample-po-table-labs', templateUrl: './sample-po-table-labs.component.html', - providers: [SamplePoTableLabsService] + providers: [SamplePoTableLabsService], + standalone: false }) export class SamplePoTableLabsComponent implements OnInit { @ViewChild(PoModalComponent, { static: true }) poModal: PoModalComponent; diff --git a/projects/ui/src/lib/components/po-table/samples/sample-po-table-labs/sample-po-table-labs.service.ts b/projects/ui/src/lib/components/po-table/samples/sample-po-table-labs/sample-po-table-labs.service.ts index e6173cd9c3..6814b23727 100644 --- a/projects/ui/src/lib/components/po-table/samples/sample-po-table-labs/sample-po-table-labs.service.ts +++ b/projects/ui/src/lib/components/po-table/samples/sample-po-table-labs/sample-po-table-labs.service.ts @@ -2,7 +2,9 @@ import { Injectable } from '@angular/core'; import { PoTableColumn } from '@po-ui/ng-components'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class SamplePoTableLabsService { private readonly colors = [ 'color-01', diff --git a/projects/ui/src/lib/components/po-table/samples/sample-po-table-transport/sample-po-table-transport.component.ts b/projects/ui/src/lib/components/po-table/samples/sample-po-table-transport/sample-po-table-transport.component.ts index 1da184498b..7f5d6dee62 100644 --- a/projects/ui/src/lib/components/po-table/samples/sample-po-table-transport/sample-po-table-transport.component.ts +++ b/projects/ui/src/lib/components/po-table/samples/sample-po-table-transport/sample-po-table-transport.component.ts @@ -9,7 +9,8 @@ import { SamplePoTableTransportService } from './sample-po-table-transport.servi @Component({ selector: 'sample-po-table-transport', templateUrl: 'sample-po-table-transport.component.html', - providers: [SamplePoTableTransportService] + providers: [SamplePoTableTransportService], + standalone: false }) export class SamplePoTableTransportComponent implements OnInit { columns: Array; diff --git a/projects/ui/src/lib/components/po-table/samples/sample-po-table-transport/sample-po-table-transport.service.ts b/projects/ui/src/lib/components/po-table/samples/sample-po-table-transport/sample-po-table-transport.service.ts index 5e679a448e..0f9f6aeca2 100644 --- a/projects/ui/src/lib/components/po-table/samples/sample-po-table-transport/sample-po-table-transport.service.ts +++ b/projects/ui/src/lib/components/po-table/samples/sample-po-table-transport/sample-po-table-transport.service.ts @@ -2,7 +2,9 @@ import { Injectable } from '@angular/core'; import { PoTableColumn, PoTagType } from '@po-ui/ng-components'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class SamplePoTableTransportService { getColumns(): Array { return [ diff --git a/projects/ui/src/lib/components/po-table/samples/sample-po-table-with-api/sample-po-table-with-api.component.ts b/projects/ui/src/lib/components/po-table/samples/sample-po-table-with-api/sample-po-table-with-api.component.ts index 481e2d38d9..8fa2a6c835 100644 --- a/projects/ui/src/lib/components/po-table/samples/sample-po-table-with-api/sample-po-table-with-api.component.ts +++ b/projects/ui/src/lib/components/po-table/samples/sample-po-table-with-api/sample-po-table-with-api.component.ts @@ -3,7 +3,8 @@ import { PoDisclaimerGroupRemoveAction, PoDisclaimer, PoTableComponent, PoTableC @Component({ selector: 'sample-po-table-with-api', - templateUrl: './sample-po-table-with-api.component.html' + templateUrl: './sample-po-table-with-api.component.html', + standalone: false }) export class SamplePoTableWithApiComponent { @ViewChild('table') tableComponent: PoTableComponent; diff --git a/projects/ui/src/lib/components/po-tabs/po-tab-button/po-tab-button.component.ts b/projects/ui/src/lib/components/po-tabs/po-tab-button/po-tab-button.component.ts index 95319c6400..a2f18513f8 100644 --- a/projects/ui/src/lib/components/po-tabs/po-tab-button/po-tab-button.component.ts +++ b/projects/ui/src/lib/components/po-tabs/po-tab-button/po-tab-button.component.ts @@ -22,7 +22,8 @@ import { convertToBoolean } from '../../../utils/util'; */ @Component({ selector: 'po-tab-button', - templateUrl: './po-tab-button.component.html' + templateUrl: './po-tab-button.component.html', + standalone: false }) export class PoTabButtonComponent implements OnChanges, AfterViewInit { @ViewChild('tabButtom', { static: true }) tabButtom: ElementRef; diff --git a/projects/ui/src/lib/components/po-tabs/po-tab-dropdown/po-tab-dropdown.component.ts b/projects/ui/src/lib/components/po-tabs/po-tab-dropdown/po-tab-dropdown.component.ts index 8455ecea71..3558c9f89b 100644 --- a/projects/ui/src/lib/components/po-tabs/po-tab-dropdown/po-tab-dropdown.component.ts +++ b/projects/ui/src/lib/components/po-tabs/po-tab-dropdown/po-tab-dropdown.component.ts @@ -23,7 +23,8 @@ import { PoButtonComponent } from '../../po-button/po-button.component'; */ @Component({ selector: 'po-tab-dropdown', - templateUrl: './po-tab-dropdown.component.html' + templateUrl: './po-tab-dropdown.component.html', + standalone: false }) export class PoTabDropdownComponent implements AfterViewInit { @ViewChild('popover', { static: true }) popover: PoPopoverComponent; diff --git a/projects/ui/src/lib/components/po-tabs/po-tab/po-tab.component.ts b/projects/ui/src/lib/components/po-tabs/po-tab/po-tab.component.ts index c39cb20de9..6f099e3afc 100644 --- a/projects/ui/src/lib/components/po-tabs/po-tab/po-tab.component.ts +++ b/projects/ui/src/lib/components/po-tabs/po-tab/po-tab.component.ts @@ -8,7 +8,8 @@ import { PoTabsService } from '../po-tabs.service'; */ @Component({ selector: 'po-tab', - templateUrl: './po-tab.component.html' + templateUrl: './po-tab.component.html', + standalone: false }) export class PoTabComponent extends PoTabBaseComponent implements AfterContentInit, OnChanges { constructor( diff --git a/projects/ui/src/lib/components/po-tabs/po-tabs.component.ts b/projects/ui/src/lib/components/po-tabs/po-tabs.component.ts index 8ed03ff2ce..2e3918768b 100644 --- a/projects/ui/src/lib/components/po-tabs/po-tabs.component.ts +++ b/projects/ui/src/lib/components/po-tabs/po-tabs.component.ts @@ -20,7 +20,7 @@ import { PoTabComponent } from './po-tab/po-tab.component'; import { PoTabsBaseComponent } from './po-tabs-base.component'; import { PoTabsService } from './po-tabs.service'; -export const poTabsLiterals: Object = { +export const poTabsLiterals: object = { en: { moreTabs: 'More' }, @@ -64,7 +64,8 @@ const poTabsMaxNumberOfTabs = 5; */ @Component({ selector: 'po-tabs', - templateUrl: './po-tabs.component.html' + templateUrl: './po-tabs.component.html', + standalone: false }) export class PoTabsComponent extends PoTabsBaseComponent implements OnInit, AfterViewInit, OnDestroy, AfterContentInit { // Tabs utilizados no ng-content @@ -347,7 +348,7 @@ export class PoTabsComponent extends PoTabsBaseComponent implements OnInit, Afte * } * ``` */ - setQuantityTabsButton(number: Number) { + setQuantityTabsButton(number: number) { this.quantityTabsButton = number; } diff --git a/projects/ui/src/lib/components/po-tabs/po-tabs.service.ts b/projects/ui/src/lib/components/po-tabs/po-tabs.service.ts index 6ec31057df..9f36ecdbfc 100644 --- a/projects/ui/src/lib/components/po-tabs/po-tabs.service.ts +++ b/projects/ui/src/lib/components/po-tabs/po-tabs.service.ts @@ -2,7 +2,9 @@ import { Injectable } from '@angular/core'; import { Subject } from 'rxjs'; import { PoTabComponent } from './po-tab/po-tab.component'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoTabsService { private onChangesTriggeredSource = new Subject(); private onChangesTriggeredActiveSource = new Subject(); diff --git a/projects/ui/src/lib/components/po-tabs/samples/sample-po-tabs-basic/sample-po-tabs-basic.component.ts b/projects/ui/src/lib/components/po-tabs/samples/sample-po-tabs-basic/sample-po-tabs-basic.component.ts index 3bb515e036..b83be82df5 100644 --- a/projects/ui/src/lib/components/po-tabs/samples/sample-po-tabs-basic/sample-po-tabs-basic.component.ts +++ b/projects/ui/src/lib/components/po-tabs/samples/sample-po-tabs-basic/sample-po-tabs-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-tabs-basic', - templateUrl: './sample-po-tabs-basic.component.html' + templateUrl: './sample-po-tabs-basic.component.html', + standalone: false }) export class SamplePoTabsBasicComponent {} diff --git a/projects/ui/src/lib/components/po-tabs/samples/sample-po-tabs-business-conf/sample-po-tabs-business-conf.component.ts b/projects/ui/src/lib/components/po-tabs/samples/sample-po-tabs-business-conf/sample-po-tabs-business-conf.component.ts index 2fc1a1913c..92ef88e31b 100644 --- a/projects/ui/src/lib/components/po-tabs/samples/sample-po-tabs-business-conf/sample-po-tabs-business-conf.component.ts +++ b/projects/ui/src/lib/components/po-tabs/samples/sample-po-tabs-business-conf/sample-po-tabs-business-conf.component.ts @@ -4,7 +4,8 @@ import { PoNotificationService, PoTabsComponent } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-tabs-business-conf', - templateUrl: './sample-po-tabs-business-conf.component.html' + templateUrl: './sample-po-tabs-business-conf.component.html', + standalone: false }) export class SamplePoTabsBusinessConfComponent implements OnInit { @ViewChild('poTab', { static: true }) poTab: PoTabsComponent; diff --git a/projects/ui/src/lib/components/po-tabs/samples/sample-po-tabs-labs/sample-po-tabs-labs.component.ts b/projects/ui/src/lib/components/po-tabs/samples/sample-po-tabs-labs/sample-po-tabs-labs.component.ts index e36c35a7eb..b8036f386f 100644 --- a/projects/ui/src/lib/components/po-tabs/samples/sample-po-tabs-labs/sample-po-tabs-labs.component.ts +++ b/projects/ui/src/lib/components/po-tabs/samples/sample-po-tabs-labs/sample-po-tabs-labs.component.ts @@ -4,7 +4,8 @@ import { PoDynamicFormField, PoNotificationService, PoTab, PoTabsComponent } fro @Component({ selector: 'sample-po-tabs-labs', - templateUrl: './sample-po-tabs-labs.component.html' + templateUrl: './sample-po-tabs-labs.component.html', + standalone: false }) export class SamplePoTabsLabsComponent implements OnInit { @ViewChild('poTab', { static: true }) poTab: PoTabsComponent; diff --git a/projects/ui/src/lib/components/po-tabs/samples/sample-po-tabs-travel/sample-po-tabs-travel.component.ts b/projects/ui/src/lib/components/po-tabs/samples/sample-po-tabs-travel/sample-po-tabs-travel.component.ts index 9876dba33e..0123ad7d26 100644 --- a/projects/ui/src/lib/components/po-tabs/samples/sample-po-tabs-travel/sample-po-tabs-travel.component.ts +++ b/projects/ui/src/lib/components/po-tabs/samples/sample-po-tabs-travel/sample-po-tabs-travel.component.ts @@ -4,7 +4,8 @@ import { PoNotificationService, PoRadioGroupOption, PoSelectOption } from '@po-u @Component({ selector: 'sample-po-tabs-travel', - templateUrl: './sample-po-tabs-travel.component.html' + templateUrl: './sample-po-tabs-travel.component.html', + standalone: false }) export class SamplePoTabsTravelComponent { card: number; diff --git a/projects/ui/src/lib/components/po-tag/po-tag.component.spec.ts b/projects/ui/src/lib/components/po-tag/po-tag.component.spec.ts index b751d30029..b24b4d4b3a 100644 --- a/projects/ui/src/lib/components/po-tag/po-tag.component.spec.ts +++ b/projects/ui/src/lib/components/po-tag/po-tag.component.spec.ts @@ -15,7 +15,8 @@ import { PoTagType } from './enums/po-tag-type.enum'; import { PoTagLiterals } from './po-tag.literals'; @Component({ - template: ` ` + template: ` `, + standalone: false }) class PoTagClickableComponent { onClick() {} diff --git a/projects/ui/src/lib/components/po-tag/po-tag.component.ts b/projects/ui/src/lib/components/po-tag/po-tag.component.ts index c40e9e6f17..7606a8a080 100644 --- a/projects/ui/src/lib/components/po-tag/po-tag.component.ts +++ b/projects/ui/src/lib/components/po-tag/po-tag.component.ts @@ -31,7 +31,8 @@ const poTagTypeDefault = 'po-tag-' + PoTagType.Info; @Component({ selector: 'po-tag', templateUrl: './po-tag.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoTagComponent extends PoTagBaseComponent implements OnInit { @ViewChild('tagContainer', { static: true }) tagContainer: ElementRef; diff --git a/projects/ui/src/lib/components/po-tag/samples/sample-po-tag-bank-account/sample-po-tag-bank-account.component.ts b/projects/ui/src/lib/components/po-tag/samples/sample-po-tag-bank-account/sample-po-tag-bank-account.component.ts index 535f8314c6..2183d7df14 100644 --- a/projects/ui/src/lib/components/po-tag/samples/sample-po-tag-bank-account/sample-po-tag-bank-account.component.ts +++ b/projects/ui/src/lib/components/po-tag/samples/sample-po-tag-bank-account/sample-po-tag-bank-account.component.ts @@ -2,7 +2,8 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-tag-bank-account', - templateUrl: './sample-po-tag-bank-account.component.html' + templateUrl: './sample-po-tag-bank-account.component.html', + standalone: false }) export class SamplePoTagBankAccountComponent { investiments = [ diff --git a/projects/ui/src/lib/components/po-tag/samples/sample-po-tag-basic/sample-po-tag-basic.component.ts b/projects/ui/src/lib/components/po-tag/samples/sample-po-tag-basic/sample-po-tag-basic.component.ts index 9240a43f1c..15975cc364 100644 --- a/projects/ui/src/lib/components/po-tag/samples/sample-po-tag-basic/sample-po-tag-basic.component.ts +++ b/projects/ui/src/lib/components/po-tag/samples/sample-po-tag-basic/sample-po-tag-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-tag-basic', - templateUrl: './sample-po-tag-basic.component.html' + templateUrl: './sample-po-tag-basic.component.html', + standalone: false }) export class SamplePoTagBasicComponent {} diff --git a/projects/ui/src/lib/components/po-tag/samples/sample-po-tag-labs/sample-po-tag-labs.component.ts b/projects/ui/src/lib/components/po-tag/samples/sample-po-tag-labs/sample-po-tag-labs.component.ts index 290bbaeb7a..3863cddfb8 100644 --- a/projects/ui/src/lib/components/po-tag/samples/sample-po-tag-labs/sample-po-tag-labs.component.ts +++ b/projects/ui/src/lib/components/po-tag/samples/sample-po-tag-labs/sample-po-tag-labs.component.ts @@ -22,7 +22,8 @@ import { width: 16px; } ` - ] + ], + standalone: false }) export class SamplePoTagLabsComponent implements OnInit { color: string; diff --git a/projects/ui/src/lib/components/po-toaster/po-toaster.component.ts b/projects/ui/src/lib/components/po-toaster/po-toaster.component.ts index 6479ad3430..658dbe797b 100644 --- a/projects/ui/src/lib/components/po-toaster/po-toaster.component.ts +++ b/projects/ui/src/lib/components/po-toaster/po-toaster.component.ts @@ -39,7 +39,8 @@ const SPACE_BETWEEN_TOASTERS = 8; */ @Component({ selector: 'po-toaster', - templateUrl: './po-toaster.component.html' + templateUrl: './po-toaster.component.html', + standalone: false }) export class PoToasterComponent extends PoToasterBaseComponent implements AfterViewInit, OnDestroy, OnChanges { /* Componente toaster */ diff --git a/projects/ui/src/lib/components/po-toaster/samples/sample-po-toaster-basic/sample-po-toaster-basic.component.ts b/projects/ui/src/lib/components/po-toaster/samples/sample-po-toaster-basic/sample-po-toaster-basic.component.ts index 314f7595a4..876f0b4051 100644 --- a/projects/ui/src/lib/components/po-toaster/samples/sample-po-toaster-basic/sample-po-toaster-basic.component.ts +++ b/projects/ui/src/lib/components/po-toaster/samples/sample-po-toaster-basic/sample-po-toaster-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-toaster-basic', - templateUrl: './sample-po-toaster-basic.component.html' + templateUrl: './sample-po-toaster-basic.component.html', + standalone: false }) export class SamplePoToasterBasicComponent {} diff --git a/projects/ui/src/lib/components/po-toaster/samples/sample-po-toaster-labs/sample-po-toaster-labs.component.ts b/projects/ui/src/lib/components/po-toaster/samples/sample-po-toaster-labs/sample-po-toaster-labs.component.ts index c2e13ecd00..a349acd6b2 100644 --- a/projects/ui/src/lib/components/po-toaster/samples/sample-po-toaster-labs/sample-po-toaster-labs.component.ts +++ b/projects/ui/src/lib/components/po-toaster/samples/sample-po-toaster-labs/sample-po-toaster-labs.component.ts @@ -9,7 +9,8 @@ import { @Component({ selector: 'sample-po-toaster-labs', - templateUrl: './sample-po-toaster-labs.component.html' + templateUrl: './sample-po-toaster-labs.component.html', + standalone: false }) export class SamplePoToasterLabsComponent { @ViewChild(PoModalComponent, { static: true }) poModal: PoModalComponent; diff --git a/projects/ui/src/lib/components/po-toolbar/po-toolbar-actions/po-toolbar-actions.component.ts b/projects/ui/src/lib/components/po-toolbar/po-toolbar-actions/po-toolbar-actions.component.ts index b4eb8021dc..a7236bb2e8 100644 --- a/projects/ui/src/lib/components/po-toolbar/po-toolbar-actions/po-toolbar-actions.component.ts +++ b/projects/ui/src/lib/components/po-toolbar/po-toolbar-actions/po-toolbar-actions.component.ts @@ -17,7 +17,8 @@ const poToolbarActionsIconDefault = 'ICON_MORE'; */ @Component({ selector: 'po-toolbar-actions', - templateUrl: './po-toolbar-actions.component.html' + templateUrl: './po-toolbar-actions.component.html', + standalone: false }) export class PoToolbarActionsComponent { /** Define uma lista de ações. */ diff --git a/projects/ui/src/lib/components/po-toolbar/po-toolbar-notification/po-toolbar-notification.component.ts b/projects/ui/src/lib/components/po-toolbar/po-toolbar-notification/po-toolbar-notification.component.ts index 1a50474ee7..831ee3f6ae 100644 --- a/projects/ui/src/lib/components/po-toolbar/po-toolbar-notification/po-toolbar-notification.component.ts +++ b/projects/ui/src/lib/components/po-toolbar/po-toolbar-notification/po-toolbar-notification.component.ts @@ -20,7 +20,8 @@ import { PoToolbarAction } from '../po-toolbar-action.interface'; @Component({ selector: 'po-toolbar-notification', templateUrl: './po-toolbar-notification.component.html', - providers: [PoControlPositionService] + providers: [PoControlPositionService], + standalone: false }) export class PoToolbarNotificationComponent implements AfterViewInit { @ViewChild('notification', { read: ElementRef }) notificationRef: ElementRef; diff --git a/projects/ui/src/lib/components/po-toolbar/po-toolbar-profile/po-toolbar-profile.component.ts b/projects/ui/src/lib/components/po-toolbar/po-toolbar-profile/po-toolbar-profile.component.ts index 4a5cff74d6..36f9638feb 100644 --- a/projects/ui/src/lib/components/po-toolbar/po-toolbar-profile/po-toolbar-profile.component.ts +++ b/projects/ui/src/lib/components/po-toolbar/po-toolbar-profile/po-toolbar-profile.component.ts @@ -17,7 +17,8 @@ import { PoToolbarAction } from '../po-toolbar-action.interface'; @Component({ selector: 'po-toolbar-profile', templateUrl: './po-toolbar-profile.component.html', - providers: [PoControlPositionService] + providers: [PoControlPositionService], + standalone: false }) export class PoToolbarProfileComponent { /** Objeto que implementa a interface `PoToolbarProfile`. */ diff --git a/projects/ui/src/lib/components/po-toolbar/po-toolbar.component.ts b/projects/ui/src/lib/components/po-toolbar/po-toolbar.component.ts index 286b0f2e8e..145bdfe7b9 100644 --- a/projects/ui/src/lib/components/po-toolbar/po-toolbar.component.ts +++ b/projects/ui/src/lib/components/po-toolbar/po-toolbar.component.ts @@ -25,7 +25,8 @@ import { PoToolbarBaseComponent } from './po-toolbar-base.component'; */ @Component({ selector: 'po-toolbar', - templateUrl: './po-toolbar.component.html' + templateUrl: './po-toolbar.component.html', + standalone: false }) export class PoToolbarComponent extends PoToolbarBaseComponent implements OnInit { constructor( diff --git a/projects/ui/src/lib/components/po-toolbar/samples/sample-po-toolbar-basic/sample-po-toolbar-basic.component.ts b/projects/ui/src/lib/components/po-toolbar/samples/sample-po-toolbar-basic/sample-po-toolbar-basic.component.ts index b9617330d2..e87e4add6a 100644 --- a/projects/ui/src/lib/components/po-toolbar/samples/sample-po-toolbar-basic/sample-po-toolbar-basic.component.ts +++ b/projects/ui/src/lib/components/po-toolbar/samples/sample-po-toolbar-basic/sample-po-toolbar-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-toolbar-basic', - templateUrl: './sample-po-toolbar-basic.component.html' + templateUrl: './sample-po-toolbar-basic.component.html', + standalone: false }) export class SamplePoToolbarBasicComponent {} diff --git a/projects/ui/src/lib/components/po-toolbar/samples/sample-po-toolbar-labs/sample-po-toolbar-labs.component.ts b/projects/ui/src/lib/components/po-toolbar/samples/sample-po-toolbar-labs/sample-po-toolbar-labs.component.ts index 9e43c13929..3213c0f3a8 100644 --- a/projects/ui/src/lib/components/po-toolbar/samples/sample-po-toolbar-labs/sample-po-toolbar-labs.component.ts +++ b/projects/ui/src/lib/components/po-toolbar/samples/sample-po-toolbar-labs/sample-po-toolbar-labs.component.ts @@ -11,7 +11,8 @@ import { @Component({ selector: 'sample-po-toolbar-labs', - templateUrl: './sample-po-toolbar-labs.component.html' + templateUrl: './sample-po-toolbar-labs.component.html', + standalone: false }) export class SamplePoToolbarLabsComponent implements OnInit { action: PoToolbarAction; diff --git a/projects/ui/src/lib/components/po-toolbar/samples/sample-po-toolbar-logged/sample-po-toolbar-logged.component.ts b/projects/ui/src/lib/components/po-toolbar/samples/sample-po-toolbar-logged/sample-po-toolbar-logged.component.ts index 64c788919f..c76f555c62 100644 --- a/projects/ui/src/lib/components/po-toolbar/samples/sample-po-toolbar-logged/sample-po-toolbar-logged.component.ts +++ b/projects/ui/src/lib/components/po-toolbar/samples/sample-po-toolbar-logged/sample-po-toolbar-logged.component.ts @@ -5,7 +5,8 @@ import { PoDialogService, PoNotificationService, PoToolbarAction, PoToolbarProfi @Component({ selector: 'sample-po-toolbar-logged', templateUrl: './sample-po-toolbar-logged.component.html', - providers: [PoNotificationService] + providers: [PoNotificationService], + standalone: false }) export class SamplePoToolbarLoggedComponent { notificationActions: Array = [ diff --git a/projects/ui/src/lib/components/po-tree-view/po-tree-view-item-header/po-tree-view-item-header.component.ts b/projects/ui/src/lib/components/po-tree-view/po-tree-view-item-header/po-tree-view-item-header.component.ts index 6ad25a003b..8a286632e8 100644 --- a/projects/ui/src/lib/components/po-tree-view/po-tree-view-item-header/po-tree-view-item-header.component.ts +++ b/projects/ui/src/lib/components/po-tree-view/po-tree-view-item-header/po-tree-view-item-header.component.ts @@ -6,7 +6,8 @@ import { PoTreeViewItem } from '../po-tree-view-item/po-tree-view-item.interface @Component({ selector: 'po-tree-view-item-header', templateUrl: './po-tree-view-item-header.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false }) export class PoTreeViewItemHeaderComponent { @ViewChild('inputCheckbox') inputCheckbox; diff --git a/projects/ui/src/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.component.ts b/projects/ui/src/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.component.ts index 095f09e1d3..f13ce2e507 100644 --- a/projects/ui/src/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.component.ts +++ b/projects/ui/src/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.component.ts @@ -31,7 +31,8 @@ import { PoTreeViewService } from '../services/po-tree-view.service'; animate(100, style({ opacity: 0 })) ]) ]) - ] + ], + standalone: false }) export class PoTreeViewItemComponent { @Input('p-item') item: PoTreeViewItem; diff --git a/projects/ui/src/lib/components/po-tree-view/po-tree-view.component.ts b/projects/ui/src/lib/components/po-tree-view/po-tree-view.component.ts index 98b89d0abb..84800a1c38 100644 --- a/projects/ui/src/lib/components/po-tree-view/po-tree-view.component.ts +++ b/projects/ui/src/lib/components/po-tree-view/po-tree-view.component.ts @@ -33,7 +33,8 @@ import { PoTreeViewService } from './services/po-tree-view.service'; selector: 'po-tree-view', templateUrl: './po-tree-view.component.html', changeDetection: ChangeDetectionStrategy.OnPush, - providers: [PoTreeViewService] + providers: [PoTreeViewService], + standalone: false }) export class PoTreeViewComponent extends PoTreeViewBaseComponent implements OnInit, OnChanges { get hasItems() { diff --git a/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-basic/sample-po-tree-view-basic.component.ts b/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-basic/sample-po-tree-view-basic.component.ts index 7281357bf1..36dbf847a6 100644 --- a/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-basic/sample-po-tree-view-basic.component.ts +++ b/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-basic/sample-po-tree-view-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-tree-view-basic', - templateUrl: 'sample-po-tree-view-basic.component.html' + templateUrl: 'sample-po-tree-view-basic.component.html', + standalone: false }) export class SamplePoTreeViewBasicComponent {} diff --git a/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-folder-structure/sample-po-tree-view-folder-structure.component.ts b/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-folder-structure/sample-po-tree-view-folder-structure.component.ts index 0904a2142d..bca5b77a1f 100644 --- a/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-folder-structure/sample-po-tree-view-folder-structure.component.ts +++ b/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-folder-structure/sample-po-tree-view-folder-structure.component.ts @@ -4,7 +4,8 @@ import { PoTreeViewItem } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-tree-view-folder-structure', - templateUrl: 'sample-po-tree-view-folder-structure.component.html' + templateUrl: 'sample-po-tree-view-folder-structure.component.html', + standalone: false }) export class SamplePoTreeViewFolderStructureComponent { readonly items: Array = [ diff --git a/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-labs/sample-po-tree-view-labs.component.ts b/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-labs/sample-po-tree-view-labs.component.ts index 47756856fb..9fe769db08 100644 --- a/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-labs/sample-po-tree-view-labs.component.ts +++ b/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-labs/sample-po-tree-view-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption, PoSelectOption, PoTreeViewItem } from '@po-ui/ng @Component({ selector: 'sample-po-tree-view-labs', - templateUrl: 'sample-po-tree-view-labs.component.html' + templateUrl: 'sample-po-tree-view-labs.component.html', + standalone: false }) export class SamplePoTreeViewLabsComponent implements OnInit { event: string; diff --git a/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-supermarket/sample-po-tree-view-supermarket.component.ts b/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-supermarket/sample-po-tree-view-supermarket.component.ts index 02d19b5b16..f6b1867129 100644 --- a/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-supermarket/sample-po-tree-view-supermarket.component.ts +++ b/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-supermarket/sample-po-tree-view-supermarket.component.ts @@ -4,7 +4,8 @@ import { PoStepperComponent, PoTableColumn, PoTreeViewItem } from '@po-ui/ng-com @Component({ selector: 'sample-po-tree-view-supermarket', - templateUrl: 'sample-po-tree-view-supermarket.component.html' + templateUrl: 'sample-po-tree-view-supermarket.component.html', + standalone: false }) export class SamplePoTreeViewSupermarketComponent { @ViewChild('stepper', { static: true }) stepper: PoStepperComponent; diff --git a/projects/ui/src/lib/components/po-tree-view/services/po-tree-view.service.ts b/projects/ui/src/lib/components/po-tree-view/services/po-tree-view.service.ts index c760b7a7df..8979f785de 100644 --- a/projects/ui/src/lib/components/po-tree-view/services/po-tree-view.service.ts +++ b/projects/ui/src/lib/components/po-tree-view/services/po-tree-view.service.ts @@ -4,7 +4,9 @@ import { Subject } from 'rxjs'; import { PoTreeViewItem } from '../po-tree-view-item/po-tree-view-item.interface'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoTreeViewService { private expandedEvent = new Subject(); private selectedEvent = new Subject(); diff --git a/projects/ui/src/lib/components/po-widget/po-widget.component.ts b/projects/ui/src/lib/components/po-widget/po-widget.component.ts index d6987bb406..4d19f3c56b 100644 --- a/projects/ui/src/lib/components/po-widget/po-widget.component.ts +++ b/projects/ui/src/lib/components/po-widget/po-widget.component.ts @@ -31,7 +31,8 @@ import { PoKeyCodeEnum } from './../../enums/po-key-code.enum'; */ @Component({ selector: 'po-widget', - templateUrl: './po-widget.component.html' + templateUrl: './po-widget.component.html', + standalone: false }) export class PoWidgetComponent extends PoWidgetBaseComponent implements OnInit { get showTitleAction(): boolean { diff --git a/projects/ui/src/lib/components/po-widget/samples/sample-po-widget-basic/sample-po-widget-basic.component.ts b/projects/ui/src/lib/components/po-widget/samples/sample-po-widget-basic/sample-po-widget-basic.component.ts index a62ef4a9d7..30c33d565f 100644 --- a/projects/ui/src/lib/components/po-widget/samples/sample-po-widget-basic/sample-po-widget-basic.component.ts +++ b/projects/ui/src/lib/components/po-widget/samples/sample-po-widget-basic/sample-po-widget-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-widget-basic', - templateUrl: './sample-po-widget-basic.component.html' + templateUrl: './sample-po-widget-basic.component.html', + standalone: false }) export class SamplePoWidgetBasicComponent {} diff --git a/projects/ui/src/lib/components/po-widget/samples/sample-po-widget-card/sample-po-widget-card.component.ts b/projects/ui/src/lib/components/po-widget/samples/sample-po-widget-card/sample-po-widget-card.component.ts index 3f7e83b7c0..d29440371c 100644 --- a/projects/ui/src/lib/components/po-widget/samples/sample-po-widget-card/sample-po-widget-card.component.ts +++ b/projects/ui/src/lib/components/po-widget/samples/sample-po-widget-card/sample-po-widget-card.component.ts @@ -4,7 +4,8 @@ import { PoModalComponent } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-widget-card', - templateUrl: './sample-po-widget-card.component.html' + templateUrl: './sample-po-widget-card.component.html', + standalone: false }) export class SamplePoWidgetCardComponent implements OnInit { @ViewChild(PoModalComponent, { static: true }) poModal: PoModalComponent; diff --git a/projects/ui/src/lib/components/po-widget/samples/sample-po-widget-finance-dashboard/sample-po-widget-finance-dashboard.component.ts b/projects/ui/src/lib/components/po-widget/samples/sample-po-widget-finance-dashboard/sample-po-widget-finance-dashboard.component.ts index 00a3e66fbe..652e03a018 100644 --- a/projects/ui/src/lib/components/po-widget/samples/sample-po-widget-finance-dashboard/sample-po-widget-finance-dashboard.component.ts +++ b/projects/ui/src/lib/components/po-widget/samples/sample-po-widget-finance-dashboard/sample-po-widget-finance-dashboard.component.ts @@ -4,7 +4,8 @@ import { PoModalComponent, PoTableColumn } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-widget-finance-dashboard', - templateUrl: './sample-po-widget-finance-dashboard.component.html' + templateUrl: './sample-po-widget-finance-dashboard.component.html', + standalone: false }) export class SamplePoWidgetFinanceDashboardComponent { @ViewChild('detailsModal', { static: true }) detailsModalElement: PoModalComponent; diff --git a/projects/ui/src/lib/components/po-widget/samples/sample-po-widget-labs/sample-po-widget-labs.component.ts b/projects/ui/src/lib/components/po-widget/samples/sample-po-widget-labs/sample-po-widget-labs.component.ts index f8cfa11800..3124d1c218 100644 --- a/projects/ui/src/lib/components/po-widget/samples/sample-po-widget-labs/sample-po-widget-labs.component.ts +++ b/projects/ui/src/lib/components/po-widget/samples/sample-po-widget-labs/sample-po-widget-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-widget-labs', - templateUrl: './sample-po-widget-labs.component.html' + templateUrl: './sample-po-widget-labs.component.html', + standalone: false }) export class SamplePoWidgetLabsComponent implements OnInit { action: string; diff --git a/projects/ui/src/lib/decorators/input-boolean/input-boolean.decorator.spec.ts b/projects/ui/src/lib/decorators/input-boolean/input-boolean.decorator.spec.ts index aede95e0bb..71372dd7ca 100644 --- a/projects/ui/src/lib/decorators/input-boolean/input-boolean.decorator.spec.ts +++ b/projects/ui/src/lib/decorators/input-boolean/input-boolean.decorator.spec.ts @@ -6,7 +6,8 @@ import { InputBoolean } from './input-boolean.decorator'; @Component({ selector: 'mock-component', - template: '' + template: '', + standalone: false }) class PoMockComponent { @InputBoolean() myProperty: boolean; diff --git a/projects/ui/src/lib/decorators/input-required/input-required.decorator.spec.ts b/projects/ui/src/lib/decorators/input-required/input-required.decorator.spec.ts index cb0e5d8074..6cea570ba5 100644 --- a/projects/ui/src/lib/decorators/input-required/input-required.decorator.spec.ts +++ b/projects/ui/src/lib/decorators/input-required/input-required.decorator.spec.ts @@ -6,7 +6,8 @@ import { InputRequired } from './input-required.decorator'; @Component({ selector: 'mock-component', - template: '' + template: '', + standalone: false }) class PoMockComponent implements OnInit { @InputRequired() myProperty: any; diff --git a/projects/ui/src/lib/decorators/property-decorator.interface.ts b/projects/ui/src/lib/decorators/property-decorator.interface.ts index 6c9a979c05..5d1c23e59f 100644 --- a/projects/ui/src/lib/decorators/property-decorator.interface.ts +++ b/projects/ui/src/lib/decorators/property-decorator.interface.ts @@ -5,7 +5,7 @@ */ export interface PropertyDecoratorInterface { /** Métodos de acesso a propriedade, por exemplo: `get` e `set`. */ - originalDescriptor?: Object; + originalDescriptor?: object; /** Nome da propriedade. */ property?: string; diff --git a/projects/ui/src/lib/directives/po-tooltip/po-tooltip-control-position.service.ts b/projects/ui/src/lib/directives/po-tooltip/po-tooltip-control-position.service.ts index 3870ef6615..aeb2ffb7f1 100644 --- a/projects/ui/src/lib/directives/po-tooltip/po-tooltip-control-position.service.ts +++ b/projects/ui/src/lib/directives/po-tooltip/po-tooltip-control-position.service.ts @@ -2,5 +2,7 @@ import { Injectable } from '@angular/core'; import { PoControlPositionService } from '../../services/po-control-position/po-control-position.service'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoTooltipControlPositionService extends PoControlPositionService {} diff --git a/projects/ui/src/lib/directives/po-tooltip/po-tooltip.directive.spec.ts b/projects/ui/src/lib/directives/po-tooltip/po-tooltip.directive.spec.ts index d8143f8cd7..e02a0fa2d4 100644 --- a/projects/ui/src/lib/directives/po-tooltip/po-tooltip.directive.spec.ts +++ b/projects/ui/src/lib/directives/po-tooltip/po-tooltip.directive.spec.ts @@ -12,7 +12,8 @@ import { PoControlPositionService } from '../../services/po-control-position/po-
- ` + `, + standalone: false }) export class TestComponent {} diff --git a/projects/ui/src/lib/directives/po-tooltip/po-tooltip.directive.ts b/projects/ui/src/lib/directives/po-tooltip/po-tooltip.directive.ts index 0465c0a78f..49e385aee7 100644 --- a/projects/ui/src/lib/directives/po-tooltip/po-tooltip.directive.ts +++ b/projects/ui/src/lib/directives/po-tooltip/po-tooltip.directive.ts @@ -28,7 +28,8 @@ const nativeElements = ['input', 'button']; */ @Directive({ selector: '[p-tooltip]', - providers: [PoTooltipControlPositionService] + providers: [PoTooltipControlPositionService], + standalone: false }) export class PoTooltipDirective extends PoTooltipBaseDirective implements OnInit, OnDestroy { private arrowDirection: string; diff --git a/projects/ui/src/lib/directives/po-tooltip/samples/sample-po-tooltip-basic/sample-po-tooltip-basic.component.ts b/projects/ui/src/lib/directives/po-tooltip/samples/sample-po-tooltip-basic/sample-po-tooltip-basic.component.ts index ddd346c3dc..20f9a1c4a8 100644 --- a/projects/ui/src/lib/directives/po-tooltip/samples/sample-po-tooltip-basic/sample-po-tooltip-basic.component.ts +++ b/projects/ui/src/lib/directives/po-tooltip/samples/sample-po-tooltip-basic/sample-po-tooltip-basic.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-tooltip-basic', - templateUrl: './sample-po-tooltip-basic.component.html' + templateUrl: './sample-po-tooltip-basic.component.html', + standalone: false }) export class SamplePoTooltipBasicComponent {} diff --git a/projects/ui/src/lib/directives/po-tooltip/samples/sample-po-tooltip-labs/sample-po-tooltip-labs.component.ts b/projects/ui/src/lib/directives/po-tooltip/samples/sample-po-tooltip-labs/sample-po-tooltip-labs.component.ts index b9ba656414..383cf320df 100644 --- a/projects/ui/src/lib/directives/po-tooltip/samples/sample-po-tooltip-labs/sample-po-tooltip-labs.component.ts +++ b/projects/ui/src/lib/directives/po-tooltip/samples/sample-po-tooltip-labs/sample-po-tooltip-labs.component.ts @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-tooltip-labs', - templateUrl: './sample-po-tooltip-labs.component.html' + templateUrl: './sample-po-tooltip-labs.component.html', + standalone: false }) export class SamplePoTooltipLabsComponent implements OnInit { tooltip: string; diff --git a/projects/ui/src/lib/directives/po-tooltip/samples/sample-po-tooltip-new-user/sample-po-tooltip-new-user.component.ts b/projects/ui/src/lib/directives/po-tooltip/samples/sample-po-tooltip-new-user/sample-po-tooltip-new-user.component.ts index 234711e36b..13fb22a826 100644 --- a/projects/ui/src/lib/directives/po-tooltip/samples/sample-po-tooltip-new-user/sample-po-tooltip-new-user.component.ts +++ b/projects/ui/src/lib/directives/po-tooltip/samples/sample-po-tooltip-new-user/sample-po-tooltip-new-user.component.ts @@ -5,7 +5,8 @@ import { PoNotificationService } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-tooltip-new-user', - templateUrl: './sample-po-tooltip-new-user.component.html' + templateUrl: './sample-po-tooltip-new-user.component.html', + standalone: false }) export class SamplePoTooltipNewUserComponent implements OnInit { @ViewChild('formNewUser', { static: true }) formNewUser: UntypedFormControl; diff --git a/projects/ui/src/lib/interceptors/po-http-interceptor/po-http-interceptor-base.service.ts b/projects/ui/src/lib/interceptors/po-http-interceptor/po-http-interceptor-base.service.ts index 9e07c0122e..8f0b8e06f7 100644 --- a/projects/ui/src/lib/interceptors/po-http-interceptor/po-http-interceptor-base.service.ts +++ b/projects/ui/src/lib/interceptors/po-http-interceptor/po-http-interceptor-base.service.ts @@ -66,7 +66,9 @@ const NO_MESSAGE_HEADER_PARAM = 'X-PO-No-Message'; * * ... * - * @Injectable() + * @Injectable({ + * providedIn: 'root' + * }) * export class UserService { * * constructor(private http: HttpClient) { } diff --git a/projects/ui/src/lib/interceptors/po-http-interceptor/po-http-interceptor-detail/po-http-interceptor-detail.component.ts b/projects/ui/src/lib/interceptors/po-http-interceptor/po-http-interceptor-detail/po-http-interceptor-detail.component.ts index 5b1a5f58e1..d8df2f412c 100644 --- a/projects/ui/src/lib/interceptors/po-http-interceptor/po-http-interceptor-detail/po-http-interceptor-detail.component.ts +++ b/projects/ui/src/lib/interceptors/po-http-interceptor/po-http-interceptor-detail/po-http-interceptor-detail.component.ts @@ -18,7 +18,8 @@ export const colors = { success: 'color-11', error: 'color-07', warning: 'color- */ @Component({ selector: 'po-http-interceptor-detail', - templateUrl: './po-http-interceptor-detail.component.html' + templateUrl: './po-http-interceptor-detail.component.html', + standalone: false }) export class PoHttpInterceptorDetailComponent implements OnInit { @ViewChild(PoModalComponent, { static: true }) modal: PoModalComponent; diff --git a/projects/ui/src/lib/interceptors/po-http-interceptor/po-http-interceptor.service.ts b/projects/ui/src/lib/interceptors/po-http-interceptor/po-http-interceptor.service.ts index e02d5d92f7..1493dd3195 100644 --- a/projects/ui/src/lib/interceptors/po-http-interceptor/po-http-interceptor.service.ts +++ b/projects/ui/src/lib/interceptors/po-http-interceptor/po-http-interceptor.service.ts @@ -15,7 +15,9 @@ import { PoHttpInterceptorBaseService } from './po-http-interceptor-base.service * * */ -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoHttpInterceptorService extends PoHttpInterceptorBaseService { constructor( notification: PoNotificationService, diff --git a/projects/ui/src/lib/interceptors/po-http-interceptor/samples/sample-po-http-interceptor-labs.component.ts b/projects/ui/src/lib/interceptors/po-http-interceptor/samples/sample-po-http-interceptor-labs.component.ts index a0f45c284f..fda5140784 100644 --- a/projects/ui/src/lib/interceptors/po-http-interceptor/samples/sample-po-http-interceptor-labs.component.ts +++ b/projects/ui/src/lib/interceptors/po-http-interceptor/samples/sample-po-http-interceptor-labs.component.ts @@ -7,7 +7,8 @@ import { Subscription } from 'rxjs'; @Component({ selector: 'sample-po-http-interceptor-labs', - templateUrl: './sample-po-http-interceptor-labs.component.html' + templateUrl: './sample-po-http-interceptor-labs.component.html', + standalone: false }) export class SamplePoHttpInterceptorLabsComponent implements OnDestroy, OnInit { headerParam: string; diff --git a/projects/ui/src/lib/interceptors/po-http-request/po-http-request-control-service.ts b/projects/ui/src/lib/interceptors/po-http-request/po-http-request-control-service.ts index c0c070f89a..656d43ead5 100644 --- a/projects/ui/src/lib/interceptors/po-http-request/po-http-request-control-service.ts +++ b/projects/ui/src/lib/interceptors/po-http-request/po-http-request-control-service.ts @@ -8,7 +8,9 @@ import { Observable, Subject } from 'rxjs'; * Serviço responsável por efetuar o controle de interação com o serviço de interceptor `PoHttpRequestInterceptorService` * gerenciando o seu estado. */ -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoHttpRequesControltService { controlHttpRequest: Subject = new Subject(); diff --git a/projects/ui/src/lib/interceptors/po-http-request/po-http-request-interceptor.service.ts b/projects/ui/src/lib/interceptors/po-http-request/po-http-request-interceptor.service.ts index 9492f882ef..40a9482fda 100644 --- a/projects/ui/src/lib/interceptors/po-http-request/po-http-request-interceptor.service.ts +++ b/projects/ui/src/lib/interceptors/po-http-request/po-http-request-interceptor.service.ts @@ -58,7 +58,9 @@ const screenLock = 'X-PO-Screen-Lock'; * * ... * - * @Injectable() + * @Injectable({ + * providedIn: 'root' + * }) * export class CustomersService { * * headers = { 'X-PO-No-Count-Pending-Requests': true, 'X-PO-Screen-Lock': 'true' } diff --git a/projects/ui/src/lib/interceptors/po-http-request/samples/sample-po-http-request-interceptor-labs.component.ts b/projects/ui/src/lib/interceptors/po-http-request/samples/sample-po-http-request-interceptor-labs.component.ts index 49f4a132e5..0b877a926f 100644 --- a/projects/ui/src/lib/interceptors/po-http-request/samples/sample-po-http-request-interceptor-labs.component.ts +++ b/projects/ui/src/lib/interceptors/po-http-request/samples/sample-po-http-request-interceptor-labs.component.ts @@ -7,7 +7,8 @@ import { PoHttpRequestInterceptorService } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-http-request-interceptor-labs', - templateUrl: './sample-po-http-request-interceptor-labs.component.html' + templateUrl: './sample-po-http-request-interceptor-labs.component.html', + standalone: false }) export class SamplePoHttpRequestInterceptorLabsComponent implements OnInit, OnDestroy { countPendingRequestHeaderParam = false; diff --git a/projects/ui/src/lib/pipes/po-time/po-time.pipe.ts b/projects/ui/src/lib/pipes/po-time/po-time.pipe.ts index 8b0bdee901..fdf994cea2 100644 --- a/projects/ui/src/lib/pipes/po-time/po-time.pipe.ts +++ b/projects/ui/src/lib/pipes/po-time/po-time.pipe.ts @@ -10,7 +10,8 @@ import { isTypeof } from '../../utils/util'; * Pipe responsável por apresentar um horário baseado no formato de entrada definido na API do PO UI. */ @Pipe({ - name: 'po_time' + name: 'po_time', + standalone: false }) export class PoTimePipe implements PipeTransform { transform(time: string, format?: string): string { diff --git a/projects/ui/src/lib/services/po-color-palette/po-color-palette.service.ts b/projects/ui/src/lib/services/po-color-palette/po-color-palette.service.ts index 1656d59341..e587c67daf 100644 --- a/projects/ui/src/lib/services/po-color-palette/po-color-palette.service.ts +++ b/projects/ui/src/lib/services/po-color-palette/po-color-palette.service.ts @@ -2,7 +2,9 @@ import { Injectable } from '@angular/core'; import { PoColorPaletteEnum } from '../../enums/po-color-palette.enum'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoColorPaletteService { getColor(value: { color?: string; type?: string }): string { return (Object).values(PoColorPaletteEnum).includes(value.color) diff --git a/projects/ui/src/lib/services/po-component-injector/po-component-injector.service.spec.ts b/projects/ui/src/lib/services/po-component-injector/po-component-injector.service.spec.ts index 8fd6cbd21e..e376b8e8af 100644 --- a/projects/ui/src/lib/services/po-component-injector/po-component-injector.service.spec.ts +++ b/projects/ui/src/lib/services/po-component-injector/po-component-injector.service.spec.ts @@ -7,7 +7,8 @@ import { configureTestSuite } from './../../util-test/util-expect.spec'; import { PoComponentInjectorService } from './po-component-injector.service'; @Component({ - template: `
test component
` + template: `
test component
`, + standalone: false }) class TestComponent { constructor(poComponentInjectorService: PoComponentInjectorService) {} diff --git a/projects/ui/src/lib/services/po-control-position/po-control-position.service.ts b/projects/ui/src/lib/services/po-control-position/po-control-position.service.ts index 51134aa361..d9461578f3 100644 --- a/projects/ui/src/lib/services/po-control-position/po-control-position.service.ts +++ b/projects/ui/src/lib/services/po-control-position/po-control-position.service.ts @@ -39,7 +39,9 @@ const poControlPositionSidesDefault: Array = [ 'right-top' ]; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoControlPositionService { private arrowDirection: string; private customPositions: Array; diff --git a/projects/ui/src/lib/services/po-dialog/po-dialog.component.ts b/projects/ui/src/lib/services/po-dialog/po-dialog.component.ts index 8a4ae96872..ec8780a9c8 100644 --- a/projects/ui/src/lib/services/po-dialog/po-dialog.component.ts +++ b/projects/ui/src/lib/services/po-dialog/po-dialog.component.ts @@ -36,7 +36,8 @@ export const poDialogConfirmLiteralsDefault = { */ @Component({ - templateUrl: './po-dialog.component.html' + templateUrl: './po-dialog.component.html', + standalone: false }) export class PoDialogComponent implements OnDestroy, OnInit { // ViewChild para o uso do po-modal.component diff --git a/projects/ui/src/lib/services/po-dialog/po-dialog.service.spec.ts b/projects/ui/src/lib/services/po-dialog/po-dialog.service.spec.ts index 322b7883ae..2d64a97aba 100644 --- a/projects/ui/src/lib/services/po-dialog/po-dialog.service.spec.ts +++ b/projects/ui/src/lib/services/po-dialog/po-dialog.service.spec.ts @@ -17,7 +17,8 @@ class TestModule {} @Component({ template: ` test component `, - providers: [PoComponentInjectorService, PoDialogService] + providers: [PoComponentInjectorService, PoDialogService], + standalone: false }) class TestComponent { constructor(poDialog: PoDialogService) {} diff --git a/projects/ui/src/lib/services/po-dialog/po-dialog.service.ts b/projects/ui/src/lib/services/po-dialog/po-dialog.service.ts index bed906e725..b1181a13d5 100644 --- a/projects/ui/src/lib/services/po-dialog/po-dialog.service.ts +++ b/projects/ui/src/lib/services/po-dialog/po-dialog.service.ts @@ -26,7 +26,9 @@ import { PoDialogType } from './po-dialog.enum'; * * */ -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class PoDialogService extends PoDialogBaseService { constructor(private poComponentInjector: PoComponentInjectorService) { super(); diff --git a/projects/ui/src/lib/services/po-dialog/samples/sample-po-dialog-basic/sample-po-dialog-basic.component.ts b/projects/ui/src/lib/services/po-dialog/samples/sample-po-dialog-basic/sample-po-dialog-basic.component.ts index 84938039cc..05db343e79 100644 --- a/projects/ui/src/lib/services/po-dialog/samples/sample-po-dialog-basic/sample-po-dialog-basic.component.ts +++ b/projects/ui/src/lib/services/po-dialog/samples/sample-po-dialog-basic/sample-po-dialog-basic.component.ts @@ -4,7 +4,8 @@ import { PoDialogService } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-dialog-basic', - templateUrl: './sample-po-dialog-basic.component.html' + templateUrl: './sample-po-dialog-basic.component.html', + standalone: false }) export class SamplePoDialogBasicComponent { constructor(public poDialog: PoDialogService) {} diff --git a/projects/ui/src/lib/services/po-dialog/samples/sample-po-dialog-cancel-credit-card/sample-po-dialog-cancel-credit-card.component.ts b/projects/ui/src/lib/services/po-dialog/samples/sample-po-dialog-cancel-credit-card/sample-po-dialog-cancel-credit-card.component.ts index adaf165925..faf0ae487b 100644 --- a/projects/ui/src/lib/services/po-dialog/samples/sample-po-dialog-cancel-credit-card/sample-po-dialog-cancel-credit-card.component.ts +++ b/projects/ui/src/lib/services/po-dialog/samples/sample-po-dialog-cancel-credit-card/sample-po-dialog-cancel-credit-card.component.ts @@ -7,7 +7,8 @@ import { PoDialogService, PoNotificationService, PoPageAction, PoRadioGroupOptio @Component({ selector: 'sample-po-dialog-cancel-credit-card', - templateUrl: './sample-po-dialog-cancel-credit-card.component.html' + templateUrl: './sample-po-dialog-cancel-credit-card.component.html', + standalone: false }) export class SamplePoDialogCancelCreditCardComponent implements OnDestroy, OnInit { @ViewChild('form', { static: true }) form: UntypedFormControl; diff --git a/projects/ui/src/lib/services/po-dialog/samples/sample-po-dialog-labs/sample-po-dialog-labs.component.ts b/projects/ui/src/lib/services/po-dialog/samples/sample-po-dialog-labs/sample-po-dialog-labs.component.ts index 9d0e0b9354..8cebf233cf 100644 --- a/projects/ui/src/lib/services/po-dialog/samples/sample-po-dialog-labs/sample-po-dialog-labs.component.ts +++ b/projects/ui/src/lib/services/po-dialog/samples/sample-po-dialog-labs/sample-po-dialog-labs.component.ts @@ -6,7 +6,8 @@ import { PoDialogAlertLiterals, PoDialogConfirmLiterals, PoDialogService } from @Component({ selector: 'sample-po-dialog-labs', - templateUrl: './sample-po-dialog-labs.component.html' + templateUrl: './sample-po-dialog-labs.component.html', + standalone: false }) export class SamplePoDialogLabsComponent implements OnInit { action: string; diff --git a/projects/ui/src/lib/services/po-i18n/po-i18n-base.service.ts b/projects/ui/src/lib/services/po-i18n/po-i18n-base.service.ts index 85993cafa4..28dbd1e32f 100644 --- a/projects/ui/src/lib/services/po-i18n/po-i18n-base.service.ts +++ b/projects/ui/src/lib/services/po-i18n/po-i18n-base.service.ts @@ -439,7 +439,7 @@ export class PoI18nBaseService { } // Atualiza a variável local com as literais com os objetos passados na configuração - private setVarI18n(contexts: Object) { + private setVarI18n(contexts: object) { // Percorre os contextos for (const context of Object.keys(contexts)) { const contextContent = contexts[context]; diff --git a/projects/ui/src/lib/services/po-i18n/po-i18n.module.ts b/projects/ui/src/lib/services/po-i18n/po-i18n.module.ts index c260d7f1fc..45301452b3 100644 --- a/projects/ui/src/lib/services/po-i18n/po-i18n.module.ts +++ b/projects/ui/src/lib/services/po-i18n/po-i18n.module.ts @@ -1,4 +1,4 @@ -import { APP_INITIALIZER, ModuleWithProviders, NgModule } from '@angular/core'; +import { ModuleWithProviders, NgModule, inject, provideAppInitializer } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { PoLanguageService } from './../po-language/po-language.service'; @@ -164,12 +164,10 @@ export class PoI18nModule { provide: I18N_CONFIG, useValue: config }, - { - provide: APP_INITIALIZER, - useFactory: initializeLanguageDefault, - multi: true, - deps: [I18N_CONFIG, PoLanguageService] - }, + provideAppInitializer(() => { + const initializerFn = initializeLanguageDefault(inject(I18N_CONFIG), inject(PoLanguageService)); + return initializerFn(); + }), { provide: PoI18nService, useFactory: returnPoI18nService, diff --git a/projects/ui/src/lib/services/po-i18n/po-i18n.pipe.ts b/projects/ui/src/lib/services/po-i18n/po-i18n.pipe.ts index 337ef69178..bd790d674f 100644 --- a/projects/ui/src/lib/services/po-i18n/po-i18n.pipe.ts +++ b/projects/ui/src/lib/services/po-i18n/po-i18n.pipe.ts @@ -14,6 +14,7 @@ import { PoI18nBasePipe } from './po-i18n-base.pipe'; * */ @Pipe({ - name: 'poI18n' + name: 'poI18n', + standalone: false }) export class PoI18nPipe extends PoI18nBasePipe implements PipeTransform {} diff --git a/projects/ui/src/lib/services/po-i18n/po-i18n.service.ts b/projects/ui/src/lib/services/po-i18n/po-i18n.service.ts index 701f33240c..56da33537f 100644 --- a/projects/ui/src/lib/services/po-i18n/po-i18n.service.ts +++ b/projects/ui/src/lib/services/po-i18n/po-i18n.service.ts @@ -10,7 +10,9 @@ import { PoI18nConfig } from './interfaces/po-i18n-config.interface'; * @docsExtends PoI18nBaseService */ -@Injectable({ providedIn: 'root' }) +@Injectable({ + providedIn: 'root' +}) export class PoI18nService extends PoI18nBaseService {} // Função usada para retornar instância para o módulo po-i18n.module diff --git a/projects/ui/src/lib/services/po-i18n/samples/sample-po-i18n-pipe-labs.component.ts b/projects/ui/src/lib/services/po-i18n/samples/sample-po-i18n-pipe-labs.component.ts index 4c5ab00efa..3dee1dabdb 100644 --- a/projects/ui/src/lib/services/po-i18n/samples/sample-po-i18n-pipe-labs.component.ts +++ b/projects/ui/src/lib/services/po-i18n/samples/sample-po-i18n-pipe-labs.component.ts @@ -2,7 +2,8 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-i18n-pipe-labs', - templateUrl: './sample-po-i18n-pipe-labs.component.html' + templateUrl: './sample-po-i18n-pipe-labs.component.html', + standalone: false }) export class SamplePoI18nPipeLabsComponent { literal: string = 'Olá {name}, seja bem vindo e tenha um {greeting}!'; diff --git a/projects/ui/src/lib/services/po-i18n/samples/sample-po-i18n-pipe.component.ts b/projects/ui/src/lib/services/po-i18n/samples/sample-po-i18n-pipe.component.ts index f85120473d..f0c1b303c3 100644 --- a/projects/ui/src/lib/services/po-i18n/samples/sample-po-i18n-pipe.component.ts +++ b/projects/ui/src/lib/services/po-i18n/samples/sample-po-i18n-pipe.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sample-po-i18n-pipe', - templateUrl: './sample-po-i18n-pipe.component.html' + templateUrl: './sample-po-i18n-pipe.component.html', + standalone: false }) export class SamplePoI18nPipeComponent {} diff --git a/projects/ui/src/lib/services/po-notification/po-notification-base.service.spec.ts b/projects/ui/src/lib/services/po-notification/po-notification-base.service.spec.ts index 08c33c9827..945d2a00b7 100644 --- a/projects/ui/src/lib/services/po-notification/po-notification-base.service.spec.ts +++ b/projects/ui/src/lib/services/po-notification/po-notification-base.service.spec.ts @@ -7,7 +7,9 @@ import { PoToaster, PoToasterOrientation, PoToasterType } from '../../components import { PoToasterBaseComponent } from '../../components/po-toaster/po-toaster-base.component'; import { PoNotificationBaseService } from './po-notification-base.service'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) class PoNotificationService extends PoNotificationBaseService { createToaster(toaster: PoToaster, viewContainerRef?: ViewContainerRef): void { const elementRef: ElementRef = { diff --git a/projects/ui/src/lib/services/po-notification/samples/sample-po-notification-basic/sample-po-notification-basic.component.ts b/projects/ui/src/lib/services/po-notification/samples/sample-po-notification-basic/sample-po-notification-basic.component.ts index 736efd45de..00abb4c048 100644 --- a/projects/ui/src/lib/services/po-notification/samples/sample-po-notification-basic/sample-po-notification-basic.component.ts +++ b/projects/ui/src/lib/services/po-notification/samples/sample-po-notification-basic/sample-po-notification-basic.component.ts @@ -4,7 +4,8 @@ import { PoNotificationService } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-notification-basic', - templateUrl: './sample-po-notification-basic.component.html' + templateUrl: './sample-po-notification-basic.component.html', + standalone: false }) export class SamplePoNotificationBasicComponent { constructor(public poNotification: PoNotificationService) {} diff --git a/projects/ui/src/lib/services/po-notification/samples/sample-po-notification-labs/sample-po-notification-labs.component.ts b/projects/ui/src/lib/services/po-notification/samples/sample-po-notification-labs/sample-po-notification-labs.component.ts index 7d306bd868..bb820f7c49 100644 --- a/projects/ui/src/lib/services/po-notification/samples/sample-po-notification-labs/sample-po-notification-labs.component.ts +++ b/projects/ui/src/lib/services/po-notification/samples/sample-po-notification-labs/sample-po-notification-labs.component.ts @@ -12,7 +12,8 @@ import { @Component({ selector: 'sample-po-notification-labs', templateUrl: './sample-po-notification-labs.component.html', - providers: [PoNotificationService] + providers: [PoNotificationService], + standalone: false }) export class SamplePoNotificationLabsComponent implements OnInit { @ViewChild(PoModalComponent, { static: true }) poModal: PoModalComponent; diff --git a/projects/ui/src/lib/services/po-notification/samples/sample-po-notification-sales/sample-po-notification-sales.component.ts b/projects/ui/src/lib/services/po-notification/samples/sample-po-notification-sales/sample-po-notification-sales.component.ts index afd2edb42f..627d3c6406 100644 --- a/projects/ui/src/lib/services/po-notification/samples/sample-po-notification-sales/sample-po-notification-sales.component.ts +++ b/projects/ui/src/lib/services/po-notification/samples/sample-po-notification-sales/sample-po-notification-sales.component.ts @@ -5,7 +5,8 @@ import { PoComboOption, PoNotificationService, PoTableColumn } from '@po-ui/ng-c @Component({ selector: 'sample-po-notification-sales', templateUrl: './sample-po-notification-sales.component.html', - providers: [PoNotificationService] + providers: [PoNotificationService], + standalone: false }) export class SamplePoNotificationSalesComponent { name: string; diff --git a/projects/ui/src/lib/services/po-theme/samples/sample-po-theme-labs/sample-po-theme-labs.component.ts b/projects/ui/src/lib/services/po-theme/samples/sample-po-theme-labs/sample-po-theme-labs.component.ts index bbf9bab3f1..fa63bc9a24 100644 --- a/projects/ui/src/lib/services/po-theme/samples/sample-po-theme-labs/sample-po-theme-labs.component.ts +++ b/projects/ui/src/lib/services/po-theme/samples/sample-po-theme-labs/sample-po-theme-labs.component.ts @@ -21,7 +21,8 @@ import { PoPageAction } from '@po-ui/ng-components'; @Component({ selector: 'sample-po-theme-labs', templateUrl: './sample-po-theme-labs.component.html', - providers: [PoThemeService] + providers: [PoThemeService], + standalone: false }) export class SamplePoThemeLabsComponent implements OnInit, OnDestroy { @ViewChild('formShare', { static: true }) diff --git a/projects/ui/tsconfig.lib.json b/projects/ui/tsconfig.lib.json index 72a395a61c..e7414be461 100644 --- a/projects/ui/tsconfig.lib.json +++ b/projects/ui/tsconfig.lib.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { "baseUrl": ".", "outDir": "./dist/", diff --git a/projects/ui/tsconfig.schematics.json b/projects/ui/tsconfig.schematics.json index 04aa4eca1e..c2756d4fd7 100644 --- a/projects/ui/tsconfig.schematics.json +++ b/projects/ui/tsconfig.schematics.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { "baseUrl": "../../", "lib": ["es2022", "dom"], diff --git a/projects/ui/tsconfig.spec.json b/projects/ui/tsconfig.spec.json index ca313671d3..6a6b82f152 100644 --- a/projects/ui/tsconfig.spec.json +++ b/projects/ui/tsconfig.spec.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { "module": "commonjs", "outDir": "../../out-tsc/spec", diff --git a/tsconfig.base.json b/tsconfig.base.json deleted file mode 100644 index a651d46558..0000000000 --- a/tsconfig.base.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "baseUrl": "./", - "outDir": "./dist/out-tsc", - "sourceMap": true, - "declaration": false, - "module": "es2022", - "moduleResolution": "node", - "experimentalDecorators": true, - "importHelpers": true, - "target": "es2022", - "typeRoots": ["node_modules/@types"], - "lib": ["es2022", "dom"], - "paths": { - "@po-ui/ng-components": ["./dist/ng-components"], - "@po-ui/ng-components/*": ["./dist/ng-components/*"], - "@po-ui/ng-storage": ["./dist/ng-storage"], - "@po-ui/ng-storage/*": ["./dist/ng-storage/*"], - "@po-ui/ng-sync": ["./dist/ng-sync"], - "@po-ui/ng-sync/*": ["./dist/ng-sync/*"], - "@po-ui/ng-templates": ["./dist/ng-templates"], - "@po-ui/ng-templates/*": ["./dist/ng-templates/*"], - "@po-ui/ng-code-editor": ["./dist/ng-code-editor"], - "@po-ui/ng-schematics/*": ["./dist/ng-schematics/*"] - } - } -} diff --git a/tsconfig.json b/tsconfig.json index d460e21453..a651d46558 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,46 +1,28 @@ -/* - This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience. - It is not intended to be used to perform a compilation. - - To learn more about this file see: https://angular.io/config/solution-tsconfig. -*/ { - "references": [ - { - "path": "./projects/ui/tsconfig.lib.json" - }, - { - "path": "./projects/ui/tsconfig.spec.json" - }, - { - "path": "./projects/app/tsconfig.app.json" - }, - { - "path": "./projects/storage/tsconfig.lib.json" - }, - { - "path": "./projects/storage/tsconfig.spec.json" - }, - { - "path": "./projects/sync/tsconfig.lib.json" - }, - { - "path": "./projects/sync/tsconfig.spec.json" - }, - { - "path": "./projects/templates/tsconfig.lib.json" - }, - { - "path": "./projects/templates/tsconfig.spec.json" - }, - { - "path": "./projects/code-editor/tsconfig.lib.json" - }, - { - "path": "./projects/code-editor/tsconfig.spec.json" - }, - { - "path": "./projects/portal/tsconfig.app.json" + "compileOnSave": false, + "compilerOptions": { + "baseUrl": "./", + "outDir": "./dist/out-tsc", + "sourceMap": true, + "declaration": false, + "module": "es2022", + "moduleResolution": "node", + "experimentalDecorators": true, + "importHelpers": true, + "target": "es2022", + "typeRoots": ["node_modules/@types"], + "lib": ["es2022", "dom"], + "paths": { + "@po-ui/ng-components": ["./dist/ng-components"], + "@po-ui/ng-components/*": ["./dist/ng-components/*"], + "@po-ui/ng-storage": ["./dist/ng-storage"], + "@po-ui/ng-storage/*": ["./dist/ng-storage/*"], + "@po-ui/ng-sync": ["./dist/ng-sync"], + "@po-ui/ng-sync/*": ["./dist/ng-sync/*"], + "@po-ui/ng-templates": ["./dist/ng-templates"], + "@po-ui/ng-templates/*": ["./dist/ng-templates/*"], + "@po-ui/ng-code-editor": ["./dist/ng-code-editor"], + "@po-ui/ng-schematics/*": ["./dist/ng-schematics/*"] } - ] + } }