igniteui-react-grids
Version:
Ignite UI React grid components.
57 lines (56 loc) • 2.38 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 { ContentCellModelHelper } from "./ContentCellModelHelper";
import { FontUtil } from "igniteui-react-core";
import { markType } from "igniteui-react-core";
/**
* @hidden
*/
var SummaryCellPresenter = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(SummaryCellPresenter, _super);
function SummaryCellPresenter(a) {
return _super.call(this, a) || this;
}
Object.defineProperty(SummaryCellPresenter.prototype, "d", {
get: function () {
return this.a;
},
enumerable: false,
configurable: true
});
SummaryCellPresenter.prototype.b = function (a) {
_super.prototype.b.call(this, a);
var b = a;
if (a.a3) {
ContentCellModelHelper.a(this.a.ae, b, this.a.ah, this.d.cn, this.a);
ContentCellModelHelper.a(this.a.ae, b, this.a.ah, this.d.co, this.a);
if (a.a7("ResolvedSummaryLabel") || a.a7("ResolvedSummaryValue")) {
if (b.mn != null) {
this.d.cn.setRawText(b.mn);
}
if (b.mp != null) {
this.d.co.setRawText(b.mp);
}
}
if (a.a7("SummaryLabelTextColor")) {
this.d.cn.setRawStyleProperty("color", b.mu._fill);
}
if (a.a7("SummaryLabelFontInfo")) {
var c = b.mg;
if (c == null) {
c = FontUtil.getDefaultFont(this.a.ae);
}
this.d.cn.setRawStyleProperty("font", c.fontString);
}
}
};
SummaryCellPresenter.$t = markType(SummaryCellPresenter, 'SummaryCellPresenter', CellPresenterBase.$);
return SummaryCellPresenter;
}(CellPresenterBase));
export { SummaryCellPresenter };