UNPKG

igniteui-webcomponents-charts

Version:

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

78 lines (77 loc) 3.67 kB
import { __extends } from "tslib"; import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component"; import { PriceVolumeTrendIndicator } from "./PriceVolumeTrendIndicator"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent Price Volume Trend Indicator series. * Default required members: Volume, Close * * You can use the `PriceVolumeTrendIndicator` to measure money flow by adding or subtracting a portion of the daily volume. */ export var IgcPriceVolumeTrendIndicatorComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcPriceVolumeTrendIndicatorComponent, _super); function IgcPriceVolumeTrendIndicatorComponent() { return _super.call(this) || this; } IgcPriceVolumeTrendIndicatorComponent.prototype.createImplementation = function () { return new PriceVolumeTrendIndicator(); }; Object.defineProperty(IgcPriceVolumeTrendIndicatorComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcPriceVolumeTrendIndicatorComponent.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(); } }; IgcPriceVolumeTrendIndicatorComponent.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(IgcPriceVolumeTrendIndicatorComponent, "observedAttributes", { get: function () { if (IgcPriceVolumeTrendIndicatorComponent._observedAttributesIgcPriceVolumeTrendIndicatorComponent == null) { var names = getAllPropertyNames(IgcPriceVolumeTrendIndicatorComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcPriceVolumeTrendIndicatorComponent._observedAttributesIgcPriceVolumeTrendIndicatorComponent = names; } return IgcPriceVolumeTrendIndicatorComponent._observedAttributesIgcPriceVolumeTrendIndicatorComponent; }, enumerable: false, configurable: true }); IgcPriceVolumeTrendIndicatorComponent.register = function () { if (!IgcPriceVolumeTrendIndicatorComponent._isElementRegistered) { IgcPriceVolumeTrendIndicatorComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcPriceVolumeTrendIndicatorComponent.htmlTagName, IgcPriceVolumeTrendIndicatorComponent); } }; IgcPriceVolumeTrendIndicatorComponent._observedAttributesIgcPriceVolumeTrendIndicatorComponent = null; IgcPriceVolumeTrendIndicatorComponent.htmlTagName = "igc-price-volume-trend-indicator"; IgcPriceVolumeTrendIndicatorComponent._isElementRegistered = false; return IgcPriceVolumeTrendIndicatorComponent; }(IgcStrategyBasedIndicatorComponent));