UNPKG

igniteui-react-core

Version:
102 lines (101 loc) 3.91 kB
import { IgrDataSourceSummaryDescription } from "./igr-data-source-summary-description"; import { DataSourceSummaryDescriptionCollection as DataSourceSummaryDescriptionCollection_internal } from "./DataSourceSummaryDescriptionCollection"; import { ensureBool } from "./componentUtil"; var IgrDataSourceSummaryDescriptionCollection = /** @class */ /*@__PURE__*/ (function () { function IgrDataSourceSummaryDescriptionCollection() { this.mounted = false; this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } IgrDataSourceSummaryDescriptionCollection.prototype.createImplementation = function () { return new DataSourceSummaryDescriptionCollection_internal(); }; Object.defineProperty(IgrDataSourceSummaryDescriptionCollection.prototype, "nativeElement", { get: function () { return this._implementation.nativeElement; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataSourceSummaryDescriptionCollection.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgrDataSourceSummaryDescriptionCollection.prototype.onImplementationCreated = function () { }; IgrDataSourceSummaryDescriptionCollection.prototype._provideImplementation = function (i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } }; Object.defineProperty(IgrDataSourceSummaryDescriptionCollection.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 }); IgrDataSourceSummaryDescriptionCollection.prototype.findByName = function (name) { if (this.findEphemera) { if (name && name.indexOf("@@e:") == 0) { return this.findEphemera(name); } } return null; }; IgrDataSourceSummaryDescriptionCollection.prototype.add = function (item) { var iv = this.i.g((item == null ? null : item.i)); return (iv); }; IgrDataSourceSummaryDescriptionCollection.prototype.insert = function (index, item) { this.i.p(index, (item == null ? null : item.i)); }; IgrDataSourceSummaryDescriptionCollection.prototype.clear = function () { this.i.o(); }; IgrDataSourceSummaryDescriptionCollection.prototype.indexOf = function (item) { var iv = this.i.k((item == null ? null : item.i)); return (iv); }; IgrDataSourceSummaryDescriptionCollection.prototype.remove = function (item) { var iv = this.i.h((item == null ? null : item.i)); return (iv); }; IgrDataSourceSummaryDescriptionCollection.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 IgrDataSourceSummaryDescription(); e._implementation = iv; iv.externalObject = e; ret = e; } } return ret; }; return IgrDataSourceSummaryDescriptionCollection; }()); export { IgrDataSourceSummaryDescriptionCollection };