/*! * devextreme-angular * Version: 19.1.16 * Build date: Tue Oct 18 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-angular */ import { TransferState } from '@angular/platform-browser'; import { ElementRef, NgZone, OnDestroy, EventEmitter, OnChanges, DoCheck, SimpleChanges, QueryList } from '@angular/core'; import DevExpress from 'devextreme/bundles/dx.all'; import DxValidator from 'devextreme/ui/validator'; import { DxComponentExtension } from '../core/component'; import { DxTemplateHost } from '../core/template-host'; import { NestedOptionHost } from '../core/nested-option'; import { WatcherHelper } from '../core/watcher-helper'; import { IterableDifferHelper } from '../core/iterable-differ-helper'; import { DxiValidationRuleComponent } from './nested/validation-rule-dxi'; /** * A widget that is used to validate the associated DevExtreme editors against the defined validation rules. */ export declare class DxValidatorComponent extends DxComponentExtension implements OnDestroy, OnChanges, DoCheck { private _watcherHelper; private _idh; instance: DxValidator; /** * An object that specifies what and when to validate, and how to apply the validation result. */ adapter: { applyValidationResults?: Function; bypass?: Function; focus?: Function; getValue?: Function; reset?: Function; validationRequestsCallbacks?: any | Array; }; /** * Specifies the attributes to be attached to the widget's root element. */ elementAttr: any; /** * Specifies the widget's height. */ height: number | Function | string; /** * Specifies the editor name to be used in the validation default messages. */ name: string; /** * Specifies the validation group the editor will be related to. */ validationGroup: string; /** * An array of validation rules to be checked for the editor with which the dxValidator object is associated. */ validationRules: Array; /** * Specifies the widget's width. */ width: number | Function | string; /** * A function that is executed before the widget is disposed of. */ onDisposing: EventEmitter; /** * A function used in JavaScript frameworks to save the widget instance. */ onInitialized: EventEmitter; /** * A function that is executed after a widget option is changed. */ onOptionChanged: EventEmitter; /** * A function that is executed after a value is validated. */ onValidated: EventEmitter; /** * This member supports the internal infrastructure and is not intended to be used directly from your code. */ adapterChange: EventEmitter<{ applyValidationResults?: Function; bypass?: Function; focus?: Function; getValue?: Function; reset?: Function; validationRequestsCallbacks?: any | Array; }>; /** * This member supports the internal infrastructure and is not intended to be used directly from your code. */ elementAttrChange: EventEmitter; /** * This member supports the internal infrastructure and is not intended to be used directly from your code. */ heightChange: EventEmitter; /** * This member supports the internal infrastructure and is not intended to be used directly from your code. */ nameChange: EventEmitter; /** * This member supports the internal infrastructure and is not intended to be used directly from your code. */ validationGroupChange: EventEmitter; /** * This member supports the internal infrastructure and is not intended to be used directly from your code. */ validationRulesChange: EventEmitter>; /** * This member supports the internal infrastructure and is not intended to be used directly from your code. */ widthChange: EventEmitter; validationRulesChildren: QueryList; parentElement: any; constructor(elementRef: ElementRef, ngZone: NgZone, templateHost: DxTemplateHost, _watcherHelper: WatcherHelper, _idh: IterableDifferHelper, parentOptionHost: NestedOptionHost, optionHost: NestedOptionHost, transferState: TransferState, platformId: any); protected _createInstance(element: any, options: any): DxValidator; private getParentElement(host); ngOnDestroy(): void; ngOnChanges(changes: SimpleChanges): void; setupChanges(prop: string, changes: SimpleChanges): void; ngDoCheck(): void; _setOption(name: string, value: any): void; } export declare class DxValidatorModule { }