"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const userSelect = require("./userSelect.js");
const roleSelect = require("./roleSelect.js");
const defaultProperty = {
  fieldName: "fieldName",
  format: "number",
  labelMode: "default",
  displayMode: "all",
  hasDecimalPlaces: true,
  decimalPlaces: 2,
  optionStyle: "default",
  dateType: "date",
  dateValueType: "string",
  dateRange: "",
  suffixButton: "none",
  suffixDialogName: "选择",
  dialogSource: "global",
  selectionMode: "none",
  fieldMapping: []
};
const components = [
  {
    title: "基础组件",
    name: "basic",
    children: [
      {
        fieldType: "text",
        label: "单行文本",
        ...defaultProperty
      },
      {
        fieldType: "textarea",
        label: "多行文本",
        ...defaultProperty
      },
      {
        fieldType: "number",
        label: "数字",
        ...defaultProperty
      },
      {
        fieldType: "date",
        label: "日期时间",
        ...defaultProperty
      },
      {
        fieldType: "select",
        label: "下拉单选",
        ...defaultProperty
      },
      {
        fieldType: "multipleSelection",
        label: "下拉多选",
        ...defaultProperty
      },
      {
        fieldType: "radio",
        label: "单选框",
        ...defaultProperty
      },
      {
        fieldType: "checkbox",
        label: "多选框",
        ...defaultProperty
      },
      {
        fieldType: "switch",
        label: "开关",
        ...defaultProperty
      },
      {
        fieldType: "richText",
        label: "富文本",
        ...defaultProperty
      },
      {
        fieldType: "subTitle",
        label: "子标题",
        fieldName: "subTitle"
      },
      {
        fieldType: "h2",
        label: "标题",
        subLabel: "副标题",
        fieldName: "h2"
      },
      {
        fieldType: "blank",
        label: "空白占位"
      },
      {
        fieldType: "divider",
        label: "分割线"
      }
    ]
  },
  {
    title: "高级组件",
    name: "advanced",
    children: [
      {
        fieldType: "subForm",
        label: "子表单",
        titleMode: "none",
        dataSourceFrom: "main",
        formSource: "select",
        subFormParams: [],
        ...defaultProperty
      },
      {
        fieldType: "subTable",
        label: "子列表",
        titleMode: "none",
        dataSourceFrom: "main",
        subTableParams: [],
        subTableHeight: 300,
        subTableMaxHeight: 300,
        isSubTablePagination: true,
        subTableHeightType: "auto",
        ...defaultProperty
      },
      {
        fieldType: "upload",
        label: "上传文件",
        ...defaultProperty
      },
      {
        fieldType: "cascader",
        label: "级联选择",
        ...defaultProperty,
        showFullPath: true,
        optionConfig: {
          optionSource: "dataSource"
        },
        maxLevel: 10
      },
      {
        fieldType: "area",
        label: "区域选择",
        ...defaultProperty,
        showFullPath: true,
        maxLevel: 10
      },
      {
        fieldType: "industry",
        label: "行业选择",
        ...defaultProperty,
        showFullPath: true,
        maxLevel: 10
      },
      {
        fieldType: "userSelect",
        label: "用户选择",
        ...defaultProperty,
        dialogConfig: userSelect.default
      },
      {
        fieldType: "roleSelect",
        label: "角色选择",
        ...defaultProperty,
        dialogConfig: roleSelect.default
      },
      {
        fieldType: "orgSelect",
        label: "机构选择",
        ...defaultProperty
      },
      {
        fieldType: "approvalHistory",
        label: "审批历史",
        titleMode: "label",
        appHisDefault: "timeLine"
      },
      {
        fieldType: "document",
        label: "要件资料",
        titleMode: "label",
        isSupplement: true,
        multiple: true,
        download: true,
        acceptType: [
          "doc",
          "xls",
          "ppt",
          "pdf",
          "text",
          "image",
          "video",
          "audio",
          "zip"
        ],
        essentialParams: []
      },
      {
        fieldType: "contract",
        label: "合同信息",
        titleMode: "label",
        mode: "view",
        genType: "1",
        params: []
      }
    ]
  }
];
exports.default = components;
exports.defaultProperty = defaultProperty;
