@hipay/hipay-material-ui 1.0.0-beta.23 → 1.0.0-beta.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/HI-CHANGELOG.md +26 -43
- package/HiChip/HiChip.js +61 -8
- package/HiDatePicker/HiDateRangePicker.js +27 -13
- package/HiDatePicker/HiDateRangeSelector.js +13 -2
- package/HiForm/HiInput.js +1 -0
- package/HiForm/HiPasswordField.js +2 -2
- package/HiPins/HiPins.js +6 -4
- package/HiSelect/HiSelect.js +7 -5
- package/HiSelect/SelectInput.js +3 -8
- package/HiSelectableList/HiSelectableList.js +51 -49
- package/HiSelectableList/HiSelectableListItem.js +4 -2
- package/HiTable/BodyCellBuilder.js +22 -12
- package/HiTable/BodyCells/CellAccount.js +12 -3
- package/HiTable/BodyCells/CellAccountNumber.js +12 -3
- package/HiTable/BodyCells/CellAddress.js +12 -3
- package/HiTable/BodyCells/CellCountry.js +12 -3
- package/HiTable/BodyCells/CellDate.js +43 -42
- package/HiTable/BodyCells/CellIcon.js +12 -3
- package/HiTable/BodyCells/CellImage.js +12 -3
- package/HiTable/BodyCells/CellNumeric.js +12 -3
- package/HiTable/BodyCells/CellRate.js +12 -3
- package/HiTable/BodyCells/CellSentinel.js +17 -7
- package/HiTable/BodyCells/CellStatus.js +12 -3
- package/HiTable/BodyCells/CellText.js +17 -7
- package/HiTable/BodyCells/CellThirdPartySecurity.js +12 -3
- package/HiTable/BodyRow.js +12 -3
- package/HiTable/ColumnFilter.js +1 -4
- package/HiTable/HeaderCell.js +21 -11
- package/HiTable/HiStickyRow.js +24 -13
- package/HiTable/HiTable.js +30 -69
- package/HiTable/HiTableBody.js +99 -29
- package/HiTable/HiTableContextMenu.js +31 -16
- package/HiTable/HiTableFooter.js +9 -0
- package/HiTable/HiTableHead.js +15 -7
- package/HiTopBar/HiTopBar.js +6 -0
- package/README.md +71 -6
- package/es/HiChip/HiChip.js +74 -8
- package/es/HiDatePicker/HiDateRangePicker.js +25 -12
- package/es/HiDatePicker/HiDateRangeSelector.js +12 -2
- package/es/HiForm/HiInput.js +1 -0
- package/es/HiForm/HiPasswordField.js +2 -2
- package/es/HiPins/HiPins.js +4 -4
- package/es/HiSelect/HiSelect.js +6 -5
- package/es/HiSelect/SelectInput.js +3 -8
- package/es/HiSelectableList/HiSelectableList.js +51 -49
- package/es/HiSelectableList/HiSelectableListItem.js +4 -2
- package/es/HiTable/BodyCellBuilder.js +8 -2
- package/es/HiTable/BodyCells/CellAccount.js +6 -1
- package/es/HiTable/BodyCells/CellAccountNumber.js +6 -1
- package/es/HiTable/BodyCells/CellAddress.js +6 -1
- package/es/HiTable/BodyCells/CellCountry.js +6 -1
- package/es/HiTable/BodyCells/CellDate.js +28 -37
- package/es/HiTable/BodyCells/CellIcon.js +6 -1
- package/es/HiTable/BodyCells/CellImage.js +6 -1
- package/es/HiTable/BodyCells/CellNumeric.js +6 -1
- package/es/HiTable/BodyCells/CellRate.js +6 -1
- package/es/HiTable/BodyCells/CellSentinel.js +6 -1
- package/es/HiTable/BodyCells/CellStatus.js +6 -1
- package/es/HiTable/BodyCells/CellText.js +6 -1
- package/es/HiTable/BodyCells/CellThirdPartySecurity.js +6 -1
- package/es/HiTable/BodyRow.js +7 -2
- package/es/HiTable/ColumnFilter.js +1 -4
- package/es/HiTable/HeaderCell.js +16 -9
- package/es/HiTable/HiStickyRow.js +20 -13
- package/es/HiTable/HiTable.js +4 -40
- package/es/HiTable/HiTableBody.js +78 -26
- package/es/HiTable/HiTableContextMenu.js +28 -16
- package/es/HiTable/HiTableFooter.js +5 -0
- package/es/HiTable/HiTableHead.js +11 -6
- package/es/HiTopBar/HiTopBar.js +5 -0
- package/es/utils/HiIconBuilder.js +6 -2
- package/index.es.js +1 -1
- package/index.js +1 -1
- package/package.json +6 -1
- package/umd/hipay-material-ui.development.js +80901 -47149
- package/umd/hipay-material-ui.production.min.js +5 -5
- package/utils/HiIconBuilder.js +6 -2
@@ -12,6 +12,10 @@ var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProp
|
|
12
12
|
|
13
13
|
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
|
14
14
|
|
15
|
+
var _stringify = require('babel-runtime/core-js/json/stringify');
|
16
|
+
|
17
|
+
var _stringify2 = _interopRequireDefault(_stringify);
|
18
|
+
|
15
19
|
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
|
16
20
|
|
17
21
|
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
|
@@ -57,8 +61,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
57
61
|
/**
|
58
62
|
* Construit la cellule correspondante au type demandé
|
59
63
|
*/
|
60
|
-
var BodyCellBuilder = function (_React$
|
61
|
-
(0, _inherits3.default)(BodyCellBuilder, _React$
|
64
|
+
var BodyCellBuilder = function (_React$Component) {
|
65
|
+
(0, _inherits3.default)(BodyCellBuilder, _React$Component);
|
62
66
|
|
63
67
|
function BodyCellBuilder(props) {
|
64
68
|
(0, _classCallCheck3.default)(this, BodyCellBuilder);
|
@@ -69,16 +73,21 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
69
73
|
return _this;
|
70
74
|
}
|
71
75
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
* - label : label de la value (traduite)
|
78
|
-
*/
|
76
|
+
(0, _createClass3.default)(BodyCellBuilder, [{
|
77
|
+
key: 'shouldComponentUpdate',
|
78
|
+
value: function shouldComponentUpdate(nextProps, nextState) {
|
79
|
+
return (0, _stringify2.default)(this.props) !== (0, _stringify2.default)(nextProps) || (0, _stringify2.default)(this.state) !== (0, _stringify2.default)(nextState);
|
80
|
+
}
|
79
81
|
|
82
|
+
/**
|
83
|
+
* CollecContextMenuDatas
|
84
|
+
*
|
85
|
+
* définit les données utilisées par le context menu (lookup, exclude, copy, redirect)
|
86
|
+
* - value : valeur sur laquelle on filtre
|
87
|
+
* - label : label de la value (traduite)
|
88
|
+
*/
|
80
89
|
|
81
|
-
|
90
|
+
}, {
|
82
91
|
key: 'collectContextMenuDatas',
|
83
92
|
value: function collectContextMenuDatas() {
|
84
93
|
var _props$data = this.props.data,
|
@@ -205,7 +214,8 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
205
214
|
locale: dateLocale,
|
206
215
|
view: view,
|
207
216
|
displayTime: props.displayTime,
|
208
|
-
sticky: sticky
|
217
|
+
sticky: sticky,
|
218
|
+
formatShort: this.props.formatShort
|
209
219
|
});
|
210
220
|
break;
|
211
221
|
|
@@ -315,7 +325,7 @@ var BodyCellBuilder = function (_React$PureComponent) {
|
|
315
325
|
}
|
316
326
|
}]);
|
317
327
|
return BodyCellBuilder;
|
318
|
-
}(_react2.default.
|
328
|
+
}(_react2.default.Component);
|
319
329
|
|
320
330
|
BodyCellBuilder.defaultProps = {
|
321
331
|
ellipsis: 'right',
|
@@ -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);
|
@@ -56,8 +60,8 @@ var styles = exports.styles = function styles(theme) {
|
|
56
60
|
*/
|
57
61
|
|
58
62
|
|
59
|
-
var CellAccount = function (_React$
|
60
|
-
(0, _inherits3.default)(CellAccount, _React$
|
63
|
+
var CellAccount = function (_React$Component) {
|
64
|
+
(0, _inherits3.default)(CellAccount, _React$Component);
|
61
65
|
|
62
66
|
function CellAccount() {
|
63
67
|
(0, _classCallCheck3.default)(this, CellAccount);
|
@@ -65,6 +69,11 @@ var CellAccount = function (_React$PureComponent) {
|
|
65
69
|
}
|
66
70
|
|
67
71
|
(0, _createClass3.default)(CellAccount, [{
|
72
|
+
key: 'shouldComponentUpdate',
|
73
|
+
value: function shouldComponentUpdate(nextProps, nextState) {
|
74
|
+
return (0, _stringify2.default)(this.props) !== (0, _stringify2.default)(nextProps) || (0, _stringify2.default)(this.state) !== (0, _stringify2.default)(nextState);
|
75
|
+
}
|
76
|
+
}, {
|
68
77
|
key: 'render',
|
69
78
|
value: function render() {
|
70
79
|
var _props = this.props,
|
@@ -80,7 +89,7 @@ var CellAccount = function (_React$PureComponent) {
|
|
80
89
|
}
|
81
90
|
}]);
|
82
91
|
return CellAccount;
|
83
|
-
}(_react2.default.
|
92
|
+
}(_react2.default.Component);
|
84
93
|
|
85
94
|
CellAccount.defaultProps = {};
|
86
95
|
CellAccount.propTypes = process.env.NODE_ENV !== "production" ? {
|
@@ -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);
|
@@ -86,8 +90,8 @@ var styles = exports.styles = function styles(theme) {
|
|
86
90
|
* Le tooltip affiche les informations complémentaires (country, expiration date..)
|
87
91
|
*/
|
88
92
|
|
89
|
-
var CellAccountNumber = function (_React$
|
90
|
-
(0, _inherits3.default)(CellAccountNumber, _React$
|
93
|
+
var CellAccountNumber = function (_React$Component) {
|
94
|
+
(0, _inherits3.default)(CellAccountNumber, _React$Component);
|
91
95
|
|
92
96
|
function CellAccountNumber() {
|
93
97
|
(0, _classCallCheck3.default)(this, CellAccountNumber);
|
@@ -95,6 +99,11 @@ var CellAccountNumber = function (_React$PureComponent) {
|
|
95
99
|
}
|
96
100
|
|
97
101
|
(0, _createClass3.default)(CellAccountNumber, [{
|
102
|
+
key: 'shouldComponentUpdate',
|
103
|
+
value: function shouldComponentUpdate(nextProps, nextState) {
|
104
|
+
return (0, _stringify2.default)(this.props) !== (0, _stringify2.default)(nextProps) || (0, _stringify2.default)(this.state) !== (0, _stringify2.default)(nextState);
|
105
|
+
}
|
106
|
+
}, {
|
98
107
|
key: 'render',
|
99
108
|
value: function render() {
|
100
109
|
var _this2 = this;
|
@@ -180,7 +189,7 @@ var CellAccountNumber = function (_React$PureComponent) {
|
|
180
189
|
}
|
181
190
|
}]);
|
182
191
|
return CellAccountNumber;
|
183
|
-
}(_react2.default.
|
192
|
+
}(_react2.default.Component);
|
184
193
|
|
185
194
|
CellAccountNumber.propTypes = process.env.NODE_ENV !== "production" ? {
|
186
195
|
/**
|
@@ -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$
|
78
|
-
(0, _inherits3.default)(CellAddress, _React$
|
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.
|
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$
|
98
|
-
(0, _inherits3.default)(CellCountry, _React$
|
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.
|
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
|
8
|
+
var _stringify = require('babel-runtime/core-js/json/stringify');
|
9
9
|
|
10
|
-
var
|
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
|
-
|
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
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
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
|
-
|
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
|
-
|
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
|
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
|
-
*
|
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
|
-
*
|
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$
|
79
|
-
(0, _inherits3.default)(CellIcon, _React$
|
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.
|
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$
|
97
|
-
(0, _inherits3.default)(CellImage, _React$
|
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.
|
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$
|
67
|
-
(0, _inherits3.default)(CellNumeric, _React$
|
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.
|
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$
|
103
|
-
(0, _inherits3.default)(CellRate, _React$
|
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.
|
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
|
12
|
+
var _stringify = require('babel-runtime/core-js/json/stringify');
|
13
13
|
|
14
|
-
var
|
14
|
+
var _stringify2 = _interopRequireDefault(_stringify);
|
15
15
|
|
16
|
-
var
|
16
|
+
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
|
17
17
|
|
18
|
-
var
|
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$
|
72
|
-
(0, _inherits3.default)(CellSentinel, _React$
|
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.
|
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$
|
67
|
-
(0, _inherits3.default)(CellStatus, _React$
|
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.
|
118
|
+
}(_react2.default.Component);
|
110
119
|
|
111
120
|
CellStatus.defaultProps = {
|
112
121
|
nbOperations: 0
|