@unifylib/ui-lib 1.2.21 → 1.2.23
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FieldInfo, LookupItem } from "../../base-model";
|
|
3
3
|
import { MatAutocompleteTrigger } from "@angular/material/autocomplete";
|
|
4
4
|
import { Observable } from "rxjs";
|
|
@@ -7,7 +7,7 @@ import { BackendService } from "../../services";
|
|
|
7
7
|
import { GetItemsList } from "../../base-model/get-items-list";
|
|
8
8
|
import { TranslateService } from "@ngx-translate/core";
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class AutoCompleteComponent implements OnInit, OnChanges {
|
|
10
|
+
export declare class AutoCompleteComponent implements OnInit, OnChanges, OnDestroy {
|
|
11
11
|
private backendService;
|
|
12
12
|
protected translateService: TranslateService;
|
|
13
13
|
private secretsManager;
|
|
@@ -26,6 +26,9 @@ export declare class AutoCompleteComponent implements OnInit, OnChanges {
|
|
|
26
26
|
cascadedId: number;
|
|
27
27
|
isRequired: boolean;
|
|
28
28
|
private timer;
|
|
29
|
+
private lastOpenLookupRefreshAt;
|
|
30
|
+
private readonly openLookupRefreshGuardMs;
|
|
31
|
+
private readonly destroy$;
|
|
29
32
|
myControl: FormControl<any>;
|
|
30
33
|
constructor(backendService: BackendService, translateService: TranslateService, secretsManager: any);
|
|
31
34
|
ngOnInit(): void;
|
|
@@ -40,13 +43,19 @@ export declare class AutoCompleteComponent implements OnInit, OnChanges {
|
|
|
40
43
|
[className: string]: boolean;
|
|
41
44
|
};
|
|
42
45
|
itemNameByLag(item: any): string;
|
|
46
|
+
private currentLanguage;
|
|
47
|
+
private refreshDisplayedValue;
|
|
43
48
|
filterLookupItems(name: any, trigger: MatAutocompleteTrigger): void;
|
|
49
|
+
private buildVisibleItems;
|
|
50
|
+
showNoneOption(): boolean;
|
|
44
51
|
addLookupFilterByAnotherProperties(listItems: GetItemsList): void;
|
|
45
52
|
private patchLookupValue;
|
|
46
53
|
get matErrorDescribedBy(): string | null;
|
|
47
54
|
getId(): string;
|
|
55
|
+
openLookupPanel(autocompleteTrigger?: MatAutocompleteTrigger): void;
|
|
48
56
|
onKeydown(event: KeyboardEvent, autocompleteTrigger: MatAutocompleteTrigger): void;
|
|
49
57
|
closed(): void;
|
|
58
|
+
ngOnDestroy(): void;
|
|
50
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutoCompleteComponent, never>;
|
|
51
60
|
static ɵcmp: i0.ɵɵComponentDeclaration<AutoCompleteComponent, "app-auto-complete", never, { "field": { "alias": "field"; "required": false; }; "form": { "alias": "form"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "supportingAttributes": { "alias": "supportingAttributes"; "required": false; }; }, { "selectedValue": "selectedValue"; }, never, ["mat-error"], true, never>;
|
|
52
61
|
}
|