import React from 'react';
import { MonthGrid } from '@bryntum/calendar';
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
export class BryntumMonthGrid 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-grid-container`;
        return (React.createElement("div", { className: className, ref: (element) => (this.element = element) }));
    }
}
BryntumMonthGrid.instanceClass = MonthGrid;
BryntumMonthGrid.instanceName = 'MonthGrid';
BryntumMonthGrid.configNames = [
    'activationKey',
    'adopt',
    'align',
    'anchor',
    'ariaDescription',
    'ariaLabel',
    'bbar',
    'bodyCls',
    'bubbleEvents',
    'centered',
    'collapsible',
    'color',
    'config',
    'constrainTo',
    'contentElementCls',
    'dataField',
    'date',
    'dayCellNameFormat',
    'defaultBindProperty',
    'defaultFocus',
    'defaults',
    'descriptionRenderer',
    'detectCSSCompatibilityIssues',
    'dock',
    'draggable',
    'drawer',
    'elementAttributes',
    'emptyCellRenderer',
    'eventFilter',
    'eventHeaderRenderer',
    'eventHeight',
    'eventRenderer',
    'eventSorter',
    'floating',
    'footer',
    'getPrimaryResource',
    'groupHeaderRenderer',
    'header',
    'hideAnimation',
    'hideEventScroll',
    'hideWhenEmpty',
    'icon',
    'ignoreParentReadOnly',
    'itemCls',
    'lazyItems',
    'listeners',
    'localeClass',
    'localizable',
    'localizableProperties',
    'maskDefaults',
    'masked',
    'monitorResize',
    'monthEventStore',
    'monthHeaderRenderer',
    'namedItems',
    'overflowButtonRenderer',
    'overflowPopup',
    'overflowPopupTrigger',
    'owner',
    'positioned',
    'preventTooltipOnTouch',
    'relayStoreEvents',
    'resourceImagePath',
    'responsive',
    'responsiveRoot',
    'responsiveState',
    'responsiveTarget',
    'ripple',
    'rootElement',
    'scrollAction',
    'selectorButton',
    'selectorMenuItem',
    'shortEventCls',
    'shortEventDuration',
    'showAnimation',
    'showBullet',
    'showResourceAvatars',
    'showTooltipWhenDisabled',
    'stateful',
    'statefulEvents',
    'stateId',
    'stateProvider',
    'strips',
    'tab',
    'tabBarItems',
    'tag',
    'tbar',
    'textAlign',
    'trapFocus',
    'type',
    'ui',
    'weekStartDay',
    'weight',
    'year'
];
BryntumMonthGrid.propertyConfigNames = [
    'alignSelf',
    'animateTimeShift',
    'appendTo',
    'callOnFunctions',
    'catchEventHandlerExceptions',
    'cls',
    'collapsed',
    'column',
    'dataset',
    'dateFormat',
    'dateSeparator',
    'defaultScrollOptions',
    'descriptionFormat',
    'disabled',
    'eventSpacing',
    'extendAllDayEndDay',
    'extraData',
    'filterEventResources',
    'flex',
    'groupHeaderAriaMonthFormat',
    'headerMonthFormat',
    'height',
    'hidden',
    'id',
    'inputFieldAlign',
    'insertBefore',
    'insertFirst',
    'items',
    'keyMap',
    'labelPosition',
    'layout',
    'layoutStyle',
    'margin',
    'maxDate',
    'maxHeight',
    'maximizeOnMobile',
    'maxWidth',
    'minDate',
    'minHeight',
    'minMonthHeight',
    'minWidth',
    'onBeforeAutoCreate',
    'onBeforeChangeDate',
    'onBeforeDestroy',
    'onBeforeHide',
    'onBeforeResponsiveStateChange',
    'onBeforeSetRecord',
    'onBeforeShow',
    'onBeforeShowOverflowPopup',
    'onBeforeStateApply',
    'onBeforeStateSave',
    'onCatchAll',
    'onCellMapPopulated',
    'onCollapse',
    'onColumnCountChange',
    'onDayCellPopulated',
    'onDestroy',
    'onDirtyStateChange',
    'onElementCreated',
    'onEmptyCellClick',
    'onEventAutoCreated',
    'onEventPropagate',
    'onExpand',
    'onFocusIn',
    'onFocusOut',
    'onGroupRecordClick',
    'onGroupRecordContextMenu',
    'onGroupRecordDblClick',
    'onGroupRecordMouseOut',
    'onGroupRecordMouseOver',
    'onHide',
    'onPaint',
    'onReadOnly',
    'onRecompose',
    'onRefresh',
    'onResize',
    'onResourceClick',
    'onResponsiveStateChange',
    'onShow',
    'onShowOverflowPopup',
    'onToolClick',
    'pastEventCls',
    'readOnly',
    'rendition',
    'rtl',
    'shortDateFormat',
    'shortDateTimeFormat',
    'span',
    'stackMultiDayEvents',
    'strictRecordMapping',
    'syncCalendarDate',
    'syncViewDate',
    'timeFormat',
    'title',
    'tools',
    'tooltip',
    'viewGap',
    'width',
    'x',
    'y'
];
BryntumMonthGrid.propertyNames = [
    'allowDragCreate',
    'allowDragMove',
    'allowDragResize',
    'anchorSize',
    'autoCreate',
    'dayCellCls',
    'dragUnit',
    'eventCountTip',
    'eventDots',
    'firstVisibleCell',
    'firstVisibleDate',
    'focusVisible',
    'hasChanges',
    'hideNonWorkingDays',
    'isSettingValues',
    'isValid',
    'lastVisibleCell',
    'lastVisibleDate',
    'nonWorkingDays',
    'parent',
    'record',
    'scrollable',
    'showEvents',
    'state',
    'values'
];
//# sourceMappingURL=BryntumMonthGrid.js.map