import { Component, Event, h, Prop } from '@stencil/core';
export class DvnFieldInputAttachment {
  render() {
    const { disabled, errors, field, value } = this;
    const hasError = errors && errors.length > 0;
    return (h("dvn-file-input", { disabled: disabled || field.disabled, placeholder: field.placeholder, onBlur: () => this.blur.emit(), value: value, multiple: field.multiple, feedback: hasError ? 'error' : undefined, leaned: true, overrideStyle: { width: '100%' } }));
  }
  static get is() { return "dvn-field-input-attachment"; }
  static get properties() { return {
    "disabled": {
      "type": "boolean",
      "mutable": false,
      "complexType": {
        "original": "boolean",
        "resolved": "boolean",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "disabled",
      "reflect": false
    },
    "field": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "AttachmentField",
        "resolved": "AttachmentField",
        "references": {
          "AttachmentField": {
            "location": "import",
            "path": "../attachment"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      }
    },
    "errors": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "any[]",
        "resolved": "any[]",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      }
    },
    "value": {
      "type": "any",
      "mutable": false,
      "complexType": {
        "original": "any",
        "resolved": "any",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "value",
      "reflect": false
    }
  }; }
  static get events() { return [{
      "method": "blur",
      "name": "blur",
      "bubbles": true,
      "cancelable": true,
      "composed": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "complexType": {
        "original": "any",
        "resolved": "any",
        "references": {}
      }
    }]; }
}
