igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
84 lines (83 loc) • 3.51 kB
JavaScript
import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component";
import { WilliamsPercentRIndicator } from "./WilliamsPercentRIndicator";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
let IgcWilliamsPercentRIndicatorComponent = /*@__PURE__*/ (() => {
class IgcWilliamsPercentRIndicatorComponent extends IgcStrategyBasedIndicatorComponent {
createImplementation() {
return new WilliamsPercentRIndicator();
}
/**
* @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 (IgcWilliamsPercentRIndicatorComponent._observedAttributesIgcWilliamsPercentRIndicatorComponent == null) {
let names = getAllPropertyNames(IgcWilliamsPercentRIndicatorComponent);
for (let i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcWilliamsPercentRIndicatorComponent._observedAttributesIgcWilliamsPercentRIndicatorComponent = names;
}
return IgcWilliamsPercentRIndicatorComponent._observedAttributesIgcWilliamsPercentRIndicatorComponent;
}
static register() {
if (!IgcWilliamsPercentRIndicatorComponent._isElementRegistered) {
IgcWilliamsPercentRIndicatorComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcWilliamsPercentRIndicatorComponent.htmlTagName, IgcWilliamsPercentRIndicatorComponent);
}
}
/**
* Gets or sets the moving average period for the current StandardDeviationIndicator object.
* The typical, and initial, value for Williams %R periods is 14.
*
* Gets or sets the `Period` for the moving average period.
*
* The typical, and initial, value for Williams %R periods is 14.
*
* ```ts
* this.series.period = 30;
* ```
*/
get period() {
return this.i.ac1;
}
set period(v) {
this.i.ac1 = +v;
this._a("period", this.i.ac1);
}
}
IgcWilliamsPercentRIndicatorComponent._observedAttributesIgcWilliamsPercentRIndicatorComponent = null;
IgcWilliamsPercentRIndicatorComponent.htmlTagName = "igc-williams-percent-r-indicator";
IgcWilliamsPercentRIndicatorComponent._isElementRegistered = false;
return IgcWilliamsPercentRIndicatorComponent;
})();
export { IgcWilliamsPercentRIndicatorComponent };