mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(forms): remove deprecated symbols (#55723)
Follow-up of #55698 to help remove the symbols from G3. PR Close #55723
This commit is contained in:
committed by
Dylan Hunn
parent
0e23ed716e
commit
eddb4051b8
@@ -800,11 +800,7 @@ export class PatternValidator extends AbstractValidatorDirective {
|
||||
}
|
||||
|
||||
// @public
|
||||
export class PristineChangeEvent extends PristineEvent {
|
||||
}
|
||||
|
||||
// @public @deprecated (undocumented)
|
||||
export class PristineEvent extends ControlEvent {
|
||||
export class PristineChangeEvent extends ControlEvent {
|
||||
constructor(pristine: boolean, source: AbstractControl);
|
||||
// (undocumented)
|
||||
readonly pristine: boolean;
|
||||
@@ -898,11 +894,7 @@ export class SelectMultipleControlValueAccessor extends BuiltInControlValueAcces
|
||||
export type SetDisabledStateOption = 'whenDisabledForLegacyCode' | 'always';
|
||||
|
||||
// @public
|
||||
export class StatusChangeEvent extends StatusEvent {
|
||||
}
|
||||
|
||||
// @public @deprecated (undocumented)
|
||||
export class StatusEvent extends ControlEvent {
|
||||
export class StatusChangeEvent extends ControlEvent {
|
||||
constructor(status: FormControlStatus, source: AbstractControl);
|
||||
// (undocumented)
|
||||
readonly source: AbstractControl;
|
||||
@@ -911,11 +903,7 @@ export class StatusEvent extends ControlEvent {
|
||||
}
|
||||
|
||||
// @public
|
||||
export class TouchedChangeEvent extends TouchedEvent {
|
||||
}
|
||||
|
||||
// @public @deprecated (undocumented)
|
||||
export class TouchedEvent extends ControlEvent {
|
||||
export class TouchedChangeEvent extends ControlEvent {
|
||||
constructor(touched: boolean, source: AbstractControl);
|
||||
// (undocumented)
|
||||
readonly source: AbstractControl;
|
||||
|
||||
@@ -479,9 +479,6 @@
|
||||
{
|
||||
"name": "PristineChangeEvent"
|
||||
},
|
||||
{
|
||||
"name": "PristineEvent"
|
||||
},
|
||||
{
|
||||
"name": "R3Injector"
|
||||
},
|
||||
@@ -551,9 +548,6 @@
|
||||
{
|
||||
"name": "StatusChangeEvent"
|
||||
},
|
||||
{
|
||||
"name": "StatusEvent"
|
||||
},
|
||||
{
|
||||
"name": "Subject"
|
||||
},
|
||||
@@ -593,9 +587,6 @@
|
||||
{
|
||||
"name": "TouchedChangeEvent"
|
||||
},
|
||||
{
|
||||
"name": "TouchedEvent"
|
||||
},
|
||||
{
|
||||
"name": "USE_VALUE"
|
||||
},
|
||||
|
||||
@@ -464,9 +464,6 @@
|
||||
{
|
||||
"name": "PristineChangeEvent"
|
||||
},
|
||||
{
|
||||
"name": "PristineEvent"
|
||||
},
|
||||
{
|
||||
"name": "R3Injector"
|
||||
},
|
||||
@@ -533,9 +530,6 @@
|
||||
{
|
||||
"name": "StatusChangeEvent"
|
||||
},
|
||||
{
|
||||
"name": "StatusEvent"
|
||||
},
|
||||
{
|
||||
"name": "Subject"
|
||||
},
|
||||
@@ -581,9 +575,6 @@
|
||||
{
|
||||
"name": "TouchedChangeEvent"
|
||||
},
|
||||
{
|
||||
"name": "TouchedEvent"
|
||||
},
|
||||
{
|
||||
"name": "USE_VALUE"
|
||||
},
|
||||
|
||||
@@ -76,9 +76,6 @@ export {
|
||||
FormControlStatus,
|
||||
FormResetEvent,
|
||||
FormSubmittedEvent,
|
||||
PristineEvent,
|
||||
StatusEvent,
|
||||
TouchedEvent,
|
||||
PristineChangeEvent,
|
||||
StatusChangeEvent,
|
||||
TouchedChangeEvent,
|
||||
|
||||
@@ -102,33 +102,13 @@ export class ValueChangeEvent<T> extends ControlEvent<T> {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use `PristineChangeEvent` symbol instead.
|
||||
*/
|
||||
|
||||
export class PristineEvent extends ControlEvent {
|
||||
constructor(
|
||||
public readonly pristine: boolean,
|
||||
public readonly source: AbstractControl,
|
||||
) {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Event fired when the control's pristine state changes (pristine <=> dirty).
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
|
||||
export class PristineChangeEvent extends PristineEvent {}
|
||||
|
||||
/**
|
||||
* @deprecated use `TouchedChangeEvent` symbol instead.
|
||||
*/
|
||||
export class TouchedEvent extends ControlEvent {
|
||||
* @publicApi */
|
||||
export class PristineChangeEvent extends ControlEvent {
|
||||
constructor(
|
||||
public readonly touched: boolean,
|
||||
public readonly pristine: boolean,
|
||||
public readonly source: AbstractControl,
|
||||
) {
|
||||
super();
|
||||
@@ -140,14 +120,9 @@ export class TouchedEvent extends ControlEvent {
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
export class TouchedChangeEvent extends TouchedEvent {}
|
||||
|
||||
/**
|
||||
* @deprecated use `StatusChangeEvent` symbol instead.
|
||||
*/
|
||||
export class StatusEvent extends ControlEvent {
|
||||
export class TouchedChangeEvent extends ControlEvent {
|
||||
constructor(
|
||||
public readonly status: FormControlStatus,
|
||||
public readonly touched: boolean,
|
||||
public readonly source: AbstractControl,
|
||||
) {
|
||||
super();
|
||||
@@ -159,7 +134,14 @@ export class StatusEvent extends ControlEvent {
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
export class StatusChangeEvent extends StatusEvent {}
|
||||
export class StatusChangeEvent extends ControlEvent {
|
||||
constructor(
|
||||
public readonly status: FormControlStatus,
|
||||
public readonly source: AbstractControl,
|
||||
) {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Event fired when a form is submitted
|
||||
|
||||
Reference in New Issue
Block a user