katoikia-app/web-ui/web-react/node_modules/@fullcalendar/react/dist/main.js

24 lines
1.3 KiB
JavaScript

import { __assign, __extends } from "tslib";
import './vdom';
import * as React from 'react';
import { CalendarApi, CalendarDataProvider, CalendarContent, CalendarRoot } from '@fullcalendar/common';
var FullCalendar = /** @class */ (function (_super) {
__extends(FullCalendar, _super);
function FullCalendar() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this._calendarApi = new CalendarApi();
return _this;
}
FullCalendar.prototype.render = function () {
return (React.createElement(CalendarDataProvider, { optionOverrides: this.props, calendarApi: this._calendarApi }, function (data) { return (React.createElement(CalendarRoot, { options: data.calendarOptions, theme: data.theme, emitter: data.emitter }, function (classNames, height, isHeightAuto, forPrint) { return (React.createElement("div", { className: classNames.join(' '), style: { height: height } },
React.createElement(CalendarContent, __assign({ isHeightAuto: isHeightAuto, forPrint: forPrint }, data)))); })); }));
};
FullCalendar.prototype.getApi = function () {
return this._calendarApi;
};
return FullCalendar;
}(React.Component));
export default FullCalendar;
// export all important utils/types
export * from '@fullcalendar/common';
//# sourceMappingURL=main.js.map