/**
 * @fileoverview added by tsickle
 * Generated from: lib/ui-components/tap-variable-select/tap-variable-select.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 TapVariableSelectComponent = /** @class */ (function (_super) {
    __extends(TapVariableSelectComponent, _super);
    function TapVariableSelectComponent() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.multiple = false;
        return _this;
    }
    Object.defineProperty(TapVariableSelectComponent.prototype, "options", {
        set: /**
         * @param {?} selectOptions
         * @return {?}
         */
        function (selectOptions) {
            this.inputOptions = {
                type: 'select',
                multiple: this.multiple,
                options: selectOptions || []
            };
        },
        enumerable: true,
        configurable: true
    });
    TapVariableSelectComponent.decorators = [
        { type: Component, args: [{
                    selector: 'tap-variable-select',
                    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: [""]
                }] }
    ];
    TapVariableSelectComponent.propDecorators = {
        multiple: [{ type: Input }],
        options: [{ type: Input }]
    };
    __decorate([
        AppGenField({
            schema: {
                type: 'boolean'
            }
        }),
        __metadata("design:type", Object)
    ], TapVariableSelectComponent.prototype, "multiple", void 0);
    __decorate([
        AppGenField({
            schema: {
                type: 'array',
                items: {
                    type: 'object',
                    title: 'TapVariableSelectComponentOption',
                    required: ['key', 'text'],
                    properties: {
                        key: (/** @type {?} */ ({
                            tsType: 'any'
                        })),
                        value: {
                            type: 'string'
                        }
                    }
                }
            }
        }),
        __metadata("design:type", Object),
        __metadata("design:paramtypes", [Object])
    ], TapVariableSelectComponent.prototype, "options", null);
    TapVariableSelectComponent = __decorate([
        AppGenComponent({
            constraints: {
                isArray: 'NO'
            }
        })
    ], TapVariableSelectComponent);
    return TapVariableSelectComponent;
}(MonitoringVariableValueComponent));
export { TapVariableSelectComponent };
if (false) {
    /** @type {?} */
    TapVariableSelectComponent.prototype.multiple;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFwLXZhcmlhYmxlLXNlbGVjdC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaW90aXplL2lvbmljL21vbml0b3JpbmcvIiwic291cmNlcyI6WyJsaWIvdWktY29tcG9uZW50cy90YXAtdmFyaWFibGUtc2VsZWN0L3RhcC12YXJpYWJsZS1zZWxlY3QuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRWpELE9BQU8sRUFBRSxlQUFlLEVBQUUsV0FBVyxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFFekUsT0FBTyxFQUFFLGdDQUFnQyxFQUFFLE1BQU0sa0VBQWtFLENBQUM7O0lBYXBFLDhDQUFnQzs7NkVBa0MvRTtRQTNCVSxjQUFRLEdBQUcsS0FBSyxDQUFDOztJQTJCNUIsQ0FBQztJQVBVLHNCQ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