@hipay/hipay-material-ui 1.0.0-beta.22 → 1.0.0-beta.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. package/HI-CHANGELOG.md +26 -43
  2. package/HiChip/HiChip.js +67 -8
  3. package/HiChip/HiChipSwitch.js +6 -0
  4. package/HiDatePicker/HiDatePicker.js +35 -21
  5. package/HiDatePicker/HiDateRangePicker.js +92 -50
  6. package/HiDatePicker/HiDateRangeSelector.js +15 -4
  7. package/HiDatePicker/Overlays/Overlay.js +1 -1
  8. package/HiDatePicker/stylesheet.js +3 -0
  9. package/HiForm/HiInput.js +12 -2
  10. package/HiForm/HiPasswordField.js +8 -3
  11. package/HiLoader/HiLoader.js +7 -4
  12. package/HiPins/HiPins.js +6 -4
  13. package/HiSelect/HiSelect.js +26 -6
  14. package/HiSelect/HiSuggestSelect.js +2 -1
  15. package/HiSelect/SelectInput.js +3 -8
  16. package/HiSelectableList/HiSelectableList.js +51 -49
  17. package/HiSelectableList/HiSelectableListItem.js +18 -2
  18. package/HiTable/BodyCellBuilder.js +22 -12
  19. package/HiTable/BodyCells/CellAccount.js +13 -4
  20. package/HiTable/BodyCells/CellAccountNumber.js +12 -3
  21. package/HiTable/BodyCells/CellAddress.js +12 -3
  22. package/HiTable/BodyCells/CellCountry.js +12 -3
  23. package/HiTable/BodyCells/CellDate.js +43 -42
  24. package/HiTable/BodyCells/CellIcon.js +12 -3
  25. package/HiTable/BodyCells/CellImage.js +12 -3
  26. package/HiTable/BodyCells/CellNumeric.js +12 -3
  27. package/HiTable/BodyCells/CellRate.js +12 -3
  28. package/HiTable/BodyCells/CellSentinel.js +17 -7
  29. package/HiTable/BodyCells/CellStatus.js +13 -4
  30. package/HiTable/BodyCells/CellText.js +17 -7
  31. package/HiTable/BodyCells/CellThirdPartySecurity.js +12 -3
  32. package/HiTable/BodyRow.js +12 -3
  33. package/HiTable/ColumnFilter.js +2 -5
  34. package/HiTable/HeaderCell.js +21 -11
  35. package/HiTable/HiStickyRow.js +24 -13
  36. package/HiTable/HiTable.js +30 -69
  37. package/HiTable/HiTableBody.js +99 -29
  38. package/HiTable/HiTableContextMenu.js +31 -16
  39. package/HiTable/HiTableFooter.js +9 -0
  40. package/HiTable/HiTableHead.js +15 -7
  41. package/HiTopBar/HiTopBar.js +6 -0
  42. package/README.md +71 -6
  43. package/es/HiChip/HiChip.js +79 -8
  44. package/es/HiChip/HiChipSwitch.js +6 -0
  45. package/es/HiDatePicker/HiDatePicker.js +30 -21
  46. package/es/HiDatePicker/HiDateRangePicker.js +86 -52
  47. package/es/HiDatePicker/HiDateRangeSelector.js +14 -4
  48. package/es/HiDatePicker/Overlays/Overlay.js +1 -1
  49. package/es/HiDatePicker/stylesheet.js +3 -0
  50. package/es/HiForm/HiInput.js +12 -2
  51. package/es/HiForm/HiPasswordField.js +8 -3
  52. package/es/HiLoader/HiLoader.js +3 -3
  53. package/es/HiPins/HiPins.js +4 -4
  54. package/es/HiSelect/HiSelect.js +25 -6
  55. package/es/HiSelect/HiSuggestSelect.js +2 -1
  56. package/es/HiSelect/SelectInput.js +3 -8
  57. package/es/HiSelectableList/HiSelectableList.js +51 -49
  58. package/es/HiSelectableList/HiSelectableListItem.js +15 -2
  59. package/es/HiTable/BodyCellBuilder.js +8 -2
  60. package/es/HiTable/BodyCells/CellAccount.js +7 -2
  61. package/es/HiTable/BodyCells/CellAccountNumber.js +6 -1
  62. package/es/HiTable/BodyCells/CellAddress.js +6 -1
  63. package/es/HiTable/BodyCells/CellCountry.js +6 -1
  64. package/es/HiTable/BodyCells/CellDate.js +28 -37
  65. package/es/HiTable/BodyCells/CellIcon.js +6 -1
  66. package/es/HiTable/BodyCells/CellImage.js +6 -1
  67. package/es/HiTable/BodyCells/CellNumeric.js +6 -1
  68. package/es/HiTable/BodyCells/CellRate.js +6 -1
  69. package/es/HiTable/BodyCells/CellSentinel.js +6 -1
  70. package/es/HiTable/BodyCells/CellStatus.js +7 -2
  71. package/es/HiTable/BodyCells/CellText.js +6 -1
  72. package/es/HiTable/BodyCells/CellThirdPartySecurity.js +6 -1
  73. package/es/HiTable/BodyRow.js +7 -2
  74. package/es/HiTable/ColumnFilter.js +2 -5
  75. package/es/HiTable/HeaderCell.js +16 -9
  76. package/es/HiTable/HiStickyRow.js +20 -13
  77. package/es/HiTable/HiTable.js +4 -40
  78. package/es/HiTable/HiTableBody.js +78 -26
  79. package/es/HiTable/HiTableContextMenu.js +28 -16
  80. package/es/HiTable/HiTableFooter.js +5 -0
  81. package/es/HiTable/HiTableHead.js +11 -6
  82. package/es/HiTopBar/HiTopBar.js +5 -0
  83. package/es/utils/HiIconBuilder.js +6 -2
  84. package/index.es.js +1 -1
  85. package/index.js +1 -1
  86. package/package.json +6 -1
  87. package/umd/hipay-material-ui.development.js +99120 -65306
  88. package/umd/hipay-material-ui.production.min.js +5 -5
  89. package/utils/HiIconBuilder.js +6 -2
