UNPKG

igniteui-angular-core

Version:

Ignite UI Angular Core logic used in multiple UI components.

95 lines (94 loc) 3.84 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 "./type"; import { SyncableObservableCollection$2 } from "./SyncableObservableCollection$2"; import { DataSourceGroupDescription } from "./DataSourceGroupDescription"; import { SortDescription } from "./SortDescription"; /** * @hidden */ var DataSourceGroupDescriptionCollection = /** @class */ /*@__PURE__*/ (function (_super) { __extends(DataSourceGroupDescriptionCollection, _super); function DataSourceGroupDescriptionCollection() { var _this = _super.call(this) || this; _this.f = new SyncableObservableCollection$2(DataSourceGroupDescription.$, SortDescription.$, 0); _this.d = null; var a = _this.f; a.compare = function (b, c) { if (b.f == c.propertyName) { return true; } return false; }; a.createFrom = function (b) { return new DataSourceGroupDescription(2, b.propertyName, b.direction); }; a.createTo = function (b) { var c = b.c; return SortDescription.create(b.f, c, null); }; return _this; } Object.defineProperty(DataSourceGroupDescriptionCollection.prototype, "e", { get: function () { return this.d; }, set: function (a) { if (a == null) { this.f.syncTarget = null; this.d = null; return; } this.d = a; this.f.syncTarget = this.d.getInner(); }, enumerable: false, configurable: true }); DataSourceGroupDescriptionCollection.prototype.g = function (a) { return this.f.add(a); }; DataSourceGroupDescriptionCollection.prototype.n = function (a, b) { this.f.add1(a, b); }; DataSourceGroupDescriptionCollection.prototype.m = function () { this.f.clear(); }; DataSourceGroupDescriptionCollection.prototype.get = function (a) { return this.f.get(a); }; DataSourceGroupDescriptionCollection.prototype.j = function (a) { return this.f.indexOf(a); }; DataSourceGroupDescriptionCollection.prototype.h = function (a) { return this.f.remove1(a); }; DataSourceGroupDescriptionCollection.prototype.b = function (a) { return this.f.remove(a); }; DataSourceGroupDescriptionCollection.prototype.set = function (a, b) { return this.f.set(a, b); }; DataSourceGroupDescriptionCollection.prototype.size = function () { return this.f.size(); }; DataSourceGroupDescriptionCollection.prototype.l = function (a) { this.f.addListener(a); }; DataSourceGroupDescriptionCollection.prototype.o = function (a) { this.f.removeListener(a); }; Object.defineProperty(DataSourceGroupDescriptionCollection.prototype, "i", { get: function () { return this.f.all; }, enumerable: false, configurable: true }); DataSourceGroupDescriptionCollection.$t = markType(DataSourceGroupDescriptionCollection, 'DataSourceGroupDescriptionCollection'); return DataSourceGroupDescriptionCollection; }(Base)); export { DataSourceGroupDescriptionCollection };