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

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.
Files changed (37) hide show
  1. package/HI-CHANGELOG.md +73 -0
  2. package/HiChip/HiChip.js +11 -5
  3. package/HiForm/HiFormControl.js +4 -4
  4. package/HiSelect/HiSelect.js +29 -21
  5. package/HiSelectableList/HiSelectableList.js +1 -1
  6. package/HiSelectableList/HiSelectableListItem.js +3 -3
  7. package/HiTable/BodyCellBuilder.js +3 -2
  8. package/HiTable/BodyCells/CellAccount.js +1 -12
  9. package/HiTable/BodyCells/CellDate.js +15 -12
  10. package/HiTable/BodyCells/CellRate.js +3 -3
  11. package/HiTable/BodyCells/CellText.js +76 -48
  12. package/HiTable/HiStickyRow.js +3 -3
  13. package/HiTable/HiTableFooter.js +5 -6
  14. package/README.md +2 -1
  15. package/es/HiChip/HiChip.js +11 -5
  16. package/es/HiForm/HiFormControl.js +4 -4
  17. package/es/HiSelect/HiSelect.js +27 -17
  18. package/es/HiSelectableList/HiSelectableList.js +1 -1
  19. package/es/HiSelectableList/HiSelectableListItem.js +3 -3
  20. package/es/HiTable/BodyCellBuilder.js +3 -2
  21. package/es/HiTable/BodyCells/CellAccount.js +1 -4
  22. package/es/HiTable/BodyCells/CellDate.js +11 -7
  23. package/es/HiTable/BodyCells/CellRate.js +3 -3
  24. package/es/HiTable/BodyCells/CellText.js +48 -23
  25. package/es/HiTable/HiStickyRow.js +1 -1
  26. package/es/HiTable/HiTableFooter.js +6 -6
  27. package/es/svg-icons/Cancel.js +2 -0
  28. package/es/svg-icons/HiBriefcaseRescue.js +15 -0
  29. package/es/svg-icons/index.js +2 -1
  30. package/index.es.js +1 -1
  31. package/index.js +1 -1
  32. package/package.json +2 -1
  33. package/svg-icons/Cancel.js +2 -0
  34. package/svg-icons/HiBriefcaseRescue.js +30 -0
  35. package/svg-icons/index.js +9 -0
  36. package/umd/hipay-material-ui.development.js +10062 -52486
  37. package/umd/hipay-material-ui.production.min.js +4 -4
