/*
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 TextCell = /*@__PURE__*/ (() => {
    class TextCell extends GridCellBase {
        constructor(a) {
            super(a);
            this.b8 = null;
            this.cb = -1;
            this.ca = -1;
            this.b8 = a.createElement("span");
            this.z.setRawStyleProperty("text-align", "left");
            this.b8.setRawStyleProperty("display", "inline-block");
            this.b8.setRawStyleProperty("line-height", "normal");
            this.b8.setRawStyleProperty("vertical-align", "middle");
            this.b8.setRawStyleProperty("overflow", "hidden");
            this.b8.setRawStyleProperty("white-space", "nowrap");
            this.b8.setRawStyleProperty("text-overflow", "ellipsis");
            this.z.setRawStyleProperty("vertical-align", "middle");
            this.z.append(this.b8);
        }
        get b9() {
            return this.b8;
        }
        bx(a, b) {
            super.bx(a, b);
            let c = Math.max(0, a - b - (this.av + this.ax + this.aw));
            if (this.cb != c) {
                this.cb = c;
                this.b8.setRawStyleProperty("max-width", c.toString() + "px");
            }
        }
        br(a, b) {
            super.br(a, b);
            let c = Math.max(0, a - b);
            if (this.ca != c) {
                this.ca = c;
                this.b8.setRawStyleProperty("max-height", c.toString() + "px");
            }
        }
        get_r() {
            return true;
        }
        bh(a, b, c) {
            super.bh(a, b, c);
            if (a == "Indent" || a == "IsCollapsable") {
                this.b8.setRawStyleProperty("margin-left", this.av + this.ax + this.aw + "px");
            }
        }
    }
    TextCell.$t = /*@__PURE__*/ markType(TextCell, 'TextCell', GridCellBase.$);
    return TextCell;
})();
//# sourceMappingURL=TextCell.js.map
