diff --git a/docs/guides/sync-fundamentals.md b/docs/guides/sync-fundamentals.md index 3f15a20f9..2181b3e8c 100644 --- a/docs/guides/sync-fundamentals.md +++ b/docs/guides/sync-fundamentals.md @@ -113,8 +113,8 @@ import { PoSyncSchema } from '@po-ui/ng-sync'; const conferenceSchema: PoSyncSchema = { // Endpoint para o método GET - getUrlApi: 'https://po-sample-conference.fly.dev/conferences', - diffUrlApi: 'https://po-sample-conference.fly.dev/conferences/diff', + getUrlApi: 'https://po-sample-conference.onrender.com/conferences', + diffUrlApi: 'https://po-sample-conference.onrender.com/conferences/diff', deletedField: 'isDeleted', fields: [ 'id', 'title', 'date', 'location', 'description' ], idField: 'id', @@ -190,8 +190,8 @@ propriedade `deletedField` na interface [PoSyncSchema](/documentation/po-sync), import { PoSyncSchema } from '@po-ui/ng-sync'; const conferenceSchema: PoSyncSchema = { - getUrlApi: 'https://po-sample-conference.fly.dev/conferences', - diffUrlApi: 'https://po-sample-conference.fly.dev/conferences/diff', + getUrlApi: 'https://po-sample-conference.onrender.com/conferences', + diffUrlApi: 'https://po-sample-conference.onrender.com/conferences/diff', // Definição do nome do campo deletedField: 'isDeleted', fields: [ 'id', 'title', 'date', 'location', 'description' ], @@ -218,7 +218,7 @@ tiveram a última atualização maior ou igual a data que foi recebida como par sincronizados serão retornados. Para cada um dos *schemas* é necessário ter um *endpoint* de sincronização. Abra o seu navegador e acesse a URL -https://po-sample-conference.fly.dev/conferences/diff/2018-10-08T13:23:31.893Z. +https://po-sample-conference.onrender.com/conferences/diff/2018-10-08T13:23:31.893Z. O *endpoint* de sincronização deve retornar uma resposta com a estrutura como a da URL acima, por exemplo: @@ -251,9 +251,9 @@ abaixo: import { PoSyncSchema } from '@po-ui/ng-sync'; const conferenceSchema: PoSyncSchema = { - getUrlApi: 'https://po-sample-conference.fly.dev/conferences', + getUrlApi: 'https://po-sample-conference.onrender.com/conferences', // Definição da URL de sincronização - diffUrlApi: 'https://po-sample-conference.fly.dev/conferences/diff', + diffUrlApi: 'https://po-sample-conference.onrender.com/conferences/diff', deletedField: 'isDeleted', fields: [ 'id', 'title', 'date', 'location', 'description' ], idField: 'id', diff --git a/docs/guides/sync-get-started.md b/docs/guides/sync-get-started.md index 98a6555f9..fc5bf192b 100644 --- a/docs/guides/sync-get-started.md +++ b/docs/guides/sync-get-started.md @@ -151,8 +151,8 @@ Crie o arquivo `src/app/home/conference-schema.constants.ts` e adicione o conte import { PoSyncSchema } from '@po-ui/ng-sync'; export const conferenceSchema: PoSyncSchema = { - getUrlApi: 'https://po-sample-conference.fly.dev/conferences', - diffUrlApi: 'https://po-sample-conference.fly.dev/conferences/diff', + getUrlApi: 'https://po-sample-conference.onrender.com/conferences', + diffUrlApi: 'https://po-sample-conference.onrender.com/conferences/diff', deletedField: 'deleted', fields: [ 'id', 'title', 'location', 'description' ], idField: 'id', 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 75217a6ac..d68b81684 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 @@ -1,16 +1,15 @@ import { Component, ViewChild } from '@angular/core'; import { NgForm } from '@angular/forms'; -import { trigger, state, style, transition, animate } from '@angular/animations'; import { PoDynamicFormField, - PoTableColumn, - PoTableAction, - PoNotificationService, - PoToasterOrientation, PoModalAction, PoModalComponent, - PoPageAction + PoNotificationService, + PoPageAction, + PoTableAction, + PoTableColumn, + PoToasterOrientation } from '@po-ui/ng-components'; @Component({ @@ -99,7 +98,7 @@ export class ToolsDynamicFormComponent { readonly serviceFields: Array = [ { property: 'searchService', - help: 'https://po-sample-api.fly.dev/v1/heroes', + help: 'https://po-sample-api.onrender.com/v1/heroes', label: 'SearchService', gridColumns: 12, gridLgColumns: 6, @@ -107,7 +106,7 @@ export class ToolsDynamicFormComponent { }, { property: 'optionsService', - help: 'https://po-sample-api.fly.dev/v1/heroes', + help: 'https://po-sample-api.onrender.com/v1/heroes', label: 'OptionsService', gridColumns: 12, gridLgColumns: 6, 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 9d04b4ffe..edb0c1b51 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 @@ -10,7 +10,7 @@ export class SamplePoModalPasswordRecoveryRequestComponent { @ViewChild(PoModalPasswordRecoveryComponent) poModalPasswordRecovery: PoModalPasswordRecoveryComponent; type: PoModalPasswordRecoveryType = PoModalPasswordRecoveryType.All; - urlRecovery: string = 'https://po-sample-api.fly.dev/v1/users'; + urlRecovery: string = 'https://po-sample-api.onrender.com/v1/users'; openPasswordRecoveryModal() { this.poModalPasswordRecovery.open(); 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.html b/projects/templates/src/lib/components/po-page-change-password/samples/sample-po-page-change-password-request/sample-po-page-change-password-request.component.html index 9f2274d8a..ac4b23cb2 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.html +++ b/projects/templates/src/lib/components/po-page-change-password/samples/sample-po-page-change-password-request/sample-po-page-change-password-request.component.html @@ -11,6 +11,6 @@ p-secondary-logo="https://via.placeholder.com/80x24?text=SECONDARY+LOGO" p-token="rzDsQiSYoq" p-url-new-password="https://thf.totvs.com.br/sample/api/new-password" - [p-recovery]="{ url: 'https://po-sample-api.fly.dev/v1/users', type: 'all', contactMail: 'support@mail.com' }" + [p-recovery]="{ url: 'https://po-sample-api.onrender.com/v1/users', type: 'all', contactMail: 'support@mail.com' }" > 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 751d15d76..dd41324ee 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 @@ -8,7 +8,7 @@ import { PoPageDynamicDetailActions, PoPageDynamicDetailField } from '@po-ui/ng- templateUrl: './sample-po-page-dynamic-detail-user.component.html' }) export class SamplePoPageDynamicDetailUserComponent { - public readonly serviceApi = 'https://po-sample-api.fly.dev/v1/people'; + public readonly serviceApi = 'https://po-sample-api.onrender.com/v1/people'; public readonly actions: PoPageDynamicDetailActions = { back: '/documentation/po-page-dynamic-table' 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.html b/projects/templates/src/lib/components/po-page-dynamic-edit/samples/sample-po-page-dynamic-edit-basic/sample-po-page-dynamic-edit-basic.component.html index f34fac1e4..bcc689464 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.html +++ b/projects/templates/src/lib/components/po-page-dynamic-edit/samples/sample-po-page-dynamic-edit-basic/sample-po-page-dynamic-edit-basic.component.html @@ -1,6 +1,6 @@ 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 53826d0da..04c579c6f 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 @@ -9,7 +9,7 @@ import { PoPageDynamicEditActions, PoPageDynamicEditLiterals } from '@po-ui/ng-t templateUrl: './sample-po-page-dynamic-edit-user.component.html' }) export class SamplePoPageDynamicEditUserComponent { - public readonly serviceApi = 'https://po-sample-api.fly.dev/v1/people'; + public readonly serviceApi = 'https://po-sample-api.onrender.com/v1/people'; public readonly actions: PoPageDynamicEditActions = { save: '/documentation/po-page-dynamic-detail', @@ -63,7 +63,7 @@ export class SamplePoPageDynamicEditUserComponent { }, { property: 'city', - optionsService: 'https://po-sample-api.fly.dev/v1/cities?transform=true', + optionsService: 'https://po-sample-api.onrender.com/v1/cities?transform=true', offsetColumns: 4, gridColumns: 4 } 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.html b/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-basic/sample-po-page-dynamic-table-basic.component.html index 8758bae4c..f3fe9d83b 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.html +++ b/projects/templates/src/lib/components/po-page-dynamic-table/samples/sample-po-page-dynamic-table-basic/sample-po-page-dynamic-table-basic.component.html @@ -1,2 +1,2 @@ - + 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 88db49ec2..055a44b44 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 @@ -5,7 +5,7 @@ import { Component } from '@angular/core'; templateUrl: './sample-po-page-dynamic-table-drag-and-drop.component.html' }) export class SamplePoPageDynamicTableDragAndDropComponent { - readonly serviceApi = 'https://po-sample-api.fly.dev/v1/people'; + readonly serviceApi = 'https://po-sample-api.onrender.com/v1/people'; readonly fields: Array = [ { property: 'id', key: true, visible: false }, 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 9cc2194f3..a82618e4c 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 @@ -14,7 +14,7 @@ import { export class SamplePoPageDynamicTableHotelsComponent { @ViewChild('hotelDetailModal') hotelDetailModal!: PoModalComponent; - readonly serviceApi = 'https://po-sample-api.fly.dev/v1/hotels'; + readonly serviceApi = 'https://po-sample-api.onrender.com/v1/hotels'; actionsRight = true; detailedHotel: any; 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 c551a7ea5..c25181d25 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 @@ -5,7 +5,7 @@ import { Component } from '@angular/core'; templateUrl: './sample-po-page-dynamic-table-people.component.html' }) export class SamplePoPageDynamicTablePeopleComponent { - readonly serviceApi = 'https://po-sample-api.fly.dev/v1/people'; + readonly serviceApi = 'https://po-sample-api.onrender.com/v1/people'; readonly fields: Array = [ { property: 'id', key: true, visible: false }, 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 e59dde42a..79dfec841 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 @@ -1,4 +1,4 @@ -import { Component, ViewChild, OnInit } from '@angular/core'; +import { Component, OnInit, ViewChild } from '@angular/core'; import { PoBreadcrumb, PoDynamicViewField, PoModalComponent } from '@po-ui/ng-components'; @@ -20,7 +20,7 @@ export class SamplePoPageDynamicTableUsersComponent implements OnInit { @ViewChild('userDetailModal') userDetailModal!: PoModalComponent; @ViewChild('dependentsModal') dependentsModal!: PoModalComponent; - readonly serviceApi = 'https://po-sample-api.fly.dev/v1/people'; + readonly serviceApi = 'https://po-sample-api.onrender.com/v1/people'; actionsRight = false; detailedUser: any; 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.html 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.html index 0aefce460..8cbbe1817 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.html +++ 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.html @@ -1,5 +1,5 @@ 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.html b/projects/templates/src/lib/components/po-page-login/samples/sample-po-page-login-automatic-service/sample-po-page-login-automatic-service.component.html index f5b0e175a..3f0897cd0 100644 --- a/projects/templates/src/lib/components/po-page-login/samples/sample-po-page-login-automatic-service/sample-po-page-login-automatic-service.component.html +++ b/projects/templates/src/lib/components/po-page-login/samples/sample-po-page-login-automatic-service/sample-po-page-login-automatic-service.component.html @@ -5,7 +5,7 @@ diff --git a/projects/ui/src/lib/components/po-breadcrumb/samples/sample-po-breadcrumb-labs/sample-po-breadcrumb-labs.component.html b/projects/ui/src/lib/components/po-breadcrumb/samples/sample-po-breadcrumb-labs/sample-po-breadcrumb-labs.component.html index f2e84a7b3..15796daaf 100644 --- a/projects/ui/src/lib/components/po-breadcrumb/samples/sample-po-breadcrumb-labs/sample-po-breadcrumb-labs.component.html +++ b/projects/ui/src/lib/components/po-breadcrumb/samples/sample-po-breadcrumb-labs/sample-po-breadcrumb-labs.component.html @@ -41,7 +41,7 @@ name="favoriteService" [(ngModel)]="favoriteService" p-clean - p-help="Ex.: https://po-sample-api.fly.dev/v1/favorite" + p-help="Ex.: https://po-sample-api.onrender.com/v1/favorite" p-label="Favorite service" [p-disabled]="!breadcrumbItems?.length" > 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 2b932f611..4fbb54721 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 @@ -142,7 +142,7 @@ export class SamplePoDynamicFormRegisterComponent implements OnInit { gridSmColumns: 12, label: 'Favorite hero', optional: true, - searchService: 'https://po-sample-api.fly.dev/v1/heroes', + searchService: 'https://po-sample-api.onrender.com/v1/heroes', columns: [ { property: 'nickname', label: 'Hero' }, { property: 'label', label: 'Name' } @@ -155,7 +155,7 @@ export class SamplePoDynamicFormRegisterComponent implements OnInit { property: 'partner', gridColumns: 6, gridSmColumns: 12, - optionsService: 'https://po-sample-api.fly.dev/v1/people', + optionsService: 'https://po-sample-api.onrender.com/v1/people', fieldLabel: 'name', fieldValue: 'id', optional: true @@ -185,7 +185,7 @@ export class SamplePoDynamicFormRegisterComponent implements OnInit { gridSmColumns: 12, label: 'Upload your background', optional: true, - url: 'https://po-sample-api.fly.dev/v1/uploads/addFile' + url: 'https://po-sample-api.onrender.com/v1/uploads/addFile' } ]; 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 3cbb1dd78..e869bc3b7 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 @@ -70,7 +70,7 @@ export class SamplePoDynamicViewEmployeeOnLoadComponent implements OnInit { private _newService = inject(SamplePoDynamicViewEmployeeOnLoadService); ngOnInit(): void { - this._newService.setConfig('https://po-sample-api.fly.dev/v1/hotels', { id: 1485976673002 }); + this._newService.setConfig('https://po-sample-api.onrender.com/v1/hotels', { id: 1485976673002 }); } customEmployeeData() { 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.html b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-heroes-reactive-form/sample-po-combo-heroes-reactive-form.component.html index 531ab8624..52504c1b7 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.html +++ b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-heroes-reactive-form/sample-po-combo-heroes-reactive-form.component.html @@ -6,7 +6,7 @@ formControlName="hero" p-field-label="nickname" p-field-value="name" - p-filter-service="https://po-sample-api.fly.dev/v1/heroes" + p-filter-service="https://po-sample-api.onrender.com/v1/heroes" p-label="Search a Hero" p-sort (p-change)="onChangeHero($event)" 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 209e48c43..506b776c0 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 @@ -1,6 +1,6 @@ +import { HttpClient } from '@angular/common/http'; import { Component, OnInit } from '@angular/core'; import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms'; -import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; @@ -35,6 +35,6 @@ export class SamplePoComboHeroesReactiveFormComponent implements OnInit { } private getHero(heroName: string) { - return this.http.get(`https://po-sample-api.fly.dev/v1/heroes/${heroName}`); + return this.http.get(`https://po-sample-api.onrender.com/v1/heroes/${heroName}`); } } diff --git a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-heroes/sample-po-combo-heroes.component.html b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-heroes/sample-po-combo-heroes.component.html index 202089b25..215fde6e1 100644 --- a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-heroes/sample-po-combo-heroes.component.html +++ b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-heroes/sample-po-combo-heroes.component.html @@ -5,7 +5,7 @@ [(ngModel)]="heroName" p-field-label="nickname" p-field-value="name" - p-filter-service="https://po-sample-api.fly.dev/v1/heroes" + p-filter-service="https://po-sample-api.onrender.com/v1/heroes" p-label="Search a Hero" p-sort (p-change)="onChangeHero($event)" 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 9cfb13988..92c07f8f5 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 @@ -1,5 +1,5 @@ -import { Component } from '@angular/core'; import { HttpClient } from '@angular/common/http'; +import { Component } from '@angular/core'; import { Observable } from 'rxjs'; @@ -26,6 +26,6 @@ export class SamplePoComboHeroesComponent { } private getHero(heroName: string) { - return this.http.get(`https://po-sample-api.fly.dev/v1/heroes/${heroName}`); + return this.http.get(`https://po-sample-api.onrender.com/v1/heroes/${heroName}`); } } diff --git a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-hotels/sample-po-combo-hotels.component.html b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-hotels/sample-po-combo-hotels.component.html index 928ff7938..dd15ed245 100644 --- a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-hotels/sample-po-combo-hotels.component.html +++ b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-hotels/sample-po-combo-hotels.component.html @@ -63,7 +63,7 @@ p-field-value="value" p-label="Search a hotel" p-sort - p-filter-service="https://po-sample-api.fly.dev/v1/hotels" + p-filter-service="https://po-sample-api.onrender.com/v1/hotels" [p-filter-params]="filterParams" > diff --git a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-infinity-scroll/sample-po-combo-infinity-scroll.component.html b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-infinity-scroll/sample-po-combo-infinity-scroll.component.html index 5ee2e8f9c..e2b3e26cb 100644 --- a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-infinity-scroll/sample-po-combo-infinity-scroll.component.html +++ b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-infinity-scroll/sample-po-combo-infinity-scroll.component.html @@ -1,7 +1,7 @@
diff --git a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-transfer/sample-po-combo-transfer.component.html b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-transfer/sample-po-combo-transfer.component.html index 9125efa06..93d6a75a0 100644 --- a/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-transfer/sample-po-combo-transfer.component.html +++ b/projects/ui/src/lib/components/po-field/po-combo/samples/sample-po-combo-transfer/sample-po-combo-transfer.component.html @@ -20,7 +20,7 @@ [(ngModel)]="contact" p-field-value="id" p-field-label="name" - p-filter-service="https://po-sample-api.fly.dev/v1/people" + p-filter-service="https://po-sample-api.onrender.com/v1/people" p-icon="po-icon-user" p-label="To contact" p-placeholder="Select a contact" diff --git a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-basic/sample-po-lookup-basic.component.html b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-basic/sample-po-lookup-basic.component.html index 2288a039f..a763872a1 100644 --- a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-basic/sample-po-lookup-basic.component.html +++ b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-basic/sample-po-lookup-basic.component.html @@ -2,7 +2,7 @@ name="lookup" p-field-label="label" p-field-value="value" - p-filter-service="https://po-sample-api.fly.dev/v1/heroes" + p-filter-service="https://po-sample-api.onrender.com/v1/heroes" p-label="PO Lookup" > diff --git a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-labs/sample-po-lookup-labs.component.html b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-labs/sample-po-lookup-labs.component.html index 307f90105..3e990d361 100644 --- a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-labs/sample-po-lookup-labs.component.html +++ b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-labs/sample-po-lookup-labs.component.html @@ -81,7 +81,7 @@ name="filterService" [(ngModel)]="filterService" p-clean - p-help="https://po-sample-api.fly.dev/v1/people" + p-help="https://po-sample-api.onrender.com/v1/people" p-label="Filter Service" > diff --git a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-multiple/sample-po-lookup-multiple.component.html b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-multiple/sample-po-lookup-multiple.component.html index c16be3ead..736f9ba11 100644 --- a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-multiple/sample-po-lookup-multiple.component.html +++ b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-multiple/sample-po-lookup-multiple.component.html @@ -5,7 +5,7 @@ [(ngModel)]="multiLookup" p-field-label="label" p-field-value="value" - p-filter-service="https://po-sample-api.fly.dev/v1/heroes" + p-filter-service="https://po-sample-api.onrender.com/v1/heroes" p-label="Search a Hero" [p-multiple]="true" (p-change)="changeOptions($event)" diff --git a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-multiple/sample-po-lookup-multiple.service.ts b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-multiple/sample-po-lookup-multiple.service.ts index 136c9441f..dbbff2f78 100644 --- a/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-multiple/sample-po-lookup-multiple.service.ts +++ b/projects/ui/src/lib/components/po-field/po-lookup/samples/sample-po-lookup-multiple/sample-po-lookup-multiple.service.ts @@ -11,6 +11,6 @@ export class SamplePoLookupMultipleService { getHeroes(data): Observable { const values = data?.length ? data.toString() : data; - return this.http.get(`https://po-sample-api.fly.dev/v1/heroes?value=${values}`).pipe(pluck('items')); + return this.http.get(`https://po-sample-api.onrender.com/v1/heroes?value=${values}`).pipe(pluck('items')); } } 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 89167e4d3..ddc6b3368 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 @@ -7,7 +7,7 @@ import { PoLookupFilter, PoLookupFilteredItemsParams } from '@po-ui/ng-component @Injectable() export class SamplePoLookupService implements PoLookupFilter { - private url = 'https://po-sample-api.fly.dev/v1/heroes'; + private url = 'https://po-sample-api.onrender.com/v1/heroes'; constructor(private httpClient: HttpClient) {} 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 23bfde3c4..a62d3eae7 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 @@ -4,7 +4,7 @@ import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; -import { PoMultiselectOption, PoMultiselectFilter } from '@po-ui/ng-components'; +import { PoMultiselectFilter, PoMultiselectOption } from '@po-ui/ng-components'; @Injectable() export class SamplePoMultiselectHeroesService implements PoMultiselectFilter { @@ -14,13 +14,13 @@ export class SamplePoMultiselectHeroesService implements PoMultiselectFilter { const params = { filter: value }; return this.http - .get(`https://po-sample-api.fly.dev/v1/heroes?page=1&pageSize=10`, { params }) + .get(`https://po-sample-api.onrender.com/v1/heroes?page=1&pageSize=10`, { params }) .pipe(map((response: { items: Array }) => response.items)); } getObjectsByValues(value: Array): Observable> { return this.http - .get(`https://po-sample-api.fly.dev/v1/heroes/?value=${value.toString()}`) + .get(`https://po-sample-api.onrender.com/v1/heroes/?value=${value.toString()}`) .pipe(map((response: { items: Array }) => response.items)); } } diff --git a/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-labs/sample-po-multiselect-labs.component.html b/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-labs/sample-po-multiselect-labs.component.html index bbce7de6c..fbaf907e6 100644 --- a/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-labs/sample-po-multiselect-labs.component.html +++ b/projects/ui/src/lib/components/po-field/po-multiselect/samples/sample-po-multiselect-labs/sample-po-multiselect-labs.component.html @@ -91,7 +91,7 @@ name="filterService" [(ngModel)]="filterService" p-clean - p-help="https://po-sample-api.fly.dev/v1/heroes" + p-help="https://po-sample-api.onrender.com/v1/heroes" p-label="Filter Service" > diff --git a/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-customer-registration/sample-po-select-customer-registration.component.html b/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-customer-registration/sample-po-select-customer-registration.component.html index b4e73f2ef..b5095d49e 100644 --- a/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-customer-registration/sample-po-select-customer-registration.component.html +++ b/projects/ui/src/lib/components/po-field/po-select/samples/sample-po-select-customer-registration/sample-po-select-customer-registration.component.html @@ -40,7 +40,7 @@ >
- +
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 df9c371c2..feb086d20 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 @@ -3,7 +3,7 @@ import { Injectable } from '@angular/core'; @Injectable() export class SamplePoSelectCustomerRegistrationService { - private url: string = 'https://po-sample-api.fly.dev/v1/sampleSelect'; + private url: string = 'https://po-sample-api.onrender.com/v1/sampleSelect'; constructor(private http: HttpClient) {} diff --git a/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-basic/sample-po-upload-basic.component.html b/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-basic/sample-po-upload-basic.component.html index 34eff670c..9eecb6dd1 100644 --- a/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-basic/sample-po-upload-basic.component.html +++ b/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-basic/sample-po-upload-basic.component.html @@ -1 +1 @@ - + 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 5a20a1ffd..4c2c45ffc 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 @@ -94,7 +94,7 @@ export class SamplePoUploadLabsComponent implements OnInit { this.properties = []; this.restrictions = {}; this.upload = undefined; - this.url = 'https://po-sample-api.fly.dev/v1/uploads/addFile'; + this.url = 'https://po-sample-api.onrender.com/v1/uploads/addFile'; this.headers = undefined; this.headersLabs = undefined; } 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.html b/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-resume-drag-drop/sample-po-upload-resume-drag-drop.component.html index e6a01678a..a47fda4a9 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.html +++ b/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-resume-drag-drop/sample-po-upload-resume-drag-drop.component.html @@ -20,7 +20,7 @@ p-drag-drop-height="160" p-label="Resume" p-required - p-url="https://po-sample-api.fly.dev/v1/uploads/addFile" + p-url="https://po-sample-api.onrender.com/v1/uploads/addFile" p-restrictions="{maxFileSize: '204800'}" (p-error)="resumeUploadError()" (p-success)="resumeUploadSuccess()" diff --git a/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-resume/sample-po-upload-resume.component.html b/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-resume/sample-po-upload-resume.component.html index 2e03c46f3..5fb03bff9 100644 --- a/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-resume/sample-po-upload-resume.component.html +++ b/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-resume/sample-po-upload-resume.component.html @@ -18,7 +18,7 @@ [(ngModel)]="resume" p-label="Resume" p-required - p-url="https://po-sample-api.fly.dev/v1/uploads/addFile" + p-url="https://po-sample-api.onrender.com/v1/uploads/addFile" [p-restrictions]="{ maxFileSize: '204800' }" (p-error)="resumeUploadError()" (p-success)="resumeUploadSuccess()" diff --git a/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-rs/sample-po-upload-rs.component.html b/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-rs/sample-po-upload-rs.component.html index c62623127..1639bc561 100644 --- a/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-rs/sample-po-upload-rs.component.html +++ b/projects/ui/src/lib/components/po-field/po-upload/samples/sample-po-upload-rs/sample-po-upload-rs.component.html @@ -55,7 +55,7 @@

Welcome, TOTVER!

p-hide-select-button p-hide-send-button p-required - p-url="https://po-sample-api.fly.dev/v1/uploads/addFile" + p-url="https://po-sample-api.onrender.com/v1/uploads/addFile" [p-restrictions]="restrictions" > diff --git a/projects/ui/src/lib/components/po-link/samples/sample-po-link-heroes/sample-po-link-heroes.component.html b/projects/ui/src/lib/components/po-link/samples/sample-po-link-heroes/sample-po-link-heroes.component.html index da9000a57..27a9a9bd0 100644 --- a/projects/ui/src/lib/components/po-link/samples/sample-po-link-heroes/sample-po-link-heroes.component.html +++ b/projects/ui/src/lib/components/po-link/samples/sample-po-link-heroes/sample-po-link-heroes.component.html @@ -1,4 +1,8 @@ - + 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 703f278a0..bb32925e9 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 @@ -1,14 +1,14 @@ import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; -import { map } from 'rxjs/operators'; import { Observable } from 'rxjs'; +import { map } from 'rxjs/operators'; import { PoMenuFilter, PoMenuItemFiltered } from '@po-ui/ng-components'; @Injectable() export class SamplePoMenuHumanResourcesService implements PoMenuFilter { - private url: string = 'https://po-sample-api.fly.dev/v1/menus'; + private url: string = 'https://po-sample-api.onrender.com/v1/menus'; constructor(private http: HttpClient) {} diff --git a/projects/ui/src/lib/components/po-menu/samples/sample-po-menu-labs/sample-po-menu-labs.component.html b/projects/ui/src/lib/components/po-menu/samples/sample-po-menu-labs/sample-po-menu-labs.component.html index 4f3b19421..7d83d4d27 100644 --- a/projects/ui/src/lib/components/po-menu/samples/sample-po-menu-labs/sample-po-menu-labs.component.html +++ b/projects/ui/src/lib/components/po-menu/samples/sample-po-menu-labs/sample-po-menu-labs.component.html @@ -111,7 +111,7 @@ [(ngModel)]="service" p-clean p-label="Service" - p-help="https://po-sample-api.fly.dev/v1/menus" + p-help="https://po-sample-api.onrender.com/v1/menus" > 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.html b/projects/ui/src/lib/components/po-page/po-page-default/samples/sample-po-page-default-labs/sample-po-page-default-labs.component.html index ec0bc340e..2177af2d9 100644 --- a/projects/ui/src/lib/components/po-page/po-page-default/samples/sample-po-page-default-labs/sample-po-page-default-labs.component.html +++ b/projects/ui/src/lib/components/po-page/po-page-default/samples/sample-po-page-default-labs/sample-po-page-default-labs.component.html @@ -51,7 +51,7 @@ name="breadcrumbFavorite" [(ngModel)]="breadcrumb.favorite" p-clean - p-help="https://po-sample-api.fly.dev/v1/favorite" + p-help="https://po-sample-api.onrender.com/v1/favorite" p-label="Breadcrumb favorite" > 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.html b/projects/ui/src/lib/components/po-page/po-page-detail/samples/sample-po-page-detail-labs/sample-po-page-detail-labs.component.html index 7e70b5b16..40119476d 100644 --- a/projects/ui/src/lib/components/po-page/po-page-detail/samples/sample-po-page-detail-labs/sample-po-page-detail-labs.component.html +++ b/projects/ui/src/lib/components/po-page/po-page-detail/samples/sample-po-page-detail-labs/sample-po-page-detail-labs.component.html @@ -26,7 +26,7 @@ name="breadcrumbFavorite" [(ngModel)]="breadcrumb.favorite" p-clean - p-help="https://po-sample-api.fly.dev/v1/favorite" + p-help="https://po-sample-api.onrender.com/v1/favorite" p-label="Breadcrumb favorite" > 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.html b/projects/ui/src/lib/components/po-page/po-page-edit/samples/sample-po-page-edit-labs/sample-po-page-edit-labs.component.html index f14da9f89..a9cffb0c7 100644 --- a/projects/ui/src/lib/components/po-page/po-page-edit/samples/sample-po-page-edit-labs/sample-po-page-edit-labs.component.html +++ b/projects/ui/src/lib/components/po-page/po-page-edit/samples/sample-po-page-edit-labs/sample-po-page-edit-labs.component.html @@ -36,7 +36,7 @@ name="breadcrumbFavorite" [(ngModel)]="breadcrumb.favorite" p-clean - p-help="https://po-sample-api.fly.dev/v1/favorite" + p-help="https://po-sample-api.onrender.com/v1/favorite" p-label="Breadcrumb favorite" > 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.html b/projects/ui/src/lib/components/po-page/po-page-list/samples/sample-po-page-list-labs/sample-po-page-list-labs.component.html index 3e258d629..301f02d9b 100644 --- a/projects/ui/src/lib/components/po-page/po-page-list/samples/sample-po-page-list-labs/sample-po-page-list-labs.component.html +++ b/projects/ui/src/lib/components/po-page/po-page-list/samples/sample-po-page-list-labs/sample-po-page-list-labs.component.html @@ -61,7 +61,7 @@ name="breadcrumbFavorite" [(ngModel)]="breadcrumb.favorite" p-clean - p-help="https://po-sample-api.fly.dev/v1/favorite" + p-help="https://po-sample-api.onrender.com/v1/favorite" p-label="Breadcrumb favorite" > diff --git a/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-active/sample-po-stepper-active.service.ts b/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-active/sample-po-stepper-active.service.ts index 6ca6ac2fb..663cffb43 100644 --- a/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-active/sample-po-stepper-active.service.ts +++ b/projects/ui/src/lib/components/po-stepper/samples/sample-po-stepper-active/sample-po-stepper-active.service.ts @@ -1,11 +1,11 @@ -import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; +import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class SamplePoStepperActiveService { - private url: string = 'https://po-sample-api.fly.dev/v1/sampleSelect'; + private url: string = 'https://po-sample-api.onrender.com/v1/sampleSelect'; constructor(private http: HttpClient) {} 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 de63348b5..36681dca2 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 @@ -1963,8 +1963,8 @@ describe('PoTableComponent:', () => { }); it("deleteItems: should set false in 'selectAll' and should call 'setTableResponseProperties' if serviceDeleteApi is valid", () => { - component.serviceDeleteApi = 'https://po-sample-api.fly.dev/v1/heroes'; - component.serviceApi = 'https://po-sample-api.fly.dev/v1/heroes'; + component.serviceDeleteApi = 'https://po-sample-api.onrender.com/v1/heroes'; + component.serviceApi = 'https://po-sample-api.onrender.com/v1/heroes'; component.paramDeleteApi = 'id'; component.items = [ { id: 1, name: 'teste', $selected: true }, @@ -1984,7 +1984,7 @@ describe('PoTableComponent:', () => { }); it('deleteItems: should set serviceDeleteApi but serviceApi is undefined', () => { - component.serviceDeleteApi = 'https://po-sample-api.fly.dev/v1/heroes'; + component.serviceDeleteApi = 'https://po-sample-api.onrender.com/v1/heroes'; component.serviceApi = undefined; component.paramDeleteApi = 'id'; component.items = [ @@ -2001,7 +2001,7 @@ describe('PoTableComponent:', () => { }); it('deleteItemsService: should call error in service delete api', () => { - component.serviceDeleteApi = 'https://po-sample-api.fly.dev/v1/heroes'; + component.serviceDeleteApi = 'https://po-sample-api.onrender.com/v1/heroes'; component.serviceApi = undefined; component.paramDeleteApi = 'id'; component.itemsSelected = [{ id: 1, name: 'teste', $selected: true }]; 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 4d9ae578e..251f01b9e 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 @@ -1,8 +1,8 @@ import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; -import { pluck } from 'rxjs/operators'; +import { PoTableColumn } from '@po-ui/ng-components'; import { Observable } from 'rxjs'; -import { PoTableColumn, PoTableComponent } from '@po-ui/ng-components'; +import { pluck } from 'rxjs/operators'; @Injectable() export class SamplePoTableHeroesService { @@ -16,6 +16,6 @@ export class SamplePoTableHeroesService { } getItems(): Observable { - return this.http.get('https://po-sample-api.fly.dev/v1/heroes').pipe(pluck('items')); + return this.http.get('https://po-sample-api.onrender.com/v1/heroes').pipe(pluck('items')); } } diff --git a/projects/ui/src/lib/components/po-table/samples/sample-po-table-with-api/sample-po-table-with-api.component.html b/projects/ui/src/lib/components/po-table/samples/sample-po-table-with-api/sample-po-table-with-api.component.html index 70c4c3c75..5b449168e 100644 --- a/projects/ui/src/lib/components/po-table/samples/sample-po-table-with-api/sample-po-table-with-api.component.html +++ b/projects/ui/src/lib/components/po-table/samples/sample-po-table-with-api/sample-po-table-with-api.component.html @@ -2,7 +2,7 @@ diff --git a/projects/ui/src/lib/components/po-table/services/po-table.service.spec.ts b/projects/ui/src/lib/components/po-table/services/po-table.service.spec.ts index 043391408..baf43c2f9 100644 --- a/projects/ui/src/lib/components/po-table/services/po-table.service.spec.ts +++ b/projects/ui/src/lib/components/po-table/services/po-table.service.spec.ts @@ -19,7 +19,7 @@ describe('PoTableService', () => { }); it('setUrl: should be called and set api url to method GET', () => { - const url = 'https://po-sample-api.fly.dev/v1/heroes'; + const url = 'https://po-sample-api.onrender.com/v1/heroes'; service.setUrl(url, 'GET'); @@ -27,7 +27,7 @@ describe('PoTableService', () => { }); it('setUrl: should be called and set api url to method DELETE', () => { - const url = 'https://po-sample-api.fly.dev/v1/heroes'; + const url = 'https://po-sample-api.onrender.com/v1/heroes'; service.setUrl(url, 'DELETE'); @@ -55,7 +55,7 @@ describe('PoTableService', () => { }); it('getFilteredItems: to have been called and call backend', () => { - service['url'] = 'https://po-sample-api.fly.dev/v1/heroes'; + service['url'] = 'https://po-sample-api.onrender.com/v1/heroes'; const filteredParams = { order: '-name', @@ -69,7 +69,7 @@ describe('PoTableService', () => { }); it('deleteItem: to have been called and call backend', () => { - service['urlDelete'] = 'https://po-sample-api.fly.dev/v1/heroes'; + service['urlDelete'] = 'https://po-sample-api.onrender.com/v1/heroes'; const paramDelete = 'id'; const paramResponse = 12345; 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 438bd6579..f79f13817 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 @@ -1,9 +1,9 @@ // import { PoRadioGroupOption } from './../../../../../../../dist/ng-components/lib/components/po-field/po-radio-group/po-radio-group-option.interface.d'; -import { Component, OnDestroy, OnInit } from '@angular/core'; import { HttpClient } from '@angular/common/http'; +import { Component, OnDestroy, OnInit } from '@angular/core'; -import { Subscription } from 'rxjs'; import { PoRadioGroupOption } from '@po-ui/ng-components'; +import { Subscription } from 'rxjs'; @Component({ selector: 'sample-po-http-interceptor-labs', @@ -90,7 +90,7 @@ export class SamplePoHttpInterceptorLabsComponent implements OnDestroy, OnInit { const params = { status: this.status || '' }; this.apiSubscription = this.http - .post(`https://po-sample-api.fly.dev/v1/messages`, body, { headers, params }) + .post(`https://po-sample-api.onrender.com/v1/messages`, body, { headers, params }) .subscribe(); } diff --git a/projects/ui/src/lib/interceptors/po-http-request/samples/sample-po-http-request-interceptor-labs.component.html b/projects/ui/src/lib/interceptors/po-http-request/samples/sample-po-http-request-interceptor-labs.component.html index 92e78be98..3dad38019 100644 --- a/projects/ui/src/lib/interceptors/po-http-request/samples/sample-po-http-request-interceptor-labs.component.html +++ b/projects/ui/src/lib/interceptors/po-http-request/samples/sample-po-http-request-interceptor-labs.component.html @@ -7,7 +7,7 @@ class="po-lg-6" name="url" [(ngModel)]="url" - p-help="https://po-sample-api.fly.dev/v1/people" + p-help="https://po-sample-api.onrender.com/v1/people" p-label="URL" p-required >