UNPKG

igniteui-react-core

Version:
102 lines (101 loc) 3.84 kB
import { IgrDataSourceSortDescription } from "./igr-data-source-sort-description"; import { DataSourceSortDescriptionCollection as DataSourceSortDescriptionCollection_internal } from "./DataSourceSortDescriptionCollection"; import { ensureBool } from "./componentUtil"; var IgrDataSourceSortDescriptionCollection = /** @class */ /*@__PURE__*/ (function () { function IgrDataSourceSortDescriptionCollection() { this.mounted = false; this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } IgrDataSourceSortDescriptionCollection.prototype.createImplementation = function () { return new DataSourceSortDescriptionCollection_internal(); }; Object.defineProperty(IgrDataSourceSortDescriptionCollection.prototype, "nativeElement", { get: function () { return this._implementation.nativeElement; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataSourceSortDescriptionCollection.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgrDataSourceSortDescriptionCollection.prototype.onImplementationCreated = function () { }; IgrDataSourceSortDescriptionCollection.prototype._provideImplementation = function (i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } }; Object.defineProperty(IgrDataSourceSortDescriptionCollection.prototype, "shouldDetachOnTargetChange", { /** * Gets or sets whether this collection should detach the sync when the target collection changes. */ get: function () { return this.i.i; }, set: function (v) { this.i.i = ensureBool(v); }, enumerable: false, configurable: true }); IgrDataSourceSortDescriptionCollection.prototype.findByName = function (name) { if (this.findEphemera) { if (name && name.indexOf("@@e:") == 0) { return this.findEphemera(name); } } return null; }; IgrDataSourceSortDescriptionCollection.prototype.add = function (item) { var iv = this.i.g((item == null ? null : item.i)); return (iv); }; IgrDataSourceSortDescriptionCollection.prototype.insert = function (index, item) { this.i.p(index, (item == null ? null : item.i)); }; IgrDataSourceSortDescriptionCollection.prototype.clear = function () { this.i.o(); }; IgrDataSourceSortDescriptionCollection.prototype.indexOf = function (item) { var iv = this.i.k((item == null ? null : item.i)); return (iv); }; IgrDataSourceSortDescriptionCollection.prototype.remove = function (item) { var iv = this.i.h((item == null ? null : item.i)); return (iv); }; IgrDataSourceSortDescriptionCollection.prototype.removeAt = function (index) { var iv = this.i.b(index); var ret = null; if (iv && iv.externalObject) { ret = iv.externalObject; } else { if (iv) { var e = new IgrDataSourceSortDescription(); e._implementation = iv; iv.externalObject = e; ret = e; } } return ret; }; return IgrDataSourceSortDescriptionCollection; }()); export { IgrDataSourceSortDescriptionCollection };