first commit

This commit is contained in:
Stefan Hacker
2026-04-03 09:38:48 +02:00
commit 37ad745546
47450 changed files with 3120798 additions and 0 deletions
@@ -0,0 +1,19 @@
import { __spreadArray } from "tslib";
import { compareDatePart } from '../dateMath/dateMath';
/**
* Generates a list of dates, bounded by min and max dates
* @param dateRange - input date range
* @param minDate - min date to limit the range
* @param maxDate - max date to limit the range
*/
export var getBoundedDateRange = function (dateRange, minDate, maxDate) {
var boundedDateRange = __spreadArray([], dateRange, true);
if (minDate) {
boundedDateRange = boundedDateRange.filter(function (date) { return compareDatePart(date, minDate) >= 0; });
}
if (maxDate) {
boundedDateRange = boundedDateRange.filter(function (date) { return compareDatePart(date, maxDate) <= 0; });
}
return boundedDateRange;
};
//# sourceMappingURL=getBoundedDateRange.js.map