For each event you use, create the named screen Client Action below. Add its listed input parameters with the exact types. Select that action on MainComponent's event property, then enter each mapping explicitly. Event arguments and screen locals are different scopes.
OnChange → HandleChange
Reports Change.
Flow: Start → validate the requested value; assign the corresponding screen state so the Block receives it back → End.
OnValidationChanged → HandleValidationChanged
Reports ValidationChanged.
Flow: Start → validate the requested value; assign the corresponding screen state so the Block receives it back → End.
OnOpenChanged → HandleOpenChanged
Reports OpenChanged.
Flow: Start → validate the requested value; assign the corresponding screen state so the Block receives it back → End.
OnError → HandleError
Reports Error.
Flow: Start → display the mapped error argument in your feedback region → End.