@@ -67,11 +67,11 @@ export class DirectivePropertyResolver {
67
67
private _props : Properties ,
68
68
private _directivePosition : DirectivePosition ,
69
69
) {
70
- const { inputProps , outputProps , stateProps } = this . _classifyProperties ( ) ;
70
+ const { inputs , outputs , state } = this . _classifyProperties ( ) ;
71
71
72
- this . _inputsDataSource = this . _createDataSourceFromProps ( inputProps ) ;
73
- this . _outputsDataSource = this . _createDataSourceFromProps ( outputProps ) ;
74
- this . _stateDataSource = this . _createDataSourceFromProps ( stateProps ) ;
72
+ this . _inputsDataSource = this . _createDataSourceFromProps ( inputs ) ;
73
+ this . _outputsDataSource = this . _createDataSourceFromProps ( outputs ) ;
74
+ this . _stateDataSource = this . _createDataSourceFromProps ( state ) ;
75
75
}
76
76
77
77
get directiveInputControls ( ) : DirectiveTreeData {
@@ -116,11 +116,11 @@ export class DirectivePropertyResolver {
116
116
117
117
updateProperties ( newProps : Properties ) : void {
118
118
this . _props = newProps ;
119
- const { inputProps , outputProps , stateProps } = this . _classifyProperties ( ) ;
119
+ const { inputs , outputs , state } = this . _classifyProperties ( ) ;
120
120
121
- this . _inputsDataSource . update ( inputProps ) ;
122
- this . _outputsDataSource . update ( outputProps ) ;
123
- this . _stateDataSource . update ( stateProps ) ;
121
+ this . _inputsDataSource . update ( inputs ) ;
122
+ this . _outputsDataSource . update ( outputs ) ;
123
+ this . _stateDataSource . update ( state ) ;
124
124
}
125
125
126
126
updateValue ( node : FlatNode , newValue : unknown ) : void {
@@ -141,31 +141,31 @@ export class DirectivePropertyResolver {
141
141
}
142
142
143
143
private _classifyProperties ( ) : {
144
- inputProps : { [ name : string ] : Descriptor } ;
145
- outputProps : { [ name : string ] : Descriptor } ;
146
- stateProps : { [ name : string ] : Descriptor } ;
144
+ inputs : { [ name : string ] : Descriptor } ;
145
+ outputs : { [ name : string ] : Descriptor } ;
146
+ state : { [ name : string ] : Descriptor } ;
147
147
} {
148
148
const inputLabels : Set < string > = new Set ( Object . values ( this . _props . metadata ?. inputs || { } ) ) ;
149
149
const outputLabels : Set < string > = new Set ( Object . values ( this . _props . metadata ?. outputs || { } ) ) ;
150
150
151
- const inputProps = { } ;
152
- const outputProps = { } ;
153
- const stateProps = { } ;
151
+ const inputs = { } ;
152
+ const outputs = { } ;
153
+ const state = { } ;
154
154
let propPointer : { [ name : string ] : Descriptor } ;
155
155
156
156
Object . keys ( this . directiveProperties ) . forEach ( ( propName ) => {
157
157
propPointer = inputLabels . has ( propName )
158
- ? inputProps
158
+ ? inputs
159
159
: outputLabels . has ( propName )
160
- ? outputProps
161
- : stateProps ;
160
+ ? outputs
161
+ : state ;
162
162
propPointer [ propName ] = this . directiveProperties [ propName ] ;
163
163
} ) ;
164
164
165
165
return {
166
- inputProps ,
167
- outputProps ,
168
- stateProps ,
166
+ inputs ,
167
+ outputs ,
168
+ state ,
169
169
} ;
170
170
}
171
171
}
0 commit comments