UNPKG

igniteui-webcomponents-charts

Version:

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

100 lines (99 loc) 4.63 kB
import { __extends } from "tslib"; import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component"; import { AverageDirectionalIndexIndicator } from "./AverageDirectionalIndexIndicator"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent Average Directional indicator series. * Default required members: High, Low, Close * * You can use the `AverageDirectionalIndexIndicator` to measures trend strength without regard to trend direction. */ var IgcAverageDirectionalIndexIndicatorComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcAverageDirectionalIndexIndicatorComponent, _super); function IgcAverageDirectionalIndexIndicatorComponent() { return _super.call(this) || this; } IgcAverageDirectionalIndexIndicatorComponent.prototype.createImplementation = function () { return new AverageDirectionalIndexIndicator(); }; Object.defineProperty(IgcAverageDirectionalIndexIndicatorComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcAverageDirectionalIndexIndicatorComponent.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(); } }; IgcAverageDirectionalIndexIndicatorComponent.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(IgcAverageDirectionalIndexIndicatorComponent, "observedAttributes", { get: function () { if (IgcAverageDirectionalIndexIndicatorComponent._observedAttributesIgcAverageDirectionalIndexIndicatorComponent == null) { var names = getAllPropertyNames(IgcAverageDirectionalIndexIndicatorComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcAverageDirectionalIndexIndicatorComponent._observedAttributesIgcAverageDirectionalIndexIndicatorComponent = names; } return IgcAverageDirectionalIndexIndicatorComponent._observedAttributesIgcAverageDirectionalIndexIndicatorComponent; }, enumerable: false, configurable: true }); IgcAverageDirectionalIndexIndicatorComponent.register = function () { if (!IgcAverageDirectionalIndexIndicatorComponent._isElementRegistered) { IgcAverageDirectionalIndexIndicatorComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcAverageDirectionalIndexIndicatorComponent.htmlTagName, IgcAverageDirectionalIndexIndicatorComponent); } }; Object.defineProperty(IgcAverageDirectionalIndexIndicatorComponent.prototype, "period", { /** * Gets or sets the moving average period for the current AverageDirectionalIndexIndicator object. * The typical, and initial, value for AverageDirectionalIndexIndicator periods is 14. * * You can use the `Period` to set the moving average. * * ```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 }); IgcAverageDirectionalIndexIndicatorComponent._observedAttributesIgcAverageDirectionalIndexIndicatorComponent = null; IgcAverageDirectionalIndexIndicatorComponent.htmlTagName = "igc-average-directional-index-indicator"; IgcAverageDirectionalIndexIndicatorComponent._isElementRegistered = false; return IgcAverageDirectionalIndexIndicatorComponent; }(IgcStrategyBasedIndicatorComponent)); export { IgcAverageDirectionalIndexIndicatorComponent };