igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
79 lines (78 loc) • 3.97 kB
JavaScript
import { __extends } from "tslib";
import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component";
import { AccumulationDistributionIndicator } from "./AccumulationDistributionIndicator";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
* Represents a IgxDataChartComponent Accumulation/Distribution indicator series.
* Default required members: Close, Low, High, Volume
*
* You can use the `AccumulationDistributionIndicator` to evaluate the suppy and demand of a stock, security, or index.
*/
var IgcAccumulationDistributionIndicatorComponent = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcAccumulationDistributionIndicatorComponent, _super);
function IgcAccumulationDistributionIndicatorComponent() {
return _super.call(this) || this;
}
IgcAccumulationDistributionIndicatorComponent.prototype.createImplementation = function () {
return new AccumulationDistributionIndicator();
};
Object.defineProperty(IgcAccumulationDistributionIndicatorComponent.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcAccumulationDistributionIndicatorComponent.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();
}
};
IgcAccumulationDistributionIndicatorComponent.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(IgcAccumulationDistributionIndicatorComponent, "observedAttributes", {
get: function () {
if (IgcAccumulationDistributionIndicatorComponent._observedAttributesIgcAccumulationDistributionIndicatorComponent == null) {
var names = getAllPropertyNames(IgcAccumulationDistributionIndicatorComponent);
for (var i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcAccumulationDistributionIndicatorComponent._observedAttributesIgcAccumulationDistributionIndicatorComponent = names;
}
return IgcAccumulationDistributionIndicatorComponent._observedAttributesIgcAccumulationDistributionIndicatorComponent;
},
enumerable: false,
configurable: true
});
IgcAccumulationDistributionIndicatorComponent.register = function () {
if (!IgcAccumulationDistributionIndicatorComponent._isElementRegistered) {
IgcAccumulationDistributionIndicatorComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcAccumulationDistributionIndicatorComponent.htmlTagName, IgcAccumulationDistributionIndicatorComponent);
}
};
IgcAccumulationDistributionIndicatorComponent._observedAttributesIgcAccumulationDistributionIndicatorComponent = null;
IgcAccumulationDistributionIndicatorComponent.htmlTagName = "igc-accumulation-distribution-indicator";
IgcAccumulationDistributionIndicatorComponent._isElementRegistered = false;
return IgcAccumulationDistributionIndicatorComponent;
}(IgcStrategyBasedIndicatorComponent));
export { IgcAccumulationDistributionIndicatorComponent };