MCPcopy Create free account
hub / github.com/UI5/webcomponents / _precomputeDisabledDates

Method _precomputeDisabledDates

packages/main/src/DayPicker.ts:855–860  ·  view source on GitHub ↗

* Pre-computes disabled date range timestamps once before the rendering loop. * Avoids repeated date string parsing inside the per-cell _isDateEnabled check. * @private

()

Source from the content-addressed store, hash-verified

853 * @private
854 */
855 _precomputeDisabledDates(): Array<{ startTimestamp: number, endTimestamp: number }> {
856 return this.disabledDates.map(range => ({
857 startTimestamp: this._getTimestampFromDateValue(range.startValue),
858 endTimestamp: this._getTimestampFromDateValue(range.endValue),
859 }));
860 }
861
862 /**
863 * Checks if a given date is enabled (selectable).

Callers 1

_buildWeeksMethod · 0.95

Calls 1

Tested by

no test coverage detected