changes for FormGroup and FormBuilder
This commit is contained in:
parent
b93dff4f1b
commit
825e29b5af
|
@ -1,5 +1,5 @@
|
||||||
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
|
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
|
||||||
import {FormGroup} from '@angular/forms';
|
import {UntypedFormGroup} from '@angular/forms';
|
||||||
import {EnvProperties} from "../utils/properties/env-properties";
|
import {EnvProperties} from "../utils/properties/env-properties";
|
||||||
import {Observable} from "rxjs";
|
import {Observable} from "rxjs";
|
||||||
import {map, startWith} from "rxjs/operators";
|
import {map, startWith} from "rxjs/operators";
|
||||||
|
@ -12,7 +12,7 @@ import {map, startWith} from "rxjs/operators";
|
||||||
|
|
||||||
export class ContactUsComponent {
|
export class ContactUsComponent {
|
||||||
@Input()
|
@Input()
|
||||||
public contactForm: FormGroup;
|
public contactForm: UntypedFormGroup;
|
||||||
@Input() formTitle: string;
|
@Input() formTitle: string;
|
||||||
@Input() properties: EnvProperties;
|
@Input() properties: EnvProperties;
|
||||||
@Output() sendEmitter: EventEmitter<any> = new EventEmitter<any>();
|
@Output() sendEmitter: EventEmitter<any> = new EventEmitter<any>();
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import {Component, Input} from '@angular/core';
|
import {Component, Input} from '@angular/core';
|
||||||
|
|
||||||
import {DateValue} from './searchHelperClasses.class';
|
import {DateValue} from './searchHelperClasses.class';
|
||||||
import {FormControl} from "@angular/forms";
|
import {UntypedFormControl} from "@angular/forms";
|
||||||
import { MatDatepickerInputEvent } from "@angular/material/datepicker";
|
import { MatDatepickerInputEvent } from "@angular/material/datepicker";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
@ -62,8 +62,8 @@ ngOnInit() {
|
||||||
this.updateDefaultRangeDates(this.dateValue.from,this.dateValue.to);
|
this.updateDefaultRangeDates(this.dateValue.from,this.dateValue.to);
|
||||||
}
|
}
|
||||||
updateDefaultRangeDates(df:Date,dt:Date){
|
updateDefaultRangeDates(df:Date,dt:Date){
|
||||||
this.fromDate = new FormControl(df);
|
this.fromDate = new UntypedFormControl(df);
|
||||||
this.toDate = new FormControl(dt);
|
this.toDate = new UntypedFormControl(dt);
|
||||||
|
|
||||||
}
|
}
|
||||||
typeChanged(type:string){
|
typeChanged(type:string){
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import {Component, EventEmitter, Input, Output, ViewChild} from '@angular/core';
|
import {Component, EventEmitter, Input, Output, ViewChild} from '@angular/core';
|
||||||
import {FormBuilder} from "@angular/forms";
|
import {UntypedFormBuilder} from "@angular/forms";
|
||||||
import {EnvProperties} from "../../utils/properties/env-properties";
|
import {EnvProperties} from "../../utils/properties/env-properties";
|
||||||
import {SearchCustomFilter} from "./searchUtils.class";
|
import {SearchCustomFilter} from "./searchUtils.class";
|
||||||
import {ConfigurationService} from "../../utils/configuration/configuration.service";
|
import {ConfigurationService} from "../../utils/configuration/configuration.service";
|
||||||
|
@ -96,7 +96,7 @@ export class EntitiesSelectionComponent {
|
||||||
|
|
||||||
subs: Subscription[] = [];
|
subs: Subscription[] = [];
|
||||||
|
|
||||||
constructor(private _fb: FormBuilder, private config: ConfigurationService, private router: Router) {}
|
constructor(private _fb: UntypedFormBuilder, private config: ConfigurationService, private router: Router) {}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.show = 0;
|
this.show = 0;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import {ChangeDetectorRef, Component, EventEmitter, Input, Output} from '@angular/core';
|
import {ChangeDetectorRef, Component, EventEmitter, Input, Output} from '@angular/core';
|
||||||
import {FormBuilder} from "@angular/forms";
|
import {UntypedFormBuilder} from "@angular/forms";
|
||||||
import {Filter} from "./searchHelperClasses.class";
|
import {Filter} from "./searchHelperClasses.class";
|
||||||
import {EnvProperties} from "../../utils/properties/env-properties";
|
import {EnvProperties} from "../../utils/properties/env-properties";
|
||||||
import {ConfigurationService} from "../../utils/configuration/configuration.service";
|
import {ConfigurationService} from "../../utils/configuration/configuration.service";
|
||||||
|
@ -58,7 +58,7 @@ export class QuickSelectionsComponent {
|
||||||
|
|
||||||
subs: Subscription[] = [];
|
subs: Subscription[] = [];
|
||||||
|
|
||||||
constructor(private _fb: FormBuilder, private config: ConfigurationService, private _router: Router, private route: ActivatedRoute, private cdr:ChangeDetectorRef) {
|
constructor(private _fb: UntypedFormBuilder, private config: ConfigurationService, private _router: Router, private route: ActivatedRoute, private cdr:ChangeDetectorRef) {
|
||||||
}
|
}
|
||||||
|
|
||||||
changed() {
|
changed() {
|
||||||
|
|
Loading…
Reference in New Issue