nexheal-lib 0.0.50 → 0.0.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -483,8 +483,8 @@ declare class PaginatedAutocompleteControl implements ControlValueAccessor, OnIn
483
483
  inputLoader: boolean;
484
484
  readonly: boolean;
485
485
  optionDisplayProperty: string;
486
- /** 'scroll' = infinite scroll, 'click' = "Load more" button */
487
- paginationType: 'scroll' | 'click';
486
+ /** 'scroll' = infinite scroll, 'click' = "Load more" button, 'arrow' = ←/→ keys */
487
+ paginationType: 'scroll' | 'click' | 'arrow';
488
488
  pageSize: number;
489
489
  searchDebounce: number;
490
490
  /** Re-fetch page 1 every time the dropdown opens, instead of reusing cached results */
@@ -510,6 +510,8 @@ declare class PaginatedAutocompleteControl implements ControlValueAccessor, OnIn
510
510
  private preventClearOnBlur;
511
511
  private searchInput$;
512
512
  private cancelPendingSearch;
513
+ /** Arrow mode: cache of visited pages for the current search */
514
+ private pageCache;
513
515
  private onChange;
514
516
  private onTouched;
515
517
  inputElement: ElementRef;
@@ -524,6 +526,7 @@ declare class PaginatedAutocompleteControl implements ControlValueAccessor, OnIn
524
526
  highlightedIndex: number | null;
525
527
  currentPage: number;
526
528
  get hasMore(): boolean;
529
+ get totalPages(): number;
527
530
  constructor();
528
531
  ngOnInit(): void;
529
532
  ngAfterViewInit(): void;
@@ -535,6 +538,11 @@ declare class PaginatedAutocompleteControl implements ControlValueAccessor, OnIn
535
538
  setDisabledState?(isDisabled: boolean): void;
536
539
  private loadPage;
537
540
  loadNextPage(): void;
541
+ /** Arrow mode: show an already-visited page instantly, no API call */
542
+ private showCachedPage;
543
+ nextArrowPage(): void;
544
+ prevArrowPage(): void;
545
+ private resetListScroll;
538
546
  onListScroll(event: Event): void;
539
547
  onLoadMoreClick(event: MouseEvent): void;
540
548
  /** Call from the parent's API error handler to unblock paging and show a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexheal-lib",
3
- "version": "0.0.50",
3
+ "version": "0.0.52",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.1.0",
6
6
  "@angular/core": "^20.1.0"