import { __extends } from "tslib";
import * as React from 'react';
import { Dropdown } from 'office-ui-fabric-react/lib/Dropdown';
import { DatePicker, DayOfWeek, defaultDayPickerStrings } from '@uifabric/date-time';
import './DatePicker.Examples.scss';
var DatePickerWeekNumbersExample = /** @class */ (function (_super) {
    __extends(DatePickerWeekNumbersExample, _super);
    function DatePickerWeekNumbersExample(props) {
        var _this = _super.call(this, props) || this;
        _this._onDropdownChange = function (event, option) {
            _this.setState({
                firstDayOfWeek: option.key,
            });
        };
        _this.state = {
            firstDayOfWeek: DayOfWeek.Monday,
        };
        return _this;
    }
    DatePickerWeekNumbersExample.prototype.render = function () {
        var firstDayOfWeek = this.state.firstDayOfWeek;
        return (React.createElement("div", { className: "docs-DatePickerExample" },
            React.createElement(DatePicker, { firstDayOfWeek: firstDayOfWeek, strings: defaultDayPickerStrings, showWeekNumbers: true, firstWeekOfYear: 1, showMonthPickerAsOverlay: true, placeholder: "Select a date...", ariaLabel: "Select a date" }),
            React.createElement(Dropdown, { label: "Select the first day of the week", options: [
                    {
                        text: 'Sunday',
                        key: DayOfWeek.Sunday,
                    },
                    {
                        text: 'Monday',
                        key: DayOfWeek.Monday,
                    },
                    {
                        text: 'Tuesday',
                        key: DayOfWeek.Tuesday,
                    },
                    {
                        text: 'Wednesday',
                        key: DayOfWeek.Wednesday,
                    },
                    {
                        text: 'Thursday',
                        key: DayOfWeek.Thursday,
                    },
                    {
                        text: 'Friday',
                        key: DayOfWeek.Friday,
                    },
                    {
                        text: 'Saturday',
                        key: DayOfWeek.Saturday,
                    },
                ], selectedKey: firstDayOfWeek, onChange: this._onDropdownChange })));
    };
    return DatePickerWeekNumbersExample;
}(React.Component));
export { DatePickerWeekNumbersExample };
//# sourceMappingURL=DatePicker.WeekNumbers.Example.js.map