UNPKG

igniteui-webcomponents-grids

Version:

Ignite UI Web Components grid components.

117 lines (116 loc) 4.6 kB
import { DataBindingEventArgs as DataBindingEventArgs_internal } from "./DataBindingEventArgs"; import { IgcDateTimeCellInfo } from "./igc-date-time-cell-info"; import { IgcImageCellInfo } from "./igc-image-cell-info"; import { IgcNumericCellInfo } from "./igc-numeric-cell-info"; import { IgcRowSeparatorInfo } from "./igc-row-separator-info"; import { IgcSectionHeaderCellInfo } from "./igc-section-header-cell-info"; import { IgcTemplateCellInfo } from "./igc-template-cell-info"; import { IgcTemplateHeaderCellInfo } from "./igc-template-header-cell-info"; import { IgcTemplateSectionHeaderCellInfo } from "./igc-template-section-header-cell-info"; import { IgcTextCellInfo } from "./igc-text-cell-info"; import { IgcTextHeaderCellInfo } from "./igc-text-header-cell-info"; /** * Information about the data binding taking place. */ var IgcDataBindingEventArgs = /** @class */ /*@__PURE__*/ (function () { function IgcDataBindingEventArgs() { this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); } IgcDataBindingEventArgs.prototype.createImplementation = function () { return new DataBindingEventArgs_internal(); }; Object.defineProperty(IgcDataBindingEventArgs.prototype, "i", { get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcDataBindingEventArgs.prototype.onImplementationCreated = function () { }; IgcDataBindingEventArgs.prototype._provideImplementation = function (i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); }; Object.defineProperty(IgcDataBindingEventArgs.prototype, "cellInfo", { /** * The backing information for the current cell. */ get: function () { if (this.i.cellInfo == null) { return null; } if (!this.i.cellInfo.externalObject) { var ext = null; switch (this.i.cellInfo.$type.name) { case "DateTimeCellModel": ext = new IgcDateTimeCellInfo(); break; case "ImageCellModel": ext = new IgcImageCellInfo(); break; case "NumericCellModel": ext = new IgcNumericCellInfo(); break; case "RowSeparatorModel": ext = new IgcRowSeparatorInfo(); break; case "SectionHeaderCellModel": ext = new IgcSectionHeaderCellInfo(); break; case "TemplateCellModel": ext = new IgcTemplateCellInfo(); break; case "TemplateHeaderCellModel": ext = new IgcTemplateHeaderCellInfo(); break; case "TemplateSectionHeaderCellModel": ext = new IgcTemplateSectionHeaderCellInfo(); break; case "TextCellModel": ext = new IgcTextCellInfo(); break; case "TextHeaderCellModel": ext = new IgcTextHeaderCellInfo(); break; } ext._implementation = this.i.cellInfo; this.i.cellInfo.externalObject = ext; } return this.i.cellInfo.externalObject; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataBindingEventArgs.prototype, "resolvedValue", { /** * The resolved value for the cell. */ get: function () { return this.i.resolvedValue; }, set: function (v) { this.i.resolvedValue = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataBindingEventArgs.prototype, "rowObject", { /** * The data for the row in which the cell is contained. */ get: function () { return this.i.rowObject; }, set: function (v) { this.i.rowObject = v; }, enumerable: false, configurable: true }); return IgcDataBindingEventArgs; }()); export { IgcDataBindingEventArgs };