UNPKG

igniteui-angular-core

Version:

Ignite UI Angular Core logic used in multiple UI components.

181 lines (180 loc) 6.31 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 { BaseGenericDataSource } from "./BaseGenericDataSource"; import { Number_$type, runOn, delegateCombine, markType } from "./type"; import { Dictionary$2 } from "./Dictionary$2"; import { GenericInternalVirtualDataSource } from "./GenericInternalVirtualDataSource"; import { InvalidOperationException } from "./InvalidOperationException"; /** * @hidden */ var GenericVirtualDataSource = /** @class */ /*@__PURE__*/ (function (_super) { __extends(GenericVirtualDataSource, _super); function GenericVirtualDataSource() { var _this = _super.call(this) || this; _this.ae = null; _this.ad = null; _this.ah = new Dictionary$2(Number_$type, GenericInternalVirtualDataSource.$, 0); _this.pageRequested = null; _this.ae = new GenericInternalVirtualDataSource(); _this.ae.executionContext = _this.t; _this.ae.isAggregationSupported = true; var a = _this.ae; a.pageRequested = delegateCombine(a.pageRequested, runOn(_this, _this.a1)); _this.m.e = _this.ae.sortDescriptions; _this.k.e = _this.ae.groupDescriptions; _this.o.e = _this.ae.summaryDescriptions; _this.q.syncTarget = _this.ae.filterExpressions; return _this; } GenericVirtualDataSource.prototype.r = function () { return this.ae; }; GenericVirtualDataSource.prototype.a1 = function (a, b) { this.ah.item(b.e, a); if (this.pageRequested != null) { this.pageRequested(this, b); } }; GenericVirtualDataSource.prototype.propertyUpdatedOverride = function (a, b, c) { _super.prototype.propertyUpdatedOverride.call(this, a, b, c); switch (a) { case "ExecutionContext": if (this.ae != null) { this.ae.executionContext = this.t; } break; } }; GenericVirtualDataSource.prototype.aa = function () { this.ae.queueAutoRefresh(); }; GenericVirtualDataSource.prototype.ag = function () { if (this.ad == null) { throw new InvalidOperationException(1, "Must call FillPageStart before trying to fill a page."); } return true; }; GenericVirtualDataSource.prototype.a0 = function (a) { this.ad = this.ah.item(a); this.ah.removeItem(a); this.ad.fillPageStart(a); }; GenericVirtualDataSource.prototype.az = function () { if (!this.ag()) { return; } this.ad.fillPageEnd(); this.ad = null; }; GenericVirtualDataSource.prototype.as = function (a) { if (!this.ag()) { return; } this.ad.fillCount(a); }; GenericVirtualDataSource.prototype.an = function (a, b) { if (!this.ag()) { return; } this.ad.fillColumnBool(a, b); }; GenericVirtualDataSource.prototype.aq = function (a, b) { if (!this.ag()) { return; } this.ad.fillColumnInt(a, b); }; GenericVirtualDataSource.prototype.ap = function (a, b) { if (!this.ag()) { return; } this.ad.fillColumnDouble(a, b); }; GenericVirtualDataSource.prototype.ar = function (a, b) { if (!this.ag()) { return; } this.ad.fillColumnString(a, b); }; GenericVirtualDataSource.prototype.ao = function (a, b) { if (!this.ag()) { return; } this.ad.fillColumnDate(a, b); }; GenericVirtualDataSource.prototype.ai = function (a, b) { if (!this.ag()) { return; } this.ad.addSchemaProperty(a, b); }; GenericVirtualDataSource.prototype.au = function (a, b) { if (!this.ag()) { return; } this.ad.fillGroupStart(a, b); }; GenericVirtualDataSource.prototype.at = function () { if (!this.ag()) { return; } this.ad.fillGroupEnd(); }; GenericVirtualDataSource.prototype.ax = function (a, b) { if (!this.ag()) { return; } this.ad.fillGroupValueInt(a, b); }; GenericVirtualDataSource.prototype.aw = function (a, b) { if (!this.ag()) { return; } this.ad.fillGroupValueDouble(a, b); }; GenericVirtualDataSource.prototype.ay = function (a, b) { if (!this.ag()) { return; } this.ad.fillGroupValueString(a, b); }; GenericVirtualDataSource.prototype.av = function (a, b) { if (!this.ag()) { return; } this.ad.fillGroupValueDate(a, b); }; GenericVirtualDataSource.prototype.al = function (a, b, c) { if (!this.ag()) { return; } this.ad.addSummaryInt(a, b, c); }; GenericVirtualDataSource.prototype.ak = function (a, b, c) { if (!this.ag()) { return; } this.ad.addSummaryDouble(a, b, c); }; GenericVirtualDataSource.prototype.am = function (a, b, c) { if (!this.ag()) { return; } this.ad.addSummaryString(a, b, c); }; GenericVirtualDataSource.prototype.aj = function (a, b, c) { if (!this.ag()) { return; } this.ad.addSummaryDate(a, b, c); }; GenericVirtualDataSource.$t = markType(GenericVirtualDataSource, 'GenericVirtualDataSource', BaseGenericDataSource.$); return GenericVirtualDataSource; }(BaseGenericDataSource)); export { GenericVirtualDataSource };