UNPKG

igniteui-webcomponents-charts

Version:

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

100 lines (99 loc) 3.96 kB
import { __extends } from "tslib"; import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component"; import { TRIXIndicator } from "./TRIXIndicator"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent TRIX indicator series. * Default required members: Close * * The `TRIXIndicator` class specify the series as Trix Indicator series. */ var IgcTRIXIndicatorComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcTRIXIndicatorComponent, _super); function IgcTRIXIndicatorComponent() { return _super.call(this) || this; } IgcTRIXIndicatorComponent.prototype.createImplementation = function () { return new TRIXIndicator(); }; Object.defineProperty(IgcTRIXIndicatorComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcTRIXIndicatorComponent.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(); } }; IgcTRIXIndicatorComponent.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(IgcTRIXIndicatorComponent, "observedAttributes", { get: function () { if (IgcTRIXIndicatorComponent._observedAttributesIgcTRIXIndicatorComponent == null) { var names = getAllPropertyNames(IgcTRIXIndicatorComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcTRIXIndicatorComponent._observedAttributesIgcTRIXIndicatorComponent = names; } return IgcTRIXIndicatorComponent._observedAttributesIgcTRIXIndicatorComponent; }, enumerable: false, configurable: true }); IgcTRIXIndicatorComponent.register = function () { if (!IgcTRIXIndicatorComponent._isElementRegistered) { IgcTRIXIndicatorComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcTRIXIndicatorComponent.htmlTagName, IgcTRIXIndicatorComponent); } }; Object.defineProperty(IgcTRIXIndicatorComponent.prototype, "period", { /** * Gets or sets the moving average period for the current TRIXIndicator object. * The typical, and initial, value for TRIX periods is 15. * * The `Period` property is used for moving average period of the current TRIXIndicator object. * * ```ts * this.series.period = 30; * ``` */ get: function () { return this.i.acl; }, set: function (v) { this.i.acl = +v; this._a("period", this.i.acl); }, enumerable: false, configurable: true }); IgcTRIXIndicatorComponent._observedAttributesIgcTRIXIndicatorComponent = null; IgcTRIXIndicatorComponent.htmlTagName = "igc-trix-indicator"; IgcTRIXIndicatorComponent._isElementRegistered = false; return IgcTRIXIndicatorComponent; }(IgcStrategyBasedIndicatorComponent)); export { IgcTRIXIndicatorComponent };