| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- /*!
- * 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<Function>;
- };
- /**
- * 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<DevExpress.ui.RequiredRule | DevExpress.ui.NumericRule | DevExpress.ui.RangeRule | DevExpress.ui.StringLengthRule | DevExpress.ui.CustomRule | DevExpress.ui.CompareRule | DevExpress.ui.PatternRule | DevExpress.ui.EmailRule>;
- /**
- * Specifies the widget's width.
- */
- width: number | Function | string;
- /**
- * A function that is executed before the widget is disposed of.
- */
- onDisposing: EventEmitter<any>;
- /**
- * A function used in JavaScript frameworks to save the widget instance.
- */
- onInitialized: EventEmitter<any>;
- /**
- * A function that is executed after a widget option is changed.
- */
- onOptionChanged: EventEmitter<any>;
- /**
- * A function that is executed after a value is validated.
- */
- onValidated: EventEmitter<any>;
- /**
- * 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<Function>;
- }>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- elementAttrChange: EventEmitter<any>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- heightChange: EventEmitter<number | Function | string>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- nameChange: EventEmitter<string>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- validationGroupChange: EventEmitter<string>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- validationRulesChange: EventEmitter<Array<DevExpress.ui.RequiredRule | DevExpress.ui.NumericRule | DevExpress.ui.RangeRule | DevExpress.ui.StringLengthRule | DevExpress.ui.CustomRule | DevExpress.ui.CompareRule | DevExpress.ui.PatternRule | DevExpress.ui.EmailRule>>;
- /**
- * This member supports the internal infrastructure and is not intended to be used directly from your code.
- */
- widthChange: EventEmitter<number | Function | string>;
- validationRulesChildren: QueryList<DxiValidationRuleComponent>;
- 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 {
- }
|