igniteui-react-grids
Version:
Ignite UI React grid components.
79 lines (78 loc) • 2.98 kB
JavaScript
/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { __extends } from "tslib";
import { CellPresenterBase } from "./CellPresenterBase";
import { CellModel } from "./CellModel";
import { EditorCellModel } from "./EditorCellModel";
import { Rect } from "igniteui-react-core";
import { markType } from "igniteui-react-core";
import { stringIsNullOrWhiteSpace } from "igniteui-react-core";
/**
* @hidden
*/
var EditorCellPresenter = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(EditorCellPresenter, _super);
function EditorCellPresenter(a) {
return _super.call(this, a) || this;
}
Object.defineProperty(EditorCellPresenter.prototype, "d", {
get: function () {
return this.a;
},
enumerable: false,
configurable: true
});
EditorCellPresenter.prototype.b = function (a) {
_super.prototype.b.call(this, a);
var b = a;
if (b.a3) {
if (b.a8(EditorCellModel.mz) || b.a8(EditorCellModel.mx) || b.a8(EditorCellModel.my) || b.a8(EditorCellModel.m0)) {
this.d.cr = b.mm;
this.d.dk = b.m9;
this.d.dq = b.ni;
this.d.cl = b.mg;
}
if (b.a8(EditorCellModel.mv)) {
this.d.cn = b.mi;
}
if (b.a8(EditorCellModel.gj)) {
this.d.dl = b.hm;
}
if (b.a8(EditorCellModel.m1)) {
this.d.eg(b.mk == null);
}
if (b.a8(CellModel.fs)) {
this.d.c2 = b.ag;
}
if (b.a8(EditorCellModel.m2)) {
if (stringIsNullOrWhiteSpace(b.nn)) {
this.d.c9 = false;
this.d.d3();
}
else {
this.d.c9 = true;
this.d.ek(b.nn, b.cu, b.cv, b.hd, b.fu);
}
}
if (b.a8(EditorCellModel.e9)) {
this.d.dd = Rect.l_op_Equality(b.me, Rect.empty) ? false : true;
}
if (b.a8(EditorCellModel.mw)) {
this.d.du = b.nf;
}
if (b.a8(EditorCellModel.m5)) {
this.d.de = b.ms;
}
}
if (b.a8(EditorCellModel.m3)) {
this.d.bh();
}
};
EditorCellPresenter.$t = markType(EditorCellPresenter, 'EditorCellPresenter', CellPresenterBase.$);
return EditorCellPresenter;
}(CellPresenterBase));
export { EditorCellPresenter };