import React from 'react';
import { DayAgendaView } from '@bryntum/calendar';
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
export class BryntumDayAgendaView 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-agenda-view-container`;
        return (React.createElement("div", { className: className, ref: (element) => (this.element = element) }));
    }
}
BryntumDayAgendaView.instanceClass = DayAgendaView;
BryntumDayAgendaView.instanceName = 'DayAgendaView';
BryntumDayAgendaView.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',
    'eventRenderer',
    'eventSorter',
    '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',
    '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'
];
BryntumDayAgendaView.propertyConfigNames = [
    'alignSelf',
    'allowDragCreate',
    'allowDragMove',
    'allowDragResize',
    'allowZoomUnderflow',
    'animateTimeShift',
    'appendTo',
    'autoCreate',
    'borderColor',
    'callOnFunctions',
    'catchEventHandlerExceptions',
    'cls',
    'collapsed',
    'column',
    'compactHeader',
    'coreHours',
    'dashedSubticks',
    'dataset',
    'date',
    'dateFilter',
    'dateFormat',
    'dateSeparator',
    'dayEndTime',
    'dayStartTime',
    'defaultScrollOptions',
    'descriptionFormat',
    'disabled',
    'dragUnit',
    'eventFlowDirection',
    'eventSpacing',
    'extendAllDayEndDay',
    'extraData',
    'filterEventResources',
    'fixedDuration',
    'flex',
    'gutterWidth',
    'height',
    'hidden',
    'hideBorders',
    'hideEmptyDays',
    'hideEmptyHours',
    'hideNonWorkingDays',
    'hideTimeAxis',
    'hourHeight',
    'hourHeightBreakpoints',
    'hourSpacing',
    'id',
    'inputFieldAlign',
    'insertBefore',
    'insertFirst',
    'interDayDrag',
    'interDayResize',
    'items',
    'keyMap',
    'labelPosition',
    'layout',
    'layoutStyle',
    'margin',
    'maxDate',
    'maxHeight',
    'maximizeOnMobile',
    'maxWidth',
    'minDate',
    'minDayWidth',
    'minEventHeight',
    'minEventWidth',
    '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',
    'showTime',
    'snapRelativeToEventStartDate',
    'span',
    'stackMultiDayEvents',
    'strictRecordMapping',
    'syncCalendarDate',
    'syncHourHeights',
    'syncViewDate',
    'title',
    'tools',
    'tooltip',
    'width',
    'x',
    'y'
];
BryntumDayAgendaView.propertyNames = [
    'anchorSize',
    'dayCellCls',
    'firstVisibleCell',
    'firstVisibleDate',
    'fitHours',
    'focusVisible',
    'hasChanges',
    'horizontalScroller',
    'increment',
    'isSettingValues',
    'isValid',
    'lastVisibleCell',
    'lastVisibleDate',
    'parent',
    'record',
    'showCurrentTime',
    'sixMinuteTicks',
    'state',
    'timeSnapType',
    'values'
];
//# sourceMappingURL=BryntumDayAgendaView.js.map