UNPKG

igniteui-webcomponents-grids

Version:

Ignite UI Web Components grid components.

1,067 lines (1,061 loc) 38.3 kB
import { __extends } from "tslib"; import { delegateCombine, delegateRemove } from "igniteui-webcomponents-core"; import { IgcGridColumnAnimationSettings } from "./igc-grid-column-animation-settings"; import { IgcColumnWidth } from "./igc-column-width"; import { IgcHeaderComponent } from "./igc-header-component"; import { ColumnSortDirection_$type } from "./ColumnSortDirection"; import { PinnedPositions_$type } from "./PinnedPositions"; import { ColumnOptionsIconAlignment_$type } from "./ColumnOptionsIconAlignment"; import { ColumnOptionsIconBehavior_$type } from "./ColumnOptionsIconBehavior"; import { MergedCellMode_$type } from "./MergedCellMode"; import { MergedCellEvaluationCriteria_$type } from "./MergedCellEvaluationCriteria"; import { CellContentVerticalAlignment_$type } from "./CellContentVerticalAlignment"; import { FilterComparisonType_$type } from "./FilterComparisonType"; import { IgcGridFilterOperandsCollection } from "./igc-grid-filter-operands-collection"; import { IgcDefinitionBaseComponent } from "./igc-definition-base-component"; import { getAllPropertyNames, toSpinal, brushToString, stringToBrush, ensureBool, ensureEnum, enumToString } from "igniteui-webcomponents-core"; import { ColumnWidth as ColumnWidth_internal } from "./ColumnWidth"; import { FontInfo } from "igniteui-webcomponents-core"; import { GridFilterOperandsCollection as GridFilterOperandsCollection_internal } from "./GridFilterOperandsCollection"; import { FilterOperand } from "./FilterOperand"; import { SyncableObservableCollection$1 } from "igniteui-webcomponents-core"; /** * A column in the data grid. */ var IgcDataGridColumnComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcDataGridColumnComponent, _super); function IgcDataGridColumnComponent() { var _this = _super.call(this) || this; _this._filterOperands = null; _this._actualHeaderTextChange = null; _this._actualHeaderTextChange_wrapped = null; return _this; } Object.defineProperty(IgcDataGridColumnComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcDataGridColumnComponent.prototype.connectedCallback = function () { if (_super.prototype["connectedCallback"]) { _super.prototype["connectedCallback"].call(this); } if (this.i.connectedCallback) { this.i.connectedCallback(); } if (this.updateContentChildren) { this.updateContentChildren(); } else if (this._updateAdapters) { this._updateAdapters(); } if (!this._attached) { this._attached = true; this._flushQueuedAttributes(); } }; IgcDataGridColumnComponent.prototype.disconnectedCallback = function () { if (_super.prototype["disconnectedCallback"]) { _super.prototype["disconnectedCallback"].call(this); } if (this.i.disconnectedCallback) { this.i.disconnectedCallback(); } if (this._attached) { this._attached = false; } }; Object.defineProperty(IgcDataGridColumnComponent, "observedAttributes", { get: function () { if (IgcDataGridColumnComponent._observedAttributesIgcDataGridColumnComponent == null) { var names = getAllPropertyNames(IgcDataGridColumnComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcDataGridColumnComponent._observedAttributesIgcDataGridColumnComponent = names; } return IgcDataGridColumnComponent._observedAttributesIgcDataGridColumnComponent; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "paddingLeft", { /** * Gets or sets the amount of left padding to use for the cell content for this column. */ get: function () { return this.i.kk; }, set: function (v) { this.i.kk = +v; this._a("paddingLeft", this.i.kk); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "paddingTop", { /** * Gets or sets the amount of top padding to use for the cell content for this column. */ get: function () { return this.i.km; }, set: function (v) { this.i.km = +v; this._a("paddingTop", this.i.km); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "paddingRight", { /** * Gets or sets the amount of right padding to use for the cell content of this column. */ get: function () { return this.i.kl; }, set: function (v) { this.i.kl = +v; this._a("paddingRight", this.i.kl); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "paddingBottom", { /** * Gets or sets the amount of bottom padding to use for the cell content of this column. */ get: function () { return this.i.kj; }, set: function (v) { this.i.kj = +v; this._a("paddingBottom", this.i.kj); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "name", { /** * Gets or sets an unique name of the Column */ get: function () { return this.i.mf; }, set: function (v) { this.i.mf = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "field", { /** * Gets or sets the key used for the column binding */ get: function () { return this.i.lo; }, set: function (v) { this.i.lo = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "headerText", { /** * Gets or sets the text displayed in the header of the column */ get: function () { return this.i.lv; }, set: function (v) { this.i.lv = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "actualHeaderText", { /** * Gets the actual text displayed in the header of the column */ get: function () { return this.i.k3; }, set: function (v) { this.i.k3 = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "selectedBackground", { /** * Gets or sets the background color to use for the cells when they are selected */ get: function () { return brushToString(this.i.n2); }, set: function (v) { this.i.n2 = stringToBrush(v); this._a("selectedBackground", brushToString(this.i.n2)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "actualSelectedBackground", { /** * Gets the actual background color that is used for the cells when they are selected */ get: function () { return brushToString(this.i.nv); }, set: function (v) { this.i.nv = stringToBrush(v); this._a("actualSelectedBackground", brushToString(this.i.nv)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "rowHoverBackground", { /** * Gets or sets the background color to use for the cells when the row is hovered. */ get: function () { return brushToString(this.i.n0); }, set: function (v) { this.i.n0 = stringToBrush(v); this._a("rowHoverBackground", brushToString(this.i.n0)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "actualHoverBackground", { /** * Gets the actual background color that is used for the cells when they are hovered. */ get: function () { return brushToString(this.i.nt); }, set: function (v) { this.i.nt = stringToBrush(v); this._a("actualHoverBackground", brushToString(this.i.nt)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "rowHoverTextColor", { /** * Gets or sets the text color to use for the cells when the row is hovered. */ get: function () { return brushToString(this.i.n1); }, set: function (v) { this.i.n1 = stringToBrush(v); this._a("rowHoverTextColor", brushToString(this.i.n1)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "actualRowHoverTextColor", { /** * Gets the actual text color that is used for the cells when they are hovered. */ get: function () { return brushToString(this.i.nu); }, set: function (v) { this.i.nu = stringToBrush(v); this._a("actualRowHoverTextColor", brushToString(this.i.nu)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "animationSettings", { /** * Gets or sets the animation settings to use for this column. */ get: function () { var r = this.i.h6; if (r == null) { return null; } if (!r.externalObject) { var e = new IgcGridColumnAnimationSettings(); if (r.$type) { e._implementation = r; } else { if (e.i.setNativeElement) { e.i.setNativeElement(r); } } r.externalObject = e; } return r.externalObject; }, set: function (v) { v == null ? this.i.h6 = null : this.i.h6 = v.i; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "width", { /** * Gets or sets the width to use for this column. */ get: function () { var r = this.i.width; if (r == null) { return null; } if (!r.externalObject) { var e = new IgcColumnWidth(); if (r.$type) { e._implementation = r; } else { if (e.i.setNativeElement) { e.i.setNativeElement(r); } } r.externalObject = e; } return r.externalObject; }, set: function (v) { if (typeof v == "string") { var int = ColumnWidth_internal.parse(v); var ext = new IgcColumnWidth(); ext._implementation = int; v = ext; } v == null ? this.i.width = null : this.i.width = v.i; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "minWidth", { /** * Gets or sets the minimum width to use for this column. Overrides the DefaultColumnMinWidth from the grid, if set. */ get: function () { return this.i.j0; }, set: function (v) { this.i.j0 = +v; this._a("minWidth", this.i.j0); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "isFromMarkup", { /** * Gets whether this column was projected from markup/templates and is constrained. */ get: function () { return this.i.jn; }, set: function (v) { this.i.jn = ensureBool(v); this._a("isFromMarkup", this.i.jn); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "isAutoGenerated", { /** * Gets whether this column was auto generated. */ get: function () { return this.i.jh; }, set: function (v) { this.i.jh = ensureBool(v); this._a("isAutoGenerated", this.i.jh); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "filter", { /** * Gets or sets a filter to apply on the values of this column */ get: function () { return this.i.g1; }, set: function (v) { this.i.g1 = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "filterExpression", { /** * Gets or sets a filter to apply to the values of this column. */ get: function () { return this.i.g3; }, set: function (v) { this.i.g3 = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "header", { /** * Gets or sets the header definition for this column. */ get: function () { var r = this.i.header; if (r == null) { return null; } if (!r.externalObject) { var e = IgcHeaderComponent._createFromInternal(r); if (e) { e._implementation = r; } r.externalObject = e; } return r.externalObject; }, set: function (v) { if (v != null && this._stylingContainer && v._styling) v._styling(this._stylingContainer, this, this); v == null ? this.i.header = null : this.i.header = v.i; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "isFilteringEnabled", { /** * Gets or sets whether filtering is enabled for this column. */ get: function () { return this.i.jm; }, set: function (v) { this.i.jm = ensureBool(v); this._a("isFilteringEnabled", this.i.jm); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "isResizingEnabled", { /** * Gets or sets whether resizing is enabled for this column. */ get: function () { return this.i.jp; }, set: function (v) { this.i.jp = ensureBool(v); this._a("isResizingEnabled", this.i.jp); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "isHidden", { /** * Gets or sets whether or not a column is hidden from the grid */ get: function () { return this.i.jo; }, set: function (v) { this.i.jo = ensureBool(v); this._a("isHidden", this.i.jo); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "shouldRemoveWhenHidden", { /** * Gets or sets if a column should be removed from the grid when it is fully hidden */ get: function () { return this.i.js; }, set: function (v) { this.i.js = ensureBool(v); this._a("shouldRemoveWhenHidden", this.i.js); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "sortDirection", { /** * Gets the current sort direction (None, Ascending, Descending) for this column. */ get: function () { return this.i.hr; }, set: function (v) { this.i.hr = ensureEnum(ColumnSortDirection_$type, v); this._a("sortDirection", enumToString(ColumnSortDirection_$type, this.i.hr)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "pinned", { /** * Gets or sets the current fixed position for this column. */ get: function () { return this.i.il; }, set: function (v) { this.i.il = ensureEnum(PinnedPositions_$type, v); this._a("pinned", enumToString(PinnedPositions_$type, this.i.il)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "actualColumnOptionsIconAlignment", { /** * Gets the actual column options icon alignment for this column. */ get: function () { return this.i.hi; }, set: function (v) { this.i.hi = ensureEnum(ColumnOptionsIconAlignment_$type, v); this._a("actualColumnOptionsIconAlignment", enumToString(ColumnOptionsIconAlignment_$type, this.i.hi)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "columnOptionsIconAlignment", { /** * Gets or sets whether the column options icon is aligned opposite the header text or not. */ get: function () { return this.i.hj; }, set: function (v) { this.i.hj = ensureEnum(ColumnOptionsIconAlignment_$type, v); this._a("columnOptionsIconAlignment", enumToString(ColumnOptionsIconAlignment_$type, this.i.hj)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "actualColumnOptionsIconColor", { /** * Gets the actual column options icon color for this column. */ get: function () { return brushToString(this.i.nr); }, set: function (v) { this.i.nr = stringToBrush(v); this._a("actualColumnOptionsIconColor", brushToString(this.i.nr)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "columnOptionsIconColor", { /** * Gets or sets the column options icon color for this column. */ get: function () { return brushToString(this.i.nw); }, set: function (v) { this.i.nw = stringToBrush(v); this._a("columnOptionsIconColor", brushToString(this.i.nw)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "columnOptionsIconBehavior", { /** * Gets or sets how the column option icon will behave in the column header. */ get: function () { return this.i.hn; }, set: function (v) { this.i.hn = ensureEnum(ColumnOptionsIconBehavior_$type, v); this._a("columnOptionsIconBehavior", enumToString(ColumnOptionsIconBehavior_$type, this.i.hn)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "actualColumnOptionsIconBehavior", { /** * Gets or sets how the column option icon will behave in the column header. */ get: function () { return this.i.hm; }, set: function (v) { this.i.hm = ensureEnum(ColumnOptionsIconBehavior_$type, v); this._a("actualColumnOptionsIconBehavior", enumToString(ColumnOptionsIconBehavior_$type, this.i.hm)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "actualIsColumnOptionsEnabled", { /** * Gets the actual state of the column options for this column. */ get: function () { return this.i.ja; }, set: function (v) { this.i.ja = ensureBool(v); this._a("actualIsColumnOptionsEnabled", this.i.ja); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "isColumnOptionsEnabled", { /** * Gets or sets the preferred state of the column options for this column. If the feature is disabled at the grid level * then it will be disabled for the column regardless of what this is set to. */ get: function () { return this.i.ji; }, set: function (v) { this.i.ji = ensureBool(v); this._a("isColumnOptionsEnabled", this.i.ji); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "actualIsColumnOptionsSummariesEnabled", { /** * Gets the actual state of summaries menu in the column options for this column. */ get: function () { return this.i.jc; }, set: function (v) { this.i.jc = ensureBool(v); this._a("actualIsColumnOptionsSummariesEnabled", this.i.jc); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "isColumnOptionsSummariesEnabled", { /** * Gets or sets whether to show the summaries option in the column options menu for this column. */ get: function () { return this.i.jk; }, set: function (v) { this.i.jk = ensureBool(v); this._a("isColumnOptionsSummariesEnabled", this.i.jk); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "actualIsColumnOptionsGroupingEnabled", { /** * Gets the actual state of grouping menu in the column options for this column. */ get: function () { return this.i.jb; }, set: function (v) { this.i.jb = ensureBool(v); this._a("actualIsColumnOptionsGroupingEnabled", this.i.jb); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "isColumnOptionsGroupingEnabled", { /** * Gets or sets whether to show the grouping option in the column options menu for this column. */ get: function () { return this.i.jj; }, set: function (v) { this.i.jj = ensureBool(v); this._a("isColumnOptionsGroupingEnabled", this.i.jj); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "isEditable", { /** * Gets or sets if the column is editable. */ get: function () { return this.i.jl; }, set: function (v) { this.i.jl = ensureBool(v); this._a("isEditable", this.i.jl); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "deletedTextColor", { /** * Gets or sets the text color used for deleted rows. */ get: function () { return brushToString(this.i.nx); }, set: function (v) { this.i.nx = stringToBrush(v); this._a("deletedTextColor", brushToString(this.i.nx)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "actualDeletedTextColor", { /** * Gets the actual text color used for deleted rows. */ get: function () { return brushToString(this.i.ns); }, set: function (v) { this.i.ns = stringToBrush(v); this._a("actualDeletedTextColor", brushToString(this.i.ns)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "editOpacity", { /** * Gets or sets the opacity to use for unsaved edited cell values. */ get: function () { return this.i.jz; }, set: function (v) { this.i.jz = +v; this._a("editOpacity", this.i.jz); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "actualEditOpacity", { /** * Gets the actual opacity for unsaved edited cell values. */ get: function () { return this.i.jy; }, set: function (v) { this.i.jy = +v; this._a("actualEditOpacity", this.i.jy); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "textEditStyle", { /** * Gets or sets the font style to use for unsaved cell edits. */ get: function () { if (this.i.textEditStyle == null) { return null; } return this.i.textEditStyle.fontString; }, set: function (v) { var fi = new FontInfo(); fi.fontString = v; this.i.textEditStyle = fi; this._a("textEditStyle", this.i.textEditStyle != null ? this.i.textEditStyle.fontString : ""); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "actualEditFontInfo", { /** * Gets the actual font style used for unsaved cell edits. */ get: function () { if (this.i.is == null) { return null; } return this.i.is.fontString; }, set: function (v) { var fi = new FontInfo(); fi.fontString = v; this.i.is = fi; this._a("actualEditFontInfo", this.i.is != null ? this.i.is.fontString : ""); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "mergedCellMode", { /** * Gets or sets if and how cell merging is performed for this field. */ get: function () { return this.i.ih; }, set: function (v) { this.i.ih = ensureEnum(MergedCellMode_$type, v); this._a("mergedCellMode", enumToString(MergedCellMode_$type, this.i.ih)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "mergedCellEvaluationCriteria", { /** * Gets or sets how cells are evaluated for merging. */ get: function () { return this.i.id; }, set: function (v) { this.i.id = ensureEnum(MergedCellEvaluationCriteria_$type, v); this._a("mergedCellEvaluationCriteria", enumToString(MergedCellEvaluationCriteria_$type, this.i.id)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "mergedCellVerticalAlignment", { /** * Gets or sets the vertical alignment to use for the merged cell content. */ get: function () { return this.i.ha; }, set: function (v) { this.i.ha = ensureEnum(CellContentVerticalAlignment_$type, v); this._a("mergedCellVerticalAlignment", enumToString(CellContentVerticalAlignment_$type, this.i.ha)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "mergedCellPaddingLeft", { /** * Gets or sets the amount of left padding to use for the cell content for this column. */ get: function () { return this.i.kd; }, set: function (v) { this.i.kd = +v; this._a("mergedCellPaddingLeft", this.i.kd); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "mergedCellPaddingTop", { /** * Gets or sets the amount of top padding to use for the cell content for this column. */ get: function () { return this.i.kf; }, set: function (v) { this.i.kf = +v; this._a("mergedCellPaddingTop", this.i.kf); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "mergedCellPaddingRight", { /** * Gets or sets the amount of right padding to use for the cell content of this column. */ get: function () { return this.i.ke; }, set: function (v) { this.i.ke = +v; this._a("mergedCellPaddingRight", this.i.ke); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "mergedCellPaddingBottom", { /** * Gets or sets the amount of bottom padding to use for the cell content of this column. */ get: function () { return this.i.kc; }, set: function (v) { this.i.kc = +v; this._a("mergedCellPaddingBottom", this.i.kc); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "filterComparisonType", { /** * Gets or sets whether UI filters are case sensitive or not. */ get: function () { return this.i.h1; }, set: function (v) { this.i.h1 = ensureEnum(FilterComparisonType_$type, v); this._a("filterComparisonType", enumToString(FilterComparisonType_$type, this.i.h1)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataGridColumnComponent.prototype, "filterOperands", { /** * Gets a list of the current custom filters for this column. */ get: function () { if (this._filterOperands === null) { var coll = new IgcGridFilterOperandsCollection(); var innerColl = this.i.h8; if (!innerColl) { innerColl = new GridFilterOperandsCollection_internal(); } this._filterOperands = coll._fromInner(innerColl); } return this._filterOperands; }, set: function (v) { if (this._filterOperands !== null) { this._filterOperands._setSyncTarget(null); this._filterOperands = null; } var coll = new IgcGridFilterOperandsCollection(); this._filterOperands = coll._fromOuter(v); var syncColl = new SyncableObservableCollection$1(FilterOperand.$type); var innerColl = this.i.h8; if (!innerColl) { innerColl = new GridFilterOperandsCollection_internal(); } syncColl._inner = innerColl; syncColl.clear(); this._filterOperands._setSyncTarget(syncColl); }, enumerable: false, configurable: true }); IgcDataGridColumnComponent.prototype.findByName = function (name) { var baseResult = _super.prototype.findByName.call(this, name); if (baseResult) { return baseResult; } if (this.animationSettings && this.animationSettings.name && this.animationSettings.name == name) { return this.animationSettings; } if (this.width && this.width.name && this.width.name == name) { return this.width; } if (this.header && this.header.name && this.header.name == name) { return this.header; } if (this.filterOperands != null && this.filterOperands.findByName && this.filterOperands.findByName(name)) { return this.filterOperands.findByName(name); } return null; }; IgcDataGridColumnComponent.prototype._styling = function (container, component, parent) { _super.prototype._styling.call(this, container, component, parent); this._inStyling = true; if (this.header && this.header._styling) { this.header._styling(container, component, this); } this._inStyling = false; }; /** * Get the unique key used to identify this column. */ IgcDataGridColumnComponent.prototype.getUniqueKey = function () { var iv = this.i.lt(); return (iv); }; IgcDataGridColumnComponent.prototype.setNamedHeaderValue = function (valueName, animationType, value) { this.i.m2(valueName, (animationType == null ? null : animationType), value); }; /** * Returns if the column has named header values. */ IgcDataGridColumnComponent.prototype.hasNamedHeaderValues = function () { var iv = this.i.jf(); return (iv); }; /** * Returns if there is a named header value with a given name. * @param valueName * The named value to check for. */ IgcDataGridColumnComponent.prototype.hasNamedHeaderValue = function (valueName) { var iv = this.i.je(valueName); return (iv); }; /** * Removes a named header value with the given name from the named header values for this column. * @param valueName * The named header value to remove. */ IgcDataGridColumnComponent.prototype.removeNamedHeaderValue = function (valueName) { this.i.m1(valueName); }; /** * Gets the value of a named header value for this column by name. * @param valueName * Name of the named header value to retrieve. */ IgcDataGridColumnComponent.prototype.getNamedHeaderValue = function (valueName) { var iv = this.i.kr(valueName); return (iv); }; IgcDataGridColumnComponent.prototype.applyCustomFilter = function (filterID, index, value) { this.i.mu(filterID, index, value); }; IgcDataGridColumnComponent.prototype.getDesiredToolbarActions = function () { var iv = this.i.getDesiredToolbarActions(); return (iv); }; IgcDataGridColumnComponent.prototype.addCommandAvailabilityListener = function (listener) { this.i.addCommandAvailabilityListener(listener); }; IgcDataGridColumnComponent.prototype.removeCommandAvailabilityListener = function (listener) { this.i.removeCommandAvailabilityListener(listener); }; IgcDataGridColumnComponent.prototype.addCommandStateChangedListener = function (listener) { this.i.addCommandStateChangedListener(listener); }; IgcDataGridColumnComponent.prototype.removeCommandStateChangedListener = function (listener) { this.i.removeCommandStateChangedListener(listener); }; Object.defineProperty(IgcDataGridColumnComponent.prototype, "actualHeaderTextChange", { get: function () { return this._actualHeaderTextChange; }, set: function (ev) { var _this = this; if (this._actualHeaderTextChange_wrapped !== null) { this.i.propertyChanged = delegateRemove(this.i.propertyChanged, this._actualHeaderTextChange_wrapped); this._actualHeaderTextChange_wrapped = null; this._actualHeaderTextChange = null; } this._actualHeaderTextChange = ev; this._actualHeaderTextChange_wrapped = function (o, e) { var ext = _this.actualHeaderText; if (e.propertyName == 'K3') { if (_this.beforeActualHeaderTextChange) { _this.beforeActualHeaderTextChange(_this, ext); } if (_this._actualHeaderTextChange) { _this._actualHeaderTextChange(_this, ext); } } }; this.i.propertyChanged = delegateCombine(this.i.propertyChanged, this._actualHeaderTextChange_wrapped); }, enumerable: false, configurable: true }); IgcDataGridColumnComponent._observedAttributesIgcDataGridColumnComponent = null; return IgcDataGridColumnComponent; }(IgcDefinitionBaseComponent)); export { IgcDataGridColumnComponent };