// import { BaseField, BaseInputProps } from '../../BaseField';
// import { SubForm } from './SubForm';
import { Component, Prop } from '@stencil/core';
export class DvnFieldInputSubForm {
  render() {
    return 'Not Implemented';
  }
  static get is() { return "dvn-field-input-sub-form"; }
  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": "SubFormField",
        "resolved": "SubFormField",
        "references": {
          "SubFormField": {
            "location": "import",
            "path": "../sub-form"
          }
        }
      },
      "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": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "value",
      "reflect": false
    }
  }; }
}
/*export interface IProps extends BaseInputProps<SubForm, any> {
}

// TODO
export class InputSubForm extends React.Component<IProps> {

  public render() {
    const { disabled, field, errors, onChange, value } = this.props;
    const hasError = errors && errors.length > 0;
    const error = hasError ? errors![0] : undefined;

    // add values to the fields
    const fieldsWithValues = field.fields.map(f => ({ ...f, value: (value || {})[f.id] })) as BaseField[];

    return (
      <div>
        {/!*<Form*!/}
        {/!*  fields={fieldsWithValues}*!/}
        {/!*  language={field.language}*!/}
        {/!*  layout={field.layout}*!/}
        {/!*  loading={disabled}*!/}
        {/!*  onChange={onChange}*!/}
        {/!*  showFieldOrder={field.showFieldOrder}*!/}
        {/!*!/>*!/}

        <div>
          {error}
        </div>
      </div>
    );
  }
}*/
