"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _locale = require("../../src/locale");
var _snippets = _interopRequireDefault(require("./snippets"));
var _default = exports["default"] = {
  snippets: _snippets["default"],
  componentName: 'InputNumber',
  "group": (0, _locale.t)('input-number.key_KQIASTZ2yXuH'),
  title: (0, _locale.t)('input-number.key_npxOFwjCPMTo'),
  category: (0, _locale.t)('input-number.key_pq0f7gmdLgv7'),
  props: [{
    name: 'defaultValue',
    title: {
      label: (0, _locale.t)('input-number.key_yJWDrJ23Fk9V'),
      tip: (0, _locale.t)('input-number.key_yb3ixYL0SYXT')
    },
    propType: 'number',
    setter: 'NumberSetter'
  }, {
    name: 'value',
    title: {
      label: (0, _locale.t)('input-number.key_daKFzKPhBk3w'),
      tip: (0, _locale.t)('input-number.key_9ulLkDrmvVna')
    },
    propType: 'number',
    setter: 'NumberSetter'
  }, {
    name: 'autoFocus',
    title: {
      label: (0, _locale.t)('input-number.key_FXIZZcoLFnyV'),
      tip: (0, _locale.t)('input-number.key_mjOGL3niAPDl')
    },
    propType: 'bool',
    defaultValue: false,
    setter: 'BoolSetter'
  }, {
    name: 'disabled',
    title: {
      label: (0, _locale.t)('input-number.key_NClcxfrOYeyX'),
      tip: (0, _locale.t)('input-number.key_1MRW2h1oDkyQ')
    },
    propType: 'bool',
    defaultValue: false,
    setter: 'BoolSetter'
  }, {
    name: 'placeholder',
    title: {
      label: (0, _locale.t)('input-number.key_9sJIQk32u85Y'),
      tip: (0, _locale.t)('input-number.key_z03M2RhtweC0')
    },
    propType: 'string',
    defaultValue: (0, _locale.t)('input-number.key_Bd2QXl153ppq'),
    setter: 'StringSetter'
  }, {
    name: 'controls',
    title: {
      label: (0, _locale.t)('input-number.key_cK4OLvJqyHR0'),
      tip: (0, _locale.t)('input-number.key_uJ8yivMuQIYc')
    },
    propType: 'bool',
    defaultValue: true,
    setter: 'BoolSetter'
  }, {
    name: 'bordered',
    title: {
      label: (0, _locale.t)('input-number.key_7PQ5dKp18yzM'),
      tip: (0, _locale.t)('input-number.key_5WDHh5vmDBrA')
    },
    propType: 'bool',
    defaultValue: true,
    setter: 'BoolSetter'
  }, {
    name: 'addonAfter',
    title: {
      label: (0, _locale.t)('input-number.key_mH87YuRiFTiA'),
      tip: (0, _locale.t)('input-number.key_7wVLcuTGYKBL')
    },
    propType: {
      type: 'oneOfType',
      value: ['string', 'node']
    }
  }, {
    name: 'addonBefore',
    title: {
      label: (0, _locale.t)('input-number.key_t7DJ9VkMEBqz'),
      tip: (0, _locale.t)('input-number.key_WKvY5RrTe8UW')
    },
    propType: {
      type: 'oneOfType',
      value: ['string', 'node']
    }
  }, {
    name: 'max',
    title: {
      label: (0, _locale.t)('input-number.key_jqQYTYmpboBc'),
      tip: (0, _locale.t)('input-number.key_4WgsdP2iwcNY')
    },
    propType: 'number',
    setter: 'NumberSetter'
  }, {
    name: 'min',
    title: {
      label: (0, _locale.t)('input-number.key_R5QpN9GfiPgG'),
      tip: (0, _locale.t)('input-number.key_vXoZs9psXENx')
    },
    propType: 'number',
    setter: 'NumberSetter'
  }, {
    name: 'precision',
    title: {
      label: (0, _locale.t)('input-number.key_oJPphVEofO9G'),
      tip: (0, _locale.t)('input-number.key_8ck8JcfDYVyH')
    },
    propType: 'number',
    setter: 'NumberSetter'
  }, {
    name: 'size',
    title: {
      label: (0, _locale.t)('input-number.key_x7YGYKweeiwL'),
      tip: (0, _locale.t)('input-number.key_CUEdRAIYQHDP')
    },
    propType: {
      type: 'oneOf',
      value: ['large', 'middle', 'small']
    },
    setter: {
      componentName: 'RadioGroupSetter',
      props: {
        options: [{
          title: (0, _locale.t)('input-number.key_nZblxuxp6NZZ'),
          value: 'large'
        }, {
          title: (0, _locale.t)('input-number.key_Uyxwav46VCok'),
          value: 'middle'
        }, {
          title: (0, _locale.t)('input-number.key_0y4SKBmRgjZn'),
          value: 'small'
        }]
      }
    },
    defaultValue: 'middle'
  }, {
    name: 'step',
    title: {
      label: (0, _locale.t)('input-number.key_ZW3Gsn132uKI'),
      tip: (0, _locale.t)('input-number.key_d2fvKniaa529')
    },
    propType: 'number',
    setter: 'NumberSetter'
  }, {
    name: 'onChange',
    title: {
      label: (0, _locale.t)('input-number.key_TsmgiO3MLENy'),
      tip: (0, _locale.t)('input-number.key_WpQmDUbXx2Ea')
    },
    propType: 'func'
  }, {
    name: 'onPressEnter',
    title: {
      label: (0, _locale.t)('input-number.key_pblfDDrVZurE'),
      tip: (0, _locale.t)('input-number.key_7mOoqzdv9e2a')
    },
    propType: 'func'
  }, {
    name: 'onFocus',
    title: {
      label: (0, _locale.t)('input-number.key_UPVRluevhrcE'),
      tip: (0, _locale.t)('input-number.key_rZS6bvJSsk7m')
    },
    propType: 'func'
  }, {
    name: 'onKeyDown',
    title: {
      label: (0, _locale.t)('input-number.key_lkjg0zR5ncXi'),
      tip: (0, _locale.t)('input-number.key_odqPB7O6XofW')
    },
    propType: 'func'
  }, {
    name: 'onKeyPress',
    title: {
      label: (0, _locale.t)('input-number.key_K3iXbqaFkEy7'),
      tip: (0, _locale.t)('input-number.key_DYdw7zx42Z0O')
    },
    propType: 'func'
  }, {
    name: 'onKeyUp',
    title: {
      label: (0, _locale.t)('input-number.key_QmXSfeanGrWp'),
      tip: (0, _locale.t)('input-number.key_8GTOlVraxhkz')
    },
    propType: 'func'
  }, {
    name: 'onBlur',
    title: {
      label: (0, _locale.t)('input-number.key_OtWcpq1MrWWc'),
      tip: (0, _locale.t)('input-number.key_NyZ47yKmcb40')
    },
    propType: 'func'
  }],
  configure: {
    supports: {
      style: true,
      events: false
    }
  }
};