UNPKG

igniteui-webcomponents-charts

Version:

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

97 lines (96 loc) 3.8 kB
import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component"; import { MoneyFlowIndexIndicator } from "./MoneyFlowIndexIndicator"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent Money Flow Index indicator series. * Default required members: Close, Low, High, Volume * * Represents a Ignite UIDataChart Money Flow Index indicator series. * * Example: */ export let IgcMoneyFlowIndexIndicatorComponent = /*@__PURE__*/ (() => { class IgcMoneyFlowIndexIndicatorComponent extends IgcStrategyBasedIndicatorComponent { createImplementation() { return new MoneyFlowIndexIndicator(); } /** * @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 (IgcMoneyFlowIndexIndicatorComponent._observedAttributesIgcMoneyFlowIndexIndicatorComponent == null) { let names = getAllPropertyNames(IgcMoneyFlowIndexIndicatorComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcMoneyFlowIndexIndicatorComponent._observedAttributesIgcMoneyFlowIndexIndicatorComponent = names; } return IgcMoneyFlowIndexIndicatorComponent._observedAttributesIgcMoneyFlowIndexIndicatorComponent; } static register() { if (!IgcMoneyFlowIndexIndicatorComponent._isElementRegistered) { IgcMoneyFlowIndexIndicatorComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcMoneyFlowIndexIndicatorComponent.htmlTagName, IgcMoneyFlowIndexIndicatorComponent); } } /** * Gets default display type for the current Financial Indicator */ get defaultDisplayType() { return this.i.aa7; } /** * Gets or sets the moving average period for the current MoneyFlowIndexIndicator object. * The typical, and initial, value for MoneyFlowIndexIndicator periods is 14. * * Gets or sets the moving average period for the current MoneyFlowIndexIndicator object. * * Example: * * ```ts * this.series.period = 14; * ``` */ get period() { return this.i.acl; } set period(v) { this.i.acl = +v; this._a("period", this.i.acl); } } IgcMoneyFlowIndexIndicatorComponent._observedAttributesIgcMoneyFlowIndexIndicatorComponent = null; IgcMoneyFlowIndexIndicatorComponent.htmlTagName = "igc-money-flow-index-indicator"; IgcMoneyFlowIndexIndicatorComponent._isElementRegistered = false; return IgcMoneyFlowIndexIndicatorComponent; })();