igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
81 lines (80 loc) • 3.68 kB
JavaScript
import { __extends } from "tslib";
import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component";
import { TypicalPriceIndicator } from "./TypicalPriceIndicator";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
* Represents a IgxDataChartComponent Typical Price indicator series.
* The typical price indicator is represented as a arithmetic average
* of the High, Low, and Close for a day.
* Default required members: High, Low, Close
*
* The `TypicalPriceIndicator` class represents a IgxDataChartComponent Typical Price indicator series.
*/
var IgcTypicalPriceIndicatorComponent = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcTypicalPriceIndicatorComponent, _super);
function IgcTypicalPriceIndicatorComponent() {
return _super.call(this) || this;
}
IgcTypicalPriceIndicatorComponent.prototype.createImplementation = function () {
return new TypicalPriceIndicator();
};
Object.defineProperty(IgcTypicalPriceIndicatorComponent.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcTypicalPriceIndicatorComponent.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();
}
};
IgcTypicalPriceIndicatorComponent.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(IgcTypicalPriceIndicatorComponent, "observedAttributes", {
get: function () {
if (IgcTypicalPriceIndicatorComponent._observedAttributesIgcTypicalPriceIndicatorComponent == null) {
var names = getAllPropertyNames(IgcTypicalPriceIndicatorComponent);
for (var i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcTypicalPriceIndicatorComponent._observedAttributesIgcTypicalPriceIndicatorComponent = names;
}
return IgcTypicalPriceIndicatorComponent._observedAttributesIgcTypicalPriceIndicatorComponent;
},
enumerable: false,
configurable: true
});
IgcTypicalPriceIndicatorComponent.register = function () {
if (!IgcTypicalPriceIndicatorComponent._isElementRegistered) {
IgcTypicalPriceIndicatorComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcTypicalPriceIndicatorComponent.htmlTagName, IgcTypicalPriceIndicatorComponent);
}
};
IgcTypicalPriceIndicatorComponent._observedAttributesIgcTypicalPriceIndicatorComponent = null;
IgcTypicalPriceIndicatorComponent.htmlTagName = "igc-typical-price-indicator";
IgcTypicalPriceIndicatorComponent._isElementRegistered = false;
return IgcTypicalPriceIndicatorComponent;
}(IgcStrategyBasedIndicatorComponent));
export { IgcTypicalPriceIndicatorComponent };