@recursyve/nice-ui-kit.v2 14.0.0-beta.131 → 14.0.0-beta.132
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/esm2020/lib/components/async-typeahead/async-typeahead.component.mjs +12 -23
- package/esm2020/lib/components/async-typeahead/providers/async-typeahead.service.mjs +12 -22
- package/esm2020/lib/components/form-error/control-status.directive.mjs +13 -1
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs +59 -65
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs +34 -43
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/lib/components/async-typeahead/async-typeahead.component.d.ts +2 -4
- package/lib/components/async-typeahead/providers/async-typeahead.service.d.ts +5 -8
- package/package.json +1 -1
|
@@ -82,13 +82,11 @@ export declare class NiceAsyncTypeaheadComponent extends _BaseAsyncTypeaheadComp
|
|
|
82
82
|
get shouldLabelFloat(): boolean;
|
|
83
83
|
id: string;
|
|
84
84
|
describedBy: string;
|
|
85
|
-
private componentInitialized;
|
|
86
|
-
private initialWriteValue?;
|
|
87
85
|
get empty(): boolean;
|
|
88
86
|
get initialized(): boolean;
|
|
89
87
|
propagate: (value: string) => void;
|
|
90
88
|
constructor(ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective, defaultErrorStateMatcher: ErrorStateMatcher, ngZone: NgZone, changeDetectorRef: ChangeDetectorRef, service: NiceAsyncTypeaheadService);
|
|
91
|
-
ngOnInit():
|
|
89
|
+
ngOnInit(): void;
|
|
92
90
|
ngOnDestroy(): void;
|
|
93
91
|
ngOnChanges(changes: SimpleChanges): void;
|
|
94
92
|
ngDoCheck(): void;
|
|
@@ -105,7 +103,7 @@ export declare class NiceAsyncTypeaheadComponent extends _BaseAsyncTypeaheadComp
|
|
|
105
103
|
formatLabel(item: any): string;
|
|
106
104
|
onEndScroll(): void;
|
|
107
105
|
focusChanged(isFocused: boolean): void;
|
|
108
|
-
reload(): void
|
|
106
|
+
reload(): Promise<void>;
|
|
109
107
|
reloadActive(): Promise<void>;
|
|
110
108
|
setSearchOptions(options: any): void;
|
|
111
109
|
private updateLabel;
|
|
@@ -11,7 +11,6 @@ export declare class AsyncTypeaheadState {
|
|
|
11
11
|
isLastPage: boolean;
|
|
12
12
|
searchQuery?: string;
|
|
13
13
|
excludedIds: any[];
|
|
14
|
-
searchOptions?: object;
|
|
15
14
|
}
|
|
16
15
|
export declare type AsyncTypeaheadRequests = {
|
|
17
16
|
resource: string;
|
|
@@ -32,17 +31,15 @@ export declare class NiceAsyncTypeaheadService {
|
|
|
32
31
|
constructor(apis: NiceAsyncTypeaheadProvider<any>[]);
|
|
33
32
|
listenForRequest(): void;
|
|
34
33
|
closeRequestSubscription(): void;
|
|
35
|
-
initialize(resource: string): Promise<void>;
|
|
34
|
+
initialize(resource: string, options?: any): Promise<void>;
|
|
36
35
|
sendRequest(request: AsyncTypeaheadRequests): Observable<void>;
|
|
37
|
-
search(resource: string, searchQuery: string): void;
|
|
38
|
-
loadMore(resource: string): void;
|
|
36
|
+
search(resource: string, searchQuery: string, options?: any): void;
|
|
37
|
+
loadMore(resource: string, options?: any): void;
|
|
39
38
|
getActive(): any;
|
|
40
39
|
getInitialized(): boolean;
|
|
41
|
-
getSearchOptions(): object | undefined;
|
|
42
|
-
setSearchOptions(searchOptions: object | undefined): void;
|
|
43
40
|
setActive(entity: any | undefined): void;
|
|
44
|
-
setActiveId(resource: string, id: any): Promise<void>;
|
|
45
|
-
reloadActive(resource: string): Promise<void>;
|
|
41
|
+
setActiveId(resource: string, id: any, options?: any): Promise<void>;
|
|
42
|
+
reloadActive(resource: string, options?: any): Promise<void>;
|
|
46
43
|
reloadFilteredItems(): void;
|
|
47
44
|
setFilterFn(filterFn: (value: any) => boolean | Promise<boolean> | Observable<boolean>): void;
|
|
48
45
|
format(resource: string, item: string): string;
|