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