import React from 'react';
import { SchedulerDatePicker } from '@bryntum/calendar';
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
export class BryntumSchedulerDatePicker 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-date-picker-container`;
        return (React.createElement("div", { className: className, ref: (element) => (this.element = element) }));
    }
}
BryntumSchedulerDatePicker.instanceClass = SchedulerDatePicker;
BryntumSchedulerDatePicker.instanceName = 'SchedulerDatePicker';
BryntumSchedulerDatePicker.configNames = [
    'activeDate',
    'adopt',
    'align',
    'anchor',
    'ariaDescription',
    'ariaLabel',
    'autoUpdateRecord',
    'bbar',
    'bodyCls',
    'bubbleEvents',
    'cellRenderer',
    'centered',
    'collapsible',
    'color',
    'config',
    'constrainTo',
    'contentElementCls',
    'dataField',
    'dayNameFormat',
    'defaultBindProperty',
    'defaultFocus',
    'defaults',
    'detectCSSCompatibilityIssues',
    'disabledCls',
    'disabledDates',
    'disableNonWorkingDays',
    'disableOtherMonthCells',
    'disableWeekends',
    'dock',
    'draggable',
    'drawer',
    'editMonth',
    'elementAttributes',
    'eventFilter',
    'eventStore',
    'floating',
    'focusDisabledDates',
    'footer',
    'header',
    'headerRenderer',
    'hideAnimation',
    'hideOtherMonthCells',
    'hideWhenEmpty',
    'htmlCls',
    'icon',
    'ignoreParentReadOnly',
    'includeYear',
    'itemCls',
    'lazyItems',
    'listeners',
    'localeClass',
    'localizable',
    'localizableProperties',
    'maskDefaults',
    'masked',
    'maxDate',
    'minColumnWidth',
    'minDate',
    'minRowHeight',
    'monitorResize',
    'month',
    'monthButtonFormat',
    'multiSelect',
    'namedItems',
    'nonWorkingDayCls',
    'nonWorkingDays',
    'otherMonthCls',
    'owner',
    'positioned',
    'preventTooltipOnTouch',
    'relayStoreEvents',
    'ripple',
    'rootElement',
    'scrollAction',
    'showAnimation',
    'showEvents',
    'showTooltipWhenDisabled',
    'showWeekColumn',
    'sixWeeks',
    'stateful',
    'statefulEvents',
    'stateId',
    'stateProvider',
    'strips',
    'tab',
    'tabBarItems',
    'tag',
    'tbar',
    'textAlign',
    'textContent',
    'tip',
    'todayCls',
    'trapFocus',
    'type',
    'ui',
    'weekendCls',
    'weekRenderer',
    'weekStartDay',
    'weight'
];
BryntumSchedulerDatePicker.propertyConfigNames = [
    'alignSelf',
    'animateTimeShift',
    'appendTo',
    'callOnFunctions',
    'catchEventHandlerExceptions',
    'cls',
    'collapsed',
    'column',
    'content',
    'dataset',
    'date',
    'disabled',
    'dragSelect',
    'extraData',
    'flex',
    'height',
    'hidden',
    'highlightSelectedWeek',
    'html',
    'id',
    'inputFieldAlign',
    'insertBefore',
    'insertFirst',
    'items',
    'keyMap',
    'labelPosition',
    'layout',
    'layoutStyle',
    'margin',
    'maxHeight',
    'maximizeOnMobile',
    'maxWidth',
    'minHeight',
    'minWidth',
    'onBeforeDestroy',
    'onBeforeHide',
    'onBeforeRefresh',
    'onBeforeSetRecord',
    'onBeforeShow',
    'onBeforeStateApply',
    'onBeforeStateSave',
    'onCatchAll',
    'onCellClick',
    'onCollapse',
    'onDateChange',
    'onDestroy',
    'onDirtyStateChange',
    'onElementCreated',
    'onExpand',
    'onFocusIn',
    'onFocusOut',
    'onHide',
    'onPaint',
    'onReadOnly',
    'onRecompose',
    'onRefresh',
    'onResize',
    'onSelectionChange',
    'onShow',
    'onToolClick',
    'onWeekCellClick',
    'readOnly',
    'record',
    'rendition',
    'rtl',
    'scrollable',
    'selection',
    'shadePastDates',
    'span',
    'strictRecordMapping',
    'title',
    'tools',
    'tooltip',
    'weekColumnHeader',
    'width',
    'x',
    'y'
];
BryntumSchedulerDatePicker.propertyNames = [
    'anchorSize',
    'focusVisible',
    'hasChanges',
    'isSettingValues',
    'isValid',
    'parent',
    'state',
    'values'
];
//# sourceMappingURL=BryntumSchedulerDatePicker.js.map