package/HI-CHANGELOG.md CHANGED
@@ -1,3 +1,76 @@
1
+ <a name="1.0.0-beta.27"></a>
2
+ # 1.0.0-beta.27 (2018-08-27)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * **BodyRow:** add locale vars to child BodyRow ([9252382](https://gitlab.hipay.org/backend/hipay-material-ui/commit/9252382))
8
+ * **CellDate:** Handle date with moment & use prop format ([7fa8bf5](https://gitlab.hipay.org/backend/hipay-material-ui/commit/7fa8bf5))
9
+ * **HeaderCell:** set sort icons always on the right of the title ([0704619](https://gitlab.hipay.org/backend/hipay-material-ui/commit/0704619))
10
+ * **HiDateRangePicker:** Keep focus on change dateTo if user types directly into the input to see date selection into calendar ([e998c60](https://gitlab.hipay.org/backend/hipay-material-ui/commit/e998c60))
11
+ * **HiDateRangePicker:** Reset date range picker input to ([b1a66f3](https://gitlab.hipay.org/backend/hipay-material-ui/commit/b1a66f3))
12
+ * **HiDateRangeSelector:** UPD select value from parent component (defaultPreset property) ([90bb994](https://gitlab.hipay.org/backend/hipay-material-ui/commit/90bb994))
13
+ * **HiFormControl:** add error on disabled fields ([87ef0b6](https://gitlab.hipay.org/backend/hipay-material-ui/commit/87ef0b6))
14
+ * **HiInput:** Keep focus on reset HiInput ([a84edab](https://gitlab.hipay.org/backend/hipay-material-ui/commit/a84edab))
15
+ * **HiPins:** Add theme business primary color as default background color for HiPins and fix line-height ([23aa2d9](https://gitlab.hipay.org/backend/hipay-material-ui/commit/23aa2d9))
16
+ * **HiSelect:** add dynamic prop to handle dynamic select with initial options ([c668b90](https://gitlab.hipay.org/backend/hipay-material-ui/commit/c668b90))
17
+ * **HiSelect:** Display option label instead of all for selects with 1 option ([e47574a](https://gitlab.hipay.org/backend/hipay-material-ui/commit/e47574a))
18
+ * **HiSelect:** Don't try to display unique selected options item when still loading ([116a72a](https://gitlab.hipay.org/backend/hipay-material-ui/commit/116a72a))
19
+ * **HiSelect:** Enable to handle hierarchic padding via options prop level ([dc4e5d8](https://gitlab.hipay.org/backend/hipay-material-ui/commit/dc4e5d8))
20
+ * **HiSelect:** Handle unique and undefined selected item ([8dbb542](https://gitlab.hipay.org/backend/hipay-material-ui/commit/8dbb542))
21
+ * **HiSelectableList:** item displayed only if item.displayed != false ([e65b865](https://gitlab.hipay.org/backend/hipay-material-ui/commit/e65b865))
22
+ * **HiTable:** Add default translations object to HeaderCell ([4ed766f](https://gitlab.hipay.org/backend/hipay-material-ui/commit/4ed766f))
23
+ * **HiTable:** Performance optimization ([3ca60d3](https://gitlab.hipay.org/backend/hipay-material-ui/commit/3ca60d3))
24
+ * **HiTable:** remove anchorEls from state to remove circular structure in JSON compares ([c064ce9](https://gitlab.hipay.org/backend/hipay-material-ui/commit/c064ce9))
25
+ * **SelectInput:** selected choice label not overflowing on right arrow of HiSelect ([a7d7058](https://gitlab.hipay.org/backend/hipay-material-ui/commit/a7d7058))
26
+
27
+
28
+ ### Features
29
+
30
+ * **CellText:** add color props ([ff2bba8](https://gitlab.hipay.org/backend/hipay-material-ui/commit/ff2bba8))
31
+ * **HiChip:** enable to display tooltip on HiChip via the prop 'title' ([6b15ca6](https://gitlab.hipay.org/backend/hipay-material-ui/commit/6b15ca6))
32
+ * **HiDateRangePicker:** Add onBlur prop function to handle date errors properly ([df79494](https://gitlab.hipay.org/backend/hipay-material-ui/commit/df79494))
33
+ * **HiTableContextMenu:** handle hide lookup/exclude menu item for each column ([03e00cb](https://gitlab.hipay.org/backend/hipay-material-ui/commit/03e00cb))
34
+ * **workflow:** Add HI-CHANGELOG generation from commits ([edee0f6](https://gitlab.hipay.org/backend/hipay-material-ui/commit/edee0f6))
35
+
36
+
37
+
38
+ <a name="1.0.0-beta.26"></a>
39
+ # 1.0.0-beta.26 (2018-08-24)
40
+
41
+
42
+ ### Bug Fixes
43
+
44
+ * **BodyRow:** add locale vars to child BodyRow ([9252382](https://gitlab.hipay.org/backend/hipay-material-ui/commit/9252382))
45
+ * **CellDate:** Handle date with moment & use prop format ([7fa8bf5](https://gitlab.hipay.org/backend/hipay-material-ui/commit/7fa8bf5))
46
+ * **HeaderCell:** set sort icons always on the right of the title ([0704619](https://gitlab.hipay.org/backend/hipay-material-ui/commit/0704619))
47
+ * **HiDateRangePicker:** Keep focus on change dateTo if user types directly into the input to see date selection into calendar ([e998c60](https://gitlab.hipay.org/backend/hipay-material-ui/commit/e998c60))
48
+ * **HiDateRangePicker:** Reset date range picker input to ([b1a66f3](https://gitlab.hipay.org/backend/hipay-material-ui/commit/b1a66f3))
49
+ * **HiDateRangeSelector:** UPD select value from parent component (defaultPreset property) ([90bb994](https://gitlab.hipay.org/backend/hipay-material-ui/commit/90bb994))
50
+ * **HiInput:** Keep focus on reset HiInput ([a84edab](https://gitlab.hipay.org/backend/hipay-material-ui/commit/a84edab))
51
+ * **HiPins:** Add theme business primary color as default background color for HiPins and fix line-height ([23aa2d9](https://gitlab.hipay.org/backend/hipay-material-ui/commit/23aa2d9))
52
+ * **HiSelect:** add dynamic prop to handle dynamic select with initial options ([c668b90](https://gitlab.hipay.org/backend/hipay-material-ui/commit/c668b90))
53
+ * **HiSelect:** Display option label instead of all for selects with 1 option ([e47574a](https://gitlab.hipay.org/backend/hipay-material-ui/commit/e47574a))
54
+ * **HiSelect:** Don't try to display unique selected options item when still loading ([116a72a](https://gitlab.hipay.org/backend/hipay-material-ui/commit/116a72a))
55
+ * **HiSelect:** Enable to handle hierarchic padding via options prop level ([dc4e5d8](https://gitlab.hipay.org/backend/hipay-material-ui/commit/dc4e5d8))
56
+ * **HiSelect:** Handle unique and undefined selected item ([8dbb542](https://gitlab.hipay.org/backend/hipay-material-ui/commit/8dbb542))
57
+ * **HiSelectableList:** item displayed only if item.displayed != false ([e65b865](https://gitlab.hipay.org/backend/hipay-material-ui/commit/e65b865))
58
+ * **HiTable:** Add default translations object to HeaderCell ([4ed766f](https://gitlab.hipay.org/backend/hipay-material-ui/commit/4ed766f))
59
+ * **HiTable:** Performance optimization ([3ca60d3](https://gitlab.hipay.org/backend/hipay-material-ui/commit/3ca60d3))
60
+ * **HiTable:** remove anchorEls from state to remove circular structure in JSON compares ([c064ce9](https://gitlab.hipay.org/backend/hipay-material-ui/commit/c064ce9))
61
+ * **SelectInput:** selected choice label not overflowing on right arrow of HiSelect ([a7d7058](https://gitlab.hipay.org/backend/hipay-material-ui/commit/a7d7058))
62
+
63
+
64
+ ### Features
65
+
66
+ * **CellText:** add color props ([ff2bba8](https://gitlab.hipay.org/backend/hipay-material-ui/commit/ff2bba8))
67
+ * **HiChip:** enable to display tooltip on HiChip via the prop 'title' ([6b15ca6](https://gitlab.hipay.org/backend/hipay-material-ui/commit/6b15ca6))
68
+ * **HiDateRangePicker:** Add onBlur prop function to handle date errors properly ([df79494](https://gitlab.hipay.org/backend/hipay-material-ui/commit/df79494))
69
+ * **HiTableContextMenu:** handle hide lookup/exclude menu item for each column ([03e00cb](https://gitlab.hipay.org/backend/hipay-material-ui/commit/03e00cb))
70
+ * **workflow:** Add HI-CHANGELOG generation from commits ([edee0f6](https://gitlab.hipay.org/backend/hipay-material-ui/commit/edee0f6))
71
+
72
+
73
+
1
74
  <a name="1.0.0-beta.25"></a>
2
75
  # 1.0.0-beta.25 (2018-08-16)
3
76
 
package/HiChip/HiChip.js CHANGED
@@ -132,6 +132,7 @@ function HiChip(props) {
132
132
  onDelete = props.onDelete,
133
133
  prefix = props.prefix,
134
134
  onIconClick = props.onIconClick,
135
+ title = props.title,
135
136
  titleDelete = props.titleDelete,
136
137
  titleIcon = props.titleIcon,
137
138
  titleImg = props.titleImg,
@@ -143,7 +144,8 @@ function HiChip(props) {
143
144
  'div',
144
145
  {
145
146
  id: id,
146
- className: (0, _classnames2.default)(classes.root, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes.leftNavigation, onPrevious), (0, _defineProperty3.default)(_classNames, classes.rightNavigation, onNext), (0, _defineProperty3.default)(_classNames, classes.deletable, onDelete), (0, _defineProperty3.default)(_classNames, classes.leftIccon, icon), _classNames))
147
+ className: (0, _classnames2.default)(classes.root, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes.leftNavigation, onPrevious), (0, _defineProperty3.default)(_classNames, classes.rightNavigation, onNext), (0, _defineProperty3.default)(_classNames, classes.deletable, onDelete), (0, _defineProperty3.default)(_classNames, classes.leftIccon, icon), _classNames)),
148
+ title: title
147
149
  },
148
150
  prefix && _react2.default.createElement(
149
151
  'span',
@@ -157,14 +159,14 @@ function HiChip(props) {
157
159
  icon: icon,
158
160
  size: 16,
159
161
  onClick: onIconClick,
160
- titleAccess: titleIcon
162
+ title: titleIcon
161
163
  }),
162
164
  onPrevious && _react2.default.createElement(_HiIconBuilder2.default, {
163
165
  className: (0, _classnames2.default)(classes.navigate),
164
166
  icon: 'menuLeft',
165
167
  onClick: onPrevious,
166
168
  size: 16,
167
- titleAccess: titlePrevious
169
+ title: titlePrevious
168
170
  }),
169
171
  _react2.default.createElement(
170
172
  'span',
@@ -176,14 +178,14 @@ function HiChip(props) {
176
178
  icon: 'menuRight',
177
179
  onClick: onNext,
178
180
  size: 16,
179
- titleAccess: titleNext
181
+ title: titleNext
180
182
  }),
181
183
  onDelete && _react2.default.createElement(_HiIconBuilder2.default, {
182
184
  classes: { root: classes.eraseIcon },
183
185
  icon: 'closeCircle',
184
186
  onClick: onDelete,
185
187
  size: 16,
186
- titleAccess: titleDelete
188
+ title: titleDelete
187
189
  })
188
190
  );
189
191
  }
@@ -229,6 +231,10 @@ HiChip.propTypes = process.env.NODE_ENV !== "production" ? {
229
231
  * Préfixe dans le HiChip
230
232
  */
231
233
  prefix: _propTypes2.default.string,
234
+ /**
235
+ * Titre du chip
236
+ */
237
+ title: _propTypes2.default.string,
232
238
  /**
233
239
  * Titre de l'icône supprimer
234
240
  */
@@ -223,7 +223,7 @@ var HiFormControl = function (_React$PureComponent) {
223
223
  error: error,
224
224
  ref: rootRef
225
225
  }, others),
226
- !disabled && error && errorText && helperOpen && _react2.default.createElement(
226
+ error && errorText && helperOpen && _react2.default.createElement(
227
227
  'div',
228
228
  { className: classes.errorDiv },
229
229
  _react2.default.createElement('div', {
@@ -231,7 +231,7 @@ var HiFormControl = function (_React$PureComponent) {
231
231
  }),
232
232
  errorText
233
233
  ),
234
- !disabled && helperIcon && helperText && !error && helperOpen && _react2.default.createElement(
234
+ helperIcon && helperText && !error && helperOpen && _react2.default.createElement(
235
235
  'div',
236
236
  {
237
237
  className: classes.helperDiv
@@ -254,11 +254,11 @@ var HiFormControl = function (_React$PureComponent) {
254
254
  disabled: disabled,
255
255
  focused: !disabled && (focused || hovered)
256
256
  }, InputLabelProps),
257
- !disabled && error && _react2.default.createElement(_mdiMaterialUi.Alert, {
257
+ error && _react2.default.createElement(_mdiMaterialUi.Alert, {
258
258
  className: classes.errorIcon,
259
259
  onClick: this.handleHelperClick
260
260
  }),
261
- !disabled && helperIcon && helperText && !error && _react2.default.createElement(_mdiMaterialUi.Information, {
261
+ helperIcon && helperText && !error && _react2.default.createElement(_mdiMaterialUi.Information, {
262
262
  className: (0, _classnames2.default)(classes.helperIcon, (0, _defineProperty3.default)({}, classes.helperIconActive, helperOpen)),
263
263
  onClick: this.handleHelperClick
264
264
  })
@@ -162,7 +162,7 @@ var HiSelect = function (_React$PureComponent) {
162
162
  hierarchySelected: {},
163
163
  hierarchy: {},
164
164
  nbOptions: 0,
165
- dynamic: false
165
+ dynamic: props.dynamic || false
166
166
  };
167
167
 
168
168
  // Check if value is in options
@@ -205,7 +205,7 @@ var HiSelect = function (_React$PureComponent) {
205
205
  }
206
206
  });
207
207
  _this.state.nbOptions = optionsLength;
208
- } else {
208
+ } else if (!props.dynamic) {
209
209
  _this.state.dynamic = true;
210
210
  }
211
211
 
@@ -345,29 +345,28 @@ var HiSelect = function (_React$PureComponent) {
345
345
  }
346
346
 
347
347
  if ((dynamic || loading) && selectedIdList.length === 1) {
348
- display = translations.one_item_selected.replace('%s', selectedIdList.length);
348
+ display = translations.one_item_selected;
349
349
  } else if ((this.state.nbOptions !== selectedIdList.length || !hasAll) && selectedIdList.length > 1) {
350
350
  display = translations.n_items_selected.replace('%s', selectedIdList.length);
351
351
  } else if (this.state.nbOptions === selectedIdList.length && this.state.nbOptions > 1) {
352
352
  display = translations.all;
353
353
  } else if (selectedIdList.length === 1) {
354
- if (type !== 'icon') {
355
- var item = options.find(function (o) {
356
- return o.id === selectedIdList[0];
357
- });
358
- if (!item && pinnedItem) {
354
+ var item = options.find(function (o) {
355
+ return o.id === selectedIdList[0];
356
+ });
357
+ if (item === undefined) {
358
+ display = translations.one_item_selected;
359
+ } else if (type !== 'icon') {
360
+ if (pinnedItem) {
359
361
  item = pinnedItem;
360
362
  }
361
363
  display = item.label;
362
364
  } else {
363
- var optionSelected = options.find(function (o) {
364
- return o.id === selectedIdList[0];
365
- });
366
365
  display = _react2.default.createElement(
367
366
  'span',
368
367
  { className: classes.selectIconLabel },
369
- _react2.default.createElement(_HiIconBuilder2.default, { icon: optionSelected.icon, className: classes.labelIcon }),
370
- optionSelected.label
368
+ _react2.default.createElement(_HiIconBuilder2.default, { icon: item.icon, className: classes.labelIcon }),
369
+ item.label
371
370
  );
372
371
  }
373
372
  }
@@ -501,6 +500,7 @@ HiSelect.defaultProps = {
501
500
  hierarchic: false,
502
501
  parentItemSelectable: false,
503
502
  displayAsChip: false,
503
+ dynamic: false,
504
504
  icon: _react2.default.createElement(_mdiMaterialUi.CheckboxBlankOutline, { style: { width: 20, height: 20 } }),
505
505
  parentIcon: _react2.default.createElement(_mdiMaterialUi.CheckboxBlankOutline, { style: { width: 20, height: 20 } }),
506
506
  hoverIcon: _react2.default.createElement(_mdiMaterialUi.CheckboxBlankOutline, { style: { width: 20, height: 20 } }),
@@ -524,9 +524,9 @@ var _initialiseProps = function _initialiseProps() {
524
524
  if (_this3.state.open) {
525
525
  _this3.handleClose();
526
526
  } else {
527
- if (!_this3.props.staticPosition) {
528
- //document.body.style.overflow = 'hidden';
529
- }
527
+ /*if (!this.props.staticPosition) {
528
+ // document.body.style.overflow = 'hidden';
529
+ }*/
530
530
  _this3.setState({ open: true });
531
531
  var options = _this3.props.options.slice();
532
532
  _this3.handleSuggestions(options);
@@ -588,9 +588,11 @@ var _initialiseProps = function _initialiseProps() {
588
588
  } else if (event.key === 'ArrowUp') {
589
589
  nextItem = (0, _hiHelpers.getNextItemSelectable)(document.activeElement, 'up');
590
590
  } else if (event.key === 'Tab') {
591
- if (!_this3.props.staticPosition) {
592
- //document.body.style.overflow = 'auto';
593
- }
591
+ /* if (!this.props.staticPosition) {
592
+ document.body.style.overflow = 'auto';
593
+ } */
594
+ _this3.setState({ open: false });
595
+ } else if (event.key === 'Escape') {
594
596
  _this3.setState({ open: false });
595
597
  }
596
598
  if (nextItem) {
@@ -743,9 +745,9 @@ var _initialiseProps = function _initialiseProps() {
743
745
  }
744
746
  }
745
747
  _this3.setState({ hierarchySelected: hiSelected });
746
- onChange(event, valueList);
748
+ onChange(event, valueList, item);
747
749
  } else {
748
- onChange(event, item.id);
750
+ onChange(event, item.id, item);
749
751
  _this3.handleClose();
750
752
  }
751
753
  };
@@ -820,6 +822,12 @@ HiSelect.propTypes = process.env.NODE_ENV !== "production" ? {
820
822
  * Option permettant d'afficher les sélection sous forme de Chip.
821
823
  */
822
824
  displayAsChip: _propTypes2.default.bool,
825
+ /**
826
+ * Option permettant de définir si les options du select sont dynamiques.
827
+ * Si les options du select sont initialisées à vide, alors ce sera mis à true
828
+ * automatiquement.
829
+ */
830
+ dynamic: _propTypes2.default.bool.isRequired,
823
831
  /**
824
832
  * Applique le style error
825
833
  */
@@ -163,7 +163,7 @@ var HiSelectableList = function (_React$PureComponent) {
163
163
  hoverIcon: hoverIcon,
164
164
  checkedIcon: checkedIcon,
165
165
  checkbox: checkbox,
166
- level: parents.length,
166
+ level: item.level ? item.level : parents.length,
167
167
  disabled: disabledIds ? disabledIds.includes(item.id) : false
168
168
  }, others));
169
169
  }
@@ -398,7 +398,7 @@ var HiSelectableListItem = function (_React$Component) {
398
398
 
399
399
  if (leftPadding) {
400
400
  paddingLeft = leftPadding;
401
- } else if (!hierarchic) {
401
+ } else if (!hierarchic && level === 0) {
402
402
  // Si pas de hiérarchie et sans checkbox, padding de 8px
403
403
  if (!effectiveCheckbox) {
404
404
  paddingLeft = 8;
@@ -415,9 +415,9 @@ var HiSelectableListItem = function (_React$Component) {
415
415
  }
416
416
  } else if (level > 0) {
417
417
  if (effectiveCheckbox) {
418
- paddingLeft = 16 * (level - 1);
419
- } else {
420
418
  paddingLeft = 16 * level;
419
+ } else {
420
+ paddingLeft = 16 * (level + 1);
421
421
  }
422
422
  } else if (!effectiveCheckbox) {
423
423
  if (item.id === '_all') {
@@ -299,10 +299,11 @@ var BodyCellBuilder = function (_React$Component) {
299
299
  default:
300
300
  cellElement = _react2.default.createElement(_BodyCells.CellText, {
301
301
  ukey: ukey,
302
- value: data.value,
302
+ value: data.label ? data.label : data.value,
303
303
  ellipsis: ellipsis,
304
304
  view: view,
305
- sticky: sticky
305
+ sticky: sticky,
306
+ color: data.color
306
307
  });
307
308
  break;
308
309
  }
@@ -3,7 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.styles = undefined;
7
6
 
8
7
  var _stringify = require('babel-runtime/core-js/json/stringify');
9
8
 
@@ -45,21 +44,11 @@ var _HiColoredLabel = require('../../HiColoredLabel');
45
44
 
46
45
  var _HiColoredLabel2 = _interopRequireDefault(_HiColoredLabel);
47
46
 
48
- var _withStyles = require('../../styles/withStyles');
49
-
50
- var _withStyles2 = _interopRequireDefault(_withStyles);
51
-
52
47
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
53
48
 
54
- var styles = exports.styles = function styles(theme) {
55
- return {};
56
- };
57
-
58
49
  /**
59
50
  * Cette cellule permet d'afficher le nom d'un compte sous la forme d'un label coloré.
60
51
  */
61
-
62
-
63
52
  var CellAccount = function (_React$Component) {
64
53
  (0, _inherits3.default)(CellAccount, _React$Component);
65
54
 
@@ -106,4 +95,4 @@ CellAccount.propTypes = process.env.NODE_ENV !== "production" ? {
106
95
  */
107
96
  value: _propTypes2.default.string.isRequired
108
97
  } : {};
109
- exports.default = (0, _withStyles2.default)(styles, { name: 'HmuiCellAccount' })(CellAccount);
98
+ exports.default = CellAccount;
@@ -59,16 +59,14 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
59
59
 
60
60
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
61
61
 
62
- var styles = exports.styles = function styles(theme) {
63
- return {
64
- rightEllipsisSpan: {
65
- display: 'inline-block',
66
- overflow: 'hidden',
67
- textOverflow: 'ellipsis',
68
- whiteSpace: 'pre',
69
- width: '100%'
70
- }
71
- };
62
+ var styles = exports.styles = {
63
+ rightEllipsisSpan: {
64
+ display: 'inline-block',
65
+ overflow: 'hidden',
66
+ textOverflow: 'ellipsis',
67
+ whiteSpace: 'pre',
68
+ width: '100%'
69
+ }
72
70
  };
73
71
 
74
72
  /**
@@ -110,9 +108,9 @@ var CellDate = function (_React$Component) {
110
108
 
111
109
 
112
110
  var date = (0, _moment2.default)(value);
113
- _moment2.default.locale(locale);
111
+ date.locale(locale);
114
112
 
115
- var titleValue = displayTime ? date.format(this.formatLong) : date.format(this.formatLong.replace('HH:mm:ss', ''));
113
+ var titleValue = displayTime ? date.format(this.formatLong) : date.format(this.formatLong.replace(' HH:mm:ss', ''));
116
114
  var displayedValue = titleValue;
117
115
  if (view === cst.VIEWS.SMALL) {
118
116
  displayedValue = displayTime ? date.format(formatShort.replace('YYYY', 'YY') + ' HH:mm:ss') : date.format(formatShort.replace('YYYY', 'YY'));
@@ -166,6 +164,11 @@ CellDate.propTypes = process.env.NODE_ENV !== "production" ? {
166
164
  * Locale moment
167
165
  */
168
166
  locale: _propTypes2.default.string,
167
+ /**
168
+ * True si la colonne est la première colonne et
169
+ * doit avoir un comportement "sticky" lors du scroll horizontal
170
+ */
171
+ sticky: _propTypes2.default.bool,
169
172
  /**
170
173
  * Date as string
171
174
  */
@@ -82,8 +82,8 @@ var styles = exports.styles = function styles(theme) {
82
82
  negative: {
83
83
  color: theme.palette.negative.normal
84
84
  },
85
- middle: {
86
- color: theme.palette.middle.normal
85
+ neutral: {
86
+ color: theme.palette.neutral.normal
87
87
  },
88
88
  spanIndicator: {
89
89
  fontSize: 11,
@@ -136,7 +136,7 @@ var CellRate = function (_React$Component) {
136
136
 
137
137
  switch (trendchip) {
138
138
  case cst.NO_EVOLUTION:
139
- trendIcon = _react2.default.createElement(_mdiMaterialUi.Equal, { className: classes.trendChipIcon + ' ' + classes.middle });
139
+ trendIcon = _react2.default.createElement(_mdiMaterialUi.Equal, { className: classes.trendChipIcon + ' ' + classes.neutral });
140
140
  break;
141
141
  case cst.EVOLUTION_UP:
142
142
  trendIcon = _react2.default.createElement(_mdiMaterialUi.ArrowTopRight, {