The information you're looking at is provided to you for tax purposes.
The dividends could have been received by the fund sometime during the last quarter, or the last year. I'm not sure about their reporting requirements.
Long-term capital gains would be from selling something the fund has held more than year for a profit, but that profit would be spread out over the period the fund owned it. So if the fund bought a stock for 10,000 in 2018, and sold it on 12/30 for 12,000, it would have a $2,000 long term capital gain. But immediately before they sold the stock to immediately after they sold the stock their overall account value wouldn't change. They're simply exchanging stock valued at $12,000 for cash valued at $12,000.
Short term capital gains are on stocks held less than a year, but the same applies. The gain could have occurred from February to March, and then the stock languished until they decided to sell it at year end.