nexheal-lib 0.0.67 → 0.0.69
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/fesm2022/nexheal-lib.mjs +87 -28
- package/fesm2022/nexheal-lib.mjs.map +1 -1
- package/index.d.ts +14 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -522,8 +522,12 @@ declare class PaginatedAutocompleteControl implements ControlValueAccessor, OnIn
|
|
|
522
522
|
paginationType: 'scroll' | 'click' | 'arrow';
|
|
523
523
|
pageSize: number;
|
|
524
524
|
searchDebounce: number;
|
|
525
|
-
/**
|
|
526
|
-
|
|
525
|
+
/**
|
|
526
|
+
* Omit: search runs only from the search icon (and Enter). Set a number: type-to-search
|
|
527
|
+
* with that minimum trimmed length (empty search still loads the full list). Pass 0 for
|
|
528
|
+
* type-to-search with no minimum.
|
|
529
|
+
*/
|
|
530
|
+
minSearchLength?: number;
|
|
527
531
|
/** Re-fetch page 1 every time the dropdown opens, instead of reusing cached results */
|
|
528
532
|
refreshOnOpen: boolean;
|
|
529
533
|
/** Total record count for the current search, from the API response */
|
|
@@ -567,6 +571,10 @@ declare class PaginatedAutocompleteControl implements ControlValueAccessor, OnIn
|
|
|
567
571
|
get totalPages(): number;
|
|
568
572
|
get pageRangeStart(): number;
|
|
569
573
|
get pageRangeEnd(): number;
|
|
574
|
+
/** Disabled via @Input or reactive forms (ControlValueAccessor). */
|
|
575
|
+
get controlDisabled(): boolean;
|
|
576
|
+
/** `minSearchLength` omitted — API only via search icon / Enter, not while typing. */
|
|
577
|
+
get searchOnButtonOnly(): boolean;
|
|
570
578
|
constructor();
|
|
571
579
|
ngOnInit(): void;
|
|
572
580
|
ngAfterViewInit(): void;
|
|
@@ -576,6 +584,7 @@ declare class PaginatedAutocompleteControl implements ControlValueAccessor, OnIn
|
|
|
576
584
|
registerOnChange(fn: any): void;
|
|
577
585
|
registerOnTouched(fn: any): void;
|
|
578
586
|
setDisabledState?(isDisabled: boolean): void;
|
|
587
|
+
private onControlDisabled;
|
|
579
588
|
private isSearchAllowed;
|
|
580
589
|
private handleSearchBelowMinLength;
|
|
581
590
|
private loadPage;
|
|
@@ -597,9 +606,12 @@ declare class PaginatedAutocompleteControl implements ControlValueAccessor, OnIn
|
|
|
597
606
|
onFocus(): void;
|
|
598
607
|
onInputClick(): void;
|
|
599
608
|
onSearchIconClick(event: MouseEvent): void;
|
|
609
|
+
private runSearchAction;
|
|
600
610
|
/** Text to search with when the dropdown opens: if the input just holds the
|
|
601
611
|
* selected item's display text, open with the full list instead. */
|
|
602
612
|
private openSearchTerm;
|
|
613
|
+
/** Reopen the dropdown from cached results for `term` without calling the API. */
|
|
614
|
+
private tryReopenCachedSearch;
|
|
603
615
|
private openWithSearch;
|
|
604
616
|
onBlur(): void;
|
|
605
617
|
onKeyDown(event: KeyboardEvent): void;
|