import { r as registerInstance, c as createEvent, h } from './index-ecdfb761.js';

const DvnFieldInputNumber = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.blur = createEvent(this, "blur", 7);
    this.change = createEvent(this, "change", 7);
  }
  render() {
    const { disabled, errors, field, value } = this;
    const hasError = errors && errors.length > 0;
    // const error = hasError ? errors![0] : undefined;
    return (h("dvn-input", { id: field.id, type: 'number', disabled: disabled || field.disabled, placeholder: field.placeholder, onBlur: () => this.blur.emit(), value: value, feedback: hasError ? 'error' : undefined, leaned: true, overrideStyle: { width: '100%' } }));
  }
};

export { DvnFieldInputNumber as dvn_field_input_number };
