UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

1,377 lines (1,371 loc) 40.1 kB
import { CellContentHorizontalAlignment, CellContentHorizontalAlignment_$type } from "./CellContentHorizontalAlignment"; import { CellContentVerticalAlignment_$type } from "./CellContentVerticalAlignment"; import { TextCellLineBreakMode_$type } from "./TextCellLineBreakMode"; import { ColumnSortDirection_$type } from "./ColumnSortDirection"; import { ensureBool, ensureEnum, brushToString, stringToBrush } from "igniteui-react-core"; import { FontInfo } from "igniteui-react-core"; import { delegateCombine, delegateRemove, runOn } from "igniteui-react-core"; import { PinnedPositions_$type } from './PinnedPositions'; /** * Represents info about the current cell. */ var IgrCellInfo = /** @class */ /*@__PURE__*/ (function () { function IgrCellInfo() { this._onChanged = []; this._changed = false; this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); } IgrCellInfo.prototype.createImplementation = function () { return null; }; Object.defineProperty(IgrCellInfo.prototype, "i", { get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgrCellInfo.prototype._provideImplementation = function (i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); }; IgrCellInfo.prototype.onImplementationCreated = function () { }; IgrCellInfo.prototype.addOnChangedListener = function (listener) { if (this._onChanged.length == 0) { this.i.propertyChanged = delegateCombine(this.i.propertyChanged, runOn(this, this._implementation_propertyChanged)); this.i.cellReconciling = delegateCombine(this.i.cellReconciling, runOn(this, this._implementation_cellReconciling)); } this._onChanged.push(listener); }; IgrCellInfo.prototype.removeOnChangedListener = function (listener) { var ind = this._onChanged.indexOf(listener); if (ind < 0) { return; } this._onChanged.splice(ind, 1); if (this._onChanged.length == 0) { this.i.propertyChanged = delegateRemove(this.i.propertyChanged, runOn(this, this._implementation_propertyChanged)); this.i.cellReconciling = delegateRemove(this.i.cellReconciling, runOn(this, this._implementation_cellReconciling)); } }; IgrCellInfo.prototype._implementation_propertyChanged = function (sender, args) { this._changed = true; }; IgrCellInfo.prototype._implementation_cellReconciling = function (model) { if (this._changed && this._onChanged !== null && this._onChanged.length > 0) { this._changed = false; for (var i = 0; i < this._onChanged.length; i++) { this._onChanged[i](); } } this._changed = false; }; Object.defineProperty(IgrCellInfo.prototype, "resolvedTextAlign", { get: function () { switch (this.horizontalAlignment) { case CellContentHorizontalAlignment.Center: return "center"; case CellContentHorizontalAlignment.Left: return "left"; case CellContentHorizontalAlignment.Right: return "right"; case CellContentHorizontalAlignment.Stretch: return "center"; } return "left"; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "resolvedContentOpacity", { get: function () { var virtualPercent = Math.min(1.0, Math.max(0.0, this.virtualizationPercentage)); var opacity = this.contentOpacity * (1.0 - virtualPercent); return opacity; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "styleKey", { /** * Gets the style key of the current cell, used for recycling. */ get: function () { return this.i.kc; }, set: function (v) { this.i.kc = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "dataRow", { /** * Gets the absolute data row for the current cell. */ get: function () { return this.i.fb; }, set: function (v) { this.i.fb = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "isPositionDirty", { /** * Gets if the position of the cell is dirty. */ get: function () { return this.i.bj; }, set: function (v) { this.i.bj = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "isSizeDirty", { /** * Gets if the size of the cell is dirty. */ get: function () { return this.i.bo; }, set: function (v) { this.i.bo = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "isContentDirty", { /** * Gets if the content of the cell is dirty. */ get: function () { return this.i.a3; }, set: function (v) { this.i.a3 = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "isBorderDirty", { /** * Gets if the content of the cell is dirty. */ get: function () { return this.i.a1; }, set: function (v) { this.i.a1 = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "isLayerDirty", { /** * Gets if the layer of the cell is dirty. */ get: function () { return this.i.bh; }, set: function (v) { this.i.bh = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "isStateDirty", { /** * Gets if the layer of the cell is dirty. */ get: function () { return this.i.bp; }, set: function (v) { this.i.bp = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "isDataDirty", { /** * Gets if the data of the cell is dirty. */ get: function () { return this.i.a5; }, set: function (v) { this.i.a5 = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "isPlaceholdContentNeeded", { /** * Gets if placeholder content is needed when virtualized. */ get: function () { return this.i.bi; }, set: function (v) { this.i.bi = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "actionManager", { /** * Gets the action manager to propagate actions back to the grid. */ get: function () { return this.i.c; }, set: function (v) { this.i.c = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "isHitTestVisible", { /** * Gets or sets whether the cell is hit test visible. */ get: function () { return this.i.bd; }, set: function (v) { this.i.bd = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "isRowPinned", { /** * Gets if this cell belongs to a row that has been marked as pinned. */ get: function () { return this.i.bk; }, set: function (v) { this.i.bk = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "isRowSticky", { /** * Gets if this cell belongs to a row that will stick to the top of the grid. */ get: function () { return this.i.bl; }, set: function (v) { this.i.bl = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "isLastStickyRow", { /** * Gets if this cell is the last row that can stick to the top of the grid. */ get: function () { return this.i.bg; }, set: function (v) { this.i.bg = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "isFilterRow", { /** * Gets if this cell is in the filter row. */ get: function () { return this.i.bb; }, set: function (v) { this.i.bb = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "indent", { /** * Gets the indent level of the cell. */ get: function () { return this.i.f0; }, set: function (v) { this.i.f0 = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "rowItem", { get: function () { return this.i.hn; }, set: function (v) { this.i.hn = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "x", { /** * Gets the X position of the cell within the content. */ get: function () { return this.i.cu; }, set: function (v) { this.i.cu = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "y", { /** * Gets the Y position of the cell within the content. */ get: function () { return this.i.cv; }, set: function (v) { this.i.cv = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "snappedX", { /** * Gets the pixel snapped X position of the cell within the content. */ get: function () { return this.i.g0; }, set: function (v) { this.i.g0 = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "snappedY", { /** * Gets the snapped Y position of the cell within the content. */ get: function () { return this.i.g2; }, set: function (v) { this.i.g2 = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "editOpacity", { /** * Gets or sets the opacity for cells that have unsaved edits. */ get: function () { return this.i.ck; }, set: function (v) { this.i.ck = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "contentOpacity", { /** * Gets or sets the opacity of the content of the cell. */ get: function () { return this.i.cj; }, set: function (v) { this.i.cj = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "actualContentOpacity", { /** * Gets the actual content opacity of the cell. */ get: function () { return this.i.cg; }, set: function (v) { this.i.cg = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "opacity", { /** * Gets or sets the opacity of the cell. */ get: function () { return this.i.co; }, set: function (v) { this.i.co = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "actualOpacity", { /** * Gets the actual opacity of the cell. */ get: function () { return this.i.ch; }, set: function (v) { this.i.ch = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "height", { /** * Gets the height of the cell. */ get: function () { return this.i.fu; }, set: function (v) { this.i.fu = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "width", { /** * Gets the width of the cell. */ get: function () { return this.i.hd; }, set: function (v) { this.i.hd = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "isSelected", { /** * Gets if the cell is selected. */ get: function () { return this.i.bn; }, set: function (v) { this.i.bn = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "selectedStatus", { /** * Gets the amount that the cell is selected. This is a value between 0 and 1. */ get: function () { return this.i.cq; }, set: function (v) { this.i.cq = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "activationStatus", { /** * Gets the amount that the cell is activated. This is a value between 0 and 1. */ get: function () { return this.i.cf; }, set: function (v) { this.i.cf = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "hoverStatus", { /** * Gets the amount that the cell is hovered. This is a value between 0 and 1. */ get: function () { return this.i.cl; }, set: function (v) { this.i.cl = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "isHoverable", { /** * Gets whether the cell is hoverable or not. */ get: function () { return this.i.be; }, set: function (v) { this.i.be = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "horizontalAlignment", { /** * Gets or sets the horiztonal alignment of the cell content. */ get: function () { return this.i.g; }, set: function (v) { this.i.g = ensureEnum(CellContentHorizontalAlignment_$type, v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "verticalAlignment", { /** * Gets or sets the vertical alignment of the cell content. */ get: function () { return this.i.i; }, set: function (v) { this.i.i = ensureEnum(CellContentVerticalAlignment_$type, v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "background", { /** * Gets or sets the background color of the cell. */ get: function () { return brushToString(this.i.lx); }, set: function (v) { this.i.lx = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "border", { /** * Gets or sets the border color of the cell. */ get: function () { return brushToString(this.i.l0); }, set: function (v) { this.i.l0 = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "actualBackground", { /** * Gets the actual background color of the cell */ get: function () { return brushToString(this.i.lu); }, set: function (v) { this.i.lu = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "actualBorder", { /** * Gets the actual background color of the cell */ get: function () { return brushToString(this.i.lv); }, set: function (v) { this.i.lv = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "activationBorder", { /** * Gets the actual background color of the cell */ get: function () { return brushToString(this.i.lt); }, set: function (v) { this.i.lt = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "errorBorder", { /** * Gets or sets the error border color of the cell. */ get: function () { return brushToString(this.i.l2); }, set: function (v) { this.i.l2 = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "selectedBackground", { /** * Gets or sets the selected background color of the cell. */ get: function () { return brushToString(this.i.l9); }, set: function (v) { this.i.l9 = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "hoverBackground", { /** * Gets or sets the hover background color of the cell. */ get: function () { return brushToString(this.i.l5); }, set: function (v) { this.i.l5 = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "hoverTextColor", { /** * Gets or sets the hover text color of the cell. */ get: function () { return brushToString(this.i.l6); }, set: function (v) { this.i.l6 = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "sortIndicatorColor", { /** * Gets or sets the color for the sort indicator icon. */ get: function () { return brushToString(this.i.ma); }, set: function (v) { this.i.ma = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "stickyRowBackground", { /** * Gets or sets the background color for the cell when it is stuck to the top of the grid as a pinned row. */ get: function () { return brushToString(this.i.mb); }, set: function (v) { this.i.mb = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "pinnedRowBackground", { /** * Gets or sets the background color for the cell that has been marked as pinned. */ get: function () { return brushToString(this.i.l8); }, set: function (v) { this.i.l8 = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "lastStickyRowBackground", { /** * Gets or sets the color for the last row in the sticky row area. */ get: function () { return brushToString(this.i.l7); }, set: function (v) { this.i.l7 = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "filterRowBackground", { /** * Gets or sets the background color for filter row. */ get: function () { return brushToString(this.i.l3); }, set: function (v) { this.i.l3 = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "pinnedRowOpacity", { /** * Gets or sets the color to use for displaying text. */ get: function () { return this.i.cp; }, set: function (v) { this.i.cp = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "originalValue", { /** * Gets or sets the original value for the cell, before processing. */ get: function () { return this.i.hm; }, set: function (v) { this.i.hm = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "renderValue", { /** * Gets or sets the text value, if any, which was rendered by a text cell. */ get: function () { return this.i.j1; }, set: function (v) { this.i.j1 = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "textColor", { /** * Gets or sets the color of the text for the cell, if any. */ get: function () { return brushToString(this.i.mc); }, set: function (v) { this.i.mc = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "actualTextColor", { /** * Gets the actual color of the text for the cell, if any. */ get: function () { return brushToString(this.i.lw); }, set: function (v) { this.i.lw = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "deletedTextColor", { /** * Gets or sets the text color for cells in deleted rows. */ get: function () { return brushToString(this.i.l1); }, set: function (v) { this.i.l1 = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "font", { get: function () { if (this.i.ag == null) { return null; } return this.i.ag.fontString; }, set: function (v) { var fi = new FontInfo(); fi.fontString = v; this.i.ag = fi; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "actualFont", { get: function () { if (this.i.ae == null) { return null; } return this.i.ae.fontString; }, set: function (v) { var fi = new FontInfo(); fi.fontString = v; this.i.ae = fi; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "lineBreakMode", { /** * Gets or sets the line break mode to use if text is present in the cell. */ get: function () { return this.i.aa; }, set: function (v) { this.i.aa = ensureEnum(TextCellLineBreakMode_$type, v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "virtualizationPercentage", { /** * Gets or sets the virtualization percentage value. This is between 0 an 1, and indicates how virtual the content is at present. */ get: function () { return this.i.ct; }, set: function (v) { this.i.ct = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "paddingLeft", { /** * Gets or sets the left padding to use for the content. */ get: function () { return this.i.gm; }, set: function (v) { this.i.gm = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "paddingTop", { /** * Gets or sets the top padding to use for the content. */ get: function () { return this.i.gq; }, set: function (v) { this.i.gq = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "paddingRight", { /** * Gets or sets the right padding to use for the content. */ get: function () { return this.i.go; }, set: function (v) { this.i.go = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "paddingBottom", { /** * Gets or sets the bottom padding to use for the content. */ get: function () { return this.i.gk; }, set: function (v) { this.i.gk = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "actualPaddingLeft", { /** * Gets or sets the left padding to use for the content. */ get: function () { return this.i.el; }, set: function (v) { this.i.el = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "actualPaddingTop", { /** * Gets or sets the top padding to use for the content. */ get: function () { return this.i.ep; }, set: function (v) { this.i.ep = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "actualPaddingRight", { /** * Gets or sets the right padding to use for the content. */ get: function () { return this.i.en; }, set: function (v) { this.i.en = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "actualPaddingBottom", { /** * Gets or sets the bottom padding to use for the content. */ get: function () { return this.i.ej; }, set: function (v) { this.i.ej = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "borderLeftWidth", { /** * Gets or sets the left border to use for the content. */ get: function () { return this.i.e2; }, set: function (v) { this.i.e2 = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "borderTopWidth", { /** * Gets or sets the top border to use for the content. */ get: function () { return this.i.e7; }, set: function (v) { this.i.e7 = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "borderRightWidth", { /** * Gets or sets the right border to use for the content. */ get: function () { return this.i.e5; }, set: function (v) { this.i.e5 = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "borderBottomWidth", { /** * Gets or sets the bottom border to use for the content. */ get: function () { return this.i.e0; }, set: function (v) { this.i.e0 = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "activationBorderLeftWidth", { /** * Gets or sets the left activation border to use for the content. */ get: function () { return this.i.dy; }, set: function (v) { this.i.dy = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "activationBorderTopWidth", { /** * Gets or sets the top activation border to use for the content. */ get: function () { return this.i.d3; }, set: function (v) { this.i.d3 = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "activationBorderRightWidth", { /** * Gets or sets the right activation border to use for the content. */ get: function () { return this.i.d1; }, set: function (v) { this.i.d1 = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "activationBorderBottomWidth", { /** * Gets or sets the bottom activation border to use for the content. */ get: function () { return this.i.dw; }, set: function (v) { this.i.dw = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "errorBorderLeftWidth", { /** * Gets or sets the left error border to use for the content. */ get: function () { return this.i.fk; }, set: function (v) { this.i.fk = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "errorBorderTopWidth", { /** * Gets or sets the top error border to use for the content. */ get: function () { return this.i.fp; }, set: function (v) { this.i.fp = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "errorBorderRightWidth", { /** * Gets or sets the right error border to use for the content. */ get: function () { return this.i.fn; }, set: function (v) { this.i.fn = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "errorBorderBottomWidth", { /** * Gets or sets the bottom error border to use for the content. */ get: function () { return this.i.fi; }, set: function (v) { this.i.fi = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "actualBorderLeftWidth", { /** * Gets or sets the actual left border to use for the content. */ get: function () { return this.i.d9; }, set: function (v) { this.i.d9 = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "actualBorderTopWidth", { /** * Gets or sets the actual top border to use for the content. */ get: function () { return this.i.ee; }, set: function (v) { this.i.ee = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "actualBorderRightWidth", { /** * Gets or sets the actual right border to use for the content. */ get: function () { return this.i.ec; }, set: function (v) { this.i.ec = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "actualBorderBottomWidth", { /** * Gets or sets the actual bottom border to use for the content. */ get: function () { return this.i.d7; }, set: function (v) { this.i.d7 = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "sortDirection", { /** * Gets the current sort direction for the column containing the cell. */ get: function () { return this.i.n; }, set: function (v) { this.i.n = ensureEnum(ColumnSortDirection_$type, v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "isExpanded", { /** * Gets the expansion state of the cell. */ get: function () { return this.i.ba; }, set: function (v) { this.i.ba = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "isCollapsable", { /** * Gets if the cell needs to display an expansion indicator. */ get: function () { return this.i.a2; }, set: function (v) { this.i.a2 = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "pinned", { /** * Gets the fixed column position of this cell. */ get: function () { return this.i.y; }, set: function (v) { this.i.y = ensureEnum(PinnedPositions_$type, v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "editFont", { get: function () { if (this.i.af == null) { return null; } return this.i.af.fontString; }, set: function (v) { var fi = new FontInfo(); fi.fontString = v; this.i.af = fi; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "isEdited", { /** * Gets whether the cell has been edited. */ get: function () { return this.i.a9; }, set: function (v) { this.i.a9 = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "isDeleted", { /** * Gets whether the cell is part of a deleted row. */ get: function () { return this.i.a6; }, set: function (v) { this.i.a6 = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "editError", { /** * Gets or sets the error message for the cell. */ get: function () { return this.i.it; }, set: function (v) { this.i.it = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "isInEditMode", { /** * Gets whether the cell is in edit mode. */ get: function () { return this.i.bf; }, set: function (v) { this.i.bf = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCellInfo.prototype, "editID", { get: function () { return this.i.fg; }, set: function (v) { this.i.fg = +v; }, enumerable: false, configurable: true }); IgrCellInfo.prototype.findByName = function (name) { if (this.findEphemera) { if (name && name.indexOf("@@e:") == 0) { return this.findEphemera(name); } } return null; }; IgrCellInfo.prototype.isCustomFieldDirty = function (propertyName) { var iv = this.i.a4(propertyName); return (iv); }; /** * Gets if a named property is dirty. * @param propertyId * The property id to check. */ IgrCellInfo.prototype.isDirtyById = function (propertyId_) { var iv = this.i.a8(propertyId_); return (iv); }; /** * Gets if a named property is dirty. * @param propertyName * The property name to check. */ IgrCellInfo.prototype.isDirty = function (propertyName) { var iv = this.i.a7(propertyName); return (iv); }; IgrCellInfo.prototype.setNamedValue = function (valueName, value) { this.i.k8(valueName, value); }; /** * Returns if there is a named value stored for the cell. * @param valueName * The name of the value to check. */ IgrCellInfo.prototype.hasNamedValue = function (valueName) { var iv = this.i.az(valueName); return (iv); }; /** * Removes a named value from the cell. * @param valueName * The name of the value to remove. */ IgrCellInfo.prototype.removeNamedValue = function (valueName) { this.i.k4(valueName); }; /** * Gets a named value from the cell. * @param valueName * The name of the value to get. */ IgrCellInfo.prototype.getNamedValue = function (valueName) { var iv = this.i.hk(valueName); return (iv); }; return IgrCellInfo; }()); export { IgrCellInfo };