@@ -5,6 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.styles = undefined;
7
7
 
8
+ var _stringify = require('babel-runtime/core-js/json/stringify');
9
+
10
+ var _stringify2 = _interopRequireDefault(_stringify);
11
+
8
12
  var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
9
13
 
10
14
  var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
@@ -74,8 +78,8 @@ var styles = exports.styles = function styles(theme) {
74
78
  * - tous les champs définis sont affichés dans le tooltip
75
79
  */
76
80
 
77
- var CellAddress = function (_React$PureComponent) {
78
- (0, _inherits3.default)(CellAddress, _React$PureComponent);
81
+ var CellAddress = function (_React$Component) {
82
+ (0, _inherits3.default)(CellAddress, _React$Component);
79
83
 
80
84
  function CellAddress() {
81
85
  (0, _classCallCheck3.default)(this, CellAddress);
@@ -83,6 +87,11 @@ var CellAddress = function (_React$PureComponent) {
83
87
  }
84
88
 
85
89
  (0, _createClass3.default)(CellAddress, [{
90
+ key: 'shouldComponentUpdate',
91
+ value: function shouldComponentUpdate(nextProps, nextState) {
92
+ return (0, _stringify2.default)(this.props) !== (0, _stringify2.default)(nextProps) || (0, _stringify2.default)(this.state) !== (0, _stringify2.default)(nextState);
93
+ }
94
+ }, {
86
95
  key: 'render',
87
96
  value: function render() {
88
97
  var _props = this.props,
@@ -157,7 +166,7 @@ var CellAddress = function (_React$PureComponent) {
157
166
  }
158
167
  }]);
159
168
  return CellAddress;
160
- }(_react2.default.PureComponent);
169
+ }(_react2.default.Component);
161
170
 
162
171
  CellAddress.defaultProps = {
163
172
  view: 'l'
@@ -5,6 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.styles = undefined;
7
7
 
8
+ var _stringify = require('babel-runtime/core-js/json/stringify');
9
+
10
+ var _stringify2 = _interopRequireDefault(_stringify);
11
+
8
12
  var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
9
13
 
10
14
  var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
@@ -94,8 +98,8 @@ var styles = exports.styles = function styles(theme) {
94
98
  *
95
99
  */
96
100
 
97
- var CellCountry = function (_React$PureComponent) {
98
- (0, _inherits3.default)(CellCountry, _React$PureComponent);
101
+ var CellCountry = function (_React$Component) {
102
+ (0, _inherits3.default)(CellCountry, _React$Component);
99
103
 
100
104
  function CellCountry() {
101
105
  (0, _classCallCheck3.default)(this, CellCountry);
@@ -103,6 +107,11 @@ var CellCountry = function (_React$PureComponent) {
103
107
  }
104
108
 
105
109
  (0, _createClass3.default)(CellCountry, [{
110
+ key: 'shouldComponentUpdate',
111
+ value: function shouldComponentUpdate(nextProps, nextState) {
112
+ return (0, _stringify2.default)(this.props) !== (0, _stringify2.default)(nextProps) || (0, _stringify2.default)(this.state) !== (0, _stringify2.default)(nextState);
113
+ }
114
+ }, {
106
115
  key: 'render',
107
116
  value: function render() {
108
117
  var _props = this.props,
@@ -120,7 +129,7 @@ var CellCountry = function (_React$PureComponent) {
120
129
  }
121
130
  }]);
122
131
  return CellCountry;
123
- }(_react2.default.PureComponent);
132
+ }(_react2.default.Component);
124
133
 
125
134
  CellCountry.propTypes = process.env.NODE_ENV !== "production" ? {
126
135
  /**
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.styles = undefined;
7
7
 
8
- var _extends2 = require('babel-runtime/helpers/extends');
8
+ var _stringify = require('babel-runtime/core-js/json/stringify');
9
9
 
10
- var _extends3 = _interopRequireDefault(_extends2);
10
+ var _stringify2 = _interopRequireDefault(_stringify);
11
11
 
12
12
  var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
13
13
 
@@ -37,6 +37,12 @@ var _propTypes = require('prop-types');
37
37
 
38
38
  var _propTypes2 = _interopRequireDefault(_propTypes);
39
39
 
40
+ var _moment = require('moment');
41
+
42
+ var _moment2 = _interopRequireDefault(_moment);
43
+
44
+ require('moment/locale/fr');
45
+
40
46
  var _withStyles = require('../../styles/withStyles');
41
47
 
42
48
  var _withStyles2 = _interopRequireDefault(_withStyles);
@@ -73,11 +79,25 @@ var CellDate = function (_React$Component) {
73
79
  (0, _inherits3.default)(CellDate, _React$Component);
74
80
 
75
81
  function CellDate() {
82
+ var _ref;
83
+
84
+ var _temp, _this, _ret;
85
+
76
86
  (0, _classCallCheck3.default)(this, CellDate);
77
- return (0, _possibleConstructorReturn3.default)(this, (CellDate.__proto__ || (0, _getPrototypeOf2.default)(CellDate)).apply(this, arguments));
87
+
88
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
89
+ args[_key] = arguments[_key];
90
+ }
91
+
92
+ return _ret = (_temp = (_this = (0, _possibleConstructorReturn3.default)(this, (_ref = CellDate.__proto__ || (0, _getPrototypeOf2.default)(CellDate)).call.apply(_ref, [this].concat(args))), _this), _this.formatLong = 'dddd DD MMMM YYYY HH:mm:ss', _temp), (0, _possibleConstructorReturn3.default)(_this, _ret);
78
93
  }
79
94
 
80
95
  (0, _createClass3.default)(CellDate, [{
96
+ key: 'shouldComponentUpdate',
97
+ value: function shouldComponentUpdate(nextProps, nextState) {
98
+ return (0, _stringify2.default)(this.props) !== (0, _stringify2.default)(nextProps) || (0, _stringify2.default)(this.state) !== (0, _stringify2.default)(nextState);
99
+ }
100
+ }, {
81
101
  key: 'render',
82
102
  value: function render() {
83
103
  var _props = this.props,
@@ -85,44 +105,19 @@ var CellDate = function (_React$Component) {
85
105
  displayTime = _props.displayTime,
86
106
  value = _props.value,
87
107
  locale = _props.locale,
88
- view = _props.view;
89
-
90
-
91
- var date = new Date(value);
92
-
93
- var options = (0, _extends3.default)({
94
- weekday: 'long',
95
- year: 'numeric',
96
- month: 'long',
97
- day: '2-digit'
98
- }, displayTime && {
99
- hour: '2-digit',
100
- minute: '2-digit',
101
- second: '2-digit'
102
- });
103
- var titleValue = date.toLocaleString(locale, options);
108
+ view = _props.view,
109
+ formatShort = _props.formatShort;
110
+
111
+
112
+ var date = (0, _moment2.default)(value);
113
+ _moment2.default.locale(locale);
114
+
115
+ var titleValue = displayTime ? date.format(this.formatLong) : date.format(this.formatLong.replace('HH:mm:ss', ''));
104
116
  var displayedValue = titleValue;
105
117
  if (view === cst.VIEWS.SMALL) {
106
- options = (0, _extends3.default)({
107
- year: '2-digit',
108
- month: '2-digit',
109
- day: '2-digit'
110
- }, displayTime && {
111
- hour: '2-digit',
112
- minute: '2-digit'
113
- });
114
- displayedValue = date.toLocaleString(locale, options);
118
+ displayedValue = displayTime ? date.format(formatShort.replace('YYYY', 'YY') + ' HH:mm:ss') : date.format(formatShort.replace('YYYY', 'YY'));
115
119
  } else if (view === cst.VIEWS.MEDIUM) {
116
- options = (0, _extends3.default)({
117
- year: 'numeric',
118
- month: '2-digit',
119
- day: '2-digit'
120
- }, displayTime && {
121
- hour: '2-digit',
122
- minute: '2-digit',
123
- second: '2-digit'
124
- });
125
- displayedValue = date.toLocaleString(locale, options);
120
+ displayedValue = displayTime ? date.format(formatShort + ' HH:mm:ss') : date.format(formatShort);
126
121
  }
127
122
 
128
123
  if (view === cst.VIEWS.LARGE) {
@@ -149,8 +144,9 @@ var CellDate = function (_React$Component) {
149
144
 
150
145
  CellDate.defaultProps = {
151
146
  displayTime: false,
152
- locale: 'en-EN',
153
- view: 'l'
147
+ locale: 'en',
148
+ view: 'l',
149
+ formatShort: 'DD/MM/YYYY'
154
150
  };
155
151
  CellDate.propTypes = process.env.NODE_ENV !== "production" ? {
156
152
  /**
@@ -162,11 +158,16 @@ CellDate.propTypes = process.env.NODE_ENV !== "production" ? {
162
158
  */
163
159
  displayTime: _propTypes2.default.bool,
164
160
  /**
165
- * Locale BCP 47
161
+ * Format de la date en vue small (ex: DD/MM/YYYY)
162
+ * @see https://momentjs.com/docs/#/parsing/string-format/
163
+ */
164
+ formatShort: _propTypes2.default.string.isRequired,
165
+ /**
166
+ * Locale moment
166
167
  */
167
168
  locale: _propTypes2.default.string,
168
169
  /**
169
- * Volume/Amount
170
+ * Date as string
170
171
  */
171
172
  value: _propTypes2.default.string.isRequired,
172
173
  /**
@@ -5,6 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.styles = undefined;
7
7
 
8
+ var _stringify = require('babel-runtime/core-js/json/stringify');
9
+
10
+ var _stringify2 = _interopRequireDefault(_stringify);
11
+
8
12
  var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
9
13
 
10
14
  var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
@@ -75,8 +79,8 @@ var styles = exports.styles = {
75
79
  * En vue small (s) elle affiche uniquement l'icône avec une largeur fixe.
76
80
  */
77
81
 
78
- var CellIcon = function (_React$PureComponent) {
79
- (0, _inherits3.default)(CellIcon, _React$PureComponent);
82
+ var CellIcon = function (_React$Component) {
83
+ (0, _inherits3.default)(CellIcon, _React$Component);
80
84
 
81
85
  function CellIcon() {
82
86
  (0, _classCallCheck3.default)(this, CellIcon);
@@ -84,6 +88,11 @@ var CellIcon = function (_React$PureComponent) {
84
88
  }
85
89
 
86
90
  (0, _createClass3.default)(CellIcon, [{
91
+ key: 'shouldComponentUpdate',
92
+ value: function shouldComponentUpdate(nextProps, nextState) {
93
+ return (0, _stringify2.default)(this.props) !== (0, _stringify2.default)(nextProps) || (0, _stringify2.default)(this.state) !== (0, _stringify2.default)(nextState);
94
+ }
95
+ }, {
87
96
  key: 'render',
88
97
  value: function render() {
89
98
  var _props = this.props,
@@ -124,7 +133,7 @@ var CellIcon = function (_React$PureComponent) {
124
133
  }
125
134
  }]);
126
135
  return CellIcon;
127
- }(_react2.default.PureComponent);
136
+ }(_react2.default.Component);
128
137
 
129
138
  CellIcon.defaultProps = {
130
139
  icon: '',
@@ -5,6 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.styles = undefined;
7
7
 
8
+ var _stringify = require('babel-runtime/core-js/json/stringify');
9
+
10
+ var _stringify2 = _interopRequireDefault(_stringify);
11
+
8
12
  var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
9
13
 
10
14
  var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
@@ -93,8 +97,8 @@ var styles = exports.styles = function styles(theme) {
93
97
  * En vue small (s) elle affiche uniquement l'image avec une largeur fixe.
94
98
  */
95
99
 
96
- var CellImage = function (_React$PureComponent) {
97
- (0, _inherits3.default)(CellImage, _React$PureComponent);
100
+ var CellImage = function (_React$Component) {
101
+ (0, _inherits3.default)(CellImage, _React$Component);
98
102
 
99
103
  function CellImage() {
100
104
  (0, _classCallCheck3.default)(this, CellImage);
@@ -102,6 +106,11 @@ var CellImage = function (_React$PureComponent) {
102
106
  }
103
107
 
104
108
  (0, _createClass3.default)(CellImage, [{
109
+ key: 'shouldComponentUpdate',
110
+ value: function shouldComponentUpdate(nextProps, nextState) {
111
+ return (0, _stringify2.default)(this.props) !== (0, _stringify2.default)(nextProps) || (0, _stringify2.default)(this.state) !== (0, _stringify2.default)(nextState);
112
+ }
113
+ }, {
105
114
  key: 'render',
106
115
  value: function render() {
107
116
  var _props = this.props,
@@ -168,7 +177,7 @@ var CellImage = function (_React$PureComponent) {
168
177
  }
169
178
  }]);
170
179
  return CellImage;
171
- }(_react2.default.PureComponent);
180
+ }(_react2.default.Component);
172
181
 
173
182
  CellImage.defaultProps = {
174
183
  size: 24
@@ -5,6 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.styles = undefined;
7
7
 
8
+ var _stringify = require('babel-runtime/core-js/json/stringify');
9
+
10
+ var _stringify2 = _interopRequireDefault(_stringify);
11
+
8
12
  var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
9
13
 
10
14
  var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
@@ -63,8 +67,8 @@ var styles = exports.styles = function styles(theme) {
63
67
  * Cette cellule permet d'afficher un volume ou un montant avec devise
64
68
  */
65
69
 
66
- var CellNumeric = function (_React$PureComponent) {
67
- (0, _inherits3.default)(CellNumeric, _React$PureComponent);
70
+ var CellNumeric = function (_React$Component) {
71
+ (0, _inherits3.default)(CellNumeric, _React$Component);
68
72
 
69
73
  function CellNumeric() {
70
74
  (0, _classCallCheck3.default)(this, CellNumeric);
@@ -72,6 +76,11 @@ var CellNumeric = function (_React$PureComponent) {
72
76
  }
73
77
 
74
78
  (0, _createClass3.default)(CellNumeric, [{
79
+ key: 'shouldComponentUpdate',
80
+ value: function shouldComponentUpdate(nextProps, nextState) {
81
+ return (0, _stringify2.default)(this.props) !== (0, _stringify2.default)(nextProps) || (0, _stringify2.default)(this.state) !== (0, _stringify2.default)(nextState);
82
+ }
83
+ }, {
75
84
  key: 'render',
76
85
  value: function render() {
77
86
  var _props = this.props,
@@ -109,7 +118,7 @@ var CellNumeric = function (_React$PureComponent) {
109
118
  }
110
119
  }]);
111
120
  return CellNumeric;
112
- }(_react2.default.PureComponent);
121
+ }(_react2.default.Component);
113
122
 
114
123
  CellNumeric.propTypes = process.env.NODE_ENV !== "production" ? {
115
124
  /**
@@ -9,6 +9,10 @@ var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
9
9
 
10
10
  var _defineProperty3 = _interopRequireDefault(_defineProperty2);
11
11
 
12
+ var _stringify = require('babel-runtime/core-js/json/stringify');
13
+
14
+ var _stringify2 = _interopRequireDefault(_stringify);
15
+
12
16
  var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
13
17
 
14
18
  var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
@@ -99,8 +103,8 @@ var styles = exports.styles = function styles(theme) {
99
103
  * avec une icône d'évolution (optionnelle) et un indicateur du type de données représentées (optionnel)
100
104
  */
101
105
 
102
- var CellRate = function (_React$PureComponent) {
103
- (0, _inherits3.default)(CellRate, _React$PureComponent);
106
+ var CellRate = function (_React$Component) {
107
+ (0, _inherits3.default)(CellRate, _React$Component);
104
108
 
105
109
  function CellRate() {
106
110
  (0, _classCallCheck3.default)(this, CellRate);
@@ -108,6 +112,11 @@ var CellRate = function (_React$PureComponent) {
108
112
  }
109
113
 
110
114
  (0, _createClass3.default)(CellRate, [{
115
+ key: 'shouldComponentUpdate',
116
+ value: function shouldComponentUpdate(nextProps, nextState) {
117
+ return (0, _stringify2.default)(this.props) !== (0, _stringify2.default)(nextProps) || (0, _stringify2.default)(this.state) !== (0, _stringify2.default)(nextState);
118
+ }
119
+ }, {
111
120
  key: 'render',
112
121
  value: function render() {
113
122
  var _classNames, _classNames2;
@@ -159,7 +168,7 @@ var CellRate = function (_React$PureComponent) {
159
168
  }
160
169
  }]);
161
170
  return CellRate;
162
- }(_react2.default.PureComponent);
171
+ }(_react2.default.Component);
163
172
 
164
173
  CellRate.defaultProps = {
165
174
  isPositive: true
@@ -9,18 +9,22 @@ var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
9
9
 
10
10
  var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
11
11
 
12
- var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
12
+ var _stringify = require('babel-runtime/core-js/json/stringify');
13
13
 
14
- var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
14
+ var _stringify2 = _interopRequireDefault(_stringify);
15
15
 
16
- var _createClass2 = require('babel-runtime/helpers/createClass');
16
+ var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
17
17
 
18
- var _createClass3 = _interopRequireDefault(_createClass2);
18
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
19
19
 
20
20
  var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
21
21
 
22
22
  var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
23
23
 
24
+ var _createClass2 = require('babel-runtime/helpers/createClass');
25
+
26
+ var _createClass3 = _interopRequireDefault(_createClass2);
27
+
24
28
  var _inherits2 = require('babel-runtime/helpers/inherits');
25
29
 
26
30
  var _inherits3 = _interopRequireDefault(_inherits2);
@@ -68,8 +72,14 @@ var styles = exports.styles = {
68
72
  * Cette cellule permet d'afficher le résultat de Sentinel (score & fraudResult & smartDecision)
69
73
  */
70
74
 
71
- var CellSentinel = function (_React$PureComponent) {
72
- (0, _inherits3.default)(CellSentinel, _React$PureComponent);
75
+ var CellSentinel = function (_React$Component) {
76
+ (0, _inherits3.default)(CellSentinel, _React$Component);
77
+ (0, _createClass3.default)(CellSentinel, [{
78
+ key: 'shouldComponentUpdate',
79
+ value: function shouldComponentUpdate(nextProps, nextState) {
80
+ return (0, _stringify2.default)(this.props) !== (0, _stringify2.default)(nextProps) || (0, _stringify2.default)(this.state) !== (0, _stringify2.default)(nextState);
81
+ }
82
+ }]);
73
83
 
74
84
  function CellSentinel(props) {
75
85
  (0, _classCallCheck3.default)(this, CellSentinel);
@@ -184,7 +194,7 @@ var CellSentinel = function (_React$PureComponent) {
184
194
  }
185
195
  }]);
186
196
  return CellSentinel;
187
- }(_react2.default.PureComponent);
197
+ }(_react2.default.Component);
188
198
 
189
199
  CellSentinel.defaultProps = {
190
200
  hideFraudResult: false
@@ -5,6 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.styles = undefined;
7
7
 
8
+ var _stringify = require('babel-runtime/core-js/json/stringify');
9
+
10
+ var _stringify2 = _interopRequireDefault(_stringify);
11
+
8
12
  var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
9
13
 
10
14
  var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
@@ -63,8 +67,8 @@ var styles = exports.styles = function styles(theme) {
63
67
  };
64
68
  };
65
69
 
66
- var CellStatus = function (_React$PureComponent) {
67
- (0, _inherits3.default)(CellStatus, _React$PureComponent);
70
+ var CellStatus = function (_React$Component) {
71
+ (0, _inherits3.default)(CellStatus, _React$Component);
68
72
 
69
73
  function CellStatus() {
70
74
  (0, _classCallCheck3.default)(this, CellStatus);
@@ -72,6 +76,11 @@ var CellStatus = function (_React$PureComponent) {
72
76
  }
73
77
 
74
78
  (0, _createClass3.default)(CellStatus, [{
79
+ key: 'shouldComponentUpdate',
80
+ value: function shouldComponentUpdate(nextProps, nextState) {
81
+ return (0, _stringify2.default)(this.props) !== (0, _stringify2.default)(nextProps) || (0, _stringify2.default)(this.state) !== (0, _stringify2.default)(nextState);
82
+ }
83
+ }, {
75
84
  key: 'render',
76
85
  value: function render() {
77
86
  var _props = this.props,
@@ -106,7 +115,7 @@ var CellStatus = function (_React$PureComponent) {
106
115
  }
107
116
  }]);
108
117
  return CellStatus;
109
- }(_react2.default.PureComponent);
118
+ }(_react2.default.Component);
110
119
 
111
120
  CellStatus.defaultProps = {
112
121
  nbOperations: 0
@@ -131,7 +140,7 @@ CellStatus.propTypes = process.env.NODE_ENV !== "production" ? {
131
140
  /**
132
141
  * Code du statut courant de la transaction (détermine la couleur du label)
133
142
  */
134
- code: _propTypes2.default.number.isRequired,
143
+ code: _propTypes2.default.oneOfType([_propTypes2.default.number, _propTypes2.default.string]).isRequired,
135
144
  /**
136
145
  * Fonction de callback appelée pour ouvrir les lignes de détails
137
146
  */
@@ -13,18 +13,22 @@ var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
13
13
 
14
14
  var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
15
15
 
16
- var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
16
+ var _stringify = require('babel-runtime/core-js/json/stringify');
17
17
 
18
- var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
18
+ var _stringify2 = _interopRequireDefault(_stringify);
19
19
 
20
- var _createClass2 = require('babel-runtime/helpers/createClass');
20
+ var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
21
21
 
22
- var _createClass3 = _interopRequireDefault(_createClass2);
22
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
23
23
 
24
24
  var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
25
25
 
26
26
  var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
27
27
 
28
+ var _createClass2 = require('babel-runtime/helpers/createClass');
29
+
30
+ var _createClass3 = _interopRequireDefault(_createClass2);
31
+
28
32
  var _inherits2 = require('babel-runtime/helpers/inherits');
29
33
 
30
34
  var _inherits3 = _interopRequireDefault(_inherits2);
@@ -77,8 +81,14 @@ var styles = exports.styles = function styles(theme) {
77
81
  };
78
82
  };
79
83
 
80
- var CellText = function (_React$PureComponent) {
81
- (0, _inherits3.default)(CellText, _React$PureComponent);
84
+ var CellText = function (_React$Component) {
85
+ (0, _inherits3.default)(CellText, _React$Component);
86
+ (0, _createClass3.default)(CellText, [{
87
+ key: 'shouldComponentUpdate',
88
+ value: function shouldComponentUpdate(nextProps, nextState) {
89
+ return (0, _stringify2.default)(this.props) !== (0, _stringify2.default)(nextProps) || (0, _stringify2.default)(this.state) !== (0, _stringify2.default)(nextState);
90
+ }
91
+ }]);
82
92
 
83
93
  function CellText(props) {
84
94
  (0, _classCallCheck3.default)(this, CellText);
@@ -249,7 +259,7 @@ var CellText = function (_React$PureComponent) {
249
259
  }
250
260
  }]);
251
261
  return CellText;
252
- }(_react2.default.PureComponent);
262
+ }(_react2.default.Component);
253
263
 
254
264
  CellText.propTypes = process.env.NODE_ENV !== "production" ? {
255
265
  /**
@@ -5,6 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.styles = undefined;
7
7
 
8
+ var _stringify = require('babel-runtime/core-js/json/stringify');
9
+
10
+ var _stringify2 = _interopRequireDefault(_stringify);
11
+
8
12
  var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
9
13
 
10
14
  var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
@@ -58,8 +62,8 @@ var styles = exports.styles = {
58
62
  */
59
63
  // @inheritedComponent CellLayout
60
64
 
61
- var CellThirdPartySecurity = function (_React$PureComponent) {
62
- (0, _inherits3.default)(CellThirdPartySecurity, _React$PureComponent);
65
+ var CellThirdPartySecurity = function (_React$Component) {
66
+ (0, _inherits3.default)(CellThirdPartySecurity, _React$Component);
63
67
 
64
68
  function CellThirdPartySecurity() {
65
69
  (0, _classCallCheck3.default)(this, CellThirdPartySecurity);
@@ -67,6 +71,11 @@ var CellThirdPartySecurity = function (_React$PureComponent) {
67
71
  }
68
72
 
69
73
  (0, _createClass3.default)(CellThirdPartySecurity, [{
74
+ key: 'shouldComponentUpdate',
75
+ value: function shouldComponentUpdate(nextProps, nextState) {
76
+ return (0, _stringify2.default)(this.props) !== (0, _stringify2.default)(nextProps) || (0, _stringify2.default)(this.state) !== (0, _stringify2.default)(nextState);
77
+ }
78
+ }, {
70
79
  key: 'render',
71
80
  value: function render() {
72
81
  var _props = this.props,
@@ -133,7 +142,7 @@ var CellThirdPartySecurity = function (_React$PureComponent) {
133
142
  }
134
143
  }]);
135
144
  return CellThirdPartySecurity;
136
- }(_react2.default.PureComponent);
145
+ }(_react2.default.Component);
137
146
 
138
147
  CellThirdPartySecurity.propTypes = process.env.NODE_ENV !== "production" ? {
139
148
  /**
@@ -17,6 +17,10 @@ var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProp
17
17
 
18
18
  var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
19
19
 
20
+ var _stringify = require('babel-runtime/core-js/json/stringify');
21
+
22
+ var _stringify2 = _interopRequireDefault(_stringify);
23
+
20
24
  var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
21
25
 
22
26
  var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
@@ -104,8 +108,8 @@ var styles = exports.styles = function styles(theme) {
104
108
  };
105
109
  };
106
110
 
107
- var BodyRow = function (_React$PureComponent) {
108
- (0, _inherits3.default)(BodyRow, _React$PureComponent);
111
+ var BodyRow = function (_React$Component) {
112
+ (0, _inherits3.default)(BodyRow, _React$Component);
109
113
 
110
114
  function BodyRow(props) {
111
115
  (0, _classCallCheck3.default)(this, BodyRow);
@@ -133,6 +137,11 @@ var BodyRow = function (_React$PureComponent) {
133
137
  }
134
138
 
135
139
  (0, _createClass3.default)(BodyRow, [{
140
+ key: 'shouldComponentUpdate',
141
+ value: function shouldComponentUpdate(nextProps, nextState) {
142
+ return (0, _stringify2.default)(this.props) !== (0, _stringify2.default)(nextProps) || (0, _stringify2.default)(this.state) !== (0, _stringify2.default)(nextState);
143
+ }
144
+ }, {
136
145
  key: 'componentDidMount',
137
146
  value: function componentDidMount() {
138
147
  // Live data animation
@@ -337,7 +346,7 @@ var BodyRow = function (_React$PureComponent) {
337
346
  }
338
347
  }]);
339
348
  return BodyRow;
340
- }(_react2.default.PureComponent);
349
+ }(_react2.default.Component);
341
350
 
342
351
  BodyRow.defaultProps = {
343
352
  selectable: false,
@@ -95,9 +95,6 @@ var styles = exports.styles = function styles(theme) {
95
95
  padding: 10,
96
96
  color: theme.palette.neutral.normal
97
97
  },
98
- menuItemSortable: {
99
- paddingLeft: 8
100
- },
101
98
  menuItemFilter: (0, _extends3.default)({}, theme.typography.body1, {
102
99
  color: theme.palette.neutral.dark,
103
100
  fontWeight: theme.typography.fontWeightMedium,
@@ -138,7 +135,7 @@ var styles = exports.styles = function styles(theme) {
138
135
  fontSize: 14
139
136
  },
140
137
  button: {
141
- height: 40,
138
+ minHeight: 40,
142
139
  fontSize: 14,
143
140
  width: '50%'
144
141
  },
@@ -299,7 +296,7 @@ var ColumnFilter = function (_React$Component) {
299
296
  ),
300
297
  !!sortable && _react2.default.createElement(
301
298
  'div',
302
- { className: classes.menuItemSortable },
299
+ null,
303
300
  _react2.default.createElement(
304
301
  _MenuItem2.default,
305
302
  {