UNPKG

igniteui-webcomponents-charts

Version:

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

109 lines (108 loc) 4.51 kB
import { __extends } from "tslib"; import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component"; import { ForceIndexIndicator } from "./ForceIndexIndicator"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent Force Index indicator series. * Default required members: Close, Volume * * The `ForceIndexIndicator` represents a IgxDataChartComponent Force Index indicator series. */ export var IgcForceIndexIndicatorComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcForceIndexIndicatorComponent, _super); function IgcForceIndexIndicatorComponent() { return _super.call(this) || this; } IgcForceIndexIndicatorComponent.prototype.createImplementation = function () { return new ForceIndexIndicator(); }; Object.defineProperty(IgcForceIndexIndicatorComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcForceIndexIndicatorComponent.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(); } }; IgcForceIndexIndicatorComponent.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(IgcForceIndexIndicatorComponent, "observedAttributes", { get: function () { if (IgcForceIndexIndicatorComponent._observedAttributesIgcForceIndexIndicatorComponent == null) { var names = getAllPropertyNames(IgcForceIndexIndicatorComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcForceIndexIndicatorComponent._observedAttributesIgcForceIndexIndicatorComponent = names; } return IgcForceIndexIndicatorComponent._observedAttributesIgcForceIndexIndicatorComponent; }, enumerable: false, configurable: true }); IgcForceIndexIndicatorComponent.register = function () { if (!IgcForceIndexIndicatorComponent._isElementRegistered) { IgcForceIndexIndicatorComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcForceIndexIndicatorComponent.htmlTagName, IgcForceIndexIndicatorComponent); } }; Object.defineProperty(IgcForceIndexIndicatorComponent.prototype, "defaultDisplayType", { /** * Gets default display type for the current Financial Indicator */ get: function () { return this.i.abn; }, enumerable: false, configurable: true }); Object.defineProperty(IgcForceIndexIndicatorComponent.prototype, "period", { /** * Gets or sets the moving average period for the current AverageTrueRangeSeries object. * The typical, and initial, value for ForceIndiex periods is 0. * * You can use the `period` property to get the moving average period of the current FullStochasticOscillatorIndicator object * * ```ts * this.series.period = 30; * ``` */ get: function () { return this.i.ac1; }, set: function (v) { this.i.ac1 = +v; this._a("period", this.i.ac1); }, enumerable: false, configurable: true }); IgcForceIndexIndicatorComponent._observedAttributesIgcForceIndexIndicatorComponent = null; IgcForceIndexIndicatorComponent.htmlTagName = "igc-force-index-indicator"; IgcForceIndexIndicatorComponent._isElementRegistered = false; return IgcForceIndexIndicatorComponent; }(IgcStrategyBasedIndicatorComponent));