igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
160 lines (159 loc) • 6.29 kB
JavaScript
import { __extends } from "tslib";
import { TreemapNodeStyleMappingTargetType_$type } from "./TreemapNodeStyleMappingTargetType";
import { TreemapValueMappingMode_$type } from "./TreemapValueMappingMode";
import { IgcTreemapNodeStyleComponent } from "./igc-treemap-node-style-component";
import { TreemapNodeStyleMapping } from "./TreemapNodeStyleMapping";
import { getAllPropertyNames, toSpinal, ensureEnum, enumToString } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
* Represents a style to apply to a set of nodes in the treemap.
*/
var IgcTreemapNodeStyleMappingComponent = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcTreemapNodeStyleMappingComponent, _super);
function IgcTreemapNodeStyleMappingComponent() {
return _super.call(this) || this;
}
IgcTreemapNodeStyleMappingComponent.prototype.createImplementation = function () {
return new TreemapNodeStyleMapping();
};
Object.defineProperty(IgcTreemapNodeStyleMappingComponent.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcTreemapNodeStyleMappingComponent.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();
}
};
IgcTreemapNodeStyleMappingComponent.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(IgcTreemapNodeStyleMappingComponent, "observedAttributes", {
get: function () {
if (IgcTreemapNodeStyleMappingComponent._observedAttributesIgcTreemapNodeStyleMappingComponent == null) {
var names = getAllPropertyNames(IgcTreemapNodeStyleMappingComponent);
for (var i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcTreemapNodeStyleMappingComponent._observedAttributesIgcTreemapNodeStyleMappingComponent = names;
}
return IgcTreemapNodeStyleMappingComponent._observedAttributesIgcTreemapNodeStyleMappingComponent;
},
enumerable: false,
configurable: true
});
IgcTreemapNodeStyleMappingComponent.register = function () {
if (!IgcTreemapNodeStyleMappingComponent._isElementRegistered) {
IgcTreemapNodeStyleMappingComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcTreemapNodeStyleMappingComponent.htmlTagName, IgcTreemapNodeStyleMappingComponent);
}
};
Object.defineProperty(IgcTreemapNodeStyleMappingComponent.prototype, "targetType", {
/**
* Gets or sets the unique name of the mapping.
*/
get: function () {
return this.i.bo;
},
set: function (v) {
this.i.bo = ensureEnum(TreemapNodeStyleMappingTargetType_$type, v);
this._a("targetType", enumToString(TreemapNodeStyleMappingTargetType_$type, this.i.bo));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcTreemapNodeStyleMappingComponent.prototype, "name", {
/**
* Gets or sets the unique name of the mapping.
*/
get: function () {
return this.i.b1;
},
set: function (v) {
this.i.b1 = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcTreemapNodeStyleMappingComponent.prototype, "minimumValue", {
/**
* Gets or sets the minimum value to which the mapping applies.
*/
get: function () {
return this.i.bu;
},
set: function (v) {
this.i.bu = +v;
this._a("minimumValue", this.i.bu);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcTreemapNodeStyleMappingComponent.prototype, "maximumValue", {
/**
* Gets or sets the maximum value to which the mapping applies.
*/
get: function () {
return this.i.bt;
},
set: function (v) {
this.i.bt = +v;
this._a("maximumValue", this.i.bt);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcTreemapNodeStyleMappingComponent.prototype, "value", {
/**
* Gets or sets the value to which the mapping applies.
*/
get: function () {
return this.i.bw;
},
set: function (v) {
this.i.bw = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcTreemapNodeStyleMappingComponent.prototype, "mappingMode", {
/**
* Gets or sets the mapping mode to use to evaluate whether the mapping applies.
*/
get: function () {
return this.i.bq;
},
set: function (v) {
this.i.bq = ensureEnum(TreemapValueMappingMode_$type, v);
this._a("mappingMode", enumToString(TreemapValueMappingMode_$type, this.i.bq));
},
enumerable: false,
configurable: true
});
IgcTreemapNodeStyleMappingComponent._observedAttributesIgcTreemapNodeStyleMappingComponent = null;
IgcTreemapNodeStyleMappingComponent.htmlTagName = "igc-treemap-node-style-mapping";
IgcTreemapNodeStyleMappingComponent._isElementRegistered = false;
return IgcTreemapNodeStyleMappingComponent;
}(IgcTreemapNodeStyleComponent));
export { IgcTreemapNodeStyleMappingComponent };