UNPKG

igniteui-react-charts

Version:

Ignite UI React charting components for building rich data visualizations using TypeScript APIs.

117 lines (116 loc) 4.33 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 { __extends, __values } from "tslib"; import { LegendBase } from "./LegendBase"; import { LegendBaseView } from "./LegendBaseView"; import { fromEn, delegateCombine, typeCast, markType } from "igniteui-react-core"; import { LegendItemInfo } from "./LegendItemInfo"; import { ContentControl } from "igniteui-react-core"; import { ILegendContext_$type } from "igniteui-react-core"; import { FinancialLegendViewManager } from "./FinancialLegendViewManager"; /** * @hidden */ var FinancialLegend = /** @class */ /*@__PURE__*/ (function (_super) { __extends(FinancialLegend, _super); function FinancialLegend() { var _this = _super.call(this) || this; _this.ab = FinancialLegend.$; var a = _this.aw; a.collectionChanged = delegateCombine(a.collectionChanged, function (a, b) { var e_1, _a, e_2, _b; if (b.oldItems != null) { try { for (var _c = __values(fromEn(b.oldItems)), _d = _c.next(); !_d.done; _d = _c.next()) { var c = _d.value; _this.bj.ao(c); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_1) throw e_1.error; } } } if (b.newItems != null) { try { for (var _e = __values(fromEn(b.newItems)), _f = _e.next(); !_f.done; _f = _e.next()) { var d = _f.value; _this.bj.y(d); } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_2) throw e_2.error; } } } }); return _this; } FinancialLegend.prototype.aj = function () { return new FinancialLegendView(this); }; Object.defineProperty(FinancialLegend.prototype, "bj", { get: function () { return this.ak; }, enumerable: false, configurable: true }); FinancialLegend.prototype.addChildInOrder = function (a, b) { this.aw.add(a); var c = new LegendItemInfo(); c.c = a; c.a = b; var d = typeCast(ContentControl.$, a); if (d != null && d.content != null) { var e = typeCast(ILegendContext_$type, d.content); if (e != null) { c.b = e; c.d = e.itemLabel; } } this.ax.add(c); }; FinancialLegend.prototype.get_isFinancial = function () { return true; }; FinancialLegend.$t = markType(FinancialLegend, 'FinancialLegend', LegendBase.$); return FinancialLegend; }(LegendBase)); export { FinancialLegend }; /** * @hidden */ var FinancialLegendView = /** @class */ /*@__PURE__*/ (function (_super) { __extends(FinancialLegendView, _super); function FinancialLegendView(a) { var _this = _super.call(this, a) || this; _this.d = new FinancialLegendViewManager(_this); return _this; } FinancialLegendView.$t = markType(FinancialLegendView, 'FinancialLegendView', LegendBaseView.$); return FinancialLegendView; }(LegendBaseView)); export { FinancialLegendView };