Can't be bothered to cite sources (sorry), but from all I've read, IIRC, both the Gripen & Eurofighter, let's throw in the Rafale as well, should be far superior in the A2A arena than the F-35, i.e. more agile, more weapons, better sensors, more thrust and better visibilty.
All those planes should also have a better payload for A2G when compared to the F-35 just using internal weapons bays. Not sure how the F-35 compares when using the optional pylons tho, but then of course it losses it's sole advantage of stealth.
If I was doing procurement for a nations airforce for a multi-role fighter, I'd probably chose in order of preference bassed on cost and performance: - 1st Eurofighter, 2nd one of the upgraded F-15 varients, 3rd Gripen, 4th one of the upgraded F-16 varients, 5th Rafale and lastly F-35.
Graham