import React from 'react';
import { SchedulerBase } from '@bryntum/calendar';
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
export class BryntumSchedulerBase 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-scheduler-base-container`;
        return (React.createElement("div", { className: className, ref: (element) => (this.element = element) }));
    }
}
BryntumSchedulerBase.instanceClass = SchedulerBase;
BryntumSchedulerBase.instanceName = 'SchedulerBase';
BryntumSchedulerBase.configNames = [
    'adopt',
    'allowCreate',
    'allowCreateOnlyParent',
    'animateFilterRemovals',
    'animateRemovingRows',
    'ariaDescription',
    'ariaLabel',
    'autoAdjustTimeAxis',
    'autoHeight',
    'bbar',
    'bodyCls',
    'bubbleEvents',
    'bufferCoef',
    'bufferThreshold',
    'collapsible',
    'color',
    'config',
    'contentElementCls',
    'contextMenuTriggerEvent',
    'creationTooltip',
    'crudManagerClass',
    'dataField',
    'defaultRegion',
    'defaultResourceImageName',
    'descriptionRenderer',
    'deselectAllOnScheduleClick',
    'deselectOnClick',
    'destroyStore',
    'destroyStores',
    'detectCSSCompatibilityIssues',
    'disableGridColumnIdWarning',
    'disableGridRowModelWarning',
    'dock',
    'drawer',
    'durationDisplayPrecision',
    'elementAttributes',
    'enableDeleteKey',
    'enableRecurringEvents',
    'enableSticky',
    'enableTextSelection',
    'enableTransactionalFeatures',
    'endParamName',
    'eventBarTextField',
    'eventRenderer',
    'eventRendererThisObj',
    'eventSelectionDisabled',
    'fillLastColumn',
    'fixedRowHeight',
    'footer',
    'formulaProviders',
    'fullRowRefresh',
    'getDateConstraints',
    'getRowHeight',
    'header',
    'hideHorizontalScrollbar',
    'highlightPredecessors',
    'highlightSuccessors',
    'hoverCls',
    'icon',
    'ignoreDomEventsWhileScrolling',
    'ignoreParentReadOnly',
    'listeners',
    'listRangeMenu',
    'loadMask',
    'loadMaskDefaults',
    'loadMaskError',
    'localizable',
    'maintainSelectionOnDatasetChange',
    'managedEventSizing',
    'maskDefaults',
    'masked',
    'maxDate',
    'maxTimeAxisUnit',
    'minDate',
    'mode',
    'monitorResize',
    'multiEventSelect',
    'narrowEventWidth',
    'owner',
    'partner',
    'passStartEndParameters',
    'plugins',
    'preCalculateHeightLimit',
    'preserveFocusOnDatasetChange',
    'preserveScrollOnDatasetChange',
    'preventTooltipOnTouch',
    'relayStoreEvents',
    'resizable',
    'resizeToFitIncludesHeader',
    'resourceColumns',
    'resourceImageExtension',
    'resourceImagePath',
    'resourceImages',
    'resourceTimeRangeRenderer',
    'responsiveLevels',
    'ripple',
    'rootElement',
    'scrollerClass',
    'scrollExtensionThreshold',
    'scrollManager',
    'showCreationTooltip',
    'showDirty',
    'showEventColorPickers',
    'showLagInTooltip',
    'showRecurringUI',
    'snapRelativeToEventStartDate',
    'startParamName',
    'stateful',
    'statefulEvents',
    'stateId',
    'stateProvider',
    'stickyHeaders',
    'strips',
    'subGridConfigs',
    'syncMask',
    'tab',
    'tabBarItems',
    'tbar',
    'terminalCls',
    'terminalSides',
    'timeAxis',
    'triggerSelectionChangeOnRemove',
    'ui',
    'verticalTimeAxisColumn',
    'visibleZoomFactor',
    'weekStartDay',
    'weight',
    'zoomKeepsOriginalTimespan',
    'zoomOnMouseWheel',
    'zoomOnTimeAxisDoubleClick'
];
BryntumSchedulerBase.propertyConfigNames = [
    'alignSelf',
    'allowDropOnEventBar',
    'allowOverlap',
    'animateTreeNodeToggle',
    'appendTo',
    'assignments',
    'assignmentStore',
    'autoCreate',
    'barMargin',
    'callOnFunctions',
    'catchEventHandlerExceptions',
    'cellEllipsis',
    'cls',
    'collapsed',
    'column',
    'columnLines',
    'columns',
    'creationTooltipTemplate',
    'crudManager',
    'data',
    'dataset',
    'date',
    'dateFormat',
    'dateSeparator',
    'dependencies',
    'dependencyStore',
    'descriptionFormat',
    'disabled',
    'displayDateFormat',
    'emptyText',
    'enableEventAnimations',
    'enableUndoRedoKeys',
    'endDate',
    'eventColor',
    'eventLayout',
    'eventReleaseThreshold',
    'events',
    'eventStore',
    'eventStyle',
    'extraData',
    'fillTicks',
    'flex',
    'forceFit',
    'height',
    'hidden',
    'hideFooters',
    'hideHeaders',
    'hideRowHover',
    'id',
    'infiniteScroll',
    'initialAnimationDuration',
    'inputFieldAlign',
    'insertBefore',
    'insertFirst',
    'isEventSelectable',
    'keyMap',
    'labelPosition',
    'lazyLoadingIndicator',
    'longPressTime',
    'margin',
    'maxHeight',
    'maxWidth',
    'maxZoomLevel',
    'milestoneAlign',
    'milestoneCharWidth',
    'milestoneLayoutMode',
    'milestoneTextPosition',
    'minHeight',
    'minPackSize',
    'minWidth',
    'minZoomLevel',
    'onAfterDependencyCreateDrop',
    'onAfterDependencySave',
    'onAfterDragCreate',
    'onAfterEventDragSelect',
    'onAfterEventDrop',
    'onAfterEventEdit',
    'onAfterEventSave',
    'onAssignmentSelectionChange',
    'onBeforeAssignmentDelete',
    'onBeforeAssignmentSelectionChange',
    'onBeforeAutoCreate',
    'onBeforeCancelCellEdit',
    'onBeforeCancelRowEdit',
    'onBeforeCellEditStart',
    'onBeforeCellRangeDelete',
    'onBeforeCellRangeEdit',
    'onBeforeColumnDragStart',
    'onBeforeColumnDropFinalize',
    'onBeforeColumnResize',
    'onBeforeContextShow',
    'onBeforeCopy',
    'onBeforeCSVExport',
    'onBeforeDependencyAdd',
    'onBeforeDependencyCreateDrag',
    'onBeforeDependencyCreateFinalize',
    'onBeforeDependencyDelete',
    'onBeforeDependencyEdit',
    'onBeforeDependencyEditShow',
    'onBeforeDependencySave',
    'onBeforeDestroy',
    'onBeforeDragCreate',
    'onBeforeDragCreateFinalize',
    'onBeforeEventAdd',
    'onBeforeEventDelete',
    'onBeforeEventDrag',
    'onBeforeEventDragSelect',
    'onBeforeEventDropFinalize',
    'onBeforeEventEdit',
    'onBeforeEventEditShow',
    'onBeforeEventResize',
    'onBeforeEventResizeFinalize',
    'onBeforeEventSave',
    'onBeforeEventSelectionChange',
    'onBeforeExcelExport',
    'onBeforeFillHandleDragStart',
    'onBeforeFinishCellEdit',
    'onBeforeFinishRowEdit',
    'onBeforeHide',
    'onBeforePan',
    'onBeforePaste',
    'onBeforePdfExport',
    'onBeforePresetChange',
    'onBeforeRenderRow',
    'onBeforeRenderRows',
    'onBeforeRowCollapse',
    'onBeforeRowExpand',
    'onBeforeSelectedContextsShow',
    'onBeforeSelectionChange',
    'onBeforeSetRecord',
    'onBeforeShow',
    'onBeforeShowTerminals',
    'onBeforeStartRowEdit',
    'onBeforeStateApply',
    'onBeforeStateSave',
    'onBeforeToggleGroup',
    'onBeforeToggleNode',
    'onCancelCellEdit',
    'onCatchAll',
    'onCellClick',
    'onCellContextMenu',
    'onCellDblClick',
    'onCellMenuBeforeShow',
    'onCellMenuItem',
    'onCellMenuShow',
    'onCellMenuToggleItem',
    'onCellMouseEnter',
    'onCellMouseLeave',
    'onCellMouseOut',
    'onCellMouseOver',
    'onCollapse',
    'onCollapseNode',
    'onColumnDrag',
    'onColumnDragStart',
    'onColumnDrop',
    'onColumnResize',
    'onColumnResizeStart',
    'onContextMenuItem',
    'onContextMenuToggleItem',
    'onCopy',
    'onCurrentTimelineUpdate',
    'onDataChange',
    'onDateRangeChange',
    'onDependenciesDrawn',
    'onDependencyClick',
    'onDependencyContextMenu',
    'onDependencyCreateDragStart',
    'onDependencyCreateDrop',
    'onDependencyDblClick',
    'onDependencyMenuBeforeShow',
    'onDependencyMenuItem',
    'onDependencyMenuShow',
    'onDependencyMouseOut',
    'onDependencyMouseOver',
    'onDependencyValidationComplete',
    'onDependencyValidationStart',
    'onDestroy',
    'onDirtyStateChange',
    'onDragCreateEnd',
    'onDragCreateStart',
    'onDragSelecting',
    'onElementCreated',
    'onEventAutoCreated',
    'onEventClick',
    'onEventContextMenu',
    'onEventDblClick',
    'onEventDrag',
    'onEventDragAbort',
    'onEventDragModeChange',
    'onEventDragReset',
    'onEventDragSelect',
    'onEventDragStart',
    'onEventDrop',
    'onEventEditBeforeSetRecord',
    'onEventKeyDown',
    'onEventKeyUp',
    'onEventMenuBeforeShow',
    'onEventMenuItem',
    'onEventMenuShow',
    'onEventMouseDown',
    'onEventMouseEnter',
    'onEventMouseLeave',
    'onEventMouseOut',
    'onEventMouseOver',
    'onEventMouseUp',
    'onEventPartialResize',
    'onEventResizeEnd',
    'onEventResizeStart',
    'onEventSelectionChange',
    'onExpand',
    'onExpandNode',
    'onFileDrop',
    'onFillHandleBeforeDragFinalize',
    'onFillHandleDrag',
    'onFillHandleDragAbort',
    'onFillHandleDragEnd',
    'onFillHandleDragStart',
    'onFinishCellEdit',
    'onFinishRowEdit',
    'onFocusIn',
    'onFocusOut',
    'onGridRowBeforeDragStart',
    'onGridRowBeforeDropFinalize',
    'onGridRowDrag',
    'onGridRowDragAbort',
    'onGridRowDragStart',
    'onGridRowDrop',
    'onHeaderClick',
    'onHeaderMenuBeforeShow',
    'onHeaderMenuItem',
    'onHeaderMenuShow',
    'onHeaderMenuToggleItem',
    'onHide',
    'onLockRows',
    'onMouseOut',
    'onMouseOver',
    'onNavigate',
    'onNoZoomChange',
    'onPaint',
    'onPaste',
    'onPasteNotAllowed',
    'onPdfExport',
    'onPresetChange',
    'onReadOnly',
    'onRecompose',
    'onReleaseEvent',
    'onRenderEvent',
    'onRenderRow',
    'onRenderRows',
    'onResize',
    'onResourceHeaderClick',
    'onResourceHeaderContextmenu',
    'onResourceHeaderDblclick',
    'onResourceMenuBeforeShow',
    'onResourceMenuItem',
    'onResourceMenuShow',
    'onResourceMenuToggleItem',
    'onResourceTimeRangeClick',
    'onResourceTimeRangeContextMenu',
    'onResourceTimeRangeDblClick',
    'onResourceTimeRangeMouseDown',
    'onResourceTimeRangeMouseOut',
    'onResourceTimeRangeMouseOver',
    'onResourceTimeRangeMouseUp',
    'onResponsive',
    'onRowCollapse',
    'onRowExpand',
    'onRowMouseEnter',
    'onRowMouseLeave',
    'onScheduleClick',
    'onScheduleContextMenu',
    'onScheduleDblClick',
    'onScheduleMenuBeforeShow',
    'onScheduleMenuItem',
    'onScheduleMenuShow',
    'onScheduleMouseDown',
    'onScheduleMouseEnter',
    'onScheduleMouseLeave',
    'onScheduleMouseMove',
    'onScheduleMouseUp',
    'onScroll',
    'onScrollButtonClick',
    'onSelectionChange',
    'onSelectionModeChange',
    'onShiftIncrementChange',
    'onShow',
    'onSplit',
    'onSplitterCollapseClick',
    'onSplitterDragEnd',
    'onSplitterDragStart',
    'onSplitterExpandClick',
    'onStartCellEdit',
    'onStartRowEdit',
    'onSubGridCollapse',
    'onSubGridExpand',
    'onTickCellClick',
    'onTickCellContextMenu',
    'onTickCellDblClick',
    'onTickCellMouseDown',
    'onTickCellMouseUp',
    'onTickSizeChange',
    'onTimeAxisChange',
    'onTimeAxisHeaderClick',
    'onTimeAxisHeaderContextMenu',
    'onTimeAxisHeaderDblClick',
    'onTimeAxisHeaderMenuBeforeShow',
    'onTimeAxisHeaderMenuItem',
    'onTimeAxisHeaderMenuShow',
    'onTimelineContextChange',
    'onTimelineViewportResize',
    'onTimeRangeHeaderClick',
    'onTimeRangeHeaderContextMenu',
    'onTimeRangeHeaderDblClick',
    'onTimeSelectionChange',
    'onTimeSelectionElementClick',
    'onToggleGroup',
    'onToggleNode',
    'onToolClick',
    'onUnlockRows',
    'onUnsplit',
    'onVisibleDateRangeChange',
    'overlappingEventSorter',
    'preserveScroll',
    'presets',
    'project',
    'range',
    'readOnly',
    'recurrenceConfirmationPopup',
    'rendition',
    'resourceMargin',
    'resources',
    'resourceStore',
    'resourceTimeRanges',
    'resourceTimeRangeStore',
    'rowHeight',
    'rowLines',
    'rtl',
    'scrollable',
    'selectionMode',
    'selectResourceOnEventNavigate',
    'selectResourceOnScheduleClick',
    'shiftIncrement',
    'showTooltip',
    'snap',
    'span',
    'startDate',
    'stateSettings',
    'store',
    'suppressFit',
    'terminalHideDelay',
    'terminalOffset',
    'terminalShowDelay',
    'terminalSize',
    'tickSize',
    'timeRanges',
    'timeRangeStore',
    'timeResolution',
    'timeZone',
    'title',
    'tools',
    'tooltipTemplate',
    'transition',
    'transitionDuration',
    'updateTimelineContextOnScroll',
    'useContextualRecurrenceRules',
    'useInitialAnimation',
    'viewPreset',
    'visibleDate',
    'width',
    'workingTime'
];
BryntumSchedulerBase.propertyNames = [
    'focusVisible',
    'hasChanges',
    'isEngineReady',
    'isNavigatingTimelineCells',
    'originalStore',
    'parent',
    'scrollLeft',
    'scrollTop',
    'scrollX',
    'selectedAssignments',
    'selectedCell',
    'selectedCells',
    'selectedEvents',
    'selectedRecord',
    'selectedRecords',
    'selectedRows',
    'state',
    'timelineCell',
    'tooltip',
    'zoomLevel'
];
//# sourceMappingURL=BryntumSchedulerBase.js.map