UNPKG

igniteui-webcomponents-charts

Version:

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

114 lines (113 loc) 4.69 kB
import { __extends } from "tslib"; 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: */ var IgcMoneyFlowIndexIndicatorComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcMoneyFlowIndexIndicatorComponent, _super); function IgcMoneyFlowIndexIndicatorComponent() { return _super.call(this) || this; } IgcMoneyFlowIndexIndicatorComponent.prototype.createImplementation = function () { return new MoneyFlowIndexIndicator(); }; Object.defineProperty(IgcMoneyFlowIndexIndicatorComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcMoneyFlowIndexIndicatorComponent.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(); } }; IgcMoneyFlowIndexIndicatorComponent.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(IgcMoneyFlowIndexIndicatorComponent, "observedAttributes", { get: function () { if (IgcMoneyFlowIndexIndicatorComponent._observedAttributesIgcMoneyFlowIndexIndicatorComponent == null) { var names = getAllPropertyNames(IgcMoneyFlowIndexIndicatorComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcMoneyFlowIndexIndicatorComponent._observedAttributesIgcMoneyFlowIndexIndicatorComponent = names; } return IgcMoneyFlowIndexIndicatorComponent._observedAttributesIgcMoneyFlowIndexIndicatorComponent; }, enumerable: false, configurable: true }); IgcMoneyFlowIndexIndicatorComponent.register = function () { if (!IgcMoneyFlowIndexIndicatorComponent._isElementRegistered) { IgcMoneyFlowIndexIndicatorComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcMoneyFlowIndexIndicatorComponent.htmlTagName, IgcMoneyFlowIndexIndicatorComponent); } }; Object.defineProperty(IgcMoneyFlowIndexIndicatorComponent.prototype, "defaultDisplayType", { /** * Gets default display type for the current Financial Indicator */ get: function () { return this.i.aa7; }, enumerable: false, configurable: true }); Object.defineProperty(IgcMoneyFlowIndexIndicatorComponent.prototype, "period", { /** * 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: function () { return this.i.acl; }, set: function (v) { this.i.acl = +v; this._a("period", this.i.acl); }, enumerable: false, configurable: true }); IgcMoneyFlowIndexIndicatorComponent._observedAttributesIgcMoneyFlowIndexIndicatorComponent = null; IgcMoneyFlowIndexIndicatorComponent.htmlTagName = "igc-money-flow-index-indicator"; IgcMoneyFlowIndexIndicatorComponent._isElementRegistered = false; return IgcMoneyFlowIndexIndicatorComponent; }(IgcStrategyBasedIndicatorComponent)); export { IgcMoneyFlowIndexIndicatorComponent };