otimus-library 0.3.25 → 0.3.26
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/otimus-library.mjs +165 -8
- package/fesm2022/otimus-library.mjs.map +1 -1
- package/index.d.ts +16 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { DomSanitizer } from '@angular/platform-browser';
|
|
|
4
4
|
import { MaterialSymbol } from 'material-symbols';
|
|
5
5
|
import * as rxjs from 'rxjs';
|
|
6
6
|
import { HttpClient } from '@angular/common/http';
|
|
7
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
7
8
|
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
8
9
|
|
|
9
10
|
declare class OtimusLibraryService {
|
|
@@ -256,13 +257,14 @@ declare class InternationalizationService {
|
|
|
256
257
|
static ɵprov: i0.ɵɵInjectableDeclaration<InternationalizationService>;
|
|
257
258
|
}
|
|
258
259
|
|
|
259
|
-
declare class OcAutocompleteComponent implements AfterContentInit, AfterViewInit, OnChanges, OnInit {
|
|
260
|
+
declare class OcAutocompleteComponent implements AfterContentInit, AfterViewInit, OnChanges, OnInit, OnDestroy {
|
|
260
261
|
private renderer;
|
|
261
262
|
private el;
|
|
262
263
|
private translateService;
|
|
263
264
|
private styleThemeService;
|
|
264
265
|
private cdr;
|
|
265
|
-
|
|
266
|
+
private overlay;
|
|
267
|
+
constructor(renderer: Renderer2, el: ElementRef, translateService: InternationalizationService, styleThemeService: StyleThemeService, cdr: ChangeDetectorRef, overlay: Overlay);
|
|
266
268
|
input: ElementRef;
|
|
267
269
|
options: ElementRef;
|
|
268
270
|
outerDiv: ElementRef<HTMLDivElement>;
|
|
@@ -307,9 +309,14 @@ declare class OcAutocompleteComponent implements AfterContentInit, AfterViewInit
|
|
|
307
309
|
hasSuffix: boolean;
|
|
308
310
|
hasPrefix: boolean;
|
|
309
311
|
isOptionsShown: boolean;
|
|
310
|
-
|
|
312
|
+
private _filteredData;
|
|
313
|
+
get filteredData(): OcAutoCompleteType[];
|
|
314
|
+
set filteredData(value: OcAutoCompleteType[]);
|
|
311
315
|
selectedValue: OcAutoCompleteType;
|
|
312
316
|
selectedIndex: number;
|
|
317
|
+
inputWidth: string;
|
|
318
|
+
private overlayRef;
|
|
319
|
+
private dropdownComponentRef;
|
|
313
320
|
get computedWidth(): string | null;
|
|
314
321
|
get computedMinWidth(): string;
|
|
315
322
|
get computedMaxWidth(): string;
|
|
@@ -318,6 +325,7 @@ declare class OcAutocompleteComponent implements AfterContentInit, AfterViewInit
|
|
|
318
325
|
ngAfterContentInit(): void;
|
|
319
326
|
ngAfterViewInit(): void;
|
|
320
327
|
formatOcValueType(): string | null;
|
|
328
|
+
updateInputWidth(): void;
|
|
321
329
|
getTranslation(code: number | string): string;
|
|
322
330
|
loadOptions(): void;
|
|
323
331
|
closeOnClickOut(): void;
|
|
@@ -325,6 +333,10 @@ declare class OcAutocompleteComponent implements AfterContentInit, AfterViewInit
|
|
|
325
333
|
filterData(name: string): void;
|
|
326
334
|
getFormattedName(str: string): string;
|
|
327
335
|
toggleOptions(): void;
|
|
336
|
+
private openOverlay;
|
|
337
|
+
private closeOverlay;
|
|
338
|
+
private updateDropdownPortal;
|
|
339
|
+
private setDropdownComponentInputs;
|
|
328
340
|
selectValue(value: any): void;
|
|
329
341
|
clearValue(): void;
|
|
330
342
|
protected incrementCounter(option: OcAutoCompleteType): void;
|
|
@@ -332,6 +344,7 @@ declare class OcAutocompleteComponent implements AfterContentInit, AfterViewInit
|
|
|
332
344
|
emitCounterSelectChange(): void;
|
|
333
345
|
moveSelection(delta: number): void;
|
|
334
346
|
protected onKeyDown(event: Event): void;
|
|
347
|
+
ngOnDestroy(): void;
|
|
335
348
|
static ɵfac: i0.ɵɵFactoryDeclaration<OcAutocompleteComponent, never>;
|
|
336
349
|
static ɵcmp: i0.ɵɵComponentDeclaration<OcAutocompleteComponent, "oc-autocomplete", never, { "ocData": { "alias": "ocData"; "required": false; }; "ocPlaceholder": { "alias": "ocPlaceholder"; "required": false; }; "ocError": { "alias": "ocError"; "required": false; }; "ocSize": { "alias": "ocSize"; "required": false; }; "ocValue": { "alias": "ocValue"; "required": false; }; "ocClearOnChange": { "alias": "ocClearOnChange"; "required": false; }; "ocWidth": { "alias": "ocWidth"; "required": false; }; "ocMinWidth": { "alias": "ocMinWidth"; "required": false; }; "ocMaxWidth": { "alias": "ocMaxWidth"; "required": false; }; "ocOptionsMaxHeight": { "alias": "ocOptionsMaxHeight"; "required": false; }; "ocOptionsWidth": { "alias": "ocOptionsWidth"; "required": false; }; "ocRequired": { "alias": "ocRequired"; "required": false; }; "ocMaxResults": { "alias": "ocMaxResults"; "required": false; }; "ocAllowNotListedValue": { "alias": "ocAllowNotListedValue"; "required": false; }; "ocNoAvailableOptionsText": { "alias": "ocNoAvailableOptionsText"; "required": false; }; "ocTypeForMoreResultsText": { "alias": "ocTypeForMoreResultsText"; "required": false; }; "ocLoading": { "alias": "ocLoading"; "required": false; }; "ocSemanticLike": { "alias": "ocSemanticLike"; "required": false; }; "ocStyle": { "alias": "ocStyle"; "required": false; }; "ocTabIndex": { "alias": "ocTabIndex"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "ocSelectByTyping": { "alias": "ocSelectByTyping"; "required": false; }; "ocDisabled": { "alias": "ocDisabled"; "required": false; }; "ocType": { "alias": "ocType"; "required": false; }; "ocHasDeleteButton": { "alias": "ocHasDeleteButton"; "required": false; }; "ocEnableKeyboard": { "alias": "ocEnableKeyboard"; "required": false; }; }, { "ocValueChange": "ocValueChange"; "ocChange": "ocChange"; "ocCounterSelectChange": "ocCounterSelectChange"; "ocOptionNotFound": "ocOptionNotFound"; "ocClick": "ocClick"; }, ["ocPrefix", "ocSuffix"], ["*", "ocPrefix", "ocSuffix"], true, never>;
|
|
337
350
|
}
|