/**
 * @fileoverview added by tsickle
 * Generated from: lib/ui-components/tap-variable-number/tap-variable-number.component.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { __decorate, __extends, __metadata } from "tslib";
import { Component, Input } from '@angular/core';
import { AppGenComponent, AppGenField } from '../../metadata/decorators';
import { MonitoringVariableValueComponent } from '../monitoring-variable-value/monitoring-variable-value.component';
var TapVariableNumberComponent = /** @class */ (function (_super) {
    __extends(TapVariableNumberComponent, _super);
    function TapVariableNumberComponent() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.inputOptions = {
            type: 'number'
        };
        return _this;
    }
    Object.defineProperty(TapVariableNumberComponent.prototype, "min", {
        set: /**
         * @param {?} value
         * @return {?}
         */
        function (value) {
            this.inputOptions.min = value;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TapVariableNumberComponent.prototype, "max", {
        set: /**
         * @param {?} value
         * @return {?}
         */
        function (value) {
            this.inputOptions.max = value;
        },
        enumerable: true,
        configurable: true
    });
    TapVariableNumberComponent.decorators = [
        { type: Component, args: [{
                    selector: 'tap-variable-number',
                    template: "\r\n<tap-inline-editor *ngIf=\"_variable && valuesStream\"\r\n    [forceValue]=\"forceValue\"\r\n    [lines]=\"lines\"\r\n    [value]=\"valuesStream\" \r\n    [loading]=\"loading\" \r\n    [waitForSubmit]=\"pending\"\r\n    [toggleTextRight]=\"textOnRight\"\r\n    [toggleTextLeft]=\"textOnLeft\"\r\n    [(editMode)]=\"editMode\"\r\n    [editable]=\"editable\"\r\n    [fieldError]=\"fieldError\"\r\n    [inputOptions]=\"inputOptions\"\r\n    [unitValue]=\"unitValue\"\r\n    [valueStyle]=\"valueStyle\"\r\n    [pendingSubmitValue]=\"pendingSubmitValue\"\r\n    (onSubmit)=\"onSubmit($event)\"\r\n    (onRefresh)=\"onRefresh($event)\"\r\n    (onCancelEdit)=\"onCancelEdit($event)\"\r\n    >\r\n</tap-inline-editor>",
                    styles: [""]
                }] }
    ];
    TapVariableNumberComponent.propDecorators = {
        min: [{ type: Input }],
        max: [{ type: Input }]
    };
    __decorate([
        AppGenField({
            schema: {
                type: 'integer',
                description: 'Minimum value'
            }
        }),
        __metadata("design:type", Object),
        __metadata("design:paramtypes", [Object])
    ], TapVariableNumberComponent.prototype, "min", null);
    __decorate([
        AppGenField({
            schema: {
                type: 'integer',
                description: 'Maximum'
            }
        }),
        __metadata("design:type", Object),
        __metadata("design:paramtypes", [Object])
    ], TapVariableNumberComponent.prototype, "max", null);
    TapVariableNumberComponent = __decorate([
        AppGenComponent({
            constraints: {
                isArray: 'NO',
                isNumber: 'YES'
            }
        })
    ], TapVariableNumberComponent);
    return TapVariableNumberComponent;
}(MonitoringVariableValueComponent));
export { TapVariableNumberComponent };
if (false) {
    /** @type {?} */
    TapVariableNumberComponent.prototype.inputOptions;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFwLXZhcmlhYmxlLW51bWJlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaW90aXplL2lvbmljL21vbml0b3JpbmcvIiwic291cmNlcyI6WyJsaWIvdWktY29tcG9uZW50cy90YXAtdmFyaWFibGUtbnVtYmVyL3RhcC12YXJpYWJsZS1udW1iZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRWpELE9BQU8sRUFBRSxlQUFlLEVBQUUsV0FBVyxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDekUsT0FBTyxFQUFFLGdDQUFnQyxFQUFFLE1BQU0sa0VBQWtFLENBQUM7O0lBY3BFLDhDQUFnQzs7NkVBNkIvRTtRQTNCQyxrQkFBWSxHQUF3QztZQUNsRCxJQUFJLEVBQUUsUUFBUTtTQUNm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