@@ -10,18 +10,20 @@ export abstract class FormAction {
1010 }
1111}
1212
13- export class StateChanged extends FormAction { }
14-
15- export class FieldRegistered extends FormAction {
16- constructor ( protected formId : string , private fieldId : string ) {
13+ export abstract class FieldAction extends FormAction {
14+ constructor ( formId : string , protected fieldId : string ) {
1715 super ( formId ) ;
1816 }
1917
20- public get FieldId ( ) : string {
18+ public get FieldId ( ) {
2119 return this . fieldId ;
2220 }
2321}
2422
23+ export class StateChanged extends FormAction { }
24+
25+ export class FieldRegistered extends FieldAction { }
26+
2527export class FieldsGroupRegistered extends FormAction {
2628 constructor ( protected formId : string , private fieldsGroupId : string ) {
2729 super ( formId ) ;
@@ -42,36 +44,14 @@ export class FieldsArrayRegistered extends FormAction {
4244 }
4345}
4446
45- export class ValueChanged extends FormAction {
46- constructor ( protected formId : string , private fieldId : string ) {
47- super ( formId ) ;
48- }
49-
50- public get FieldId ( ) : string {
51- return this . fieldId ;
52- }
53- }
54-
55- export class FieldPropsChanged extends FormAction {
56- constructor ( protected formId : string , private fieldId : string ) {
57- super ( formId ) ;
58- }
47+ export class ValueChanged extends FieldAction { }
5948
60- public get FieldId ( ) : string {
61- return this . fieldId ;
62- }
63- }
49+ export class FieldPropsChanged extends FieldAction { }
6450
6551export class FormPropsChanged extends FormAction { }
6652
67- export class FormDisabled extends FormAction {
68- constructor ( protected formId : string ) {
69- super ( formId ) ;
70- }
71- }
53+ export class FormDisabled extends FormAction { }
7254
73- export class FormEnabled extends FormAction {
74- constructor ( protected formId : string ) {
75- super ( formId ) ;
76- }
77- }
55+ export class FormEnabled extends FormAction { }
56+
57+ export class FieldTouched extends FieldAction { }
0 commit comments