office-ui-fabric-react
Version: 
Reusable React components for building experiences for Office 365.
36 lines • 5.02 kB
JavaScript
define(["require", "exports", "tslib", "react", "@uifabric/example-app-base", "./examples/DatePicker.Basic.Example", "./examples/DatePicker.WeekNumbers.Example", "./examples/DatePicker.Required.Example", "./examples/DatePicker.Input.Example", "./examples/DatePicker.Format.Example", "./examples/DatePicker.Bounded.Example", "../../demo/ComponentStatus/ComponentStatus", "./DatePicker.checklist"], function (require, exports, tslib_1, React, example_app_base_1, DatePicker_Basic_Example_1, DatePicker_WeekNumbers_Example_1, DatePicker_Required_Example_1, DatePicker_Input_Example_1, DatePicker_Format_Example_1, DatePicker_Bounded_Example_1, ComponentStatus_1, DatePicker_checklist_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var DatePickerBasicExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/DatePicker/examples/DatePicker.Basic.Example.tsx');
    var DatePickerWeekNumbersExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/DatePicker/examples/DatePicker.WeekNumbers.Example.tsx');
    var DatePickerRequiredExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/DatePicker/examples/DatePicker.Required.Example.tsx');
    var DatePickerInputExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/DatePicker/examples/DatePicker.Input.Example.tsx');
    var DatePickerFormatExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/DatePicker/examples/DatePicker.Format.Example.tsx');
    var DatePickerBoundedExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/DatePicker/examples/DatePicker.Bounded.Example.tsx');
    var DatePickerPage = /** @class */ (function (_super) {
        tslib_1.__extends(DatePickerPage, _super);
        function DatePickerPage() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        DatePickerPage.prototype.render = function () {
            return (React.createElement(example_app_base_1.ComponentPage, { title: 'DatePicker', componentName: 'DatePickerExample', componentUrl: 'https://github.com/OfficeDev/office-ui-fabric-react/tree/master/packages/office-ui-fabric-react/src/components/DatePicker', exampleCards: React.createElement("div", null,
                    React.createElement(example_app_base_1.ExampleCard, { title: 'Default DatePicker', code: DatePickerBasicExampleCode },
                        React.createElement(DatePicker_Basic_Example_1.DatePickerBasicExample, null)),
                    React.createElement(example_app_base_1.ExampleCard, { title: 'DatePicker with week numbers', code: DatePickerWeekNumbersExampleCode },
                        React.createElement(DatePicker_WeekNumbers_Example_1.DatePickerWeekNumbersExample, null)),
                    React.createElement(example_app_base_1.ExampleCard, { title: 'DatePicker with required field', code: DatePickerRequiredExampleCode },
                        React.createElement(DatePicker_Required_Example_1.DatePickerRequiredExample, null)),
                    React.createElement(example_app_base_1.ExampleCard, { title: 'DatePicker allows input date string', code: DatePickerInputExampleCode },
                        React.createElement(DatePicker_Input_Example_1.DatePickerInputExample, null)),
                    React.createElement(example_app_base_1.ExampleCard, { title: 'DatePicker allows dates to be formatted', code: DatePickerFormatExampleCode },
                        React.createElement(DatePicker_Format_Example_1.DatePickerFormatExample, null)),
                    React.createElement(example_app_base_1.ExampleCard, { title: 'DatePicker with date boundary (minDate, maxDate)', code: DatePickerBoundedExampleCode },
                        React.createElement(DatePicker_Bounded_Example_1.DatePickerBoundedExample, null))), propertiesTables: React.createElement(example_app_base_1.PropertiesTableSet, { sources: [
                        require('!raw-loader!office-ui-fabric-react/src/components/DatePicker/DatePicker.types.ts')
                    ] }), overview: React.createElement(example_app_base_1.PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/DatePicker/docs/DatePickerOverview.md')), bestPractices: React.createElement("div", null), dos: React.createElement(example_app_base_1.PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/DatePicker/docs/DatePickerDos.md')), donts: React.createElement(example_app_base_1.PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/DatePicker/docs/DatePickerDonts.md')), isHeaderVisible: this.props.isHeaderVisible, componentStatus: React.createElement(ComponentStatus_1.ComponentStatus, tslib_1.__assign({}, DatePicker_checklist_1.DatePickerStatus)) }));
        };
        return DatePickerPage;
    }(React.Component));
    exports.DatePickerPage = DatePickerPage;
});
//# sourceMappingURL=DatePickerPage.js.map