UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

111 lines (110 loc) 4.27 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 { __extends } from "tslib"; import { Base, markType } from "igniteui-react-core"; import { SyncableObservableCollection$2 } from "igniteui-react-core"; import { ColumnSummaryDescription } from "./ColumnSummaryDescription"; import { SummaryDescription } from "igniteui-react-core"; /** * @hidden */ var ColumnSummaryDescriptionCollection = /** @class */ /*@__PURE__*/ (function (_super) { __extends(ColumnSummaryDescriptionCollection, _super); function ColumnSummaryDescriptionCollection() { var _this = _super.call(this) || this; _this.f = new SyncableObservableCollection$2(ColumnSummaryDescription.$, SummaryDescription.$, 0); _this.a = null; var a = _this.f; a.compare = function (b, c) { return b.ah == c.propertyName && b.i == c.operand && b.t == c.shouldDisplay && b.l == c.calculator && b.n == c; }; a.createFrom = function (b) { var c = new ColumnSummaryDescription(1, b.propertyName); c.i = b.operand; c.t = b.shouldDisplay; c.l = b.calculator; c.n = b; return c; }; a.createTo = function (b) { var c = new SummaryDescription(1, b.ah); c.operand = b.i; c.shouldDisplay = b.t; c.calculator = b.l; b.n = c; return c; }; return _this; } Object.defineProperty(ColumnSummaryDescriptionCollection.prototype, "i", { get: function () { return this.f.shouldDetachOnTargetChange; }, set: function (a) { this.f.shouldDetachOnTargetChange = a; }, enumerable: false, configurable: true }); Object.defineProperty(ColumnSummaryDescriptionCollection.prototype, "b", { get: function () { return this.a; }, set: function (a) { if (a == null) { this.f.syncTarget = null; this.a = null; return; } this.a = a; this.f.syncTarget = this.a.g(); }, enumerable: false, configurable: true }); ColumnSummaryDescriptionCollection.prototype.g = function (a) { return this.f.add(a); }; ColumnSummaryDescriptionCollection.prototype.o = function (a, b) { this.f.add1(a, b); }; ColumnSummaryDescriptionCollection.prototype.n = function () { this.f.clear(); }; ColumnSummaryDescriptionCollection.prototype.get = function (a) { return this.f.get(a); }; ColumnSummaryDescriptionCollection.prototype.k = function (a) { return this.f.indexOf(a); }; ColumnSummaryDescriptionCollection.prototype.h = function (a) { return this.f.remove1(a); }; ColumnSummaryDescriptionCollection.prototype.d = function (a) { return this.f.remove(a); }; ColumnSummaryDescriptionCollection.prototype.set = function (a, b) { return this.f.set(a, b); }; ColumnSummaryDescriptionCollection.prototype.size = function () { return this.f.size(); }; ColumnSummaryDescriptionCollection.prototype.m = function (a) { this.f.addListener(a); }; ColumnSummaryDescriptionCollection.prototype.p = function (a) { this.f.removeListener(a); }; Object.defineProperty(ColumnSummaryDescriptionCollection.prototype, "j", { get: function () { return this.f.all; }, enumerable: false, configurable: true }); ColumnSummaryDescriptionCollection.$t = markType(ColumnSummaryDescriptionCollection, 'ColumnSummaryDescriptionCollection'); return ColumnSummaryDescriptionCollection; }(Base)); export { ColumnSummaryDescriptionCollection };