nexheal-lib 0.0.70 → 0.0.71
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 +122 -24
- package/fesm2022/nexheal-lib.mjs.map +1 -1
- package/index.d.ts +15 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -509,6 +509,7 @@ declare class PaginatedAutocompleteControl implements ControlValueAccessor, OnIn
|
|
|
509
509
|
required: boolean;
|
|
510
510
|
placeholder: string;
|
|
511
511
|
customClass: string;
|
|
512
|
+
showSearchIcon: boolean;
|
|
512
513
|
clearVal: boolean;
|
|
513
514
|
error: boolean;
|
|
514
515
|
errorMessage: string;
|
|
@@ -521,6 +522,11 @@ declare class PaginatedAutocompleteControl implements ControlValueAccessor, OnIn
|
|
|
521
522
|
paginationType: 'scroll' | 'click' | 'arrow';
|
|
522
523
|
pageSize: number;
|
|
523
524
|
searchDebounce: number;
|
|
525
|
+
/**
|
|
526
|
+
* Min trimmed length before page-1 search. When omitted, search runs only from the
|
|
527
|
+
* search icon (and Enter). Empty search always allowed. Use 0 for type-to-search with no minimum.
|
|
528
|
+
*/
|
|
529
|
+
minSearchLength?: number;
|
|
524
530
|
/** Re-fetch page 1 every time the dropdown opens, instead of reusing cached results */
|
|
525
531
|
refreshOnOpen: boolean;
|
|
526
532
|
/** Total record count for the current search, from the API response */
|
|
@@ -564,6 +570,8 @@ declare class PaginatedAutocompleteControl implements ControlValueAccessor, OnIn
|
|
|
564
570
|
get totalPages(): number;
|
|
565
571
|
get pageRangeStart(): number;
|
|
566
572
|
get pageRangeEnd(): number;
|
|
573
|
+
get controlDisabled(): boolean;
|
|
574
|
+
get searchOnButtonOnly(): boolean;
|
|
567
575
|
constructor();
|
|
568
576
|
ngOnInit(): void;
|
|
569
577
|
ngAfterViewInit(): void;
|
|
@@ -573,6 +581,9 @@ declare class PaginatedAutocompleteControl implements ControlValueAccessor, OnIn
|
|
|
573
581
|
registerOnChange(fn: any): void;
|
|
574
582
|
registerOnTouched(fn: any): void;
|
|
575
583
|
setDisabledState?(isDisabled: boolean): void;
|
|
584
|
+
private onControlDisabled;
|
|
585
|
+
private isSearchAllowed;
|
|
586
|
+
private handleSearchBelowMinLength;
|
|
576
587
|
private loadPage;
|
|
577
588
|
loadNextPage(): void;
|
|
578
589
|
/** Arrow mode: show an already-visited page instantly, no API call */
|
|
@@ -591,9 +602,12 @@ declare class PaginatedAutocompleteControl implements ControlValueAccessor, OnIn
|
|
|
591
602
|
onUserType(event: Event): void;
|
|
592
603
|
onFocus(): void;
|
|
593
604
|
onInputClick(): void;
|
|
605
|
+
onSearchIconClick(event: MouseEvent): void;
|
|
606
|
+
private runSearchAction;
|
|
594
607
|
/** Text to search with when the dropdown opens: if the input just holds the
|
|
595
608
|
* selected item's display text, open with the full list instead. */
|
|
596
609
|
private openSearchTerm;
|
|
610
|
+
private tryReopenCachedSearch;
|
|
597
611
|
private openWithSearch;
|
|
598
612
|
onBlur(): void;
|
|
599
613
|
onKeyDown(event: KeyboardEvent): void;
|
|
@@ -604,7 +618,7 @@ declare class PaginatedAutocompleteControl implements ControlValueAccessor, OnIn
|
|
|
604
618
|
private scrollHighlightedItemIntoView;
|
|
605
619
|
resetInput(): void;
|
|
606
620
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaginatedAutocompleteControl, never>;
|
|
607
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PaginatedAutocompleteControl, "paginated-autocomplete-control", never, { "title": { "alias": "title"; "required": false; }; "required": { "alias": "required"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "clearVal": { "alias": "clearVal"; "required": false; }; "error": { "alias": "error"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "inputLoader": { "alias": "inputLoader"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "isAddNewItem": { "alias": "isAddNewItem"; "required": false; }; "optionDisplayProperty": { "alias": "optionDisplayProperty"; "required": false; }; "paginationType": { "alias": "paginationType"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "searchDebounce": { "alias": "searchDebounce"; "required": false; }; "refreshOnOpen": { "alias": "refreshOnOpen"; "required": false; }; "totalCount": { "alias": "totalCount"; "required": false; }; "options": { "alias": "options"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "pageChange": "pageChange"; "optionSelected": "optionSelected"; "selectionCleared": "selectionCleared"; "blurEvent": "blurEvent"; "optionPatched": "optionPatched"; "addNewItemClicked": "addNewItemClicked"; }, never, never, true, never>;
|
|
621
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PaginatedAutocompleteControl, "paginated-autocomplete-control", never, { "title": { "alias": "title"; "required": false; }; "required": { "alias": "required"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "showSearchIcon": { "alias": "showSearchIcon"; "required": false; }; "clearVal": { "alias": "clearVal"; "required": false; }; "error": { "alias": "error"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "inputLoader": { "alias": "inputLoader"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "isAddNewItem": { "alias": "isAddNewItem"; "required": false; }; "optionDisplayProperty": { "alias": "optionDisplayProperty"; "required": false; }; "paginationType": { "alias": "paginationType"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "searchDebounce": { "alias": "searchDebounce"; "required": false; }; "minSearchLength": { "alias": "minSearchLength"; "required": false; }; "refreshOnOpen": { "alias": "refreshOnOpen"; "required": false; }; "totalCount": { "alias": "totalCount"; "required": false; }; "options": { "alias": "options"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "pageChange": "pageChange"; "optionSelected": "optionSelected"; "selectionCleared": "selectionCleared"; "blurEvent": "blurEvent"; "optionPatched": "optionPatched"; "addNewItemClicked": "addNewItemClicked"; }, never, never, true, never>;
|
|
608
622
|
}
|
|
609
623
|
|
|
610
624
|
/**
|