"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const field_1 = require("../../../../../client/field");
class TextArea extends field_1.Field {
    constructor($props, $system) {
        super($props, $system, $system.api.document.createElement('textarea'), {
            valueKey: 'value',
            defaultStyle: $system.style['textarea'],
        });
        const { flags: { defaultInputModeNone }, } = $system;
        const { placeholder = '', maxLength = undefined } = $props;
        this.$element.spellcheck = false;
        this.$element.autocomplete = 'off';
        this.$element.autocapitalize = 'off';
        this.$element.inputMode = 'text';
        if (defaultInputModeNone) {
            this.$element.inputMode = 'none';
        }
        this.$element.placeholder = placeholder;
        if (maxLength !== undefined) {
            this.$element.maxLength = maxLength;
        }
    }
}
exports.default = TextArea;
//# sourceMappingURL=Component.js.map