UNPKG

igniteui-webcomponents-charts

Version:

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

78 lines (77 loc) 3.34 kB
import { __extends } from "tslib"; import { IgcNumericYAxisComponent } from "./igc-numeric-y-axis-component"; import { PercentChangeYAxis } from "./PercentChangeYAxis"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * A horizontal axis that uses a DateTime scale. * * You can use the `PercentChangeYAxis` show percentage values. */ var IgcPercentChangeYAxisComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcPercentChangeYAxisComponent, _super); function IgcPercentChangeYAxisComponent() { return _super.call(this) || this; } IgcPercentChangeYAxisComponent.prototype.createImplementation = function () { return new PercentChangeYAxis(); }; Object.defineProperty(IgcPercentChangeYAxisComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcPercentChangeYAxisComponent.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(); } }; IgcPercentChangeYAxisComponent.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(IgcPercentChangeYAxisComponent, "observedAttributes", { get: function () { if (IgcPercentChangeYAxisComponent._observedAttributesIgcPercentChangeYAxisComponent == null) { var names = getAllPropertyNames(IgcPercentChangeYAxisComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcPercentChangeYAxisComponent._observedAttributesIgcPercentChangeYAxisComponent = names; } return IgcPercentChangeYAxisComponent._observedAttributesIgcPercentChangeYAxisComponent; }, enumerable: false, configurable: true }); IgcPercentChangeYAxisComponent.register = function () { if (!IgcPercentChangeYAxisComponent._isElementRegistered) { IgcPercentChangeYAxisComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcPercentChangeYAxisComponent.htmlTagName, IgcPercentChangeYAxisComponent); } }; IgcPercentChangeYAxisComponent._observedAttributesIgcPercentChangeYAxisComponent = null; IgcPercentChangeYAxisComponent.htmlTagName = "igc-percent-change-y-axis"; IgcPercentChangeYAxisComponent._isElementRegistered = false; return IgcPercentChangeYAxisComponent; }(IgcNumericYAxisComponent)); export { IgcPercentChangeYAxisComponent };