Skip to content

Commit 7b15efb

Browse files
revert
1 parent ae1c313 commit 7b15efb

1 file changed

Lines changed: 77 additions & 78 deletions

File tree

  • packages/devextreme-angular/src/ui/validator

packages/devextreme-angular/src/ui/validator/index.ts

Lines changed: 77 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ import {
4343

4444
import { DxoAdapterModule } from 'devextreme-angular/ui/nested';
4545
import { DxiValidationRuleModule } from 'devextreme-angular/ui/nested';
46-
import { BaseNestedOption } from 'devextreme-angular/core';
4746

4847
import { DxoValidatorAdapterModule } from 'devextreme-angular/ui/validator/nested';
4948
import { DxiValidatorAsyncRuleModule } from 'devextreme-angular/ui/validator/nested';
@@ -93,7 +92,7 @@ export class DxValidatorComponent extends DxComponentExtension implements OnDest
9392

9493
/**
9594
* [descr:dxValidatorOptions.adapter]
96-
95+
9796
*/
9897
@Input()
9998
get adapter(): { applyValidationResults?: Function, bypass?: Function, focus?: Function, getValue?: Function, reset?: Function, validationRequestsCallbacks?: Array<Function> } {
@@ -106,7 +105,7 @@ export class DxValidatorComponent extends DxComponentExtension implements OnDest
106105

107106
/**
108107
* [descr:DOMComponentOptions.elementAttr]
109-
108+
110109
*/
111110
@Input()
112111
get elementAttr(): Record<string, any> {
@@ -119,7 +118,7 @@ export class DxValidatorComponent extends DxComponentExtension implements OnDest
119118

120119
/**
121120
* [descr:DOMComponentOptions.height]
122-
121+
123122
*/
124123
@Input()
125124
get height(): number | string | undefined {
@@ -132,7 +131,7 @@ export class DxValidatorComponent extends DxComponentExtension implements OnDest
132131

133132
/**
134133
* [descr:dxValidatorOptions.name]
135-
134+
136135
*/
137136
@Input()
138137
get name(): string {
@@ -145,7 +144,7 @@ export class DxValidatorComponent extends DxComponentExtension implements OnDest
145144

146145
/**
147146
* [descr:dxValidatorOptions.validationGroup]
148-
147+
149148
*/
150149
@Input()
151150
get validationGroup(): string {
@@ -158,7 +157,7 @@ export class DxValidatorComponent extends DxComponentExtension implements OnDest
158157

159158
/**
160159
* [descr:dxValidatorOptions.validationRules]
161-
160+
162161
*/
163162
@Input()
164163
get validationRules(): Array<CommonTypes.ValidationRule> {
@@ -171,7 +170,7 @@ export class DxValidatorComponent extends DxComponentExtension implements OnDest
171170

172171
/**
173172
* [descr:DOMComponentOptions.width]
174-
173+
175174
*/
176175
@Input()
177176
get width(): number | string | undefined {
@@ -182,89 +181,89 @@ export class DxValidatorComponent extends DxComponentExtension implements OnDest
182181
}
183182

184183
/**
185-
184+
186185
* [descr:dxValidatorOptions.onDisposing]
187-
188-
186+
187+
189188
*/
190189
@Output() onDisposing: EventEmitter<DisposingEvent>;
191190

192191
/**
193-
192+
194193
* [descr:dxValidatorOptions.onInitialized]
195-
196-
194+
195+
197196
*/
198197
@Output() onInitialized: EventEmitter<InitializedEvent>;
199198

200199
/**
201-
200+
202201
* [descr:dxValidatorOptions.onOptionChanged]
203-
204-
202+
203+
205204
*/
206205
@Output() onOptionChanged: EventEmitter<OptionChangedEvent>;
207206

208207
/**
209-
208+
210209
* [descr:dxValidatorOptions.onValidated]
211-
212-
210+
211+
213212
*/
214213
@Output() onValidated: EventEmitter<ValidatedEvent>;
215214

216215
/**
217-
216+
218217
* This member supports the internal infrastructure and is not intended to be used directly from your code.
219-
218+
220219
*/
221220
@Output() adapterChange: EventEmitter<{ applyValidationResults?: Function, bypass?: Function, focus?: Function, getValue?: Function, reset?: Function, validationRequestsCallbacks?: Array<Function> }>;
222221

223222
/**
224-
223+
225224
* This member supports the internal infrastructure and is not intended to be used directly from your code.
226-
225+
227226
*/
228227
@Output() elementAttrChange: EventEmitter<Record<string, any>>;
229228

230229
/**
231-
230+
232231
* This member supports the internal infrastructure and is not intended to be used directly from your code.
233-
232+
234233
*/
235234
@Output() heightChange: EventEmitter<number | string | undefined>;
236235

237236
/**
238-
237+
239238
* This member supports the internal infrastructure and is not intended to be used directly from your code.
240-
239+
241240
*/
242241
@Output() nameChange: EventEmitter<string>;
243242

244243
/**
245-
244+
246245
* This member supports the internal infrastructure and is not intended to be used directly from your code.
247-
246+
248247
*/
249248
@Output() validationGroupChange: EventEmitter<string>;
250249

251250
/**
252-
251+
253252
* This member supports the internal infrastructure and is not intended to be used directly from your code.
254-
253+
255254
*/
256255
@Output() validationRulesChange: EventEmitter<Array<CommonTypes.ValidationRule>>;
257256

258257
/**
259-
258+
260259
* This member supports the internal infrastructure and is not intended to be used directly from your code.
261-
260+
262261
*/
263262
@Output() widthChange: EventEmitter<number | string | undefined>;
264263

265-
@ContentChildren(BaseNestedOption)
266-
protected _validators!: QueryList<BaseNestedOption>;
267-
264+
265+
266+
268267
@ContentChildren(DxiValidatorAsyncRuleComponent)
269268
get asyncRulesChildren(): QueryList<DxiValidatorAsyncRuleComponent> {
270269
return this._getOption('validationRules');
@@ -360,12 +359,12 @@ export class DxValidatorComponent extends DxComponentExtension implements OnDest
360359

361360

362361
constructor(elementRef: ElementRef, ngZone: NgZone, templateHost: DxTemplateHost,
363-
private _watcherHelper: WatcherHelper,
364-
private _idh: IterableDifferHelper,
365-
@SkipSelf() @Optional() @Host() parentOptionHost: NestedOptionHost,
366-
optionHost: NestedOptionHost,
367-
transferState: TransferState,
368-
@Inject(PLATFORM_ID) platformId: any) {
362+
private _watcherHelper: WatcherHelper,
363+
private _idh: IterableDifferHelper,
364+
@SkipSelf() @Optional() @Host() parentOptionHost: NestedOptionHost,
365+
optionHost: NestedOptionHost,
366+
transferState: TransferState,
367+
@Inject(PLATFORM_ID) platformId: any) {
369368

370369
super(elementRef, ngZone, templateHost, _watcherHelper, transferState, platformId);
371370

@@ -439,41 +438,41 @@ export class DxValidatorComponent extends DxComponentExtension implements OnDest
439438
}
440439

441440
@NgModule({
442-
imports: [
443-
DxValidatorComponent,
444-
DxoAdapterModule,
445-
DxiValidationRuleModule,
446-
DxoValidatorAdapterModule,
447-
DxiValidatorAsyncRuleModule,
448-
DxiValidatorCompareRuleModule,
449-
DxiValidatorCustomRuleModule,
450-
DxiValidatorEmailRuleModule,
451-
DxiValidatorNumericRuleModule,
452-
DxiValidatorPatternRuleModule,
453-
DxiValidatorRangeRuleModule,
454-
DxiValidatorRequiredRuleModule,
455-
DxiValidatorStringLengthRuleModule,
456-
DxiValidatorValidationRuleModule,
457-
DxIntegrationModule,
458-
DxTemplateModule
459-
],
460-
exports: [
461-
DxValidatorComponent,
462-
DxoAdapterModule,
463-
DxiValidationRuleModule,
464-
DxoValidatorAdapterModule,
465-
DxiValidatorAsyncRuleModule,
466-
DxiValidatorCompareRuleModule,
467-
DxiValidatorCustomRuleModule,
468-
DxiValidatorEmailRuleModule,
469-
DxiValidatorNumericRuleModule,
470-
DxiValidatorPatternRuleModule,
471-
DxiValidatorRangeRuleModule,
472-
DxiValidatorRequiredRuleModule,
473-
DxiValidatorStringLengthRuleModule,
474-
DxiValidatorValidationRuleModule,
475-
DxTemplateModule
476-
]
441+
imports: [
442+
DxValidatorComponent,
443+
DxoAdapterModule,
444+
DxiValidationRuleModule,
445+
DxoValidatorAdapterModule,
446+
DxiValidatorAsyncRuleModule,
447+
DxiValidatorCompareRuleModule,
448+
DxiValidatorCustomRuleModule,
449+
DxiValidatorEmailRuleModule,
450+
DxiValidatorNumericRuleModule,
451+
DxiValidatorPatternRuleModule,
452+
DxiValidatorRangeRuleModule,
453+
DxiValidatorRequiredRuleModule,
454+
DxiValidatorStringLengthRuleModule,
455+
DxiValidatorValidationRuleModule,
456+
DxIntegrationModule,
457+
DxTemplateModule
458+
],
459+
exports: [
460+
DxValidatorComponent,
461+
DxoAdapterModule,
462+
DxiValidationRuleModule,
463+
DxoValidatorAdapterModule,
464+
DxiValidatorAsyncRuleModule,
465+
DxiValidatorCompareRuleModule,
466+
DxiValidatorCustomRuleModule,
467+
DxiValidatorEmailRuleModule,
468+
DxiValidatorNumericRuleModule,
469+
DxiValidatorPatternRuleModule,
470+
DxiValidatorRangeRuleModule,
471+
DxiValidatorRequiredRuleModule,
472+
DxiValidatorStringLengthRuleModule,
473+
DxiValidatorValidationRuleModule,
474+
DxTemplateModule
475+
]
477476
})
478477
export class DxValidatorModule { }
479478

0 commit comments

Comments
 (0)