The gripen is a much less capable non expeditonary platform designed to maximize asymmetric losses if sweden is invaded. As a small country sweden has to follow a porcupine strategy to deter invasion.
Presently the actual comparable to the F-35 is attritable drones, which is why every mid-size and major power is developing them.