UNPKG

igniteui-angular-core

Version:

Ignite UI Angular Core logic used in multiple UI components.

111 lines (110 loc) 4.4 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 { DataSourceSortDescription } from "./DataSourceSortDescription"; import { SortDescription } from "./SortDescription"; /** * @hidden */ var DataSourceSortDescriptionCollection = /** @class */ /*@__PURE__*/ (function (_super) { __extends(DataSourceSortDescriptionCollection, _super); function DataSourceSortDescriptionCollection() { var _this = _super.call(this) || this; _this.f = new SyncableObservableCollection$2(DataSourceSortDescription.$, 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 DataSourceSortDescription(2, b.propertyName, b.direction); }; a.createTo = function (b) { var c = b.c; return SortDescription.create(b.f, c, null); }; return _this; } Object.defineProperty(DataSourceSortDescriptionCollection.prototype, "i", { get: function () { return this.f.shouldDetachOnTargetChange; }, set: function (a) { this.f.shouldDetachOnTargetChange = a; }, enumerable: false, configurable: true }); Object.defineProperty(DataSourceSortDescriptionCollection.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 }); DataSourceSortDescriptionCollection.prototype.g = function (a) { return this.f.add(a); }; DataSourceSortDescriptionCollection.prototype.n = function (a) { this.f.addOneWayTarget(a.getInner()); }; DataSourceSortDescriptionCollection.prototype.r = function (a) { this.f.removeOneWayTarget(a.getInner()); }; DataSourceSortDescriptionCollection.prototype.p = function (a, b) { this.f.add1(a, b); }; DataSourceSortDescriptionCollection.prototype.o = function () { this.f.clear(); }; DataSourceSortDescriptionCollection.prototype.get = function (a) { return this.f.get(a); }; DataSourceSortDescriptionCollection.prototype.k = function (a) { return this.f.indexOf(a); }; DataSourceSortDescriptionCollection.prototype.h = function (a) { return this.f.remove1(a); }; DataSourceSortDescriptionCollection.prototype.b = function (a) { return this.f.remove(a); }; DataSourceSortDescriptionCollection.prototype.set = function (a, b) { return this.f.set(a, b); }; DataSourceSortDescriptionCollection.prototype.size = function () { return this.f.size(); }; DataSourceSortDescriptionCollection.prototype.m = function (a) { this.f.addListener(a); }; DataSourceSortDescriptionCollection.prototype.q = function (a) { this.f.removeListener(a); }; Object.defineProperty(DataSourceSortDescriptionCollection.prototype, "j", { get: function () { return this.f.all; }, enumerable: false, configurable: true }); DataSourceSortDescriptionCollection.$t = markType(DataSourceSortDescriptionCollection, 'DataSourceSortDescriptionCollection'); return DataSourceSortDescriptionCollection; }(Base)); export { DataSourceSortDescriptionCollection };