ontimize-web-ngx
Version:
Ontimize Web framework using Angular 15
60 lines (59 loc) • 3.13 kB
TypeScript
import { AfterViewInit, ElementRef, EventEmitter, Injector, OnChanges, OnInit, SimpleChange } from '@angular/core';
import { UntypedFormControl } from '@angular/forms';
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
import { MatInput } from '@angular/material/input';
import { OFormComponent } from '../../form/o-form.component';
import { OFormControl } from '../o-form-control.class';
import { OFormServiceComponent } from '../o-form-service-component.class';
import { OListPickerCustomRenderer } from './listpicker-renderer/o-list-picker-renderer.class';
import { OListPickerDialogComponent } from './o-list-picker-dialog.component';
import * as i0 from "@angular/core";
export declare const DEFAULT_INPUTS_O_LIST_PICKER: string[];
export declare const DEFAULT_OUTPUTS_O_LIST_PICKER: string[];
export declare class OListPickerComponent extends OFormServiceComponent implements AfterViewInit, OnChanges, OnInit {
onDialogAccept: EventEmitter<any>;
onDialogCancel: EventEmitter<any>;
stateCtrl: UntypedFormControl;
textInputEnabled: boolean;
dialogDisableClose: boolean;
protected filter: boolean;
protected dialogWidth: string;
protected dialogHeight: string;
protected dialogClass: string;
protected queryRows: number;
renderer: OListPickerCustomRenderer;
protected matDialog: MatDialog;
protected dialogRef: MatDialogRef<OListPickerDialogComponent>;
protected inputModel: MatInput;
protected visibleInput: ElementRef;
protected visibleInputValue: any;
protected blurTimer: any;
protected blurDelay: number;
protected blurPrevent: boolean;
constructor(form: OFormComponent, elRef: ElementRef, injector: Injector);
ngOnInit(): void;
ngOnChanges(changes: {
[propName: string]: SimpleChange;
}): void;
createFormControl(cfg?: any, validators?: any): OFormControl;
ensureOFormValue(value: any): void;
setEnabled(value: boolean): void;
ngAfterViewInit(): void;
getDescriptionValue(): string;
onClickClear(e: Event): void;
onClickInput(e: Event): void;
onClickListpicker(e: Event): void;
onDialogClose(evt: any): void;
innerOnBlur(evt: any): void;
onVisibleInputChange(event: any): void;
onKeydownEnter(val: any): void;
protected openDialog(): void;
protected getDialogDataArray(dataArray: any[]): any[];
protected getVisibleColumnText(item: any): string;
registerRenderer(renderer: any): void;
protected setStateCtrlValue(): void;
syncDataIndex(queryIfNotFound?: boolean): void;
selectValue(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<OListPickerComponent, [{ optional: true; }, null, null]>;
static ɵcmp: i0.ɵɵComponentDeclaration<OListPickerComponent, "o-list-picker", never, { "filter": "filter"; "dialogWidth": "dialog-width"; "dialogHeight": "dialog-height"; "queryRows": "query-rows"; "textInputEnabled": "text-input-enabled"; "dialogDisableClose": "dialog-disable-close"; "dialogClass": "dialog-class"; }, { "onDialogAccept": "onDialogAccept"; "onDialogCancel": "onDialogCancel"; }, never, never, false, never>;
}