UNPKG

igniteui-webcomponents-charts

Version:

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

73 lines (72 loc) 3.27 kB
import { __extends } from "tslib"; import { IgcFinancialIndicatorComponent } from "./igc-financial-indicator-component"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; /** * A base class for indicator series with simple calculations that separates the calculation * responsibility from the other responsibilities of the financial series, this enables * easier unit testing and decoupling of individual calculation strategies. * A contract is defined between the financial series and these simple indicator calculations * detailing the data which the series agrees to provide the simple indicator calculations, * this contract is defined by * FinancialCalculationDataSource. If more * complex interactions are needed between the indicator calculation and the series, the * indicators should instead derive from * FinancialIndicator directly, or some * derivative other than * StrategyBasedIndicator */ export var IgcStrategyBasedIndicatorComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcStrategyBasedIndicatorComponent, _super); function IgcStrategyBasedIndicatorComponent() { return _super.call(this) || this; } Object.defineProperty(IgcStrategyBasedIndicatorComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcStrategyBasedIndicatorComponent.prototype.connectedCallback = function () { if (_super.prototype["connectedCallback"]) { _super.prototype["connectedCallback"].call(this); } if (this.i.connectedCallback) { this.i.connectedCallback(); } if (!this._attached) { this._attached = true; this._flushQueuedAttributes(); } }; IgcStrategyBasedIndicatorComponent.prototype.disconnectedCallback = function () { if (_super.prototype["disconnectedCallback"]) { _super.prototype["disconnectedCallback"].call(this); } if (this.i.disconnectedCallback) { this.i.disconnectedCallback(); } if (this._attached) { this._attached = false; } }; Object.defineProperty(IgcStrategyBasedIndicatorComponent, "observedAttributes", { get: function () { if (IgcStrategyBasedIndicatorComponent._observedAttributesIgcStrategyBasedIndicatorComponent == null) { var names = getAllPropertyNames(IgcStrategyBasedIndicatorComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcStrategyBasedIndicatorComponent._observedAttributesIgcStrategyBasedIndicatorComponent = names; } return IgcStrategyBasedIndicatorComponent._observedAttributesIgcStrategyBasedIndicatorComponent; }, enumerable: false, configurable: true }); IgcStrategyBasedIndicatorComponent._observedAttributesIgcStrategyBasedIndicatorComponent = null; return IgcStrategyBasedIndicatorComponent; }(IgcFinancialIndicatorComponent));