"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_STYLE = void 0;
const field_1 = require("../../../../../client/field");
exports.DEFAULT_STYLE = {
    '-webkit-text-security': 'disc',
    height: 'fit-content',
    width: '100%',
    color: 'inherit',
    backgroundColor: '#00000000',
    textAlign: 'center',
    padding: '0',
    fontSize: '18px',
    // outline: 'none',
    border: 'none',
    borderRadius: '0',
    boxSizing: 'border-box',
};
class PasswordField extends field_1.Field {
    constructor($props, $system) {
        super($props, $system, $system.api.document.createElement('input'), {
            valueKey: 'value',
            defaultValue: '',
            defaultStyle: exports.DEFAULT_STYLE,
        });
        const { show = false } = $props;
        // this.$element.type = 'password'
        // this.$element.autocomplete = 'false'
        this.$element.type = 'text';
    }
    setSelectionRange(start, end, direction) {
        this.$element.setSelectionRange(start, end, direction);
    }
}
exports.default = PasswordField;
//# sourceMappingURL=Component.js.map