@@ -7,15 +7,15 @@ import { type IInputFieldBase } from './IInputFieldBase';
77import { type MetadataSubscription } from '../../metadata/MetadataSubscription' ;
88
99export abstract class AbstractInputField < MetadataValueType , ComponentValueType > {
10- readonly renderChild : IInputFieldBase ;
10+ readonly base : IInputFieldBase ;
1111 readonly inputFieldComponent : InputFieldComponent < ComponentValueType > ;
1212 readonly inputSignal : Signal < unknown > ;
1313 readonly signal : ComputedSignal < unknown , MetadataValueType > ;
1414
1515 private metadataSubscription ?: MetadataSubscription ;
1616
17- protected constructor ( renderChild : IInputFieldBase ) {
18- this . renderChild = renderChild ;
17+ protected constructor ( base : IInputFieldBase ) {
18+ this . base = base ;
1919 this . inputSignal = new Signal < unknown > ( undefined ) ;
2020 this . inputFieldComponent = new InputFieldComponent < ComponentValueType > ( this . getSvelteComponent ( ) ) ;
2121
@@ -31,7 +31,7 @@ export abstract class AbstractInputField<MetadataValueType, ComponentValueType>
3131 callback : value => this . inputFieldComponent . setValue ( this . reverseMapValue ( value ) ) ,
3232 } ) ;
3333
34- const fullBindTarget = this . renderChild . getFullBindTarget ( ) ;
34+ const fullBindTarget = this . base . getFullBindTarget ( ) ;
3535
3636 if ( fullBindTarget ) {
3737 this . inputFieldComponent . registerListener ( {
@@ -41,11 +41,11 @@ export abstract class AbstractInputField<MetadataValueType, ComponentValueType>
4141 } ,
4242 } ) ;
4343
44- this . metadataSubscription = this . renderChild . plugin . metadataManager . subscribe (
45- this . renderChild . getUuid ( ) ,
44+ this . metadataSubscription = this . base . plugin . metadataManager . subscribe (
45+ this . base . getUuid ( ) ,
4646 this . inputSignal ,
4747 fullBindTarget ,
48- ( ) => this . renderChild . unload ( ) ,
48+ ( ) => this . base . unload ( ) ,
4949 ) ;
5050 }
5151 }
@@ -134,7 +134,7 @@ export abstract class AbstractInputField<MetadataValueType, ComponentValueType>
134134 }
135135
136136 private getDefaultValue ( ) : MetadataValueType {
137- const defaultValueArgument = this . renderChild . getArgument ( InputFieldArgumentType . DEFAULT_VALUE ) ;
137+ const defaultValueArgument = this . base . getArgument ( InputFieldArgumentType . DEFAULT_VALUE ) ;
138138 if ( ! defaultValueArgument ) {
139139 return this . mapValue ( this . getFallbackDefaultValue ( ) ) ;
140140 }
0 commit comments