igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
79 lines (78 loc) • 3.8 kB
JavaScript
import { __extends } from "tslib";
import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component";
import { PositiveVolumeIndexIndicator } from "./PositiveVolumeIndexIndicator";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
* Represents a IgxDataChartComponent Positive Volume Index (PVI) indicator series.
* Default required members: Close, Volume
*
* You can use the `PositiveVolumeIndexIndicator` with the 'NegativeVolumeIndexIndicator' to identify bull markets.
*/
var IgcPositiveVolumeIndexIndicatorComponent = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcPositiveVolumeIndexIndicatorComponent, _super);
function IgcPositiveVolumeIndexIndicatorComponent() {
return _super.call(this) || this;
}
IgcPositiveVolumeIndexIndicatorComponent.prototype.createImplementation = function () {
return new PositiveVolumeIndexIndicator();
};
Object.defineProperty(IgcPositiveVolumeIndexIndicatorComponent.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcPositiveVolumeIndexIndicatorComponent.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();
}
};
IgcPositiveVolumeIndexIndicatorComponent.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(IgcPositiveVolumeIndexIndicatorComponent, "observedAttributes", {
get: function () {
if (IgcPositiveVolumeIndexIndicatorComponent._observedAttributesIgcPositiveVolumeIndexIndicatorComponent == null) {
var names = getAllPropertyNames(IgcPositiveVolumeIndexIndicatorComponent);
for (var i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcPositiveVolumeIndexIndicatorComponent._observedAttributesIgcPositiveVolumeIndexIndicatorComponent = names;
}
return IgcPositiveVolumeIndexIndicatorComponent._observedAttributesIgcPositiveVolumeIndexIndicatorComponent;
},
enumerable: false,
configurable: true
});
IgcPositiveVolumeIndexIndicatorComponent.register = function () {
if (!IgcPositiveVolumeIndexIndicatorComponent._isElementRegistered) {
IgcPositiveVolumeIndexIndicatorComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcPositiveVolumeIndexIndicatorComponent.htmlTagName, IgcPositiveVolumeIndexIndicatorComponent);
}
};
IgcPositiveVolumeIndexIndicatorComponent._observedAttributesIgcPositiveVolumeIndexIndicatorComponent = null;
IgcPositiveVolumeIndexIndicatorComponent.htmlTagName = "igc-positive-volume-index-indicator";
IgcPositiveVolumeIndexIndicatorComponent._isElementRegistered = false;
return IgcPositiveVolumeIndexIndicatorComponent;
}(IgcStrategyBasedIndicatorComponent));
export { IgcPositiveVolumeIndexIndicatorComponent };