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 TimePicker = (function () {
function TimePicker(parent) {
this.compObj = undefined;
this.parent = parent;
this.parent.timeModule = this;
this.base = new base_module_1.Base(this.parent, this);
}
TimePicker.prototype.render = function (e) {
this.compObj = new ej2_calendars_1.TimePicker(this.parent.model);
this.compObj.appendTo(e.target);
};
TimePicker.prototype.focus = function () {
this.compObj.focusIn();
};
TimePicker.prototype.updateValue = function (e) {
if (this.compObj && e.type === 'Time') {
this.parent.setProperties({ value: this.compObj.value }, true);
this.parent.extendModelValue(this.compObj.value);
}
};
TimePicker.prototype.getModuleName = function () {
return 'time-picker';
};
TimePicker.prototype.destroy = function () {
this.base.destroy();
};
return TimePicker;
}());
exports.TimePicker = TimePicker;
});
|