import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
const EftposMeta: ComponentMetadata = {
  componentName: 'Eftpos',
  title: 'Eftpos',
  docUrl: '',
  screenshot: '',
  devMode: 'proCode',
  npm: {
    package: '@pisell/private-materials',
    version: '1.0.4',
    exportName: 'Eftpos',
    main: 'src/index.ts',
    destructuring: true,
    subName: '',
  },
  configure: {
    props: [
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'type',
            'zh-CN': 'type',
          },
        },
        name: 'type',
        setter: ['JsonSetter', 'VariableSetter'],
      },
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'name',
            'zh-CN': 'name',
          },
        },
        name: 'name',
        setter: ['JsonSetter', 'VariableSetter'],
      },

      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'config',
            'zh-CN': 'config',
          },
        },
        name: 'config',
        setter: ['JsonSetter', 'VariableSetter'],
      },
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'tyroUrl',
            'zh-CN': 'tyroUrl',
          },
        },
        name: 'tyroUrl',
        setter: ['JsonSetter', 'VariableSetter'],
      },
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'tyroVersion',
            'zh-CN': 'tyroVersion',
          },
        },
        name: 'tyroVersion',
        setter: ['JsonSetter', 'VariableSetter'],
      },
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'useTyroLog',
            'zh-CN': 'useTyroLog',
          },
        },
        name: 'useTyroLog',
        setter: ['JsonSetter', 'VariableSetter'],
      },
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'tableSize',
            'zh-CN': 'tableSize',
          },
        },
        name: 'tableSize',
        setter: ['JsonSetter', 'VariableSetter'],
      },
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'zIndex',
            'zh-CN': 'zIndex',
          },
        },
        name: 'zIndex',
        setter: ['JsonSetter', 'VariableSetter'],
      },
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'getField',
            'zh-CN': 'getField',
          },
        },
        name: 'getField',
        setter: ['FunctionSetter'],
      },
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'getComm',
            'zh-CN': 'getComm',
          },
        },
        name: 'getComm',
        setter: ['FunctionSetter'],
      },
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'getEfdId',
            'zh-CN': 'getEfdId',
          },
        },
        name: 'getEfdId',
        setter: ['FunctionSetter'],
      },
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'getList',
            'zh-CN': 'getList',
          },
        },
        name: 'getList',
        setter: ['FunctionSetter'],
      },
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'onEdit',
            'zh-CN': 'onEdit',
          },
        },
        name: 'onEdit',
        setter: ['FunctionSetter'],
      },

      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'onDel',
            'zh-CN': 'onDel',
          },
        },
        name: 'onDel',
        setter: ['FunctionSetter'],
      },

      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'onEditKey',
            'zh-CN': 'onEditKey',
          },
        },
        name: 'onEditKey',
        setter: ['FunctionSetter'],
      },
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'getPosComm',
            'zh-CN': 'getPosComm',
          },
        },
        name: 'getPosComm',
        setter: ['FunctionSetter'],
      },
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'savePos',
            'zh-CN': 'savePos',
          },
        },
        name: 'savePos',
        setter: ['FunctionSetter'],
      },
    ],
    supports: {
      style: true,
    },
    component: {},
  },
};
const snippets: Snippet[] = [
  {
    title: 'Eftpos',
    screenshot: '',
    schema: {
      componentName: 'Eftpos',
      props: {},
    },
  },
];

export default {
  ...EftposMeta,
  snippets,
};
