@hipay/hipay-material-ui 1.0.0-beta.14 → 1.0.0-beta.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. package/HiBreadcrumb/HiBreadcrumb.js +28 -22
  2. package/HiBreadcrumb/HiStep.js +96 -60
  3. package/HiBreadcrumb/HiStepConnector.js +91 -26
  4. package/HiBreadcrumb/HiStepContent.js +122 -0
  5. package/HiBreadcrumb/HiStepIcon.js +86 -29
  6. package/HiBreadcrumb/HiStepLabel.js +128 -62
  7. package/HiBreadcrumb/HiStepper.js +5 -24
  8. package/HiDatePicker/Overlays/CustomOverlayLayout.js +3 -1
  9. package/HiDatePicker/Overlays/Overlay.js +14 -2
  10. package/HiForm/HiInput.js +24 -11
  11. package/HiForm/HiSlider.js +399 -0
  12. package/HiForm/index.js +9 -0
  13. package/HiTable/BodyCellBuilder.js +3 -0
  14. package/HiTable/BodyCells/CellIcon.js +26 -19
  15. package/HiTable/BodyCells/CellImage.js +17 -13
  16. package/HiTable/BodyCells/CellNumeric.js +7 -2
  17. package/HiTable/BodyCells/CellSentinel.js +14 -13
  18. package/HiTable/BodyCells/CellThirdPartySecurity.js +43 -19
  19. package/HiTable/HeaderCell.js +3 -2
  20. package/es/HiBreadcrumb/HiBreadcrumb.js +27 -19
  21. package/es/HiBreadcrumb/HiStep.js +55 -54
  22. package/es/HiBreadcrumb/HiStepConnector.js +86 -26
  23. package/es/HiBreadcrumb/HiStepContent.js +63 -0
  24. package/es/HiBreadcrumb/HiStepIcon.js +103 -35
  25. package/es/HiBreadcrumb/HiStepLabel.js +106 -63
  26. package/es/HiBreadcrumb/HiStepper.js +5 -21
  27. package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +3 -1
  28. package/es/HiDatePicker/Overlays/Overlay.js +9 -2
  29. package/es/HiForm/HiInput.js +19 -10
  30. package/es/HiForm/HiSlider.js +309 -0
  31. package/es/HiForm/index.js +1 -0
  32. package/es/HiTable/BodyCellBuilder.js +3 -0
  33. package/es/HiTable/BodyCells/CellIcon.js +15 -8
  34. package/es/HiTable/BodyCells/CellImage.js +16 -14
  35. package/es/HiTable/BodyCells/CellNumeric.js +6 -2
  36. package/es/HiTable/BodyCells/CellSentinel.js +8 -5
  37. package/es/HiTable/BodyCells/CellThirdPartySecurity.js +40 -15
  38. package/es/HiTable/HeaderCell.js +3 -2
  39. package/es/utils/hiHelpers.js +4 -3
  40. package/index.es.js +1 -1
  41. package/index.js +1 -1
  42. package/package.json +43 -43
  43. package/umd/hipay-material-ui.development.js +7679 -7170
  44. package/umd/hipay-material-ui.production.min.js +5 -5
  45. package/utils/hiHelpers.js +4 -2
