define(["require", "exports", "@syncfusion/ej2-calendars", "./base-module"], function (require, exports, ej2_calendars_1, base_module_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var DateRangePicker = (function () {
function DateRangePicker(parent) {
this.compObj = undefined;
this.parent = parent;
this.parent.dateRangeModule = this;
this.base = new base_module_1.Base(this.parent, this);
}
DateRangePicker.prototype.render = function (e) {
this.compObj = new ej2_calendars_1.DateRangePicker(this.parent.model);
this.compObj.appendTo(e.target);
};
DateRangePicker.prototype.focus = function () {
this.compObj.element.focus();
};
DateRangePicker.prototype.getModuleName = function () {
return 'date-range-picker';
};
DateRangePicker.prototype.updateValue = function (e) {
if (this.compObj && e.type === 'DateRange') {
this.parent.setProperties({ value: this.compObj.value }, true);
this.parent.extendModelValue(this.compObj.value);
}
};
DateRangePicker.prototype.destroy = function () {
this.base.destroy();
};
return DateRangePicker;
}());
exports.DateRangePicker = DateRangePicker;
});
|