import React from 'react';
import { MonthView } from '@bryntum/calendar';
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
export class BryntumMonthView extends React.Component {
    constructor() {
        super(...arguments);
        this.processWidgetContent = processWidgetContent;
    }
    componentDidMount() {
        this.instance = createWidget(this);
    }
    componentWillUnmount() {
        var _a, _b;
        (_b = (_a = this.instance) === null || _a === void 0 ? void 0 : _a.destroy) === null || _b === void 0 ? void 0 : _b.call(_a);
    }
    shouldComponentUpdate(nextProps, nextState) {
        return shouldComponentUpdate(this, nextProps, nextState);
    }
    render() {
        const className = `b-react-month-view-container`;
        return (React.createElement("div", { className: className, ref: (element) => (this.element = element) }));
    }
}
BryntumMonthView.instanceClass = MonthView;
BryntumMonthView.instanceName = 'MonthView';
BryntumMonthView.configNames = [
    'activationKey',
    'adopt',
    'align',
    'anchor',
    'ariaDescription',
    'ariaLabel',
    'bbar',
    'bodyCls',
    'bubbleEvents',
    'cellRenderer',
    'centered',
    'collapsible',
    'color',
    'config',
    'constrainTo',
    'contentElementCls',
    'dataField',
    'dayCellNameFormat',
    'dayCellRenderer',
    'dayNameFormat',
    'defaultBindProperty',
    'defaultFocus',
    'defaults',
    'descriptionRenderer',
    'detectCSSCompatibilityIssues',
    'disabledCls',
    'disabledDates',
    'disableNonWorkingDays',
    'disableOtherMonthCells',
    'disableWeekends',
    'dock',
    'draggable',
    'drawer',
    'elementAttributes',
    'emptyCellRenderer',
    'eventFilter',
    'eventHeaderRenderer',
    'eventRenderer',
    'eventSorter',
    'floating',
    'footer',
    'getPrimaryResource',
    'header',
    'headerRenderer',
    'hideAnimation',
    'hideOtherMonthCells',
    'hideWhenEmpty',
    'icon',
    'ignoreParentReadOnly',
    'itemCls',
    'lazyItems',
    'listeners',
    'localeClass',
    'localizable',
    'localizableProperties',
    'maskDefaults',
    'masked',
    'maxEventsPerCell',
    'minColumnWidth',
    'minRowHeight',
    'monitorResize',
    'month',
    'namedItems',
    'nonWorkingDayCls',
    'otherMonthCls',
    'overflowButtonRenderer',
    'overflowClickAction',
    'overflowPopup',
    'overflowPopupTrigger',
    'owner',
    'positioned',
    'preventTooltipOnTouch',
    'relayStoreEvents',
    'resourceImagePath',
    'responsive',
    'responsiveEventHeight',
    'responsiveRoot',
    'responsiveState',
    'responsiveTarget',
    'ripple',
    'rootElement',
    'scrollAction',
    'selectorButton',
    'selectorMenuItem',
    'shortEventCls',
    'shortEventDuration',
    'showAnimation',
    'showBullet',
    'showResourceAvatars',
    'showTooltipWhenDisabled',
    'showWeekColumn',
    'sixWeeks',
    'stateful',
    'statefulEvents',
    'stateId',
    'stateProvider',
    'strips',
    'tab',
    'tabBarItems',
    'tag',
    'tbar',
    'textAlign',
    'timeFormat',
    'tip',
    'todayCls',
    'trapFocus',
    'type',
    'ui',
    'weekendCls',
    'weekRenderer',
    'weekStartDay',
    'weight'
];
BryntumMonthView.propertyConfigNames = [
    'alignSelf',
    'allowDragCreate',
    'allowDragMove',
    'allowDragResize',
    'animateTimeShift',
    'appendTo',
    'autoCreate',
    'autoRowHeight',
    'callOnFunctions',
    'catchEventHandlerExceptions',
    'cls',
    'collapsed',
    'column',
    'dataset',
    'date',
    'dateFormat',
    'dateSeparator',
    'defaultScrollOptions',
    'descriptionFormat',
    'disabled',
    'dragUnit',
    'eventHeight',
    'eventSpacing',
    'extendAllDayEndDay',
    'extraData',
    'filterEventResources',
    'flex',
    'height',
    'hidden',
    'hideNonWorkingDays',
    'id',
    'inputFieldAlign',
    'insertBefore',
    'insertFirst',
    'items',
    'keyMap',
    'labelPosition',
    'layout',
    'layoutStyle',
    'margin',
    'maxDate',
    'maxHeight',
    'maximizeOnMobile',
    'maxWidth',
    'minDate',
    'minHeight',
    'minWidth',
    'nonWorkingDays',
    'onBeforeAutoCreate',
    'onBeforeChangeDate',
    'onBeforeDestroy',
    'onBeforeHide',
    'onBeforeRefresh',
    'onBeforeResponsiveStateChange',
    'onBeforeSetRecord',
    'onBeforeShow',
    'onBeforeShowOverflowPopup',
    'onBeforeStateApply',
    'onBeforeStateSave',
    'onCatchAll',
    'onCellClick',
    'onCellMapPopulated',
    'onCollapse',
    'onDateChange',
    'onDayCellPopulated',
    'onDestroy',
    'onDirtyStateChange',
    'onElementCreated',
    'onEmptyCellClick',
    'onEventAutoCreated',
    'onEventHeightChange',
    'onEventPropagate',
    'onExpand',
    'onFocusIn',
    'onFocusOut',
    'onHide',
    'onPaint',
    'onReadOnly',
    'onRecompose',
    'onRefresh',
    'onResize',
    'onResponsiveStateChange',
    'onShow',
    'onShowOverflowPopup',
    'onToolClick',
    'onWeekCellClick',
    'onWeekFlex',
    'onWeekShrinkwrap',
    'pastEventCls',
    'persistShrinkWrappedRows',
    'readOnly',
    'rendition',
    'rtl',
    'scrollable',
    'shadePastDates',
    'shortDateFormat',
    'shortDateTimeFormat',
    'showWeekNumber',
    'span',
    'stackMultiDayEvents',
    'strictRecordMapping',
    'syncCalendarDate',
    'syncViewDate',
    'title',
    'tools',
    'tooltip',
    'weekColumnHeader',
    'width',
    'x',
    'y'
];
BryntumMonthView.propertyNames = [
    'anchorSize',
    'dayCellCls',
    'firstVisibleCell',
    'firstVisibleDate',
    'focusVisible',
    'hasChanges',
    'isSettingValues',
    'isValid',
    'lastVisibleCell',
    'lastVisibleDate',
    'parent',
    'record',
    'state',
    'values'
];
//# sourceMappingURL=BryntumMonthView.js.map