From 1f05e51ee68bafa7f145345c4fee1a3ba9d0237d Mon Sep 17 00:00:00 2001 From: Fedor Date: Wed, 2 Sep 2026 12:21:03 +0300 Subject: [PATCH] Format region selector files --- .../project-main-step.component.spec.ts | 12 ++++++------ .../region-select/region-select.component.html | 14 +++++++++++--- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/projects/social_platform/src/app/ui/pages/projects/edit/components/project-main-step/project-main-step.component.spec.ts b/projects/social_platform/src/app/ui/pages/projects/edit/components/project-main-step/project-main-step.component.spec.ts index c138cad52..424ebfb7a 100644 --- a/projects/social_platform/src/app/ui/pages/projects/edit/components/project-main-step/project-main-step.component.spec.ts +++ b/projects/social_platform/src/app/ui/pages/projects/edit/components/project-main-step/project-main-step.component.spec.ts @@ -100,15 +100,15 @@ describe("ProjectMainStepComponent", () => { addButton.click(); fixture.detectChanges(); expect(links.length).toBe(1); - expect(fixture.nativeElement.querySelectorAll('[formarrayname="links"] app-input')).toHaveLength( - 1, - ); + expect( + fixture.nativeElement.querySelectorAll('[formarrayname="links"] app-input'), + ).toHaveLength(1); addButton.click(); fixture.detectChanges(); expect(links.length).toBe(2); - expect(fixture.nativeElement.querySelectorAll('[formarrayname="links"] app-input')).toHaveLength( - 2, - ); + expect( + fixture.nativeElement.querySelectorAll('[formarrayname="links"] app-input'), + ).toHaveLength(2); }); }); diff --git a/projects/social_platform/src/app/ui/widgets/region-select/region-select.component.html b/projects/social_platform/src/app/ui/widgets/region-select/region-select.component.html index 06265e48a..d7d0a7f79 100644 --- a/projects/social_platform/src/app/ui/widgets/region-select/region-select.component.html +++ b/projects/social_platform/src/app/ui/widgets/region-select/region-select.component.html @@ -14,13 +14,20 @@ [disabled]="disabled()" [attr.aria-expanded]="open()" [attr.aria-controls]="id() + '-options'" - [attr.aria-activedescendant]="open() && options().length ? id() + '-option-' + activeIndex() : null" + [attr.aria-activedescendant]=" + open() && options().length ? id() + '-option-' + activeIndex() : null + " (focus)="onFocus()" (input)="onInput($event)" (keydown)="onKeydown($event)" /> @if (query()) { - } @@ -28,7 +35,8 @@ @if (legacyValue(); as legacy) {

- Текущее значение: {{ legacy }}. Выберите корректный регион из списка. + Текущее значение: {{ legacy }}. Выберите корректный регион из списка.

}