igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
95 lines (94 loc) • 3.73 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 { __extends } from "tslib";
import { Base, markType } from "igniteui-angular-core";
import { SyncableObservableCollection$2 } from "igniteui-angular-core";
import { ChartGroupDescription } from "./ChartGroupDescription";
import { SortDescription } from "igniteui-angular-core";
/**
* @hidden
*/
var ChartGroupDescriptionCollection = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(ChartGroupDescriptionCollection, _super);
function ChartGroupDescriptionCollection() {
var _this = _super.call(this) || this;
_this.f = new SyncableObservableCollection$2(ChartGroupDescription.$, SortDescription.$, 0);
_this.d = null;
var a = _this.f;
a.compare = function (b, c) {
if (b.f == c.propertyName) {
return true;
}
return false;
};
a.createFrom = function (b) { return new ChartGroupDescription(2, b.propertyName, b.direction); };
a.createTo = function (b) {
var c = b.c;
return SortDescription.create(b.f, c, null);
};
return _this;
}
Object.defineProperty(ChartGroupDescriptionCollection.prototype, "e", {
get: function () {
return this.d;
},
set: function (a) {
if (a == null) {
this.f.syncTarget = null;
this.d = null;
return;
}
this.d = a;
this.f.syncTarget = this.d.getInner();
},
enumerable: false,
configurable: true
});
ChartGroupDescriptionCollection.prototype.g = function (a) {
return this.f.add(a);
};
ChartGroupDescriptionCollection.prototype.n = function (a, b) {
this.f.add1(a, b);
};
ChartGroupDescriptionCollection.prototype.m = function () {
this.f.clear();
};
ChartGroupDescriptionCollection.prototype.get = function (a) {
return this.f.get(a);
};
ChartGroupDescriptionCollection.prototype.j = function (a) {
return this.f.indexOf(a);
};
ChartGroupDescriptionCollection.prototype.h = function (a) {
return this.f.remove1(a);
};
ChartGroupDescriptionCollection.prototype.b = function (a) {
return this.f.remove(a);
};
ChartGroupDescriptionCollection.prototype.set = function (a, b) {
return this.f.set(a, b);
};
ChartGroupDescriptionCollection.prototype.size = function () {
return this.f.size();
};
ChartGroupDescriptionCollection.prototype.l = function (a) {
this.f.addListener(a);
};
ChartGroupDescriptionCollection.prototype.o = function (a) {
this.f.removeListener(a);
};
Object.defineProperty(ChartGroupDescriptionCollection.prototype, "i", {
get: function () {
return this.f.all;
},
enumerable: false,
configurable: true
});
ChartGroupDescriptionCollection.$t = markType(ChartGroupDescriptionCollection, 'ChartGroupDescriptionCollection');
return ChartGroupDescriptionCollection;
}(Base));
export { ChartGroupDescriptionCollection };