Files
starface-outlook-sync-addin/node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarGridRow.js
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

23 lines
1.7 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CalendarGridRow = void 0;
var tslib_1 = require("tslib");
var React = require("react");
var utilities_1 = require("@fluentui/utilities");
var date_time_utilities_1 = require("@fluentui/date-time-utilities");
var CalendarGridDayCell_1 = require("./CalendarGridDayCell");
var CalendarGridRow = function (props) {
var classNames = props.classNames, week = props.week, weeks = props.weeks, weekIndex = props.weekIndex, rowClassName = props.rowClassName, ariaRole = props.ariaRole, showWeekNumbers = props.showWeekNumbers, firstDayOfWeek = props.firstDayOfWeek, firstWeekOfYear = props.firstWeekOfYear, navigatedDate = props.navigatedDate, strings = props.strings;
var weekNumbers = showWeekNumbers
? (0, date_time_utilities_1.getWeekNumbersInMonth)(weeks.length, firstDayOfWeek, firstWeekOfYear, navigatedDate)
: null;
var titleString = weekNumbers
? strings.weekNumberFormatString && (0, utilities_1.format)(strings.weekNumberFormatString, weekNumbers[weekIndex])
: '';
return (React.createElement("tr", { role: ariaRole, className: rowClassName, key: weekIndex + '_' + week[0].key },
showWeekNumbers && weekNumbers && (React.createElement("th", { className: classNames.weekNumberCell, key: weekIndex, title: titleString, "aria-label": titleString, scope: "row" },
React.createElement("span", null, weekNumbers[weekIndex]))),
week.map(function (day, dayIndex) { return (React.createElement(CalendarGridDayCell_1.CalendarGridDayCell, tslib_1.__assign({}, props, { key: day.key, day: day, dayIndex: dayIndex }))); })));
};
exports.CalendarGridRow = CalendarGridRow;
//# sourceMappingURL=CalendarGridRow.js.map