"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const field_1 = require("../../../../../client/field");
class PasswordField extends field_1.Field {
    constructor($props, $system) {
        const DEFAULT_STYLE = $system.style['passwordfield'];
        super($props, $system, $system.api.document.createElement('input'), {
            valueKey: 'value',
            defaultValue: '',
            defaultStyle: DEFAULT_STYLE,
        });
        this.$element.type = 'password';
        this.$element.autocomplete = 'off';
    }
    setSelectionRange(start, end, direction) {
        this.$element.setSelectionRange(start, end, direction);
    }
}
exports.default = PasswordField;
//# sourceMappingURL=Component.js.map