UNPKG

igniteui-angular-core

Version:

Ignite UI Angular Core logic used in multiple UI components.

86 lines (85 loc) 3.21 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 { DependencyObject } from "./DependencyObject"; import { INotifyPropertyChanged_$type, PropertyChangedEventArgs, runOn, markType } from "./type"; import { DataSourceSortDescriptionCollection } from "./DataSourceSortDescriptionCollection"; import { DataSourceGroupDescriptionCollection } from "./DataSourceGroupDescriptionCollection"; import { DataSourceSummaryDescriptionCollection } from "./DataSourceSummaryDescriptionCollection"; import { FilterExpressionCollection } from "./FilterExpressionCollection"; import { DataSourceExecutionContext } from "./DataSourceExecutionContext"; /** * @hidden */ export let BaseGenericDataSource = /*@__PURE__*/ (() => { class BaseGenericDataSource extends DependencyObject { constructor() { super(); this.s = null; this.l = null; this.j = null; this.n = null; this.p = null; this.propertyChanged = null; this.t = new DataSourceExecutionContext(); this.l = new DataSourceSortDescriptionCollection(); this.l.m(runOn(this, this.ab)); this.j = new DataSourceGroupDescriptionCollection(); this.j.l(runOn(this, this.w)); this.n = new DataSourceSummaryDescriptionCollection(); this.n.m(runOn(this, this.ac)); this.p = new FilterExpressionCollection(); this.p.n(runOn(this, this.v)); } get t() { return this.s; } set t(a) { let b = this.s; this.s = a; if (this.s != b) { this.onPropertyUpdated("ExecutionContext", b, this.s); } } get m() { return this.l; } get k() { return this.j; } get o() { return this.n; } get q() { return this.p; } ab(a, b) { this.z(); } w(a, b) { this.z(); } ac(a, b) { this.z(); } v(a, b) { this.z(); } onPropertyUpdated(a, b, c) { if (this.propertyChanged != null) { this.propertyChanged(this, new PropertyChangedEventArgs(a)); } this.propertyUpdatedOverride(a, b, c); } propertyUpdatedOverride(a, b, c) { } z() { this.aa(); } } BaseGenericDataSource.$t = markType(BaseGenericDataSource, 'BaseGenericDataSource', DependencyObject.$, [INotifyPropertyChanged_$type]); return BaseGenericDataSource; })();