igniteui-angular-core
Version:
Ignite UI Angular Core logic used in multiple UI components.
126 lines (125 loc) • 4.2 kB
JavaScript
/*
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 { VirtualDataSource } from "./VirtualDataSource";
import { IExternalDataSource_$type } from "./IExternalDataSource";
import { GenericInternalVirtualDataProvider } from "./GenericInternalVirtualDataProvider";
import { runOn, delegateCombine, markType } from "./type";
/**
* @hidden
*/
export let GenericInternalVirtualDataSource = /*@__PURE__*/ (() => {
class GenericInternalVirtualDataSource extends VirtualDataSource {
constructor() {
super();
this._isAggregationSupported = false;
this.pageRequested = null;
this._isClone = false;
this.externalDataSource = this;
}
get isSortingSupportedOverride() {
return true;
}
get isFilteringSupportedOverride() {
return false;
}
get isGroupingSupportedOverride() {
return this.isAggregationSupported;
}
get isAggregationSupported() {
return this._isAggregationSupported;
}
set isAggregationSupported(a) {
this._isAggregationSupported = a;
}
get e4() {
return this.actualDataProvider;
}
get isClone() {
return this._isClone;
}
set isClone(a) {
this._isClone = a;
}
resolveDataProvider() {
let a = new GenericInternalVirtualDataProvider();
a.pageRequested = delegateCombine(a.pageRequested, runOn(this, this.fr));
return a;
}
fr(a, b) {
if (this.pageRequested != null) {
this.pageRequested(this, b);
}
}
fillPageStart(a) {
this.e4.a7(a);
}
fillPageEnd() {
this.e4.a6();
}
fillCount(a) {
this.e4.ay(a);
}
fillColumnBool(a, b) {
this.e4.at(a, b);
}
fillColumnInt(a, b) {
this.e4.aw(a, b);
}
fillColumnDouble(a, b) {
this.e4.av(a, b);
}
fillColumnString(a, b) {
this.e4.ax(a, b);
}
fillColumnDate(a, b) {
this.e4.au(a, b);
}
addSchemaProperty(a, b) {
this.e4.an(a, b);
}
fillGroupStart(a, b) {
this.e4.a0(a, b);
}
fillGroupEnd() {
this.e4.az();
}
fillGroupValueInt(a, b) {
this.e4.a4(a, b);
}
fillGroupValueDouble(a, b) {
this.e4.a3(a, b);
}
fillGroupValueString(a, b) {
this.e4.a5(a, b);
}
fillGroupValueDate(a, b) {
this.e4.a2(a, b);
}
addSummaryInt(a, b, c) {
this.e4.ar(a, b, c);
}
addSummaryDouble(a, b, c) {
this.e4.aq(a, b, c);
}
addSummaryString(a, b, c) {
this.e4.as(a, b, c);
}
addSummaryDate(a, b, c) {
this.e4.ap(a, b, c);
}
clone() {
let a = new GenericInternalVirtualDataSource();
a.isClone = true;
a.isAggregationSupported = this.isAggregationSupported;
a.pageRequested = delegateCombine(a.pageRequested, this.pageRequested);
this.cloneProperties(a);
return a;
}
}
GenericInternalVirtualDataSource.$t = markType(GenericInternalVirtualDataSource, 'GenericInternalVirtualDataSource', VirtualDataSource.$, [IExternalDataSource_$type]);
return GenericInternalVirtualDataSource;
})();