UNPKG

igniteui-webcomponents-charts

Version:

Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.

65 lines (64 loc) 2.54 kB
import { IgcLegendBaseComponent } from "./igc-legend-base-component"; import { ScaleLegend } from "./ScaleLegend"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; let IgcScaleLegendComponent = /*@__PURE__*/ (() => { class IgcScaleLegendComponent extends IgcLegendBaseComponent { createImplementation() { return new ScaleLegend(); } /** * @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 (IgcScaleLegendComponent._observedAttributesIgcScaleLegendComponent == null) { let names = getAllPropertyNames(IgcScaleLegendComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcScaleLegendComponent._observedAttributesIgcScaleLegendComponent = names; } return IgcScaleLegendComponent._observedAttributesIgcScaleLegendComponent; } static register() { if (!IgcScaleLegendComponent._isElementRegistered) { IgcScaleLegendComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcScaleLegendComponent.htmlTagName, IgcScaleLegendComponent); } } } IgcScaleLegendComponent._observedAttributesIgcScaleLegendComponent = null; IgcScaleLegendComponent.htmlTagName = "igc-scale-legend"; IgcScaleLegendComponent._isElementRegistered = false; return IgcScaleLegendComponent; })(); export { IgcScaleLegendComponent };