@@ -0,0 +1,399 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.styles = undefined;
7
+
8
+ var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
9
+
10
+ var _defineProperty3 = _interopRequireDefault(_defineProperty2);
11
+
12
+ var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
13
+
14
+ var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
15
+
16
+ var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
17
+
18
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
19
+
20
+ var _createClass2 = require('babel-runtime/helpers/createClass');
21
+
22
+ var _createClass3 = _interopRequireDefault(_createClass2);
23
+
24
+ var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
25
+
26
+ var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
27
+
28
+ var _inherits2 = require('babel-runtime/helpers/inherits');
29
+
30
+ var _inherits3 = _interopRequireDefault(_inherits2);
31
+
32
+ var _extends2 = require('babel-runtime/helpers/extends');
33
+
34
+ var _extends3 = _interopRequireDefault(_extends2);
35
+
36
+ var _react = require('react');
37
+
38
+ var _react2 = _interopRequireDefault(_react);
39
+
40
+ var _propTypes = require('prop-types');
41
+
42
+ var _propTypes2 = _interopRequireDefault(_propTypes);
43
+
44
+ var _classnames = require('classnames');
45
+
46
+ var _classnames2 = _interopRequireDefault(_classnames);
47
+
48
+ var _withStyles = require('../styles/withStyles');
49
+
50
+ var _withStyles2 = _interopRequireDefault(_withStyles);
51
+
52
+ var _HiIconBuilder = require('../utils/HiIconBuilder');
53
+
54
+ var _HiIconBuilder2 = _interopRequireDefault(_HiIconBuilder);
55
+
56
+ var _HiFormControl = require('../HiForm/HiFormControl');
57
+
58
+ var _HiFormControl2 = _interopRequireDefault(_HiFormControl);
59
+
60
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
61
+
62
+ var styles = exports.styles = function styles(theme) {
63
+ return {
64
+ barContainer: {
65
+ width: '100%',
66
+ position: 'relative',
67
+ margin: '0 7px'
68
+ },
69
+ barHidden: {
70
+ width: '100%',
71
+ opacity: 0,
72
+ position: 'absolute',
73
+ top: '7px',
74
+ zIndex: '2'
75
+ },
76
+ mainContainer: (0, _extends3.default)({}, theme.typography.body1, {
77
+ display: 'flex',
78
+ flexWrap: 'nowrap',
79
+ alignItems: 'center'
80
+ }),
81
+ topContainer: {
82
+ display: 'flex',
83
+ flexWrap: 'nowrap',
84
+ height: '18px'
85
+ },
86
+ bottomContainer: {
87
+ display: 'flex',
88
+ flexWrap: 'nowrap',
89
+ height: '18px'
90
+ },
91
+ barValue: {
92
+ display: 'flex',
93
+ width: '100%',
94
+ height: '4px',
95
+ borderRadius: '2px',
96
+ backgroundColor: theme.palette.business.primary.normal,
97
+ position: 'absolute',
98
+ zIndex: '2'
99
+ },
100
+ arrow: {
101
+ position: 'absolute',
102
+ zIndex: '1',
103
+ color: theme.palette.business.primary.normal,
104
+ transform: 'translate(-50%,-25%)',
105
+ transition: 'transform 300ms cubic-bezier(0.4, 0, 0.2, 1)',
106
+ transitionProperty: 'transform color'
107
+ },
108
+ focused: {
109
+ transform: 'scale(1.7) translate(-29%, -11%)',
110
+ color: theme.palette.business.primary.dark
111
+ },
112
+ leftLabel: {
113
+ color: theme.palette.business.primary.normal,
114
+ left: '0px',
115
+ position: 'absolute',
116
+ fontSize: '11px',
117
+ alignSelf: 'flex-end'
118
+ },
119
+ rightLabel: {
120
+ color: '#737373',
121
+ right: '0px',
122
+ position: 'absolute',
123
+ fontSize: '11px',
124
+ alignSelf: 'flex-end'
125
+ },
126
+ textValue: {
127
+ position: 'absolute',
128
+ zIndex: '2'
129
+ }
130
+ };
131
+ };
132
+
133
+ /**
134
+ * HiSlider component
135
+ */
136
+
137
+ var HiSlider = function (_React$Component) {
138
+ (0, _inherits3.default)(HiSlider, _React$Component);
139
+
140
+ function HiSlider(props) {
141
+ (0, _classCallCheck3.default)(this, HiSlider);
142
+
143
+ var _this = (0, _possibleConstructorReturn3.default)(this, (HiSlider.__proto__ || (0, _getPrototypeOf2.default)(HiSlider)).call(this, props));
144
+
145
+ _this.leftLabelWidth = 0;
146
+ _this.rightLabelWidth = 0;
147
+ _this.textValueWidth = 0;
148
+ _this.barContainerWidth = 0;
149
+
150
+ _this.handleFocus = function (isFocused) {
151
+ return function () {
152
+ _this.setState({ focused: isFocused });
153
+ };
154
+ };
155
+
156
+ _this.state = {
157
+ focused: false
158
+ };
159
+
160
+ _this.leftLabel;
161
+ _this.rightLabel;
162
+ _this.textValue;
163
+ _this.barContainer;
164
+
165
+ _this.handleChange = _this.handleChange.bind(_this);
166
+ _this.handleFocus = _this.handleFocus.bind(_this);
167
+ return _this;
168
+ }
169
+
170
+ (0, _createClass3.default)(HiSlider, [{
171
+ key: 'componentDidMount',
172
+
173
+
174
+ /**
175
+ * Measures several components once they are mounted.
176
+ * If the value and a label (left or right) are hovered,
177
+ * we hide this label.
178
+ */
179
+ value: function componentDidMount() {
180
+ this.leftLabelWidth = this.leftLabel.offsetWidth;
181
+ this.rightLabelWidth = this.rightLabel.offsetWidth;
182
+ this.textValueWidth = this.textValue.offsetWidth;
183
+ this.barContainerWidth = this.barContainer.offsetWidth;
184
+
185
+ var _getHovering = this.getHovering(),
186
+ hoveringLeft = _getHovering.hoveringLeft,
187
+ hoveringRight = _getHovering.hoveringRight;
188
+
189
+ if (hoveringLeft || hoveringRight) {
190
+ this.forceUpdate();
191
+ }
192
+ }
193
+ }, {
194
+ key: 'handleChange',
195
+ value: function handleChange(event) {
196
+ this.props.onChange(parseFloat(event.target.value));
197
+ this.textValueWidth = this.textValue.offsetWidth;
198
+ }
199
+ }, {
200
+ key: 'getHovering',
201
+
202
+
203
+ /**
204
+ * Calculates if the labels are hovered.
205
+ */
206
+ value: function getHovering() {
207
+ var ratio = (this.props.value - this.props.min) / (this.props.max - this.props.min);
208
+ var hoveringLeft = this.leftLabelWidth - (ratio * this.barContainerWidth - ratio * this.textValueWidth) > 0;
209
+ var hoveringRight = this.barContainerWidth - ratio * this.barContainerWidth - this.rightLabelWidth - (1 - ratio) * this.textValueWidth < 0;
210
+ return { hoveringLeft: hoveringLeft, hoveringRight: hoveringRight };
211
+ }
212
+ }, {
213
+ key: 'render',
214
+ value: function render() {
215
+ var _this2 = this;
216
+
217
+ var _props = this.props,
218
+ classes = _props.classes,
219
+ className = _props.className,
220
+ min = _props.min,
221
+ max = _props.max,
222
+ leftLabel = _props.leftLabel,
223
+ rightLabel = _props.rightLabel,
224
+ step = _props.step,
225
+ suffix = _props.suffix,
226
+ id = _props.id,
227
+ label = _props.label,
228
+ theme = _props.theme,
229
+ value = _props.value;
230
+ var focused = this.state.focused;
231
+
232
+ var ratio = (value - min) / (max - min);
233
+ var percentage = ratio * 100;
234
+
235
+ var _getHovering2 = this.getHovering(),
236
+ hoveringLeft = _getHovering2.hoveringLeft,
237
+ hoveringRight = _getHovering2.hoveringRight;
238
+
239
+ var barColor = focused ? theme.palette.business.primary.dark : theme.palette.business.primary.normal;
240
+ return (
241
+ // HiFormControl pour l'affichage du label
242
+ _react2.default.createElement(
243
+ _HiFormControl2.default,
244
+ {
245
+ id: id,
246
+ label: label,
247
+ className: className,
248
+ onFocus: this.handleFocus(true),
249
+ onBlur: this.handleFocus(false)
250
+ },
251
+ _react2.default.createElement(
252
+ 'div',
253
+ { className: classes.mainContainer },
254
+ _react2.default.createElement(
255
+ 'div',
256
+ null,
257
+ min,
258
+ suffix
259
+ ),
260
+ _react2.default.createElement(
261
+ 'div',
262
+ { className: classes.barContainer, ref: function ref(div) {
263
+ return _this2.barContainer = div;
264
+ } },
265
+ _react2.default.createElement(
266
+ 'div',
267
+ { className: classes.topContainer },
268
+ !hoveringLeft && _react2.default.createElement(
269
+ 'div',
270
+ {
271
+ className: classes.leftLabel,
272
+ ref: function ref(div) {
273
+ return _this2.leftLabel = div;
274
+ }
275
+ },
276
+ leftLabel
277
+ ),
278
+ _react2.default.createElement(
279
+ 'div',
280
+ {
281
+ className: classes.textValue,
282
+ style: {
283
+ left: percentage + '%',
284
+ transform: 'translate(-' + percentage + '%)'
285
+ },
286
+ ref: function ref(div) {
287
+ return _this2.textValue = div;
288
+ }
289
+ },
290
+ value,
291
+ suffix
292
+ ),
293
+ !hoveringRight && _react2.default.createElement(
294
+ 'div',
295
+ {
296
+ className: classes.rightLabel,
297
+ ref: function ref(div) {
298
+ return _this2.rightLabel = div;
299
+ }
300
+ },
301
+ rightLabel
302
+ )
303
+ ),
304
+ _react2.default.createElement('div', {
305
+ className: classes.barValue,
306
+ style: {
307
+ background: 'linear-gradient(to right, ' + barColor + ', ' + barColor + ' ' + percentage + '%, #E0E0E0 ' + percentage + '%, #E0E0E0)'
308
+ }
309
+ }),
310
+ _react2.default.createElement('input', {
311
+ type: 'range',
312
+ min: min,
313
+ max: max,
314
+ value: value,
315
+ onChange: this.handleChange,
316
+ className: classes.barHidden,
317
+ step: step
318
+ }),
319
+ _react2.default.createElement(
320
+ 'div',
321
+ { className: classes.bottomContainer },
322
+ _react2.default.createElement(_HiIconBuilder2.default, {
323
+ className: (0, _classnames2.default)(classes.arrow, (0, _defineProperty3.default)({}, classes.focused, focused)),
324
+ icon: 'menu_up',
325
+ size: 24,
326
+ style: { left: percentage + '%' }
327
+ })
328
+ )
329
+ ),
330
+ _react2.default.createElement(
331
+ 'div',
332
+ null,
333
+ max,
334
+ suffix
335
+ )
336
+ )
337
+ )
338
+ );
339
+ }
340
+ }]);
341
+ return HiSlider;
342
+ }(_react2.default.Component);
343
+
344
+ HiSlider.propTypes = process.env.NODE_ENV !== "production" ? {
345
+ /**
346
+ * Useful to extend the style applied to components.
347
+ */
348
+ classes: _propTypes2.default.object,
349
+ /**
350
+ * Classes CSS appliquées.
351
+ */
352
+ className: _propTypes2.default.string,
353
+ /**
354
+ * Id de l'élément input
355
+ */
356
+ id: _propTypes2.default.string.isRequired,
357
+ /**
358
+ * Label du champ
359
+ */
360
+ label: _propTypes2.default.string,
361
+ /**
362
+ * The label to show on the left.
363
+ */
364
+ leftLabel: _propTypes2.default.string,
365
+ /**
366
+ * The Maximum value for the slider.
367
+ */
368
+ max: _propTypes2.default.number.isRequired,
369
+ /**
370
+ * The Minimum value for the slider.
371
+ */
372
+ min: _propTypes2.default.number.isRequired,
373
+ /**
374
+ * Fonction de callback appelée lorsqu'on change la valeur du slider.
375
+ */
376
+ onChange: _propTypes2.default.func,
377
+ /**
378
+ * The label to show on the right
379
+ */
380
+ rightLabel: _propTypes2.default.string,
381
+ /**
382
+ * The step between two selectable values.
383
+ */
384
+ step: _propTypes2.default.number,
385
+ /**
386
+ * The suffix to show after each number.
387
+ */
388
+ suffix: _propTypes2.default.string,
389
+ /**
390
+ * @ignore
391
+ */
392
+ theme: _propTypes2.default.object,
393
+ /**
394
+ * The
395
+ * value of the input.
396
+ */
397
+ value: _propTypes2.default.number
398
+ } : {};
399
+ exports.default = (0, _withStyles2.default)(styles, { name: 'HmuiHiSlider', withTheme: true })(HiSlider);
package/HiForm/index.js CHANGED
@@ -67,6 +67,15 @@ Object.defineProperty(exports, 'HiSearchField', {
67
67
  }
68
68
  });
