UNPKG

igniteui-angular-core

Version:

Ignite UI Angular Core logic used in multiple UI components.

179 lines (178 loc) 5.58 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 { 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 */ export let GenericVirtualDataSource = /*@__PURE__*/ (() => { class GenericVirtualDataSource extends BaseGenericDataSource { constructor() { super(); 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; let 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; } r() { return this.ae; } a1(a, b) { this.ah.item(b.e, a); if (this.pageRequested != null) { this.pageRequested(this, b); } } propertyUpdatedOverride(a, b, c) { super.propertyUpdatedOverride(a, b, c); switch (a) { case "ExecutionContext": if (this.ae != null) { this.ae.executionContext = this.t; } break; } } aa() { this.ae.queueAutoRefresh(); } ag() { if (this.ad == null) { throw new InvalidOperationException(1, "Must call FillPageStart before trying to fill a page."); } return true; } a0(a) { this.ad = this.ah.item(a); this.ah.removeItem(a); this.ad.fillPageStart(a); } az() { if (!this.ag()) { return; } this.ad.fillPageEnd(); this.ad = null; } as(a) { if (!this.ag()) { return; } this.ad.fillCount(a); } an(a, b) { if (!this.ag()) { return; } this.ad.fillColumnBool(a, b); } aq(a, b) { if (!this.ag()) { return; } this.ad.fillColumnInt(a, b); } ap(a, b) { if (!this.ag()) { return; } this.ad.fillColumnDouble(a, b); } ar(a, b) { if (!this.ag()) { return; } this.ad.fillColumnString(a, b); } ao(a, b) { if (!this.ag()) { return; } this.ad.fillColumnDate(a, b); } ai(a, b) { if (!this.ag()) { return; } this.ad.addSchemaProperty(a, b); } au(a, b) { if (!this.ag()) { return; } this.ad.fillGroupStart(a, b); } at() { if (!this.ag()) { return; } this.ad.fillGroupEnd(); } ax(a, b) { if (!this.ag()) { return; } this.ad.fillGroupValueInt(a, b); } aw(a, b) { if (!this.ag()) { return; } this.ad.fillGroupValueDouble(a, b); } ay(a, b) { if (!this.ag()) { return; } this.ad.fillGroupValueString(a, b); } av(a, b) { if (!this.ag()) { return; } this.ad.fillGroupValueDate(a, b); } al(a, b, c) { if (!this.ag()) { return; } this.ad.addSummaryInt(a, b, c); } ak(a, b, c) { if (!this.ag()) { return; } this.ad.addSummaryDouble(a, b, c); } am(a, b, c) { if (!this.ag()) { return; } this.ad.addSummaryString(a, b, c); } aj(a, b, c) { if (!this.ag()) { return; } this.ad.addSummaryDate(a, b, c); } } GenericVirtualDataSource.$t = markType(GenericVirtualDataSource, 'GenericVirtualDataSource', BaseGenericDataSource.$); return GenericVirtualDataSource; })();