UNPKG

igniteui-webcomponents-charts

Version:

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

74 lines (72 loc) 3.36 kB
import { __extends } from "tslib"; import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; /** * Financial indicator base class for doing calculating an itemwize indicator. * An itemwise indicator's individual values don't depend on any other values in the * collection so can always be independently recalculated. Also, because of this, the * base class handles all the looping logic and inheritors only need to provide the * actual calculation. */ export var IgcItemwiseStrategyBasedIndicatorComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcItemwiseStrategyBasedIndicatorComponent, _super); function IgcItemwiseStrategyBasedIndicatorComponent() { return _super.call(this) || this; } Object.defineProperty(IgcItemwiseStrategyBasedIndicatorComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcItemwiseStrategyBasedIndicatorComponent.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(); } }; IgcItemwiseStrategyBasedIndicatorComponent.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(IgcItemwiseStrategyBasedIndicatorComponent, "observedAttributes", { get: function () { if (IgcItemwiseStrategyBasedIndicatorComponent._observedAttributesIgcItemwiseStrategyBasedIndicatorComponent == null) { var names = getAllPropertyNames(IgcItemwiseStrategyBasedIndicatorComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcItemwiseStrategyBasedIndicatorComponent._observedAttributesIgcItemwiseStrategyBasedIndicatorComponent = names; } return IgcItemwiseStrategyBasedIndicatorComponent._observedAttributesIgcItemwiseStrategyBasedIndicatorComponent; }, enumerable: false, configurable: true }); /** * This is a marker method to distinguish this from a public api perspective on some platforms compared to the base strategy based indicators. */ IgcItemwiseStrategyBasedIndicatorComponent.prototype.resolveIsItemwise = function () { var iv = this.i.ac3(); return (iv); }; IgcItemwiseStrategyBasedIndicatorComponent._observedAttributesIgcItemwiseStrategyBasedIndicatorComponent = null; return IgcItemwiseStrategyBasedIndicatorComponent; }(IgcStrategyBasedIndicatorComponent));