UNPKG

igniteui-webcomponents-charts

Version:

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

112 lines (111 loc) 5.32 kB
import { __extends } from "tslib"; import { delegateCombine, delegateRemove } from "igniteui-webcomponents-core"; import { IgcCustomContourValueResolverEventArgs } from "./igc-custom-contour-value-resolver-event-args"; import { IgcContourValueResolverComponent } from "./igc-contour-value-resolver-component"; import { CustomContourValueResolver } from "./CustomContourValueResolver"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * ContourValueResolver class which fires an event to resolve the contour values. */ var IgcCustomContourValueResolverComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcCustomContourValueResolverComponent, _super); function IgcCustomContourValueResolverComponent() { var _this = _super.call(this) || this; _this._getCustomContourValues = null; _this._getCustomContourValues_wrapped = null; return _this; } IgcCustomContourValueResolverComponent.prototype.createImplementation = function () { return new CustomContourValueResolver(); }; Object.defineProperty(IgcCustomContourValueResolverComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcCustomContourValueResolverComponent.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(); } }; IgcCustomContourValueResolverComponent.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(IgcCustomContourValueResolverComponent, "observedAttributes", { get: function () { if (IgcCustomContourValueResolverComponent._observedAttributesIgcCustomContourValueResolverComponent == null) { var names = getAllPropertyNames(IgcCustomContourValueResolverComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcCustomContourValueResolverComponent._observedAttributesIgcCustomContourValueResolverComponent = names; } return IgcCustomContourValueResolverComponent._observedAttributesIgcCustomContourValueResolverComponent; }, enumerable: false, configurable: true }); IgcCustomContourValueResolverComponent.register = function () { if (!IgcCustomContourValueResolverComponent._isElementRegistered) { IgcCustomContourValueResolverComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcCustomContourValueResolverComponent.htmlTagName, IgcCustomContourValueResolverComponent); } }; Object.defineProperty(IgcCustomContourValueResolverComponent.prototype, "getCustomContourValues", { /** * Event raised when retrieving the contour values. */ get: function () { return this._getCustomContourValues; }, set: function (ev) { var _this = this; if (this._getCustomContourValues_wrapped !== null) { this.i.getCustomContourValues = delegateRemove(this.i.getCustomContourValues, this._getCustomContourValues_wrapped); this._getCustomContourValues_wrapped = null; this._getCustomContourValues = null; } this._getCustomContourValues = ev; this._getCustomContourValues_wrapped = function (o, e) { var outerArgs = new IgcCustomContourValueResolverEventArgs(); outerArgs._provideImplementation(e); if (_this.beforeGetCustomContourValues) { _this.beforeGetCustomContourValues(_this, outerArgs); } if (_this._getCustomContourValues) { _this._getCustomContourValues(_this, outerArgs); } }; this.i.getCustomContourValues = delegateCombine(this.i.getCustomContourValues, this._getCustomContourValues_wrapped); ; }, enumerable: false, configurable: true }); IgcCustomContourValueResolverComponent._observedAttributesIgcCustomContourValueResolverComponent = null; IgcCustomContourValueResolverComponent.htmlTagName = "igc-custom-contour-value-resolver"; IgcCustomContourValueResolverComponent._isElementRegistered = false; return IgcCustomContourValueResolverComponent; }(IgcContourValueResolverComponent)); export { IgcCustomContourValueResolverComponent };