UNPKG

igniteui-angular-core

Version:

Ignite UI Angular Core logic used in multiple UI components.

83 lines (82 loc) 2.7 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 { Base, String_$type, markType } from "./type"; import { IDataSourcePage_$type } from "./IDataSourcePage"; import { List$1 } from "./List$1"; import { Dictionary$2 } from "./Dictionary$2"; import { stringReplace } from "./string"; /** * @hidden */ export let GenericDataSourcePage = /*@__PURE__*/ (() => { class GenericDataSourcePage extends Base { constructor(a, b, c, d, e) { super(); this.g = 0; this.c = null; this.b = null; this.a = null; this.f = null; this.d = null; this.e = false; this.h = 0; this.f = a; this.c = b; this.a = c; this.b = d; this.g = e; } count() { return this.f != null ? this.f.count : 0; } getGroupInformation() { return this.a; } k(a) { this.a = a; } getItemAtIndex(a) { return this.f._inner[a]; } getItemValueAtIndex(a, b) { let c = this.f._inner[a]; let d = stringReplace(stringReplace(b, "[", ""), "]", ""); if (c.containsKey(d)) { return c.item(d); } return null; } getSummaryInformation() { return this.b; } m(a) { this.b = a; } pageIndex() { return this.g; } schema() { return this.c; } l(a) { this.c = a; } i(a) { } j(a, b, c) { if (this.f == null) { this.f = new List$1(Dictionary$2.$.specialize(String_$type, Base.$), 0); } for (let d = this.f.count; d <= a; d++) { this.f.add(new Dictionary$2(String_$type, Base.$, 0)); } this.f._inner[a].item(b, c); } } GenericDataSourcePage.$t = markType(GenericDataSourcePage, 'GenericDataSourcePage', Base.$, [IDataSourcePage_$type]); return GenericDataSourcePage; })();