import { computed as a, unref as i } from "vue";
import { g as p, i as c, h as u, j as n, q as o, s as l } from "./index-16cc6938.mjs";
const f = {
  key: "_input",
  name: "Input",
  description: "Basic input",
  icon: "mdiFormTextbox",
  sequence: 12,
  transform: p("el-input", (e, t) => {
    d(e, t, "prefix"), d(e, t, "suffix");
  }),
  editor: {
    basic: {
      init: { type: "text", clearable: !0, size: "default" },
      ui: function(e) {
        return [
          c("type", [
            "text",
            "textarea",
            "password",
            "button",
            "checkbox",
            "color",
            "date",
            "datetime-local",
            "email",
            "file",
            "hidden",
            "image",
            "month",
            "number",
            "radio",
            "range",
            "reset",
            "search",
            "submit",
            "tel",
            "time",
            "url",
            "week"
          ]),
          u("placeholder"),
          n("clearable", void 0, {
            "~show": a(() => i(e).type != "textarea")
          }),
          n("disabled"),
          c("size", ["large", "default", "small"]),
          o("minlength", "Min length"),
          o("maxlength", "Max length"),
          n("show-word-limit", void 0, {
            "~show": a(() => i(e).type == "textarea" || i(e).type == "text")
          }),
          o("rows", void 0, {
            "~show": a(() => i(e).type == "textarea")
          }),
          n("show-password"),
          l("_prefix-icon"),
          l("_suffix-icon")
        ];
      }
    },
    data: {
      type: "String",
      init: {
        mode: "fixed",
        dataContent: "Fixed data"
      }
    },
    event: {
      list: ["input", "change"],
      init: []
    },
    display: {
      init: {
        style: {
          margin: "6px 0"
        },
        class: ""
      }
    }
    // demo: {
    //   icon: 'mdiAccountBoxOutline',
    //   name: 'Demo',
    //   ui: [
    //     uiUtil.createSwitch('hello'),
    //     uiUtil.createSelect('world', ['American', 'China', 'Russia'])
    //   ],
    //   init: {
    //     hello: true,
    //     world: 'China'
    //   }
    // }
  }
};
function d(e, t, r) {
  const s = t["_" + r + "-icon"];
  s && (e["#" + r] = { "~component": "lc-icon", icon: s, size: "1.5em" });
}
export {
  f as default
};
