From 09d05f7b160760e406d4cdfab8e052d5f7600f2b Mon Sep 17 00:00:00 2001 From: George Date: Mon, 19 Oct 2026 11:32:48 -0500 Subject: [PATCH] =?UTF-8?q?feat(web):=20las=20ventanas=20de=20selecci?= =?UTF-8?q?=C3=B3n=20cargan=2050=20filas=20por=20p=C3=A1gina?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5.5 --- apps/web/src/app/shared/value-help/value-help.spec.ts | 10 ++++++++++ apps/web/src/app/shared/value-help/value-help.ts | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/apps/web/src/app/shared/value-help/value-help.spec.ts b/apps/web/src/app/shared/value-help/value-help.spec.ts index 877af00..c79164a 100644 --- a/apps/web/src/app/shared/value-help/value-help.spec.ts +++ b/apps/web/src/app/shared/value-help/value-help.spec.ts @@ -70,12 +70,22 @@ describe('ValueHelp', () => { fixture.componentRef.setInput('title', 'Socios de negocio'); fixture.componentRef.setInput('resource', 'BusinessPartners'); fixture.componentRef.setInput('columns', COLUMNS); + fixture.componentRef.setInput('pageSize', 20); selected = vi.fn<(rows: VhRow[]) => void>(); closed = vi.fn<() => void>(); fixture.componentInstance.selected.subscribe(selected); fixture.componentInstance.closed.subscribe(closed); }); + it('pide tantas filas por página como se le indica', async () => { + fixture.componentRef.setInput('pageSize', 50); + fixture.componentRef.setInput('open', true); + await flush(); + const req = request(); + expect(req.request.params.get('$top')).toBe('50'); + await reply(req, [row(1)]); + }); + it('cerrado no muestra nada ni consulta', async () => { await flush(); expect(q('.dlg')).toBeNull(); diff --git a/apps/web/src/app/shared/value-help/value-help.ts b/apps/web/src/app/shared/value-help/value-help.ts index 08e615a..2e454e0 100644 --- a/apps/web/src/app/shared/value-help/value-help.ts +++ b/apps/web/src/app/shared/value-help/value-help.ts @@ -32,7 +32,7 @@ export class ValueHelp { readonly extraFields = input([]); /** Campo único de cada fila; por defecto, el de la primera columna. */ readonly rowKey = input(); - readonly pageSize = input(20); + readonly pageSize = input(50); /** Filas ya elegidas al abrir (solo selección múltiple). */ readonly initialSelection = input([]);