import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
import { DataUnit, DataType, UserInterface } from '@sankhyalabs/core';
import { d as defineCustomElement$5 } from './pesquisa-grid2.js';
import { d as defineCustomElement$4 } from './pesquisa-tree2.js';
import { d as defineCustomElement$3 } from './snk-application2.js';
import { d as defineCustomElement$2 } from './snk-pesquisa2.js';

const testePesquisaCss = ":host{display:block}";

const TestePesquisa$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
  constructor() {
    super();
    this.__registerHost();
    this.__attachShadow();
  }
  componentWillLoad() {
    this.dataUnit = new DataUnit("testes_com_formulario");
    this.dataUnit.metadata = {
      name: "dd://br.com.sankhya.fin.cad.movimentacaoFinanceira/Financeiro",
      label: "Parceiro",
      fields: [
        {
          name: "CODPARC",
          label: "Parceiro",
          dataType: DataType.NUMBER,
          userInterface: UserInterface.SEARCH,
          required: true,
          properties: { ENTITYNAME: "Parceiro" }
        }
      ]
    };
  }
  render() {
    return (h("snk-application", null, h("ez-form", { dataUnit: this.dataUnit })));
  }
  static get style() { return testePesquisaCss; }
}, [1, "teste-pesquisa"]);
function defineCustomElement$1() {
  if (typeof customElements === "undefined") {
    return;
  }
  const components = ["teste-pesquisa", "pesquisa-grid", "pesquisa-tree", "snk-application", "snk-pesquisa"];
  components.forEach(tagName => { switch (tagName) {
    case "teste-pesquisa":
      if (!customElements.get(tagName)) {
        customElements.define(tagName, TestePesquisa$1);
      }
      break;
    case "pesquisa-grid":
      if (!customElements.get(tagName)) {
        defineCustomElement$5();
      }
      break;
    case "pesquisa-tree":
      if (!customElements.get(tagName)) {
        defineCustomElement$4();
      }
      break;
    case "snk-application":
      if (!customElements.get(tagName)) {
        defineCustomElement$3();
      }
      break;
    case "snk-pesquisa":
      if (!customElements.get(tagName)) {
        defineCustomElement$2();
      }
      break;
  } });
}

const TestePesquisa = TestePesquisa$1;
const defineCustomElement = defineCustomElement$1;

export { TestePesquisa, defineCustomElement };
