igniteui-react-grids
Version:
Ignite UI React grid components.
85 lines (84 loc) • 3.34 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 { GridCellBase } from "./GridCellBase";
import { markType } from "igniteui-react-core";
/**
* @hidden
*/
var SummaryCell = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(SummaryCell, _super);
function SummaryCell(a) {
var _this = _super.call(this, a) || this;
_this.ck = null;
_this.cl = null;
_this.cm = null;
_this.cq = -1;
_this.cp = -1;
_this.ah.setRawStyleProperty("vertical-align", "middle");
_this.cm = a.createElement("div");
_this.ck = a.createElement("span");
_this.ck.setRawStyleProperty("display", "inline-block");
_this.ck.setRawStyleProperty("width", "40%");
_this.ck.setRawStyleProperty("white-space", "nowrap");
_this.ck.setRawStyleProperty("text-overflow", "ellipsis");
_this.ck.setRawStyleProperty("vertical-align", "middle");
_this.ck.setRawStyleProperty("overflow", "hidden");
_this.cm.append(_this.ck);
_this.cl = a.createElement("span");
_this.cl.setRawStyleProperty("display", "inline-block");
_this.cl.setRawStyleProperty("width", "60%");
_this.cl.setRawStyleProperty("text-align", "right");
_this.cl.setRawStyleProperty("white-space", "nowrap");
_this.cl.setRawStyleProperty("text-overflow", "ellipsis");
_this.cl.setRawStyleProperty("vertical-align", "middle");
_this.cl.setRawStyleProperty("overflow", "hidden");
_this.cm.append(_this.cl);
_this.ah.append(_this.cm);
return _this;
}
Object.defineProperty(SummaryCell.prototype, "cn", {
get: function () {
return this.ck;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SummaryCell.prototype, "co", {
get: function () {
return this.cl;
},
enumerable: false,
configurable: true
});
SummaryCell.prototype.b9 = function (a, b) {
_super.prototype.b9.call(this, a, b);
var c = Math.max(0, a - b);
if (this.cq != c) {
this.cq = c;
}
};
SummaryCell.prototype.b3 = function (a, b) {
_super.prototype.b3.call(this, a, b);
var c = Math.max(0, a - b);
if (this.cp != c) {
this.cp = c;
}
};
SummaryCell.prototype.get_z = function () {
return false;
};
SummaryCell.prototype.bs = function (a, b, c) {
_super.prototype.bs.call(this, a, b, c);
if (a == "Indent" || a == "IsCollapsable") {
this.cm.setRawStyleProperty("margin-left", this.a3 + this.a5 + this.a4 + "px");
}
};
SummaryCell.$t = markType(SummaryCell, 'SummaryCell', GridCellBase.$);
return SummaryCell;
}(GridCellBase));
export { SummaryCell };