import { __extends } from "tslib";
import * as React from 'react';
import { Calendar, DayOfWeek, defaultDayPickerStrings, DateRangeType } from '@uifabric/date-time';
import * as styles from './Calendar.Example.scss';
var CalendarInlineWeekNumbersExample = /** @class */ (function (_super) {
    __extends(CalendarInlineWeekNumbersExample, _super);
    function CalendarInlineWeekNumbersExample(props) {
        var _this = _super.call(this, props) || this;
        _this._onSelectDate = function (date) {
            _this.setState(function (prevState) {
                return {
                    selectedDate: date,
                };
            });
        };
        _this.state = {
            selectedDate: new Date(),
        };
        return _this;
    }
    CalendarInlineWeekNumbersExample.prototype.render = function () {
        return (React.createElement("div", { className: styles.wrapper },
            React.createElement("div", null,
                "Selected date(s):",
                ' ',
                React.createElement("span", null, !this.state.selectedDate ? 'Not set' : this.state.selectedDate.toLocaleString())),
            React.createElement(Calendar, { dateRangeType: DateRangeType.Day, showGoToToday: true, showWeekNumbers: true, onSelectDate: this._onSelectDate, value: this.state.selectedDate, firstDayOfWeek: DayOfWeek.Sunday, strings: defaultDayPickerStrings })));
    };
    return CalendarInlineWeekNumbersExample;
}(React.Component));
export { CalendarInlineWeekNumbersExample };
//# sourceMappingURL=Calendar.Inline.WeekNumbers.Example.js.map