UNPKG

igniteui-webcomponents-charts

Version:

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

66 lines (64 loc) 2.81 kB
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 let IgcItemwiseStrategyBasedIndicatorComponent = /*@__PURE__*/ (() => { class IgcItemwiseStrategyBasedIndicatorComponent extends IgcStrategyBasedIndicatorComponent { /** * @hidden */ get i() { return this._implementation; } constructor() { super(); } connectedCallback() { if (super["connectedCallback"]) { super["connectedCallback"](); } if (this.i.connectedCallback) { this.i.connectedCallback(); } if (!this._attached) { this._attached = true; this._flushQueuedAttributes(); } } disconnectedCallback() { if (super["disconnectedCallback"]) { super["disconnectedCallback"](); } if (this.i.disconnectedCallback) { this.i.disconnectedCallback(); } if (this._attached) { this._attached = false; } } static get observedAttributes() { if (IgcItemwiseStrategyBasedIndicatorComponent._observedAttributesIgcItemwiseStrategyBasedIndicatorComponent == null) { let names = getAllPropertyNames(IgcItemwiseStrategyBasedIndicatorComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcItemwiseStrategyBasedIndicatorComponent._observedAttributesIgcItemwiseStrategyBasedIndicatorComponent = names; } return IgcItemwiseStrategyBasedIndicatorComponent._observedAttributesIgcItemwiseStrategyBasedIndicatorComponent; } /** * This is a marker method to distinguish this from a public api perspective on some platforms compared to the base strategy based indicators. */ resolveIsItemwise() { let iv = this.i.acn(); return (iv); } } IgcItemwiseStrategyBasedIndicatorComponent._observedAttributesIgcItemwiseStrategyBasedIndicatorComponent = null; return IgcItemwiseStrategyBasedIndicatorComponent; })();