
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';

const PisellGroupViewMeta: ComponentMetadata = {
  "componentName": "PisellGroupView",
  "title": "PisellGroupView",
  "docUrl": "",
  "screenshot": "",
  "devMode": "proCode",
  "npm": {
    "package": "@pisell/materials",
    "version": "6.11.229",
    "exportName": "PisellGroupView",
    "main": "src/index.tsx",
    "destructuring": true,
    "subName": ""
  },
  "configure": {
    "props": [
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "dataSource",
            "zh-CN": "数据源（应为外部已映"
          },
          "tip": "dataSource | 数据源（应为外部已映射好的列表）"
        },
        "name": "dataSource",
        "description": "数据源（应为外部已映射好的列表）",
        "setter": {
          "componentName": "ArraySetter",
          "props": {
            "itemSetter": {
              "componentName": "ObjectSetter",
              "props": {
                "config": {
                  "extraSetter": {
                    "componentName": "MixedSetter",
                    "isRequired": false,
                    "props": {}
                  }
                }
              },
              "isRequired": false,
              "initialValue": {}
            }
          },
          "isRequired": true,
          "initialValue": []
        }
      },
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "groupBy",
            "zh-CN": "分组规则"
          },
          "tip": "groupBy | 分组规则"
        },
        "name": "groupBy",
        "description": "分组规则",
        "setter": {
          "componentName": "MixedSetter",
          "props": {
            "setters": [
              {
                "componentName": "StringSetter",
                "isRequired": false,
                "initialValue": ""
              },
              {
                "componentName": "ArraySetter",
                "props": {
                  "itemSetter": {
                    "componentName": "StringSetter",
                    "isRequired": false,
                    "initialValue": ""
                  }
                },
                "initialValue": []
              },
              {
                "componentName": "FunctionSetter",
                "isRequired": false
              }
            ]
          },
          "isRequired": true
        }
      },
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "getGroupId",
            "zh-CN": "自定义分组 id 生"
          },
          "tip": "getGroupId | 自定义分组 id 生成，默认各键以 `|` 拼接"
        },
        "name": "getGroupId",
        "description": "自定义分组 id 生成，默认各键以 `|` 拼接",
        "setter": {
          "componentName": "MixedSetter",
          "props": {
            "setters": [
              {
                "componentName": "ObjectSetter",
                "props": {
                  "config": {
                    "extraSetter": {
                      "componentName": "MixedSetter",
                      "isRequired": false,
                      "props": {}
                    }
                  }
                },
                "isRequired": false,
                "initialValue": {}
              },
              {
                "componentName": "FunctionSetter"
              }
            ]
          }
        }
      },
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "sortGroups",
            "zh-CN": "分组之间的排序；不传"
          },
          "tip": "sortGroups | 分组之间的排序；不传保持首次出现顺序"
        },
        "name": "sortGroups",
        "description": "分组之间的排序；不传保持首次出现顺序",
        "setter": {
          "componentName": "MixedSetter",
          "props": {
            "setters": [
              {
                "componentName": "ObjectSetter",
                "props": {
                  "config": {
                    "extraSetter": {
                      "componentName": "MixedSetter",
                      "isRequired": false,
                      "props": {}
                    }
                  }
                },
                "isRequired": false,
                "initialValue": {}
              },
              {
                "componentName": "FunctionSetter",
                "isRequired": false
              }
            ]
          }
        }
      },
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "sortItems",
            "zh-CN": "分组内数据项的排序；"
          },
          "tip": "sortItems | 分组内数据项的排序；不传保持原始相对顺序"
        },
        "name": "sortItems",
        "description": "分组内数据项的排序；不传保持原始相对顺序",
        "setter": {
          "componentName": "MixedSetter",
          "props": {
            "setters": [
              {
                "componentName": "ObjectSetter",
                "props": {
                  "config": {
                    "extraSetter": {
                      "componentName": "MixedSetter",
                      "isRequired": false,
                      "props": {}
                    }
                  }
                },
                "isRequired": false,
                "initialValue": {}
              },
              {
                "componentName": "FunctionSetter",
                "isRequired": false
              }
            ]
          }
        }
      },
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "renderHeader",
            "zh-CN": "① 头部：分组条件对"
          },
          "tip": "renderHeader | ① 头部：分组条件对应的相同信息（时间、商品名、客户等）"
        },
        "name": "renderHeader",
        "description": "① 头部：分组条件对应的相同信息（时间、商品名、客户等）",
        "setter": {
          "componentName": "MixedSetter",
          "props": {
            "setters": [
              {
                "componentName": "ObjectSetter",
                "props": {
                  "config": {
                    "extraSetter": {
                      "componentName": "MixedSetter",
                      "isRequired": false,
                      "props": {}
                    }
                  }
                },
                "isRequired": false,
                "initialValue": {}
              },
              {
                "componentName": "FunctionSetter",
                "isRequired": false
              }
            ]
          }
        }
      },
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "renderStats",
            "zh-CN": "② 统计栏：可自定义"
          },
          "tip": "renderStats | ② 统计栏：可自定义展示，数据来源于分组后的数据"
        },
        "name": "renderStats",
        "description": "② 统计栏：可自定义展示，数据来源于分组后的数据",
        "setter": {
          "componentName": "MixedSetter",
          "props": {
            "setters": [
              {
                "componentName": "ObjectSetter",
                "props": {
                  "config": {
                    "extraSetter": {
                      "componentName": "MixedSetter",
                      "isRequired": false,
                      "props": {}
                    }
                  }
                },
                "isRequired": false,
                "initialValue": {}
              },
              {
                "componentName": "FunctionSetter",
                "isRequired": false
              }
            ]
          }
        }
      },
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "renderItem",
            "zh-CN": "③ 主体：渲染分组内"
          },
          "tip": "renderItem | ③ 主体：渲染分组内的单条数据为卡片"
        },
        "name": "renderItem",
        "description": "③ 主体：渲染分组内的单条数据为卡片",
        "setter": {
          "componentName": "MixedSetter",
          "props": {
            "setters": [
              {
                "componentName": "ObjectSetter",
                "props": {
                  "config": {
                    "extraSetter": {
                      "componentName": "MixedSetter",
                      "isRequired": false,
                      "props": {}
                    }
                  }
                },
                "isRequired": false,
                "initialValue": {}
              },
              {
                "componentName": "FunctionSetter",
                "isRequired": false
              }
            ]
          }
        }
      },
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "renderActions",
            "zh-CN": "④ 操作区：批量操作"
          },
          "tip": "renderActions | ④ 操作区：批量操作（加时、编辑等）"
        },
        "name": "renderActions",
        "description": "④ 操作区：批量操作（加时、编辑等）",
        "setter": {
          "componentName": "MixedSetter",
          "props": {
            "setters": [
              {
                "componentName": "ObjectSetter",
                "props": {
                  "config": {
                    "extraSetter": {
                      "componentName": "MixedSetter",
                      "isRequired": false,
                      "props": {}
                    }
                  }
                },
                "isRequired": false,
                "initialValue": {}
              },
              {
                "componentName": "FunctionSetter",
                "isRequired": false
              }
            ]
          }
        }
      },
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "itemLayout",
            "zh-CN": "主体布局"
          },
          "tip": "itemLayout | 主体布局"
        },
        "name": "itemLayout",
        "description": "主体布局",
        "defaultValue": "'stack'",
        "setter": {
          "componentName": "MixedSetter",
          "props": {
            "setters": [
              {
                "componentName": "ObjectSetter",
                "props": {
                  "config": {
                    "extraSetter": {
                      "componentName": "MixedSetter",
                      "isRequired": false,
                      "props": {}
                    }
                  }
                },
                "isRequired": false,
                "initialValue": {}
              },
              {
                "componentName": "ObjectSetter",
                "props": {
                  "config": {
                    "items": [
                      {
                        "title": {
                          "label": {
                            "type": "i18n",
                            "en-US": "columns",
                            "zh-CN": "columns"
                          }
                        },
                        "name": "columns",
                        "setter": {
                          "componentName": "MixedSetter",
                          "props": {
                            "setters": [
                              {
                                "componentName": "ObjectSetter",
                                "props": {
                                  "config": {
                                    "extraSetter": {
                                      "componentName": "MixedSetter",
                                      "isRequired": false,
                                      "props": {}
                                    }
                                  }
                                },
                                "isRequired": false,
                                "initialValue": {}
                              },
                              {
                                "componentName": "NumberSetter",
                                "isRequired": false,
                                "initialValue": 0
                              }
                            ]
                          }
                        }
                      },
                      {
                        "title": {
                          "label": {
                            "type": "i18n",
                            "en-US": "gap",
                            "zh-CN": "gap"
                          }
                        },
                        "name": "gap",
                        "setter": {
                          "componentName": "MixedSetter",
                          "props": {
                            "setters": [
                              {
                                "componentName": "ObjectSetter",
                                "props": {
                                  "config": {
                                    "extraSetter": {
                                      "componentName": "MixedSetter",
                                      "isRequired": false,
                                      "props": {}
                                    }
                                  }
                                },
                                "isRequired": false,
                                "initialValue": {}
                              },
                              {
                                "componentName": "StringSetter",
                                "isRequired": false,
                                "initialValue": ""
                              },
                              {
                                "componentName": "NumberSetter",
                                "isRequired": false,
                                "initialValue": 0
                              }
                            ]
                          }
                        }
                      },
                      {
                        "title": {
                          "label": {
                            "type": "i18n",
                            "en-US": "direction",
                            "zh-CN": "direction"
                          }
                        },
                        "name": "direction",
                        "setter": {
                          "componentName": "MixedSetter",
                          "props": {
                            "setters": [
                              {
                                "componentName": "ObjectSetter",
                                "props": {
                                  "config": {
                                    "extraSetter": {
                                      "componentName": "MixedSetter",
                                      "isRequired": false,
                                      "props": {}
                                    }
                                  }
                                },
                                "isRequired": false,
                                "initialValue": {}
                              },
                              {
                                "componentName": "RadioGroupSetter",
                                "props": {
                                  "dataSource": [
                                    {
                                      "label": "vertical",
                                      "value": "vertical"
                                    },
                                    {
                                      "label": "horizontal",
                                      "value": "horizontal"
                                    }
                                  ],
                                  "options": [
                                    {
                                      "label": "vertical",
                                      "value": "vertical"
                                    },
                                    {
                                      "label": "horizontal",
                                      "value": "horizontal"
                                    }
                                  ]
                                },
                                "initialValue": "vertical"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "title": {
                          "label": {
                            "type": "i18n",
                            "en-US": "wrap",
                            "zh-CN": "wrap"
                          }
                        },
                        "name": "wrap",
                        "setter": {
                          "componentName": "MixedSetter",
                          "props": {
                            "setters": [
                              {
                                "componentName": "ObjectSetter",
                                "props": {
                                  "config": {
                                    "extraSetter": {
                                      "componentName": "MixedSetter",
                                      "isRequired": false,
                                      "props": {}
                                    }
                                  }
                                },
                                "isRequired": false,
                                "initialValue": {}
                              },
                              {
                                "componentName": "RadioGroupSetter",
                                "props": {
                                  "dataSource": [
                                    {
                                      "label": "wrap",
                                      "value": "wrap"
                                    },
                                    {
                                      "label": "nowrap",
                                      "value": "nowrap"
                                    }
                                  ],
                                  "options": [
                                    {
                                      "label": "wrap",
                                      "value": "wrap"
                                    },
                                    {
                                      "label": "nowrap",
                                      "value": "nowrap"
                                    }
                                  ]
                                },
                                "initialValue": "wrap"
                              }
                            ]
                          }
                        }
                      }
                    ],
                    "extraSetter": {
                      "componentName": "MixedSetter",
                      "isRequired": false,
                      "props": {}
                    }
                  }
                }
              },
              {
                "componentName": "RadioGroupSetter",
                "props": {
                  "dataSource": [
                    {
                      "label": "stack",
                      "value": "stack"
                    }
                  ],
                  "options": [
                    {
                      "label": "stack",
                      "value": "stack"
                    }
                  ]
                },
                "initialValue": "stack"
              }
            ]
          }
        }
      },
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "renderBody",
            "zh-CN": "自定义主体容器"
          },
          "tip": "renderBody | 自定义主体容器"
        },
        "name": "renderBody",
        "description": "自定义主体容器",
        "setter": {
          "componentName": "MixedSetter",
          "props": {
            "setters": [
              {
                "componentName": "ObjectSetter",
                "props": {
                  "config": {
                    "extraSetter": {
                      "componentName": "MixedSetter",
                      "isRequired": false,
                      "props": {}
                    }
                  }
                },
                "isRequired": false,
                "initialValue": {}
              },
              {
                "componentName": "FunctionSetter",
                "isRequired": false
              }
            ]
          }
        }
      },
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "renderGroup",
            "zh-CN": "自定义整组容器"
          },
          "tip": "renderGroup | 自定义整组容器"
        },
        "name": "renderGroup",
        "description": "自定义整组容器",
        "setter": {
          "componentName": "MixedSetter",
          "props": {
            "setters": [
              {
                "componentName": "ObjectSetter",
                "props": {
                  "config": {
                    "extraSetter": {
                      "componentName": "MixedSetter",
                      "isRequired": false,
                      "props": {}
                    }
                  }
                },
                "isRequired": false,
                "initialValue": {}
              },
              {
                "componentName": "FunctionSetter",
                "isRequired": false
              }
            ]
          }
        }
      },
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "renderEmpty",
            "zh-CN": "数据源为空时的渲染"
          },
          "tip": "renderEmpty | 数据源为空时的渲染"
        },
        "name": "renderEmpty",
        "description": "数据源为空时的渲染",
        "setter": {
          "componentName": "MixedSetter",
          "props": {
            "setters": [
              {
                "componentName": "ObjectSetter",
                "props": {
                  "config": {
                    "extraSetter": {
                      "componentName": "MixedSetter",
                      "isRequired": false,
                      "props": {}
                    }
                  }
                },
                "isRequired": false,
                "initialValue": {}
              },
              {
                "componentName": "FunctionSetter",
                "isRequired": false
              }
            ]
          }
        }
      },
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "rowKey",
            "zh-CN": "主体内单条卡片的 k"
          },
          "tip": "rowKey | 主体内单条卡片的 key"
        },
        "name": "rowKey",
        "description": "主体内单条卡片的 key",
        "setter": {
          "componentName": "MixedSetter",
          "props": {
            "setters": [
              {
                "componentName": "ObjectSetter",
                "props": {
                  "config": {
                    "extraSetter": {
                      "componentName": "MixedSetter",
                      "isRequired": false,
                      "props": {}
                    }
                  }
                },
                "isRequired": false,
                "initialValue": {}
              },
              {
                "componentName": "StringSetter",
                "isRequired": false,
                "initialValue": ""
              },
              {
                "componentName": "FunctionSetter",
                "isRequired": false
              }
            ]
          }
        }
      },
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "variant",
            "zh-CN": "多端 variant"
          },
          "tip": "variant | 多端 variant，仅追加根节点 class"
        },
        "name": "variant",
        "description": "多端 variant，仅追加根节点 class",
        "setter": {
          "componentName": "MixedSetter",
          "props": {
            "setters": [
              {
                "componentName": "ObjectSetter",
                "props": {
                  "config": {
                    "extraSetter": {
                      "componentName": "MixedSetter",
                      "isRequired": false,
                      "props": {}
                    }
                  }
                },
                "isRequired": false,
                "initialValue": {}
              },
              {
                "componentName": "SelectSetter",
                "props": {
                  "dataSource": [
                    {
                      "label": "desktop",
                      "value": "desktop"
                    },
                    {
                      "label": "tablet",
                      "value": "tablet"
                    },
                    {
                      "label": "pos",
                      "value": "pos"
                    },
                    {
                      "label": "phone",
                      "value": "phone"
                    }
                  ],
                  "options": [
                    {
                      "label": "desktop",
                      "value": "desktop"
                    },
                    {
                      "label": "tablet",
                      "value": "tablet"
                    },
                    {
                      "label": "pos",
                      "value": "pos"
                    },
                    {
                      "label": "phone",
                      "value": "phone"
                    }
                  ]
                },
                "initialValue": "desktop"
              }
            ]
          }
        }
      },
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "className",
            "zh-CN": "自定义类名"
          },
          "tip": "className | 自定义类名"
        },
        "name": "className",
        "description": "自定义类名",
        "setter": {
          "componentName": "MixedSetter",
          "props": {
            "setters": [
              {
                "componentName": "ObjectSetter",
                "props": {
                  "config": {
                    "extraSetter": {
                      "componentName": "MixedSetter",
                      "isRequired": false,
                      "props": {}
                    }
                  }
                },
                "isRequired": false,
                "initialValue": {}
              },
              {
                "componentName": "StringSetter",
                "isRequired": false,
                "initialValue": ""
              }
            ]
          }
        }
      },
      {
        "title": {
          "label": {
            "type": "i18n",
            "en-US": "style",
            "zh-CN": "自定义样式"
          },
          "tip": "style | 自定义样式"
        },
        "name": "style",
        "description": "自定义样式",
        "setter": {
          "componentName": "MixedSetter",
          "props": {
            "setters": [
              {
                "componentName": "ObjectSetter",
                "props": {
                  "config": {
                    "extraSetter": {
                      "componentName": "MixedSetter",
                      "isRequired": false,
                      "props": {}
                    }
                  }
                },
                "isRequired": false,
                "initialValue": {}
              }
            ]
          }
        }
      }
    ],
    "supports": {},
    "component": {}
  }
};
const snippets: Snippet[] = [
  {
    "title": "PisellGroupView",
    "screenshot": "",
    "schema": {
      "componentName": "PisellGroupView",
      "props": {
        "itemLayout": "'stack'"
      }
    }
  }
];

export default {
  ...PisellGroupViewMeta,
  snippets
};
