igniteui-webcomponents-charts
Version:
Ignite UI Web Components 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-webcomponents-core";
import { SyncableObservableCollection$2 } from "igniteui-webcomponents-core";
import { FinancialOverlayType_$type } from './FinancialOverlayType';
import { ensureEnum } from "igniteui-webcomponents-core";
var IgcFinancialOverlayTypeCollection = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcFinancialOverlayTypeCollection, _super);
function IgcFinancialOverlayTypeCollection(list) {
var _this = _super.call(this) || this;
if (list) {
for (var i = 0; i < list.length; i++) {
_this.add(list[i]);
}
}
return _this;
}
IgcFinancialOverlayTypeCollection.prototype._ensureOuter = function (item) {
return ensureEnum(FinancialOverlayType_$type, item);
};
IgcFinancialOverlayTypeCollection.prototype._createInnerColl = function () {
var coll = new SyncableObservableCollection$2(FinancialOverlayType_$type, FinancialOverlayType_$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 IgcFinancialOverlayTypeCollection;
}(IgCollection));
export { IgcFinancialOverlayTypeCollection };