import React from 'react';
import { DayView } from '@bryntum/calendar';
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
export class BryntumDayView 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-day-view-container`;
        return (React.createElement("div", { className: className, ref: (element) => (this.element = element) }));
    }
}
BryntumDayView.instanceClass = DayView;
BryntumDayView.instanceName = 'DayView';
BryntumDayView.configNames = [
    'actionButtons',
    'activationKey',
    'adopt',
    'align',
    'allDayEvents',
    'anchor',
    'ariaDescription',
    'ariaLabel',
    'bbar',
    'bodyCls',
    'bubbleEvents',
    'centered',
    'collapsible',
    'color',
    'columnHeaderRenderer',
    'config',
    'constrainTo',
    'contentElementCls',
    'currentTimeIndicatorRenderer',
    'dataField',
    'dayCellRenderer',
    'dayHeaderRenderer',
    'dayNameFormat',
    'dayStartShift',
    'defaultBindProperty',
    'defaultFocus',
    'defaults',
    'descriptionRenderer',
    'detectCSSCompatibilityIssues',
    'dock',
    'draggable',
    'drawer',
    'elementAttributes',
    'endDate',
    'eventFilter',
    'eventHeaderRenderer',
    'eventLayout',
    'eventRenderer',
    'eventSorter',
    'eventSpacing',
    'floating',
    'footer',
    'getPrimaryResource',
    'header',
    'hideAnimation',
    'hideWhenEmpty',
    'icon',
    'ignoreParentReadOnly',
    'itemCls',
    'lazyItems',
    'listeners',
    'localeClass',
    'localizable',
    'localizableProperties',
    'maskDefaults',
    'masked',
    'maxAllDayHeight',
    'monitorResize',
    'namedItems',
    'overflowPopup',
    'owner',
    'positioned',
    'preventTooltipOnTouch',
    'relayStoreEvents',
    'resourceImagePath',
    'responsive',
    'responsiveRoot',
    'responsiveState',
    'responsiveTarget',
    'ripple',
    'rootElement',
    'scrollAction',
    'selectorButton',
    'selectorMenuItem',
    'shortEventCls',
    'shortEventDuration',
    'showAllDayHeader',
    'showAnimation',
    'showBullet',
    'showResourceAvatars',
    'showTooltipWhenDisabled',
    'startDate',
    'stateful',
    'statefulEvents',
    'stateId',
    'stateProvider',
    'strips',
    'tab',
    'tabBarItems',
    'tag',
    'tbar',
    'textAlign',
    'tickRenderer',
    'timeAxisTimeFormat',
    'timeFormat',
    'trapFocus',
    'type',
    'ui',
    'visibleStartTime',
    'weekStartDay',
    'weight',
    'zoomOnMouseWheel'
];
BryntumDayView.propertyConfigNames = [
    'alignSelf',
    'allowDragCreate',
    'allowDragMove',
    'allowDragResize',
    'allowZoomUnderflow',
    'animateTimeShift',
    'appendTo',
    'autoCreate',
    'callOnFunctions',
    'catchEventHandlerExceptions',
    'cls',
    'collapsed',
    'column',
    'compactHeader',
    'coreHours',
    'dashedSubticks',
    'dataset',
    'date',
    'dateFilter',
    'dateFormat',
    'dateSeparator',
    'dayEndTime',
    'dayStartTime',
    'defaultScrollOptions',
    'descriptionFormat',
    'disabled',
    'dragUnit',
    'extendAllDayEndDay',
    'extraData',
    'filterEventResources',
    'fitHours',
    'fixedDuration',
    'flex',
    'height',
    'hidden',
    'hideEmptyDays',
    'hideNonWorkingDays',
    'hourHeight',
    'hourHeightBreakpoints',
    'id',
    'increment',
    'inputFieldAlign',
    'insertBefore',
    'insertFirst',
    'interDayDrag',
    'interDayResize',
    'items',
    'keyMap',
    'labelPosition',
    'layout',
    'layoutStyle',
    'margin',
    'maxDate',
    'maxHeight',
    'maximizeOnMobile',
    'maxWidth',
    'minDate',
    'minDayWidth',
    'minEventHeight',
    'minHeight',
    'minHourHeight',
    'minWidth',
    'noMatchingDates',
    'nonWorkingDays',
    'onBeforeAutoCreate',
    'onBeforeChangeDate',
    'onBeforeDestroy',
    'onBeforeHide',
    'onBeforeResponsiveStateChange',
    'onBeforeSetRecord',
    'onBeforeShow',
    'onBeforeStateApply',
    'onBeforeStateSave',
    'onCatchAll',
    'onCellMapPopulated',
    'onCollapse',
    'onDayCellPopulated',
    'onDestroy',
    'onDirtyStateChange',
    'onElementCreated',
    'onEventAutoCreated',
    'onEventPropagate',
    'onExpand',
    'onFocusIn',
    'onFocusOut',
    'onHide',
    'onLayoutUpdate',
    'onPaint',
    'onRangeChange',
    'onReadOnly',
    'onRecompose',
    'onRefresh',
    'onResize',
    'onResponsiveStateChange',
    'onShiftIncrementChange',
    'onShow',
    'onTickChange',
    'onTimeAxisClick',
    'onToolClick',
    'pastEventCls',
    'range',
    'readOnly',
    'rendition',
    'rtl',
    'scrollable',
    'shiftIncrement',
    'shortDateFormat',
    'shortDateTimeFormat',
    'showCurrentTime',
    'showTime',
    'sixMinuteTicks',
    'snapRelativeToEventStartDate',
    'span',
    'stackMultiDayEvents',
    'strictRecordMapping',
    'syncCalendarDate',
    'syncViewDate',
    'timeSnapType',
    'title',
    'tools',
    'tooltip',
    'width',
    'x',
    'y'
];
BryntumDayView.propertyNames = [
    'anchorSize',
    'dayCellCls',
    'firstVisibleCell',
    'firstVisibleDate',
    'focusVisible',
    'hasChanges',
    'horizontalScroller',
    'isSettingValues',
    'isValid',
    'lastVisibleCell',
    'lastVisibleDate',
    'parent',
    'record',
    'state',
    'values'
];
//# sourceMappingURL=BryntumDayView.js.map