UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

56 lines (55 loc) 2.17 kB
/* 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 { TemplateCellContainer } from "./TemplateCellContainer"; import { runOn, markType } from "igniteui-react-core"; import { BaseDOMEventProxy } from "igniteui-react-core"; /** * @hidden */ export let TemplateCell = /*@__PURE__*/ (() => { class TemplateCell extends GridCellBase { get cl() { return this.ck; } constructor(a) { super(a); this.ck = null; this.ck = new TemplateCellContainer(a); this.ck.element.setRawStyleProperty("box-sizing", "border-box"); this.ah.append(this.ck.element); this.ah.listen("keydown", runOn(this, this.cm)); } get_z() { return true; } bs(a, b, c) { super.bs(a, b, c); if (a == "Indent" || a == "IsCollapsable") { this.ck.element.setRawStyleProperty("margin-left", this.a3 + this.a5 + this.a4 + "px"); } } bh() { let a = this.ck.element.getNativeElement(); if (a.contains(document.activeElement)) { return; } super.bh(); } cm(a) { let b = this.ck.element.getNativeElement(); if (b.contains(document.activeElement) && document.activeElement.nodeName == "INPUT") { let c = BaseDOMEventProxy.c0(a); if (c == 14 || c == 16) { a.stopPropagation(); } } } } TemplateCell.$t = /*@__PURE__*/ markType(TemplateCell, 'TemplateCell', GridCellBase.$); return TemplateCell; })();