igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
88 lines (87 loc) • 3.52 kB
JavaScript
import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component";
import { ForceIndexIndicator } from "./ForceIndexIndicator";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
let IgcForceIndexIndicatorComponent = /*@__PURE__*/ (() => {
class IgcForceIndexIndicatorComponent extends IgcStrategyBasedIndicatorComponent {
createImplementation() {
return new ForceIndexIndicator();
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
constructor() {
super();
}
connectedCallback() {
if (super["connectedCallback"]) {
super["connectedCallback"]();
}
if (this.i.connectedCallback) {
this.i.connectedCallback();
}
if (!this._attached) {
this._attached = true;
this._flushQueuedAttributes();
}
}
disconnectedCallback() {
if (super["disconnectedCallback"]) {
super["disconnectedCallback"]();
}
if (this.i.disconnectedCallback) {
this.i.disconnectedCallback();
}
if (this._attached) {
this._attached = false;
}
}
static get observedAttributes() {
if (IgcForceIndexIndicatorComponent._observedAttributesIgcForceIndexIndicatorComponent == null) {
let names = getAllPropertyNames(IgcForceIndexIndicatorComponent);
for (let i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcForceIndexIndicatorComponent._observedAttributesIgcForceIndexIndicatorComponent = names;
}
return IgcForceIndexIndicatorComponent._observedAttributesIgcForceIndexIndicatorComponent;
}
static register() {
if (!IgcForceIndexIndicatorComponent._isElementRegistered) {
IgcForceIndexIndicatorComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcForceIndexIndicatorComponent.htmlTagName, IgcForceIndexIndicatorComponent);
}
}
/**
* Gets default display type for the current Financial Indicator
*/
get defaultDisplayType() {
return this.i.abn;
}
/**
* Gets or sets the moving average period for the current AverageTrueRangeSeries object.
* The typical, and initial, value for ForceIndiex periods is 0.
*
* You can use the `period` property to get the moving average period of the current FullStochasticOscillatorIndicator object
*
* ```ts
* this.series.period = 30;
* ```
*/
get period() {
return this.i.ac1;
}
set period(v) {
this.i.ac1 = +v;
this._a("period", this.i.ac1);
}
}
IgcForceIndexIndicatorComponent._observedAttributesIgcForceIndexIndicatorComponent = null;
IgcForceIndexIndicatorComponent.htmlTagName = "igc-force-index-indicator";
IgcForceIndexIndicatorComponent._isElementRegistered = false;
return IgcForceIndexIndicatorComponent;
})();
export { IgcForceIndexIndicatorComponent };