@recursyve/nice-ui-kit.v2 14.0.0-beta.132 → 14.0.0-beta.133

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.
@@ -82,11 +82,13 @@ 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?;
85
87
  get empty(): boolean;
86
88
  get initialized(): boolean;
87
89
  propagate: (value: string) => void;
88
90
  constructor(ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective, defaultErrorStateMatcher: ErrorStateMatcher, ngZone: NgZone, changeDetectorRef: ChangeDetectorRef, service: NiceAsyncTypeaheadService);
89
- ngOnInit(): void;
91
+ ngOnInit(): Promise<void>;
90
92
  ngOnDestroy(): void;
91
93
  ngOnChanges(changes: SimpleChanges): void;
92
94
  ngDoCheck(): void;
@@ -103,7 +105,7 @@ export declare class NiceAsyncTypeaheadComponent extends _BaseAsyncTypeaheadComp
103
105
  formatLabel(item: any): string;
104
106
  onEndScroll(): void;
105
107
  focusChanged(isFocused: boolean): void;
106
- reload(): Promise<void>;
108
+ reload(): void;
107
109
  reloadActive(): Promise<void>;
108
110
  setSearchOptions(options: any): void;
109
111
  private updateLabel;
@@ -11,6 +11,7 @@ export declare class AsyncTypeaheadState {
11
11
  isLastPage: boolean;
12
12
  searchQuery?: string;
13
13
  excludedIds: any[];
14
+ searchOptions?: object;
14
15
  }
15
16
  export declare type AsyncTypeaheadRequests = {
16
17
  resource: string;
@@ -31,15 +32,17 @@ export declare class NiceAsyncTypeaheadService {
31
32
  constructor(apis: NiceAsyncTypeaheadProvider<any>[]);
32
33
  listenForRequest(): void;
33
34
  closeRequestSubscription(): void;
34
- initialize(resource: string, options?: any): Promise<void>;
35
+ initialize(resource: string): Promise<void>;
35
36
  sendRequest(request: AsyncTypeaheadRequests): Observable<void>;
36
- search(resource: string, searchQuery: string, options?: any): void;
37
- loadMore(resource: string, options?: any): void;
37
+ search(resource: string, searchQuery: string): void;
38
+ loadMore(resource: string): void;
38
39
  getActive(): any;
39
40
  getInitialized(): boolean;
41
+ getSearchOptions(): object | undefined;
42
+ setSearchOptions(searchOptions: object | undefined): void;
40
43
  setActive(entity: any | undefined): void;
41
- setActiveId(resource: string, id: any, options?: any): Promise<void>;
42
- reloadActive(resource: string, options?: any): Promise<void>;
44
+ setActiveId(resource: string, id: any): Promise<void>;
45
+ reloadActive(resource: string): Promise<void>;
43
46
  reloadFilteredItems(): void;
44
47
  setFilterFn(filterFn: (value: any) => boolean | Promise<boolean> | Observable<boolean>): void;
45
48
  format(resource: string, item: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recursyve/nice-ui-kit.v2",
3
- "version": "14.0.0-beta.132",
3
+ "version": "14.0.0-beta.133",
4
4
  "exports": {
5
5
  ".": {
6
6
  "sass": "./_index.scss",