UNPKG

igniteui-webcomponents-charts

Version:

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

97 lines (96 loc) 4.39 kB
import { __extends } from "tslib"; import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component"; import { CommodityChannelIndexIndicator } from "./CommodityChannelIndexIndicator"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent Commodity Channel Index indicator series. * Default required members: High, Low, Close * * `CommodityChannelIndexIndicator` class specify the series as Commodity Channel Index Indicator series. */ export var IgcCommodityChannelIndexIndicatorComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcCommodityChannelIndexIndicatorComponent, _super); function IgcCommodityChannelIndexIndicatorComponent() { return _super.call(this) || this; } IgcCommodityChannelIndexIndicatorComponent.prototype.createImplementation = function () { return new CommodityChannelIndexIndicator(); }; Object.defineProperty(IgcCommodityChannelIndexIndicatorComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcCommodityChannelIndexIndicatorComponent.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(); } }; IgcCommodityChannelIndexIndicatorComponent.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(IgcCommodityChannelIndexIndicatorComponent, "observedAttributes", { get: function () { if (IgcCommodityChannelIndexIndicatorComponent._observedAttributesIgcCommodityChannelIndexIndicatorComponent == null) { var names = getAllPropertyNames(IgcCommodityChannelIndexIndicatorComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcCommodityChannelIndexIndicatorComponent._observedAttributesIgcCommodityChannelIndexIndicatorComponent = names; } return IgcCommodityChannelIndexIndicatorComponent._observedAttributesIgcCommodityChannelIndexIndicatorComponent; }, enumerable: false, configurable: true }); IgcCommodityChannelIndexIndicatorComponent.register = function () { if (!IgcCommodityChannelIndexIndicatorComponent._isElementRegistered) { IgcCommodityChannelIndexIndicatorComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcCommodityChannelIndexIndicatorComponent.htmlTagName, IgcCommodityChannelIndexIndicatorComponent); } }; Object.defineProperty(IgcCommodityChannelIndexIndicatorComponent.prototype, "period", { /** * Gets or sets the moving average period for the current CCISeries object. * The typical, and initial, value for CCI periods is 20. * * ```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 }); IgcCommodityChannelIndexIndicatorComponent._observedAttributesIgcCommodityChannelIndexIndicatorComponent = null; IgcCommodityChannelIndexIndicatorComponent.htmlTagName = "igc-commodity-channel-index-indicator"; IgcCommodityChannelIndexIndicatorComponent._isElementRegistered = false; return IgcCommodityChannelIndexIndicatorComponent; }(IgcStrategyBasedIndicatorComponent));