import * as tslib_1 from "tslib";
var IgxTreemapNodeStyleMappingComponent_1;
import { Component, forwardRef, Input, ChangeDetectionStrategy } from '@angular/core';
import { TreemapValueMappingMode, TreemapValueMappingMode_$type } from "./TreemapValueMappingMode";
import { IgxTreemapNodeStyleComponent } from "./igx-treemap-node-style-component";
import { TreemapNodeStyleMapping } from "./TreemapNodeStyleMapping";
import { ensureEnum } from "igniteui-angular-core/ES2015/componentUtil";
/**
 * Represents a style to apply to a set of nodes in the treemap.
*/
export const IgxTreemapNodeStyleMappingComponent_PROVIDERS = [{ provide: IgxTreemapNodeStyleComponent, useExisting: forwardRef(() => IgxTreemapNodeStyleMappingComponent) }];
let IgxTreemapNodeStyleMappingComponent = IgxTreemapNodeStyleMappingComponent_1 = class IgxTreemapNodeStyleMappingComponent extends IgxTreemapNodeStyleComponent {
    constructor() {
        super();
    }
    createImplementation() {
        return new TreemapNodeStyleMapping();
    }
    /**
                                 * @hidden
                                 */
    get i() {
        return this._implementation;
    }
    /**
     * Gets or sets the unique name of the mapping.
    */
    get name() {
        return this.i.a8;
    }
    set name(v) {
        this.i.a8 = v;
    }
    /**
     * Gets or sets the minimum value to which the mapping applies.
    */
    get minimumValue() {
        return this.i.a1;
    }
    set minimumValue(v) {
        this.i.a1 = +v;
    }
    /**
     * Gets or sets the maximum value to which the mapping applies.
    */
    get maximumValue() {
        return this.i.a0;
    }
    set maximumValue(v) {
        this.i.a0 = +v;
    }
    /**
     * Gets or sets the value to which the mapping applies.
    */
    get value() {
        return this.i.a3;
    }
    set value(v) {
        this.i.a3 = v;
    }
    /**
     * Gets or sets the mapping mode to use to evaluate whether the mapping applies.
    */
    get mappingMode() {
        return this.i.ax;
    }
    set mappingMode(v) {
        this.i.ax = ensureEnum(TreemapValueMappingMode_$type, v);
    }
};
tslib_1.__decorate([
    Input(),
    tslib_1.__metadata("design:type", String),
    tslib_1.__metadata("design:paramtypes", [String])
], IgxTreemapNodeStyleMappingComponent.prototype, "name", null);
tslib_1.__decorate([
    Input(),
    tslib_1.__metadata("design:type", Number),
    tslib_1.__metadata("design:paramtypes", [Number])
], IgxTreemapNodeStyleMappingComponent.prototype, "minimumValue", null);
tslib_1.__decorate([
    Input(),
    tslib_1.__metadata("design:type", Number),
    tslib_1.__metadata("design:paramtypes", [Number])
], IgxTreemapNodeStyleMappingComponent.prototype, "maximumValue", null);
tslib_1.__decorate([
    Input(),
    tslib_1.__metadata("design:type", Object),
    tslib_1.__metadata("design:paramtypes", [Object])
], IgxTreemapNodeStyleMappingComponent.prototype, "value", null);
tslib_1.__decorate([
    Input(),
    tslib_1.__metadata("design:type", Number),
    tslib_1.__metadata("design:paramtypes", [Number])
], IgxTreemapNodeStyleMappingComponent.prototype, "mappingMode", null);
IgxTreemapNodeStyleMappingComponent = IgxTreemapNodeStyleMappingComponent_1 = tslib_1.__decorate([
    Component({
        selector: 'igx-treemap-node-style-mapping',
        template: ``,
        providers: [{ provide: IgxTreemapNodeStyleComponent, useExisting: forwardRef(() => IgxTreemapNodeStyleMappingComponent_1) }],
        changeDetection: ChangeDetectionStrategy.OnPush
    }),
    tslib_1.__metadata("design:paramtypes", [])
], IgxTreemapNodeStyleMappingComponent);
export { IgxTreemapNodeStyleMappingComponent };
//# sourceMappingURL=igx-treemap-node-style-mapping-component.js.map