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