nexheal-lib 0.0.65 → 0.0.67
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
|
@@ -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,8 @@ declare class PaginatedAutocompleteControl implements ControlValueAccessor, OnIn
|
|
|
521
522
|
paginationType: 'scroll' | 'click' | 'arrow';
|
|
522
523
|
pageSize: number;
|
|
523
524
|
searchDebounce: number;
|
|
525
|
+
/** Min trimmed characters before page-1 search / pageChange (0 = no minimum). Empty search always allowed. */
|
|
526
|
+
minSearchLength: number;
|
|
524
527
|
/** Re-fetch page 1 every time the dropdown opens, instead of reusing cached results */
|
|
525
528
|
refreshOnOpen: boolean;
|
|
526
529
|
/** Total record count for the current search, from the API response */
|
|
@@ -573,6 +576,8 @@ declare class PaginatedAutocompleteControl implements ControlValueAccessor, OnIn
|
|
|
573
576
|
registerOnChange(fn: any): void;
|
|
574
577
|
registerOnTouched(fn: any): void;
|
|
575
578
|
setDisabledState?(isDisabled: boolean): void;
|
|
579
|
+
private isSearchAllowed;
|
|
580
|
+
private handleSearchBelowMinLength;
|
|
576
581
|
private loadPage;
|
|
577
582
|
loadNextPage(): void;
|
|
578
583
|
/** Arrow mode: show an already-visited page instantly, no API call */
|
|
@@ -591,6 +596,7 @@ declare class PaginatedAutocompleteControl implements ControlValueAccessor, OnIn
|
|
|
591
596
|
onUserType(event: Event): void;
|
|
592
597
|
onFocus(): void;
|
|
593
598
|
onInputClick(): void;
|
|
599
|
+
onSearchIconClick(event: MouseEvent): void;
|
|
594
600
|
/** Text to search with when the dropdown opens: if the input just holds the
|
|
595
601
|
* selected item's display text, open with the full list instead. */
|
|
596
602
|
private openSearchTerm;
|
|
@@ -604,7 +610,7 @@ declare class PaginatedAutocompleteControl implements ControlValueAccessor, OnIn
|
|
|
604
610
|
private scrollHighlightedItemIntoView;
|
|
605
611
|
resetInput(): void;
|
|
606
612
|
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>;
|
|
613
|
+
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
614
|
}
|
|
609
615
|
|
|
610
616
|
/**
|
package/package.json
CHANGED