69
69
 
70
+ var _HiSlider = require('./HiSlider');
71
+
72
+ Object.defineProperty(exports, 'HiSlider', {
73
+ enumerable: true,
74
+ get: function get() {
75
+ return _interopRequireDefault(_HiSlider).default;
76
+ }
77
+ });
78
+
70
79
  var _HiAddressField = require('./HiAddressField');
71
80
 
72
81
  Object.defineProperty(exports, 'HiAddressField', {
@@ -206,6 +206,7 @@ var BodyCellBuilder = function (_React$PureComponent) {
206
206
  cellElement = _react2.default.createElement(_BodyCells.CellIcon, {
207
207
  value: data.label ? data.label : data.value,
208
208
  icon: data.icon,
209
+ color: data.color,
209
210
  view: view,
210
211
  sticky: sticky
211
212
  });
@@ -215,6 +216,7 @@ var BodyCellBuilder = function (_React$PureComponent) {
215
216
  cellElement = _react2.default.createElement(_BodyCells.CellImage, {
216
217
  value: data.label ? data.label : data.value,
217
218
  path: data.img,
219
+ size: this.props.size,
218
220
  view: view,
219
221
  sticky: sticky
220
222
  });
@@ -224,6 +226,7 @@ var BodyCellBuilder = function (_React$PureComponent) {
224
226
  cellElement = _react2.default.createElement(_BodyCells.CellNumeric, {
225
227
  value: data.value,
226
228
  currency: data.currency,
229
+ precision: data.precision,
227
230
  locale: numberLocale,
228
231
  view: view,
229
232
  sticky: sticky
@@ -53,20 +53,21 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
53
53
 
54
54
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
55
55
 
56
- var styles = exports.styles = function styles(theme) {
57
- return {
58
- icon: {
59
- float: 'left'
60
- },
61
- label: {
62
- margin: 5
63
- },
64
- wrapper: {
65
- whiteSpace: 'nowrap',
66
- overflow: 'hidden',
67
- textOverflow: 'ellipsis'
68
- }
69
- };
56
+ var styles = exports.styles = {
57
+ icon: {
58
+ float: 'left'
59
+ },
60
+ label: {
61
+ margin: 5
62
+ },
63
+ wrapper: {
64
+ whiteSpace: 'nowrap',
65
+ overflow: 'hidden',
66
+ textOverflow: 'ellipsis'
67
+ },
68
+ nowrap: {
69
+ whiteSpace: 'nowrap'
70
+ }
70
71
  };
71
72
 
72
73
  /**
@@ -89,14 +90,15 @@ var CellIcon = function (_React$PureComponent) {
89
90
  classes = _props.classes,
90
91
  icon = _props.icon,
91
92
  value = _props.value,
92
- view = _props.view;
93
+ view = _props.view,
94
+ color = _props.color;
93
95
 
94
96
 
95
- var iconElement = icon !== '' ? _react2.default.createElement(_HiIconBuilder2.default, { className: classes.icon, icon: icon, size: 18 }) : '';
97
+ var iconElement = icon !== '' ? _react2.default.createElement(_HiIconBuilder2.default, { color: color, className: classes.icon, icon: icon, size: 18 }) : '';
96
98
 
97
99
  var tooltipContent = _react2.default.createElement(
98
100
  'div',
99
- null,
101
+ { className: classes.nowrap },
100
102
  iconElement,
101
103
  _react2.default.createElement(
102
104
  'span',
@@ -126,7 +128,8 @@ var CellIcon = function (_React$PureComponent) {
126
128
 
127
129
  CellIcon.defaultProps = {
128
130
  icon: '',
129
- view: 'l'
131
+ view: 'l',
132
+ color: '#000'
130
133
  };
131
134
  CellIcon.propTypes = process.env.NODE_ENV !== "production" ? {
132
135
  /**
@@ -134,7 +137,11 @@ CellIcon.propTypes = process.env.NODE_ENV !== "production" ? {
134
137
  */
135
138
  classes: _propTypes2.default.object,
136
139
  /**
137
- * Icône name [from material-design-icons](https://materialdesignicons.com/)
140
+ * Couleur de l'icône
141
+ */
142
+ color: _propTypes2.default.string.isRequired,
143
+ /**
144
+ * Icon name [from material-design-icons](https://materialdesignicons.com/)
138
145
  * used by HiIconBuilder
139
146
  */
140
147
  icon: _propTypes2.default.string,
@@ -52,12 +52,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
52
52
  var styles = exports.styles = function styles(theme) {
53
53
  return {
54
54
  img: {
55
- width: 24,
56
55
  height: 'auto',
57
56
  float: 'left'
58
57
  },
59
58
  smallImg: {
60
- width: 24,
61
59
  height: 'auto'
62
60
  },
63
61
  label: {
@@ -66,20 +64,18 @@ var styles = exports.styles = function styles(theme) {
66
64
  tooltipImg: {
67
65
  width: 24,
68
66
  height: 'auto',
69
- float: 'left',
70
- marginTop: 2
67
+ float: 'left'
71
68
  },
72
69
  tooltipLabel: {
73
70
  marginLeft: 5,
74
- position: 'relative',
75
- bottom: 2,
76
71
  verticalAlign: 'middle'
77
-
78
72
  },
79
73
  wrapper: {
74
+ display: 'flex',
75
+ alignItems: 'center',
80
76
  whiteSpace: 'nowrap',
81
- overflow: "hidden",
82
- textOverflow: "ellipsis"
77
+ overflow: 'hidden',
78
+ textOverflow: 'ellipsis'
83
79
  },
84
80
  center: {
85
81
  textAlign: 'center'
@@ -112,13 +108,14 @@ var CellImage = function (_React$PureComponent) {
112
108
  classes = _props.classes,
113
109
  path = _props.path,
114
110
  value = _props.value,
115
- view = _props.view;
111
+ view = _props.view,
112
+ size = _props.size;
116
113
 
117
114
 
118
115
  var tooltipContent = _react2.default.createElement(
119
116
  'div',
120
117
  { className: classes.tooltipContainer },
121
- _react2.default.createElement('img', { src: path, alt: value, className: classes.tooltipImg }),
118
+ _react2.default.createElement('img', { src: path, alt: value, className: classes.tooltipImg, width: size }),
122
119
  _react2.default.createElement(
123
120
  'span',
124
121
  { className: classes.tooltipLabel },
@@ -132,13 +129,13 @@ var CellImage = function (_React$PureComponent) {
132
129
  innerCellElement = _react2.default.createElement(
133
130
  'div',
134
131
  { className: classes.center },
135
- _react2.default.createElement('img', { src: path, alt: value, className: classes.smallImg })
132
+ _react2.default.createElement('img', { src: path, alt: value, className: classes.smallImg, width: size })
136
133
  );
137
134
  } else {
138
135
  innerCellElement = _react2.default.createElement(
139
136
  'div',
140
137
  { className: classes.wrapper },
141
- _react2.default.createElement('img', { src: path, alt: value, className: classes.img }),
138
+ _react2.default.createElement('img', { src: path, alt: value, className: classes.img, width: size }),
142
139
  !!value && _react2.default.createElement(
143
140
  'span',
144
141
  { className: classes.label },
@@ -173,6 +170,9 @@ var CellImage = function (_React$PureComponent) {
173
170
  return CellImage;
174
171
  }(_react2.default.PureComponent);
175
172
 
173
+ CellImage.defaultProps = {
174
+ size: 24
175
+ };
176
176
  CellImage.propTypes = process.env.NODE_ENV !== "production" ? {
177
177
  /**
178
178
  * Useful to extend the style applied to components.
@@ -182,6 +182,10 @@ CellImage.propTypes = process.env.NODE_ENV !== "production" ? {
182
182
  * Image path
183
183
  */
184
184
  path: _propTypes2.default.string,
185
+ /**
186
+ * Image path
187
+ */
188
+ size: _propTypes2.default.number.isRequired,
185
189
  /**
186
190
  * Value
187
191
  */
@@ -79,7 +79,8 @@ var CellNumeric = function (_React$PureComponent) {
79
79
  value = _props.value,
80
80
  locale = _props.locale,
81
81
  currency = _props.currency,
82
- view = _props.view;
82
+ view = _props.view,
83
+ precision = _props.precision;
83
84
 
84
85
 
85
86
  var displayedValue = '';
@@ -93,7 +94,7 @@ var CellNumeric = function (_React$PureComponent) {
93
94
  titleValue = (0, _hiHelpers.formatCurrencyAmount)(value, cst.VIEWS.LARGE, locale, currency);
94
95
  }
95
96
  } else {
96
- displayedValue = (0, _hiHelpers.formatNumber)(value, view, locale);
97
+ displayedValue = (0, _hiHelpers.formatNumber)(value, view, locale, precision);
97
98
  }
98
99
 
99
100
  return _react2.default.createElement(
@@ -127,6 +128,10 @@ CellNumeric.propTypes = process.env.NODE_ENV !== "production" ? {
127
128
  * Code de la devise (ISO 4217)
128
129
  */
129
130
  currency: _propTypes2.default.string,
131
+ /**
132
+ * Nombre de chiffres après la virgule
133
+ */
134
+ precision: _propTypes2.default.number,
130
135
  /**
131
136
  * View (L/M/S)
132
137
  */
@@ -51,16 +51,17 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
51
51
 
52
52
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
53
53
 
54
- var styles = exports.styles = function styles(theme) {
55
- return {
56
- smartDecision: {
57
- display: 'inline-block',
58
- minWidth: 18
59
- },
60
- label: {
61
- marginLeft: 2
62
- }
63
- };
54
+ var styles = exports.styles = {
55
+ smartDecision: {
56
+ display: 'inline-block',
57
+ minWidth: 18
58
+ },
59
+ label: {
60
+ marginLeft: 2
61
+ },
62
+ nowrap: {
63
+ whiteSpace: 'nowrap'
64
+ }
64
65
  };
65
66
 
66
67
  /**
@@ -135,17 +136,17 @@ var CellSentinel = function (_React$PureComponent) {
135
136
  null,
136
137
  _react2.default.createElement(
137
138
  'div',
138
- null,
139
+ { className: classes.nowrap },
139
140
  scoreLabel
140
141
  ),
141
142
  _react2.default.createElement(
142
143
  'div',
143
- null,
144
+ { className: classes.nowrap },
144
145
  fraudResult
145
146
  ),
146
147
  !!smartDecision && automaticFraudReviewResult && _react2.default.createElement(
147
148
  'div',
148
- null,
149
+ { className: classes.nowrap },
149
150
  'SD: ',
150
151
  automaticFraudReviewResult
151
152
  )