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