'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-7cdf1df1.js');

const DvnFieldInputNumber = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
    this.blur = index.createEvent(this, "blur", 7);
    this.change = index.createEvent(this, "change", 7);
  }
  render() {
    const { disabled, errors, field, value } = this;
    const hasError = errors && errors.length > 0;
    // const error = hasError ? errors![0] : undefined;
    return (index.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 }));
  }
};

exports.dvn_field_input_number = DvnFieldInputNumber;
