igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
121 lines (120 loc) • 5.49 kB
JavaScript
import { __extends } from "tslib";
import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component";
import { PercentageVolumeOscillatorIndicator } from "./PercentageVolumeOscillatorIndicator";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
* Represents a IgxDataChartComponent Percentage Volume Oscillator (PVO) series.
* Default required members: Volume
*
* You can use the `PercentageVolumeOscillatorIndicator` to show the percentage difference volume.
*/
var IgcPercentageVolumeOscillatorIndicatorComponent = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcPercentageVolumeOscillatorIndicatorComponent, _super);
function IgcPercentageVolumeOscillatorIndicatorComponent() {
return _super.call(this) || this;
}
IgcPercentageVolumeOscillatorIndicatorComponent.prototype.createImplementation = function () {
return new PercentageVolumeOscillatorIndicator();
};
Object.defineProperty(IgcPercentageVolumeOscillatorIndicatorComponent.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcPercentageVolumeOscillatorIndicatorComponent.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();
}
};
IgcPercentageVolumeOscillatorIndicatorComponent.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(IgcPercentageVolumeOscillatorIndicatorComponent, "observedAttributes", {
get: function () {
if (IgcPercentageVolumeOscillatorIndicatorComponent._observedAttributesIgcPercentageVolumeOscillatorIndicatorComponent == null) {
var names = getAllPropertyNames(IgcPercentageVolumeOscillatorIndicatorComponent);
for (var i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcPercentageVolumeOscillatorIndicatorComponent._observedAttributesIgcPercentageVolumeOscillatorIndicatorComponent = names;
}
return IgcPercentageVolumeOscillatorIndicatorComponent._observedAttributesIgcPercentageVolumeOscillatorIndicatorComponent;
},
enumerable: false,
configurable: true
});
IgcPercentageVolumeOscillatorIndicatorComponent.register = function () {
if (!IgcPercentageVolumeOscillatorIndicatorComponent._isElementRegistered) {
IgcPercentageVolumeOscillatorIndicatorComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcPercentageVolumeOscillatorIndicatorComponent.htmlTagName, IgcPercentageVolumeOscillatorIndicatorComponent);
}
};
Object.defineProperty(IgcPercentageVolumeOscillatorIndicatorComponent.prototype, "shortPeriod", {
/**
* Gets or sets the short moving average period for the current PercentageVolumeOscillatorIndicator object.
* The typical, and initial, value for short PVO periods is 10.
*
* You can use the `ShortPeriod` to set the short moving average period.
*
* ```ts
* this.series.shortPeriod = 30;
* ```
*/
get: function () {
return this.i.shortPeriod;
},
set: function (v) {
this.i.shortPeriod = +v;
this._a("shortPeriod", this.i.shortPeriod);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcPercentageVolumeOscillatorIndicatorComponent.prototype, "longPeriod", {
/**
* Gets or sets the short moving average period for the current PercentageVolumeOscillatorIndicator object.
* The typical, and initial, value for long PVO periods is 30.
*
* You can use the `LongPeriod` to set the long moving average period.
*
* ```ts
* this.series.longPeriod = 30;
* ```
*/
get: function () {
return this.i.longPeriod;
},
set: function (v) {
this.i.longPeriod = +v;
this._a("longPeriod", this.i.longPeriod);
},
enumerable: false,
configurable: true
});
IgcPercentageVolumeOscillatorIndicatorComponent._observedAttributesIgcPercentageVolumeOscillatorIndicatorComponent = null;
IgcPercentageVolumeOscillatorIndicatorComponent.htmlTagName = "igc-percentage-volume-oscillator-indicator";
IgcPercentageVolumeOscillatorIndicatorComponent._isElementRegistered = false;
return IgcPercentageVolumeOscillatorIndicatorComponent;
}(IgcStrategyBasedIndicatorComponent));
export { IgcPercentageVolumeOscillatorIndicatorComponent };