igniteui-react-grids
Version:
Ignite UI React grid components.
74 lines (73 loc) • 2.86 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 { 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
*/
export let EditorCellPresenter = /*@__PURE__*/ (() => {
class EditorCellPresenter extends CellPresenterBase {
get d() {
return this.a;
}
constructor(a) {
super(a);
}
b(a) {
super.b(a);
let 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 = /*@__PURE__*/ markType(EditorCellPresenter, 'EditorCellPresenter', CellPresenterBase.$);
return EditorCellPresenter;
})();