igniteui-react-grids
Version:
Ignite UI React grid components.
52 lines (51 loc) • 2.18 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 { ContentCellModelHelper } from "./ContentCellModelHelper";
import { FontUtil } from "igniteui-react-core";
import { markType } from "igniteui-react-core";
/**
* @hidden
*/
export let SummaryCellPresenter = /*@__PURE__*/ (() => {
class SummaryCellPresenter extends CellPresenterBase {
constructor(a) {
super(a);
}
get d() {
return this.a;
}
b(a) {
super.b(a);
let 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")) {
let c = b.mg;
if (c == null) {
c = FontUtil.getDefaultFont(this.a.ae);
}
this.d.cn.setRawStyleProperty("font", c.fontString);
}
}
}
}
SummaryCellPresenter.$t = /*@__PURE__*/ markType(SummaryCellPresenter, 'SummaryCellPresenter', CellPresenterBase.$);
return SummaryCellPresenter;
})();