Progress in understanding of high-transition-temperature SQUIDs