import { __decorate } from "tslib";
import { Component, Input } from '@angular/core';
import { MonitoringAppGenComponent, } from '../../metadata/decorators';
import { MonitoringVariableValueComponent } from '../monitoring-variable-value/monitoring-variable-value.component';
import * as i0 from "@angular/core";
import * as i1 from "@iotize/ionic";
import * as i2 from "@angular/common";
let TapVariableNumberComponent = class TapVariableNumberComponent extends MonitoringVariableValueComponent {
    constructor() {
        super(...arguments);
        this.inputOptions = {
            type: 'number',
        };
    }
    set min(value) {
        this.inputOptions.min = value;
    }
    set max(value) {
        this.inputOptions.max = value;
    }
    set value(value) {
        this._value = value;
    }
};
/** @nocollapse */ TapVariableNumberComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TapVariableNumberComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
/** @nocollapse */ TapVariableNumberComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TapVariableNumberComponent, selector: "tap-variable-number", inputs: { min: "min", max: "max", value: "value" }, usesInheritance: true, ngImport: i0, template: "<tap-value-editor-container\n  #ctx\n  [variable]=\"_variable\"\n  [showRefreshButton]=\"refreshable\"\n  [showEditButton]=\"editable\"\n  [showSubmitButton]=\"true\"\n  [modalEdition]=\"modalEdition\"\n  [inputOptions]=\"inputOptions\"\n  [lines]=\"lines\"\n>\n  <tap-inline-editor\n    [forceValue]=\"forceValue\"\n    [value]=\"\n      ctx.pendingSubmitValue === undefined ? _value : ctx.pendingSubmitValue\n    \"\n    [editMode]=\"ctx.editModeChange | async\"\n    (editModeChange)=\"onEditModeChange($event)\"\n    [editable]=\"editable && ctx.pendingSubmitValue === undefined\"\n    [fieldError]=\"fieldError\"\n    [inputOptions]=\"inputOptions\"\n    [unitValue]=\"unitValue\"\n    [valueStyle]=\"valueStyle\"\n    (valueChange)=\"onValueChange($event)\"\n    (onSubmit)=\"onSubmit($event)\"\n  >\n  </tap-inline-editor>\n</tap-value-editor-container>\n", styles: [""], dependencies: [{ kind: "component", type: i1.InlineEditorComponent, selector: "tap-inline-editor", inputs: ["editMode", "editable", "unitValue", "inputOptions", "valueStyle", "value", "forceValue", "showLoader", "fieldError"], outputs: ["onSubmit", "valueChange", "editModeChange"] }, { kind: "component", type: i1.TapValueEditorContainerComponent, selector: "tap-value-editor-container", inputs: ["button", "variable", "inputOptions", "showRefreshButton", "showSubmitButton", "showEditButton", "error", "lines", "modalEdition", "value"], outputs: ["submit", "refresh"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }] });
TapVariableNumberComponent = __decorate([
    MonitoringAppGenComponent({
        constraints: {
            isArray: 'NO',
            isNumber: 'YES',
        },
        events: [
            {
                name: 'submit',
                dataType: 'string',
            },
        ],
    })
], TapVariableNumberComponent);
export { TapVariableNumberComponent };
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TapVariableNumberComponent, decorators: [{
            type: Component,
            args: [{ selector: 'tap-variable-number', template: "<tap-value-editor-container\n  #ctx\n  [variable]=\"_variable\"\n  [showRefreshButton]=\"refreshable\"\n  [showEditButton]=\"editable\"\n  [showSubmitButton]=\"true\"\n  [modalEdition]=\"modalEdition\"\n  [inputOptions]=\"inputOptions\"\n  [lines]=\"lines\"\n>\n  <tap-inline-editor\n    [forceValue]=\"forceValue\"\n    [value]=\"\n      ctx.pendingSubmitValue === undefined ? _value : ctx.pendingSubmitValue\n    \"\n    [editMode]=\"ctx.editModeChange | async\"\n    (editModeChange)=\"onEditModeChange($event)\"\n    [editable]=\"editable && ctx.pendingSubmitValue === undefined\"\n    [fieldError]=\"fieldError\"\n    [inputOptions]=\"inputOptions\"\n    [unitValue]=\"unitValue\"\n    [valueStyle]=\"valueStyle\"\n    (valueChange)=\"onValueChange($event)\"\n    (onSubmit)=\"onSubmit($event)\"\n  >\n  </tap-inline-editor>\n</tap-value-editor-container>\n" }]
        }], propDecorators: { min: [{
                type: Input
            }], max: [{
                type: Input
            }], value: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64, 