import React from 'react';
import { MonthAgendaView } from '@bryntum/calendar';
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
export class BryntumMonthAgendaView 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-agenda-view-container`;
        return (React.createElement("div", { className: className, ref: (element) => (this.element = element) }));
    }
}
BryntumMonthAgendaView.instanceClass = MonthAgendaView;
BryntumMonthAgendaView.instanceName = 'MonthAgendaView';
BryntumMonthAgendaView.configNames = [
    'activationKey',
    'activeDate',
    'adopt',
    'agendaDateFormat',
    'agendHeaderRenderer',
    'align',
    'anchor',
    'ariaDescription',
    'ariaLabel',
    'bbar',
    'bodyCls',
    'bubbleEvents',
    'cellRenderer',
    'centered',
    'collapsible',
    'color',
    'config',
    'constrainTo',
    'contentElementCls',
    'dataField',
    'dayNameFormat',
    'defaultBindProperty',
    'defaultFocus',
    'defaults',
    'descriptionRenderer',
    'detectCSSCompatibilityIssues',
    'disabledCls',
    'disabledDates',
    'disableNonWorkingDays',
    'disableOtherMonthCells',
    'disableWeekends',
    'dock',
    'draggable',
    'drawer',
    'editMonth',
    'elementAttributes',
    'eventFilter',
    'eventHeaderRenderer',
    'eventRenderer',
    'eventSorter',
    'eventStore',
    'floating',
    'focusDisabledDates',
    'footer',
    'getPrimaryResource',
    'header',
    'headerRenderer',
    'hideAnimation',
    'hideOtherMonthCells',
    'hideWhenEmpty',
    'icon',
    'ignoreParentReadOnly',
    'includeYear',
    'itemCls',
    'lazyItems',
    'listeners',
    'localeClass',
    'localizable',
    'localizableProperties',
    'maskDefaults',
    'masked',
    'minColumnWidth',
    'minRowHeight',
    'monitorResize',
    'month',
    'monthButtonFormat',
    'multiSelect',
    'namedItems',
    'nonWorkingDayCls',
    'otherMonthCls',
    'owner',
    'positioned',
    'preventTooltipOnTouch',
    'relayStoreEvents',
    'resourceImagePath',
    'ripple',
    'rootElement',
    'scrollAction',
    'selectorButton',
    'selectorMenuItem',
    'shortEventCls',
    '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'
];
BryntumMonthAgendaView.propertyConfigNames = [
    'agenda',
    'alignSelf',
    'allowDragCreate',
    'allowDragMove',
    'allowDragResize',
    'animateTimeShift',
    'appendTo',
    'autoCreate',
    'callOnFunctions',
    'catchEventHandlerExceptions',
    'cls',
    'collapsed',
    'column',
    'dataset',
    'date',
    'dateFormat',
    'dateSeparator',
    'defaultScrollOptions',
    'descriptionFormat',
    'disabled',
    'dragSelect',
    'dragUnit',
    'eventCountTip',
    'eventDots',
    'extendAllDayEndDay',
    'extraData',
    'filterEventResources',
    'flex',
    'height',
    'hidden',
    'hideNonWorkingDays',
    'highlightSelectedWeek',
    'id',
    'inputFieldAlign',
    'insertBefore',
    'insertFirst',
    'items',
    'keyMap',
    'labelPosition',
    'layout',
    'layoutStyle',
    'margin',
    'maxDate',
    'maxHeight',
    'maximizeOnMobile',
    'maxWidth',
    'minDate',
    'minHeight',
    'minWidth',
    'nonWorkingDays',
    'onBeforeAutoCreate',
    'onBeforeChangeDate',
    'onBeforeDestroy',
    'onBeforeHide',
    'onBeforeRefresh',
    'onBeforeSetRecord',
    'onBeforeShow',
    'onBeforeStateApply',
    'onBeforeStateSave',
    'onCatchAll',
    'onCellClick',
    'onCollapse',
    'onDateChange',
    'onDestroy',
    'onDirtyStateChange',
    'onElementCreated',
    'onEventAutoCreated',
    'onExpand',
    'onFocusIn',
    'onFocusOut',
    'onHide',
    'onPaint',
    'onReadOnly',
    'onRecompose',
    'onRefresh',
    'onResize',
    'onSelectionChange',
    'onShow',
    'onToolClick',
    'onWeekCellClick',
    'pastEventCls',
    'readOnly',
    'rendition',
    'rtl',
    'scrollable',
    'selection',
    'shadePastDates',
    'shiftIncrement',
    'shortDateFormat',
    'shortDateTimeFormat',
    'showEvents',
    'span',
    'strictRecordMapping',
    'syncCalendarDate',
    'syncViewDate',
    'title',
    'tools',
    'tooltip',
    'weekColumnHeader',
    'width',
    'x',
    'y'
];
BryntumMonthAgendaView.propertyNames = [
    'anchorSize',
    'dayCellCls',
    'firstVisibleCell',
    'firstVisibleDate',
    'focusVisible',
    'hasChanges',
    'isSettingValues',
    'isValid',
    'lastVisibleCell',
    'lastVisibleDate',
    'parent',
    'record',
    'state',
    'values'
];
//# sourceMappingURL=BryntumMonthAgendaView.js.map