igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
81 lines (80 loc) • 3.53 kB
JavaScript
import { __extends } from "tslib";
import { IgcItemwiseStrategyBasedIndicatorComponent } from "./igc-itemwise-strategy-based-indicator-component";
import { MedianPriceIndicator } from "./MedianPriceIndicator";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
* Represents a IgxDataChartComponent Median Price indicator series.
* Default required members: High, Low
*
* Represents a Ignite UIDataChart Median Price indicator series.
*
* Example:
*/
var IgcMedianPriceIndicatorComponent = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcMedianPriceIndicatorComponent, _super);
function IgcMedianPriceIndicatorComponent() {
return _super.call(this) || this;
}
IgcMedianPriceIndicatorComponent.prototype.createImplementation = function () {
return new MedianPriceIndicator();
};
Object.defineProperty(IgcMedianPriceIndicatorComponent.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcMedianPriceIndicatorComponent.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();
}
};
IgcMedianPriceIndicatorComponent.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(IgcMedianPriceIndicatorComponent, "observedAttributes", {
get: function () {
if (IgcMedianPriceIndicatorComponent._observedAttributesIgcMedianPriceIndicatorComponent == null) {
var names = getAllPropertyNames(IgcMedianPriceIndicatorComponent);
for (var i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcMedianPriceIndicatorComponent._observedAttributesIgcMedianPriceIndicatorComponent = names;
}
return IgcMedianPriceIndicatorComponent._observedAttributesIgcMedianPriceIndicatorComponent;
},
enumerable: false,
configurable: true
});
IgcMedianPriceIndicatorComponent.register = function () {
if (!IgcMedianPriceIndicatorComponent._isElementRegistered) {
IgcMedianPriceIndicatorComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcMedianPriceIndicatorComponent.htmlTagName, IgcMedianPriceIndicatorComponent);
}
};
IgcMedianPriceIndicatorComponent._observedAttributesIgcMedianPriceIndicatorComponent = null;
IgcMedianPriceIndicatorComponent.htmlTagName = "igc-median-price-indicator";
IgcMedianPriceIndicatorComponent._isElementRegistered = false;
return IgcMedianPriceIndicatorComponent;
}(IgcItemwiseStrategyBasedIndicatorComponent));
export { IgcMedianPriceIndicatorComponent };