igniteui-react-grids
Version:
Ignite UI React grid components.
58 lines (57 loc) • 2.16 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 { CanvasGridCellBase } from "./CanvasGridCellBase";
import { GridSortIndicator } from "./GridSortIndicator";
import { delegateCombine, markType } from "igniteui-react-core";
/**
* @hidden
*/
export let CanvasTextHeaderCell = /*@__PURE__*/ (() => {
class CanvasTextHeaderCell extends CanvasGridCellBase {
get db() {
return this.da;
}
constructor(a) {
super(a);
this.da = null;
this.dd = null;
this.dc = null;
this.cl(0);
this.ct(1);
this.da = new GridSortIndicator();
let b = a.createElement("div");
b.setRawStyleProperty("display", "inline-block");
b.setRawStyleProperty("width", "16px");
b.setRawStyleProperty("height", "16px");
this.dd = b;
let c = a.getSubRenderer(this.dd);
this.da.ax(c);
this.da.w = window.devicePixelRatio;
let d = this.da;
d.renderCompleted = delegateCombine(d.renderCompleted, (d, e) => this.ca());
this.da.ar(16, 16);
this.dc = this.da.ad();
}
de(a) {
this.db.b = a;
this.ca();
}
cc(a) {
super.cc(a);
let b = this.bl + 5;
if (this.e == 2) {
b = this.bj - 21;
}
a.n(this.dc, 1, b, this.bm - 8, 16, 16);
}
get_ae() {
return true;
}
}
CanvasTextHeaderCell.$t = /*@__PURE__*/ markType(CanvasTextHeaderCell, 'CanvasTextHeaderCell', CanvasGridCellBase.$);
return CanvasTextHeaderCell;
})();