igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
40 lines (39 loc) • 1.55 kB
JavaScript
import { __extends } from "tslib";
import { IgCollection } from "igniteui-react-core";
import { SyncableObservableCollection$2 } from "igniteui-react-core";
import { FinancialIndicatorType_$type } from './FinancialIndicatorType';
import { ensureEnum } from "igniteui-react-core";
var IgrFinancialIndicatorTypeCollection = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgrFinancialIndicatorTypeCollection, _super);
function IgrFinancialIndicatorTypeCollection(list) {
var _this = _super.call(this) || this;
if (list) {
for (var i = 0; i < list.length; i++) {
_this.add(list[i]);
}
}
return _this;
}
IgrFinancialIndicatorTypeCollection.prototype._ensureOuter = function (item) {
return ensureEnum(FinancialIndicatorType_$type, item);
};
IgrFinancialIndicatorTypeCollection.prototype._createInnerColl = function () {
var coll = new SyncableObservableCollection$2(FinancialIndicatorType_$type, FinancialIndicatorType_$type, 0);
coll.compare = function (ext, int) {
var comp = ext;
if (comp.equals) {
return comp.equals(int);
}
return comp === int;
};
coll.createTo = function (ext) {
return ext;
};
coll.createFrom = function (int) {
return int;
};
return coll;
};
return IgrFinancialIndicatorTypeCollection;
}(IgCollection));
export { IgrFinancialIndicatorTypeCollection };