/*
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 { GridCellBase } from "./GridCellBase";
import { markType } from "igniteui-webcomponents-core";
/**
 * @hidden
 */
export let SummaryCell = /*@__PURE__*/ (() => {
    class SummaryCell extends GridCellBase {
        constructor(a) {
            super(a);
            this.b8 = null;
            this.b9 = null;
            this.ca = null;
            this.ce = -1;
            this.cd = -1;
            this.z.setRawStyleProperty("vertical-align", "middle");
            this.ca = a.createElement("div");
            this.b8 = a.createElement("span");
            this.b8.setRawStyleProperty("display", "inline-block");
            this.b8.setRawStyleProperty("width", "40%");
            this.b8.setRawStyleProperty("white-space", "nowrap");
            this.b8.setRawStyleProperty("text-overflow", "ellipsis");
            this.b8.setRawStyleProperty("vertical-align", "middle");
            this.b8.setRawStyleProperty("overflow", "hidden");
            this.ca.append(this.b8);
            this.b9 = a.createElement("span");
            this.b9.setRawStyleProperty("display", "inline-block");
            this.b9.setRawStyleProperty("width", "60%");
            this.b9.setRawStyleProperty("text-align", "right");
            this.b9.setRawStyleProperty("white-space", "nowrap");
            this.b9.setRawStyleProperty("text-overflow", "ellipsis");
            this.b9.setRawStyleProperty("vertical-align", "middle");
            this.b9.setRawStyleProperty("overflow", "hidden");
            this.ca.append(this.b9);
            this.z.append(this.ca);
        }
        get cb() {
            return this.b8;
        }
        get cc() {
            return this.b9;
        }
        bx(a, b) {
            super.bx(a, b);
            let c = Math.max(0, a - b);
            if (this.ce != c) {
                this.ce = c;
            }
        }
        br(a, b) {
            super.br(a, b);
            let c = Math.max(0, a - b);
            if (this.cd != c) {
                this.cd = c;
            }
        }
        get_r() {
            return false;
        }
        bh(a, b, c) {
            super.bh(a, b, c);
            if (a == "Indent" || a == "IsCollapsable") {
                this.ca.setRawStyleProperty("margin-left", this.av + this.ax + this.aw + "px");
            }
        }
    }
    SummaryCell.$t = /*@__PURE__*/ markType(SummaryCell, 'SummaryCell', GridCellBase.$);
    return SummaryCell;
})();
//# sourceMappingURL=SummaryCell.js.map
