@hipay/hipay-material-ui 2.0.0-beta.53 → 2.0.0-beta.55
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/HiCell/CellImage.js +16 -4
 - package/HiCell/CellNumeric.js +1 -2
 - package/HiCell/CellSentinel.js +33 -109
 - package/HiCell/CellSentinelScore.js +100 -0
 - package/HiCell/CellTextStyled.js +71 -0
 - package/HiCell/index.js +9 -1
 - package/HiChip/HiChip.js +2 -1
 - package/HiColoredLabel/HiColoredLabel.js +14 -4
 - package/HiDatePicker/HiDatePicker.js +1 -1
 - package/HiDatePicker/HiDateRangePicker.js +349 -420
 - package/HiDatePicker/HiDateRangeSelector.js +80 -62
 - package/HiDatePicker/NavBar.js +2 -1
 - package/HiDatePicker/Overlays/TimePickerOverlay.js +1 -1
 - package/HiDatePicker/Overlays/YearPickerOverlay.js +3 -3
 - package/HiForm/HiFormControl.js +5 -4
 - package/HiSelect/HiSuggestSelect.js +16 -2
 - package/HiSelectNew/HiSelect.js +4 -1
 - package/HiSelectableList/HiSelectableListItem.js +3 -1
 - package/HiSwitch/HiSwitch.js +2 -1
 - package/HiTable/HiCellBuilder.js +31 -27
 - package/HiTable/HiTableHeader.js +21 -13
 - package/HiTable/constants.js +7 -5
 - package/es/HiCell/CellImage.js +13 -2
 - package/es/HiCell/CellNumeric.js +1 -2
 - package/es/HiCell/CellSentinel.js +32 -108
 - package/es/HiCell/CellSentinelScore.js +60 -0
 - package/es/HiCell/CellTextStyled.js +57 -0
 - package/es/HiCell/index.js +2 -1
 - package/es/HiChip/HiChip.js +2 -1
 - package/es/HiColoredLabel/HiColoredLabel.js +14 -3
 - package/es/HiDatePicker/HiDatePicker.js +1 -1
 - package/es/HiDatePicker/HiDateRangePicker.js +312 -363
 - package/es/HiDatePicker/HiDateRangeSelector.js +70 -56
 - package/es/HiDatePicker/NavBar.js +2 -1
 - package/es/HiDatePicker/Overlays/TimePickerOverlay.js +1 -1
 - package/es/HiDatePicker/Overlays/YearPickerOverlay.js +3 -3
 - package/es/HiForm/HiFormControl.js +5 -4
 - package/es/HiSelect/HiSuggestSelect.js +16 -3
 - package/es/HiSelectNew/HiSelect.js +4 -1
 - package/es/HiSelectableList/HiSelectableListItem.js +3 -1
 - package/es/HiSwitch/HiSwitch.js +2 -1
 - package/es/HiTable/HiCellBuilder.js +30 -27
 - package/es/HiTable/HiTableHeader.js +20 -14
 - package/es/HiTable/constants.js +8 -1
 - package/es/styles/createPalette.js +3 -3
 - package/index.es.js +1 -1
 - package/index.js +1 -1
 - package/package.json +1 -1
 - package/styles/createPalette.js +3 -3
 - package/umd/hipay-material-ui.development.js +9843 -6197
 - package/umd/hipay-material-ui.production.min.js +2 -2
 - package/yarn-error.log +0 -110
 
| 
         @@ -38,11 +38,12 @@ var _Grid = _interopRequireDefault(require("@material-ui/core/Grid")); 
     | 
|
| 
       38 
38 
     | 
    
         | 
| 
       39 
39 
     | 
    
         
             
            var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
         
     | 
| 
       40 
40 
     | 
    
         | 
| 
       41 
     | 
    
         
            -
            var _HiSelectField = _interopRequireDefault(require("../ 
     | 
| 
      
 41 
     | 
    
         
            +
            var _HiSelectField = _interopRequireDefault(require("../HiSelectNew/HiSelectField"));
         
     | 
| 
       42 
42 
     | 
    
         | 
| 
       43 
43 
     | 
    
         
             
            var _HiDateRangePicker = _interopRequireDefault(require("./HiDateRangePicker"));
         
     | 
| 
       44 
44 
     | 
    
         | 
| 
       45 
     | 
    
         
            -
             
     | 
| 
      
 45 
     | 
    
         
            +
            var _HiFormControl = _interopRequireDefault(require("../HiForm/HiFormControl"));
         
     | 
| 
      
 46 
     | 
    
         
            +
             
     | 
| 
       46 
47 
     | 
    
         
             
            function buildDateRangeOptionByKey(key, t, format) {
         
     | 
| 
       47 
48 
     | 
    
         
             
              var from;
         
     | 
| 
       48 
49 
     | 
    
         
             
              var label;
         
     | 
| 
         @@ -59,6 +60,8 @@ function buildDateRangeOptionByKey(key, t, format) { 
     | 
|
| 
       59 
60 
     | 
    
         
             
              switch (key) {
         
     | 
| 
       60 
61 
     | 
    
         
             
                case 'custom':
         
     | 
| 
       61 
62 
     | 
    
         
             
                  label = t.custom_period;
         
     | 
| 
      
 63 
     | 
    
         
            +
                  from = (0, _moment.default)().subtract(15, 'day').startOf('day');
         
     | 
| 
      
 64 
     | 
    
         
            +
                  to = (0, _moment.default)().endOf('day');
         
     | 
| 
       62 
65 
     | 
    
         
             
                  type = 'primary-highlight';
         
     | 
| 
       63 
66 
     | 
    
         
             
                  break;
         
     | 
| 
       64 
67 
     | 
    
         | 
| 
         @@ -94,35 +97,35 @@ function buildDateRangeOptionByKey(key, t, format) { 
     | 
|
| 
       94 
97 
     | 
    
         
             
                  label = t.current_month;
         
     | 
| 
       95 
98 
     | 
    
         
             
                  from = (0, _moment.default)().startOf('month');
         
     | 
| 
       96 
99 
     | 
    
         
             
                  to = (0, _moment.default)();
         
     | 
| 
       97 
     | 
    
         
            -
                  info = "".concat(from.format(format), " ").concat(t.to_now, ", ").concat(to.diff(from, 'days'), " ").concat(t.days);
         
     | 
| 
      
 100 
     | 
    
         
            +
                  info = "".concat(from.format(format), " ").concat(t.to_now, ", ").concat(to.diff(from, 'days') + 1, " ").concat(t.days);
         
     | 
| 
       98 
101 
     | 
    
         
             
                  break;
         
     | 
| 
       99 
102 
     | 
    
         | 
| 
       100 
103 
     | 
    
         
             
                case 'pm':
         
     | 
| 
       101 
104 
     | 
    
         
             
                  label = t.previous_month;
         
     | 
| 
       102 
105 
     | 
    
         
             
                  from = (0, _moment.default)().subtract(1, 'month').startOf('month');
         
     | 
| 
       103 
106 
     | 
    
         
             
                  to = (0, _moment.default)().subtract(1, 'month').endOf('month');
         
     | 
| 
       104 
     | 
    
         
            -
                  info = "".concat(from.format( 
     | 
| 
      
 107 
     | 
    
         
            +
                  info = "".concat(from.format(t.yearAndMonth), ", ").concat(from.daysInMonth(), " ").concat(t.days);
         
     | 
| 
       105 
108 
     | 
    
         
             
                  break;
         
     | 
| 
       106 
109 
     | 
    
         | 
| 
       107 
110 
     | 
    
         
             
                case 'cq':
         
     | 
| 
       108 
111 
     | 
    
         
             
                  label = t.current_quarter;
         
     | 
| 
       109 
112 
     | 
    
         
             
                  from = (0, _moment.default)().startOf('quarter');
         
     | 
| 
       110 
113 
     | 
    
         
             
                  to = (0, _moment.default)();
         
     | 
| 
       111 
     | 
    
         
            -
                  info = "".concat(from.format(format), " ").concat(t.to_now, ", ").concat(to.diff(from, 'days'), " ").concat(t.days);
         
     | 
| 
      
 114 
     | 
    
         
            +
                  info = "".concat(from.format(t.yearAndQuarter), ", ").concat(from.format(format), " ").concat(t.to_now, ", ").concat(to.diff(from, 'days') + 1, " ").concat(t.days);
         
     | 
| 
       112 
115 
     | 
    
         
             
                  break;
         
     | 
| 
       113 
116 
     | 
    
         | 
| 
       114 
117 
     | 
    
         
             
                case 'pq':
         
     | 
| 
       115 
118 
     | 
    
         
             
                  label = t.previous_quarter;
         
     | 
| 
       116 
119 
     | 
    
         
             
                  from = (0, _moment.default)().subtract(1, 'quarter').startOf('quarter');
         
     | 
| 
       117 
120 
     | 
    
         
             
                  to = (0, _moment.default)().subtract(1, 'quarter').endOf('quarter');
         
     | 
| 
       118 
     | 
    
         
            -
                  info = "".concat(from.format( 
     | 
| 
      
 121 
     | 
    
         
            +
                  info = "".concat(from.format(t.yearAndQuarter), ", ").concat(to.diff(from, 'days') + 1, " ").concat(t.days);
         
     | 
| 
       119 
122 
     | 
    
         
             
                  break;
         
     | 
| 
       120 
123 
     | 
    
         | 
| 
       121 
124 
     | 
    
         
             
                case 'cy':
         
     | 
| 
       122 
125 
     | 
    
         
             
                  label = t.current_year;
         
     | 
| 
       123 
126 
     | 
    
         
             
                  from = (0, _moment.default)().startOf('year');
         
     | 
| 
       124 
127 
     | 
    
         
             
                  to = (0, _moment.default)();
         
     | 
| 
       125 
     | 
    
         
            -
                  info = "".concat(from.format(format), " ").concat(t.to_now, ", ").concat(to.diff(from, 'days'), " ").concat(t.days);
         
     | 
| 
      
 128 
     | 
    
         
            +
                  info = "".concat(from.format(format), " ").concat(t.to_now, ", ").concat(to.diff(from, 'days') + 1, " ").concat(t.days);
         
     | 
| 
       126 
129 
     | 
    
         
             
                  break;
         
     | 
| 
       127 
130 
     | 
    
         | 
| 
       128 
131 
     | 
    
         
             
                default:
         
     | 
| 
         @@ -172,25 +175,30 @@ function (_React$Component) { 
     | 
|
| 
       172 
175 
     | 
    
         
             
                _this = (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(HiDateRangeSelector).call(this));
         
     | 
| 
       173 
176 
     | 
    
         
             
                _this.options = [];
         
     | 
| 
       174 
177 
     | 
    
         | 
| 
      
 178 
     | 
    
         
            +
                _this.onBlur = function (event) {
         
     | 
| 
      
 179 
     | 
    
         
            +
                  if (event instanceof Object && _this.props.onblur) {
         
     | 
| 
      
 180 
     | 
    
         
            +
                    _this.props.onBlur(event);
         
     | 
| 
      
 181 
     | 
    
         
            +
                  }
         
     | 
| 
      
 182 
     | 
    
         
            +
                };
         
     | 
| 
      
 183 
     | 
    
         
            +
             
     | 
| 
       175 
184 
     | 
    
         
             
                _this.handleSelectChange = function (name) {
         
     | 
| 
       176 
185 
     | 
    
         
             
                  return function (event, value) {
         
     | 
| 
       177 
     | 
    
         
            -
                    _this 
     | 
| 
       178 
     | 
    
         
            -
             
     | 
| 
       179 
     | 
    
         
            -
                     
     | 
| 
       180 
     | 
    
         
            -
             
     | 
| 
       181 
     | 
    
         
            -
             
     | 
| 
       182 
     | 
    
         
            -
                       
     | 
| 
       183 
     | 
    
         
            -
             
     | 
| 
       184 
     | 
    
         
            -
             
     | 
| 
       185 
     | 
    
         
            -
             
     | 
| 
       186 
     | 
    
         
            -
             
     | 
| 
       187 
     | 
    
         
            -
             
     | 
| 
       188 
     | 
    
         
            -
                       
     | 
| 
       189 
     | 
    
         
            -
             
     | 
| 
       190 
     | 
    
         
            -
                      _this. 
     | 
| 
       191 
     | 
    
         
            -
             
     | 
| 
       192 
     | 
    
         
            -
             
     | 
| 
       193 
     | 
    
         
            -
                      });
         
     | 
| 
      
 186 
     | 
    
         
            +
                    var _this$setState;
         
     | 
| 
      
 187 
     | 
    
         
            +
             
     | 
| 
      
 188 
     | 
    
         
            +
                    _this.setState((_this$setState = {}, (0, _defineProperty2.default)(_this$setState, name, value), (0, _defineProperty2.default)(_this$setState, "key", _this.state.key === 1 ? 2 : 1), _this$setState));
         
     | 
| 
      
 189 
     | 
    
         
            +
             
     | 
| 
      
 190 
     | 
    
         
            +
                    var selectedOption = _this.options.find(function (option) {
         
     | 
| 
      
 191 
     | 
    
         
            +
                      return option.id === value;
         
     | 
| 
      
 192 
     | 
    
         
            +
                    });
         
     | 
| 
      
 193 
     | 
    
         
            +
             
     | 
| 
      
 194 
     | 
    
         
            +
                    if (selectedOption) {
         
     | 
| 
      
 195 
     | 
    
         
            +
                      _this.props.onChange('from', selectedOption.from.toDate());
         
     | 
| 
      
 196 
     | 
    
         
            +
             
     | 
| 
      
 197 
     | 
    
         
            +
                      _this.props.onChange('to', selectedOption.to.toDate());
         
     | 
| 
      
 198 
     | 
    
         
            +
             
     | 
| 
      
 199 
     | 
    
         
            +
                      _this.props.onChange('fromError', false);
         
     | 
| 
      
 200 
     | 
    
         
            +
             
     | 
| 
      
 201 
     | 
    
         
            +
                      _this.props.onChange('toError', false);
         
     | 
| 
       194 
202 
     | 
    
         
             
                    }
         
     | 
| 
       195 
203 
     | 
    
         | 
| 
       196 
204 
     | 
    
         
             
                    if (_this.props.returnSelectValue === true) {
         
     | 
| 
         @@ -204,25 +212,9 @@ function (_React$Component) { 
     | 
|
| 
       204 
212 
     | 
    
         
             
                _this.options = props.availableOptionKeys.map(function (key) {
         
     | 
| 
       205 
213 
     | 
    
         
             
                  return buildDateRangeOptionByKey(key, props.translations, props.format);
         
     | 
| 
       206 
214 
     | 
    
         
             
                });
         
     | 
| 
       207 
     | 
    
         
            -
                var from;
         
     | 
| 
       208 
     | 
    
         
            -
                var to;
         
     | 
| 
       209 
     | 
    
         
            -
             
     | 
| 
       210 
     | 
    
         
            -
                if (props.defaultPreset !== 'custom') {
         
     | 
| 
       211 
     | 
    
         
            -
                  var selectedOption = _this.options.find(function (option) {
         
     | 
| 
       212 
     | 
    
         
            -
                    return option.id === props.defaultPreset;
         
     | 
| 
       213 
     | 
    
         
            -
                  });
         
     | 
| 
       214 
     | 
    
         
            -
             
     | 
| 
       215 
     | 
    
         
            -
                  if (selectedOption) {
         
     | 
| 
       216 
     | 
    
         
            -
                    from = selectedOption.from.toDate();
         
     | 
| 
       217 
     | 
    
         
            -
                    to = selectedOption.to.toDate();
         
     | 
| 
       218 
     | 
    
         
            -
                  }
         
     | 
| 
       219 
     | 
    
         
            -
                }
         
     | 
| 
       220 
     | 
    
         
            -
             
     | 
| 
       221 
215 
     | 
    
         
             
                _this.state = {
         
     | 
| 
       222 
216 
     | 
    
         
             
                  selectedPreset: props.defaultPreset,
         
     | 
| 
       223 
     | 
    
         
            -
                  containerWidth: 0 
     | 
| 
       224 
     | 
    
         
            -
                  defaultFrom: from,
         
     | 
| 
       225 
     | 
    
         
            -
                  defaultTo: to
         
     | 
| 
      
 217 
     | 
    
         
            +
                  containerWidth: 0
         
     | 
| 
       226 
218 
     | 
    
         
             
                };
         
     | 
| 
       227 
219 
     | 
    
         
             
                return _this;
         
     | 
| 
       228 
220 
     | 
    
         
             
              }
         
     | 
| 
         @@ -232,7 +224,7 @@ function (_React$Component) { 
     | 
|
| 
       232 
224 
     | 
    
         
             
                value: function componentDidMount() {
         
     | 
| 
       233 
225 
     | 
    
         
             
                  if (this.container) {
         
     | 
| 
       234 
226 
     | 
    
         
             
                    this.setState({
         
     | 
| 
       235 
     | 
    
         
            -
                      containerWidth: (0, _reactDom.findDOMNode)(this.container).clientWidth
         
     | 
| 
      
 227 
     | 
    
         
            +
                      containerWidth: (0, _reactDom.findDOMNode)(this.container).clientWidth - 5
         
     | 
| 
       236 
228 
     | 
    
         
             
                    });
         
     | 
| 
       237 
229 
     | 
    
         
             
                  }
         
     | 
| 
       238 
230 
     | 
    
         
             
                }
         
     | 
| 
         @@ -245,6 +237,7 @@ function (_React$Component) { 
     | 
|
| 
       245 
237 
     | 
    
         
             
                key: "handleReset",
         
     | 
| 
       246 
238 
     | 
    
         
             
                value: function handleReset(name) {
         
     | 
| 
       247 
239 
     | 
    
         
             
                  this.props.onChange(name, undefined);
         
     | 
| 
      
 240 
     | 
    
         
            +
                  this.props.onChange("".concat(name, "Error"), undefined);
         
     | 
| 
       248 
241 
     | 
    
         
             
                }
         
     | 
| 
       249 
242 
     | 
    
         
             
              }, {
         
     | 
| 
       250 
243 
     | 
    
         
             
                key: "render",
         
     | 
| 
         @@ -254,12 +247,14 @@ function (_React$Component) { 
     | 
|
| 
       254 
247 
     | 
    
         
             
                  var _this$props = this.props,
         
     | 
| 
       255 
248 
     | 
    
         
             
                      disabled = _this$props.disabled,
         
     | 
| 
       256 
249 
     | 
    
         
             
                      enableTime = _this$props.enableTime,
         
     | 
| 
       257 
     | 
    
         
            -
                      error = _this$props.error,
         
     | 
| 
       258 
250 
     | 
    
         
             
                      errorText = _this$props.errorText,
         
     | 
| 
      
 251 
     | 
    
         
            +
                      fromError = _this$props.fromError,
         
     | 
| 
      
 252 
     | 
    
         
            +
                      toError = _this$props.toError,
         
     | 
| 
       259 
253 
     | 
    
         
             
                      helperIcon = _this$props.helperIcon,
         
     | 
| 
       260 
254 
     | 
    
         
             
                      helperText = _this$props.helperText,
         
     | 
| 
       261 
255 
     | 
    
         
             
                      idRange = _this$props.idRange,
         
     | 
| 
       262 
256 
     | 
    
         
             
                      idSelect = _this$props.idSelect,
         
     | 
| 
      
 257 
     | 
    
         
            +
                      minimumDate = _this$props.minimumDate,
         
     | 
| 
       263 
258 
     | 
    
         
             
                      label = _this$props.label,
         
     | 
| 
       264 
259 
     | 
    
         
             
                      from = _this$props.from,
         
     | 
| 
       265 
260 
     | 
    
         
             
                      onChange = _this$props.onChange,
         
     | 
| 
         @@ -269,17 +264,24 @@ function (_React$Component) { 
     | 
|
| 
       269 
264 
     | 
    
         
             
                      classes = _this$props.classes,
         
     | 
| 
       270 
265 
     | 
    
         
             
                      selectProps = _this$props.selectProps,
         
     | 
| 
       271 
266 
     | 
    
         
             
                      staticPosition = _this$props.staticPosition,
         
     | 
| 
       272 
     | 
    
         
            -
                      props = (0, _objectWithoutProperties2.default)(_this$props, ["disabled", "enableTime", " 
     | 
| 
       273 
     | 
    
         
            -
                  var  
     | 
| 
       274 
     | 
    
         
            -
             
     | 
| 
       275 
     | 
    
         
            -
             
     | 
| 
       276 
     | 
    
         
            -
             
     | 
| 
       277 
     | 
    
         
            -
                  return _react.default.createElement( 
     | 
| 
      
 267 
     | 
    
         
            +
                      props = (0, _objectWithoutProperties2.default)(_this$props, ["disabled", "enableTime", "errorText", "fromError", "toError", "helperIcon", "helperText", "idRange", "idSelect", "minimumDate", "label", "from", "onChange", "required", "to", "translations", "classes", "selectProps", "staticPosition"]);
         
     | 
| 
      
 268 
     | 
    
         
            +
                  var selectedPreset = this.state.selectedPreset;
         
     | 
| 
      
 269 
     | 
    
         
            +
                  var hiSelectableListProps = {
         
     | 
| 
      
 270 
     | 
    
         
            +
                    hideCheckbox: true
         
     | 
| 
      
 271 
     | 
    
         
            +
                  };
         
     | 
| 
      
 272 
     | 
    
         
            +
                  return _react.default.createElement(_HiFormControl.default, {
         
     | 
| 
      
 273 
     | 
    
         
            +
                    disabled: disabled,
         
     | 
| 
      
 274 
     | 
    
         
            +
                    helperIcon: helperIcon,
         
     | 
| 
      
 275 
     | 
    
         
            +
                    helperText: helperText,
         
     | 
| 
      
 276 
     | 
    
         
            +
                    errorText: errorText,
         
     | 
| 
      
 277 
     | 
    
         
            +
                    error: !!(fromError || toError),
         
     | 
| 
      
 278 
     | 
    
         
            +
                    label: ' '
         
     | 
| 
      
 279 
     | 
    
         
            +
                  }, _react.default.createElement(_Grid.default, {
         
     | 
| 
       278 
280 
     | 
    
         
             
                    container: true,
         
     | 
| 
       279 
281 
     | 
    
         
             
                    spacing: 8,
         
     | 
| 
       280 
282 
     | 
    
         
             
                    className: classes.root,
         
     | 
| 
       281 
283 
     | 
    
         
             
                    ref: function ref(container) {
         
     | 
| 
       282 
     | 
    
         
            -
                      _this2.container = container;
         
     | 
| 
      
 284 
     | 
    
         
            +
                      return _this2.container = container;
         
     | 
| 
       283 
285 
     | 
    
         
             
                    }
         
     | 
| 
       284 
286 
     | 
    
         
             
                  }, _react.default.createElement(_Grid.default, {
         
     | 
| 
       285 
287 
     | 
    
         
             
                    item: true,
         
     | 
| 
         @@ -290,12 +292,10 @@ function (_React$Component) { 
     | 
|
| 
       290 
292 
     | 
    
         
             
                    }
         
     | 
| 
       291 
293 
     | 
    
         
             
                  }, _react.default.createElement(_HiSelectField.default, (0, _extends2.default)({
         
     | 
| 
       292 
294 
     | 
    
         
             
                    disabled: disabled,
         
     | 
| 
       293 
     | 
    
         
            -
                    error: error,
         
     | 
| 
       294 
     | 
    
         
            -
                    errorText: errorText,
         
     | 
| 
       295 
     | 
    
         
            -
                    helperIcon: helperIcon,
         
     | 
| 
       296 
     | 
    
         
            -
                    helperText: helperText,
         
     | 
| 
       297 
295 
     | 
    
         
             
                    id: idSelect,
         
     | 
| 
       298 
296 
     | 
    
         
             
                    label: label,
         
     | 
| 
      
 297 
     | 
    
         
            +
                    hideCheckbox: true,
         
     | 
| 
      
 298 
     | 
    
         
            +
                    hiSelectableListProps: hiSelectableListProps,
         
     | 
| 
       299 
299 
     | 
    
         
             
                    name: 'selectedPreset',
         
     | 
| 
       300 
300 
     | 
    
         
             
                    options: this.options,
         
     | 
| 
       301 
301 
     | 
    
         
             
                    onChange: this.handleSelectChange('selectedPreset'),
         
     | 
| 
         @@ -315,19 +315,26 @@ function (_React$Component) { 
     | 
|
| 
       315 
315 
     | 
    
         
             
                      'grid-sm-8': classes.smRangePicker
         
     | 
| 
       316 
316 
     | 
    
         
             
                    }
         
     | 
| 
       317 
317 
     | 
    
         
             
                  }, _react.default.createElement(_HiDateRangePicker.default, (0, _extends2.default)({
         
     | 
| 
      
 318 
     | 
    
         
            +
                    key: this.state.key,
         
     | 
| 
       318 
319 
     | 
    
         
             
                    classes: {
         
     | 
| 
       319 
320 
     | 
    
         
             
                      root: classes.dateRangePicker
         
     | 
| 
       320 
321 
     | 
    
         
             
                    },
         
     | 
| 
       321 
322 
     | 
    
         
             
                    id: idRange,
         
     | 
| 
       322 
     | 
    
         
            -
                    from: from  
     | 
| 
       323 
     | 
    
         
            -
                    to: to  
     | 
| 
      
 323 
     | 
    
         
            +
                    from: selectedPreset ? from : undefined,
         
     | 
| 
      
 324 
     | 
    
         
            +
                    to: selectedPreset ? to : undefined,
         
     | 
| 
       324 
325 
     | 
    
         
             
                    enableTime: enableTime,
         
     | 
| 
       325 
326 
     | 
    
         
             
                    onChange: onChange,
         
     | 
| 
      
 327 
     | 
    
         
            +
                    toError: toError,
         
     | 
| 
      
 328 
     | 
    
         
            +
                    fromError: fromError,
         
     | 
| 
      
 329 
     | 
    
         
            +
                    minimumDate: minimumDate,
         
     | 
| 
      
 330 
     | 
    
         
            +
                    errorText: null,
         
     | 
| 
       326 
331 
     | 
    
         
             
                    onReset: this.handleReset,
         
     | 
| 
       327 
332 
     | 
    
         
             
                    disabled: disabled || selectedPreset !== 'custom',
         
     | 
| 
       328 
333 
     | 
    
         
             
                    translations: translations,
         
     | 
| 
       329 
     | 
    
         
            -
                    staticPosition: staticPosition
         
     | 
| 
       330 
     | 
    
         
            -
             
     | 
| 
      
 334 
     | 
    
         
            +
                    staticPosition: staticPosition,
         
     | 
| 
      
 335 
     | 
    
         
            +
                    onBlur: this.onBlur,
         
     | 
| 
      
 336 
     | 
    
         
            +
                    hasSelector: true
         
     | 
| 
      
 337 
     | 
    
         
            +
                  }, props)))));
         
     | 
| 
       331 
338 
     | 
    
         
             
                }
         
     | 
| 
       332 
339 
     | 
    
         
             
              }], [{
         
     | 
| 
       333 
340 
     | 
    
         
             
                key: "getDerivedStateFromProps",
         
     | 
| 
         @@ -346,7 +353,6 @@ function (_React$Component) { 
     | 
|
| 
       346 
353 
     | 
    
         | 
| 
       347 
354 
     | 
    
         
             
            HiDateRangeSelector.defaultProps = {
         
     | 
| 
       348 
355 
     | 
    
         
             
              availableOptionKeys: ['cd', 'pd', 'cw', 'pw', 'cm', 'pm', 'cq', 'pq', 'cy', 'custom'],
         
     | 
| 
       349 
     | 
    
         
            -
              defaultPreset: 'cd',
         
     | 
| 
       350 
356 
     | 
    
         
             
              enableTime: false,
         
     | 
| 
       351 
357 
     | 
    
         
             
              returnSelectValue: false,
         
     | 
| 
       352 
358 
     | 
    
         
             
              staticPosition: false,
         
     | 
| 
         @@ -360,7 +366,8 @@ HiDateRangeSelector.defaultProps = { 
     | 
|
| 
       360 
366 
     | 
    
         
             
                quarter: 'Quarter',
         
     | 
| 
       361 
367 
     | 
    
         
             
                week: 'Week',
         
     | 
| 
       362 
368 
     | 
    
         
             
                short_week: 'W',
         
     | 
| 
       363 
     | 
    
         
            -
                 
     | 
| 
      
 369 
     | 
    
         
            +
                yearAndMonth: 'YYYY[-]MM',
         
     | 
| 
      
 370 
     | 
    
         
            +
                yearAndQuarter: 'YYYY[-Q]Q',
         
     | 
| 
       364 
371 
     | 
    
         
             
                year: 'Year',
         
     | 
| 
       365 
372 
     | 
    
         
             
                days: 'days',
         
     | 
| 
       366 
373 
     | 
    
         
             
                custom_period: 'Custom Period',
         
     | 
| 
         @@ -373,7 +380,13 @@ HiDateRangeSelector.defaultProps = { 
     | 
|
| 
       373 
380 
     | 
    
         
             
                previous_month: 'Previous Month',
         
     | 
| 
       374 
381 
     | 
    
         
             
                current_quarter: 'Current Quarter',
         
     | 
| 
       375 
382 
     | 
    
         
             
                previous_quarter: 'Previous Quarter',
         
     | 
| 
       376 
     | 
    
         
            -
                current_year: 'Current Year'
         
     | 
| 
      
 383 
     | 
    
         
            +
                current_year: 'Current Year',
         
     | 
| 
      
 384 
     | 
    
         
            +
                invalid_format: 'The date format is not valid',
         
     | 
| 
      
 385 
     | 
    
         
            +
                to_superior_from: 'Date from cannot be greater than date to',
         
     | 
| 
      
 386 
     | 
    
         
            +
                date_superior_max_date: 'Date from cannot be greater than %s',
         
     | 
| 
      
 387 
     | 
    
         
            +
                date_inferior_min_date: 'Date from cannot be before than %s',
         
     | 
| 
      
 388 
     | 
    
         
            +
                missing_date_from: 'Missing date from',
         
     | 
| 
      
 389 
     | 
    
         
            +
                missing_date_to: 'Missing date to'
         
     | 
| 
       377 
390 
     | 
    
         
             
              }
         
     | 
| 
       378 
391 
     | 
    
         
             
            };
         
     | 
| 
       379 
392 
     | 
    
         
             
            HiDateRangeSelector.propTypes = process.env.NODE_ENV !== "production" ? {
         
     | 
| 
         @@ -410,7 +423,7 @@ HiDateRangeSelector.propTypes = process.env.NODE_ENV !== "production" ? { 
     | 
|
| 
       410 
423 
     | 
    
         
             
              /**
         
     | 
| 
       411 
424 
     | 
    
         
             
               * Texte de l'erreur
         
     | 
| 
       412 
425 
     | 
    
         
             
               */
         
     | 
| 
       413 
     | 
    
         
            -
              errorText: _propTypes.default.string,
         
     | 
| 
      
 426 
     | 
    
         
            +
              errorText: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.bool]),
         
     | 
| 
       414 
427 
     | 
    
         | 
| 
       415 
428 
     | 
    
         
             
              /**
         
     | 
| 
       416 
429 
     | 
    
         
             
               * Format de date utilisé
         
     | 
| 
         @@ -452,6 +465,11 @@ HiDateRangeSelector.propTypes = process.env.NODE_ENV !== "production" ? { 
     | 
|
| 
       452 
465 
     | 
    
         
             
               */
         
     | 
| 
       453 
466 
     | 
    
         
             
              locale: _propTypes.default.string,
         
     | 
| 
       454 
467 
     | 
    
         | 
| 
      
 468 
     | 
    
         
            +
              /**
         
     | 
| 
      
 469 
     | 
    
         
            +
               * Date minimale sélectionnable
         
     | 
| 
      
 470 
     | 
    
         
            +
               */
         
     | 
| 
      
 471 
     | 
    
         
            +
              minimumDate: _propTypes.default.instanceOf(Date).isRequired,
         
     | 
| 
      
 472 
     | 
    
         
            +
             
     | 
| 
       455 
473 
     | 
    
         
             
              /**
         
     | 
| 
       456 
474 
     | 
    
         
             
               * Callback à la sélection d'une date
         
     | 
| 
       457 
475 
     | 
    
         
             
               */
         
     | 
    
        package/HiDatePicker/NavBar.js
    CHANGED
    
    
| 
         @@ -95,8 +95,8 @@ function (_React$Component) { 
     | 
|
| 
       95 
95 
     | 
    
         
             
            }(_react.default.Component);
         
     | 
| 
       96 
96 
     | 
    
         | 
| 
       97 
97 
     | 
    
         
             
            YearPickerOverlay.defaultProps = {
         
     | 
| 
       98 
     | 
    
         
            -
              disableFutureDays:  
     | 
| 
       99 
     | 
    
         
            -
              disablePastDays: false,
         
     | 
| 
      
 98 
     | 
    
         
            +
              // disableFutureDays: true,
         
     | 
| 
      
 99 
     | 
    
         
            +
              // disablePastDays: false,
         
     | 
| 
       100 
100 
     | 
    
         
             
              minimumDate: new Date(2013, 4, 1),
         
     | 
| 
       101 
101 
     | 
    
         
             
              // by default 1 May 2013
         
     | 
| 
       102 
102 
     | 
    
         
             
              translations: {
         
     | 
| 
         @@ -132,7 +132,7 @@ YearPickerOverlay.propTypes = process.env.NODE_ENV !== "production" ? { 
     | 
|
| 
       132 
132 
     | 
    
         
             
              /**
         
     | 
| 
       133 
133 
     | 
    
         
             
               * Date minimale sélectionnable
         
     | 
| 
       134 
134 
     | 
    
         
             
               */
         
     | 
| 
       135 
     | 
    
         
            -
              minimumDate: _propTypes.default.instanceOf(Date),
         
     | 
| 
      
 135 
     | 
    
         
            +
              minimumDate: _propTypes.default.instanceOf(Date).isRequired,
         
     | 
| 
       136 
136 
     | 
    
         | 
| 
       137 
137 
     | 
    
         
             
              /**
         
     | 
| 
       138 
138 
     | 
    
         
             
               * Fonction de callback
         
     | 
    
        package/HiForm/HiFormControl.js
    CHANGED
    
    | 
         @@ -62,6 +62,7 @@ var styles = function styles(theme) { 
     | 
|
| 
       62 
62 
     | 
    
         
             
                  position: 'absolute',
         
     | 
| 
       63 
63 
     | 
    
         
             
                  right: 5,
         
     | 
| 
       64 
64 
     | 
    
         
             
                  cursor: 'pointer',
         
     | 
| 
      
 65 
     | 
    
         
            +
                  zIndex: 1,
         
     | 
| 
       65 
66 
     | 
    
         
             
                  top: '-5px',
         
     | 
| 
       66 
67 
     | 
    
         
             
                  '&$iconButtonError': {
         
     | 
| 
       67 
68 
     | 
    
         
             
                    color: theme.palette.negative.main
         
     | 
| 
         @@ -247,7 +248,7 @@ function (_React$PureComponent) { 
     | 
|
| 
       247 
248 
     | 
    
         
             
                    required: required,
         
     | 
| 
       248 
249 
     | 
    
         
             
                    disabled: disabled,
         
     | 
| 
       249 
250 
     | 
    
         
             
                    focused: !disabled && (focused || hovered)
         
     | 
| 
       250 
     | 
    
         
            -
                  }, InputLabelProps), error && _react.default.createElement(_HiIconButton.default, {
         
     | 
| 
      
 251 
     | 
    
         
            +
                  }, InputLabelProps), error && errorText && _react.default.createElement(_HiIconButton.default, {
         
     | 
| 
       251 
252 
     | 
    
         
             
                    className: (0, _classnames.default)(classes.iconButton, classes.iconButtonError),
         
     | 
| 
       252 
253 
     | 
    
         
             
                    onClick: this.handleHelperClick,
         
     | 
| 
       253 
254 
     | 
    
         
             
                    onKeyDown: this.handleKeyDown
         
     | 
| 
         @@ -279,8 +280,8 @@ HiFormControl.defaultProps = { 
     | 
|
| 
       279 
280 
     | 
    
         
             
              required: true,
         
     | 
| 
       280 
281 
     | 
    
         
             
              disabled: false,
         
     | 
| 
       281 
282 
     | 
    
         
             
              error: false,
         
     | 
| 
       282 
     | 
    
         
            -
              errorText:  
     | 
| 
       283 
     | 
    
         
            -
              helperText:  
     | 
| 
      
 283 
     | 
    
         
            +
              errorText: undefined,
         
     | 
| 
      
 284 
     | 
    
         
            +
              helperText: undefined,
         
     | 
| 
       284 
285 
     | 
    
         
             
              helperIcon: false,
         
     | 
| 
       285 
286 
     | 
    
         
             
              multiline: false,
         
     | 
| 
       286 
287 
     | 
    
         
             
              nbChars: 0,
         
     | 
| 
         @@ -315,7 +316,7 @@ HiFormControl.propTypes = process.env.NODE_ENV !== "production" ? { 
     | 
|
| 
       315 
316 
     | 
    
         
             
              /**
         
     | 
| 
       316 
317 
     | 
    
         
             
               * Texte de l'erreur
         
     | 
| 
       317 
318 
     | 
    
         
             
               */
         
     | 
| 
       318 
     | 
    
         
            -
              errorText: _propTypes.default.string,
         
     | 
| 
      
 319 
     | 
    
         
            +
              errorText: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.bool]),
         
     | 
| 
       319 
320 
     | 
    
         | 
| 
       320 
321 
     | 
    
         
             
              /**
         
     | 
| 
       321 
322 
     | 
    
         
             
               * Propriétés appliquées au composant FormHelperText
         
     | 
| 
         @@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", { 
     | 
|
| 
       7 
7 
     | 
    
         
             
            });
         
     | 
| 
       8 
8 
     | 
    
         
             
            exports.default = exports.styles = void 0;
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
      
 10 
     | 
    
         
            +
            var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
       10 
12 
     | 
    
         
             
            var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
         
     | 
| 
       11 
13 
     | 
    
         | 
| 
       12 
14 
     | 
    
         
             
            var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
         
     | 
| 
         @@ -33,6 +35,8 @@ var _Grow = _interopRequireDefault(require("@material-ui/core/Grow")); 
     | 
|
| 
       33 
35 
     | 
    
         | 
| 
       34 
36 
     | 
    
         
             
            var _Paper = _interopRequireDefault(require("@material-ui/core/Paper"));
         
     | 
| 
       35 
37 
     | 
    
         | 
| 
      
 38 
     | 
    
         
            +
            var _classnames = _interopRequireDefault(require("classnames"));
         
     | 
| 
      
 39 
     | 
    
         
            +
             
     | 
| 
       36 
40 
     | 
    
         
             
            var _HiSelectableList = _interopRequireDefault(require("../HiSelectableList"));
         
     | 
| 
       37 
41 
     | 
    
         | 
| 
       38 
42 
     | 
    
         
             
            var _HiInput = _interopRequireDefault(require("../HiForm/HiInput"));
         
     | 
| 
         @@ -62,6 +66,9 @@ var styles = function styles(theme) { 
     | 
|
| 
       62 
66 
     | 
    
         
             
                  borderRadius: '0px 2px',
         
     | 
| 
       63 
67 
     | 
    
         
             
                  maxHeight: 440,
         
     | 
| 
       64 
68 
     | 
    
         
             
                  transition: 'none'
         
     | 
| 
      
 69 
     | 
    
         
            +
                },
         
     | 
| 
      
 70 
     | 
    
         
            +
                alignRight: {
         
     | 
| 
      
 71 
     | 
    
         
            +
                  right: 0
         
     | 
| 
       65 
72 
     | 
    
         
             
                }
         
     | 
| 
       66 
73 
     | 
    
         
             
              };
         
     | 
| 
       67 
74 
     | 
    
         
             
            };
         
     | 
| 
         @@ -195,7 +202,8 @@ function (_React$PureComponent) { 
     | 
|
| 
       195 
202 
     | 
    
         
             
                      showNoResults = _this$props.showNoResults,
         
     | 
| 
       196 
203 
     | 
    
         
             
                      onSearch = _this$props.onSearch,
         
     | 
| 
       197 
204 
     | 
    
         
             
                      translations = _this$props.translations,
         
     | 
| 
       198 
     | 
    
         
            -
                       
     | 
| 
      
 205 
     | 
    
         
            +
                      align = _this$props.align,
         
     | 
| 
      
 206 
     | 
    
         
            +
                      otherProps = (0, _objectWithoutProperties2.default)(_this$props, ["classes", "id", "loading", "showMinLength", "showNoResults", "onSearch", "translations", "align"]);
         
     | 
| 
       199 
207 
     | 
    
         
             
                  var _this$state = this.state,
         
     | 
| 
       200 
208 
     | 
    
         
             
                      focused = _this$state.focused,
         
     | 
| 
       201 
209 
     | 
    
         
             
                      options = _this$state.options;
         
     | 
| 
         @@ -240,7 +248,7 @@ function (_React$PureComponent) { 
     | 
|
| 
       240 
248 
     | 
    
         
             
                    disablePortal: true,
         
     | 
| 
       241 
249 
     | 
    
         
             
                    anchorEl: this.textInput,
         
     | 
| 
       242 
250 
     | 
    
         
             
                    placement: "bottom-start",
         
     | 
| 
       243 
     | 
    
         
            -
                    className: classes.popper,
         
     | 
| 
      
 251 
     | 
    
         
            +
                    className: (0, _classnames.default)(classes.popper, (0, _defineProperty2.default)({}, classes.alignRight, align === 'right')),
         
     | 
| 
       244 
252 
     | 
    
         
             
                    open: true
         
     | 
| 
       245 
253 
     | 
    
         
             
                  }, _react.default.createElement(_Grow.default, {
         
     | 
| 
       246 
254 
     | 
    
         
             
                    in: open,
         
     | 
| 
         @@ -264,6 +272,7 @@ function (_React$PureComponent) { 
     | 
|
| 
       264 
272 
     | 
    
         
             
            }(_react.default.PureComponent);
         
     | 
| 
       265 
273 
     | 
    
         | 
| 
       266 
274 
     | 
    
         
             
            HiSuggestSelect.defaultProps = {
         
     | 
| 
      
 275 
     | 
    
         
            +
              align: 'left',
         
     | 
| 
       267 
276 
     | 
    
         
             
              showMinLength: false,
         
     | 
| 
       268 
277 
     | 
    
         
             
              showNoResults: false,
         
     | 
| 
       269 
278 
     | 
    
         
             
              translations: {
         
     | 
| 
         @@ -273,6 +282,11 @@ HiSuggestSelect.defaultProps = { 
     | 
|
| 
       273 
282 
     | 
    
         
             
              options: []
         
     | 
| 
       274 
283 
     | 
    
         
             
            };
         
     | 
| 
       275 
284 
     | 
    
         
             
            HiSuggestSelect.propTypes = process.env.NODE_ENV !== "production" ? {
         
     | 
| 
      
 285 
     | 
    
         
            +
              /**
         
     | 
| 
      
 286 
     | 
    
         
            +
               * Align popper on right or left of container
         
     | 
| 
      
 287 
     | 
    
         
            +
               */
         
     | 
| 
      
 288 
     | 
    
         
            +
              align: _propTypes.default.oneOf(['left', 'right']),
         
     | 
| 
      
 289 
     | 
    
         
            +
             
     | 
| 
       276 
290 
     | 
    
         
             
              /**
         
     | 
| 
       277 
291 
     | 
    
         
             
               * Useful to extend the style applied to components.
         
     | 
| 
       278 
292 
     | 
    
         
             
               */
         
     | 
    
        package/HiSelectNew/HiSelect.js
    CHANGED
    
    | 
         @@ -501,7 +501,7 @@ function (_React$PureComponent) { 
     | 
|
| 
       501 
501 
     | 
    
         
             
                    }
         
     | 
| 
       502 
502 
     | 
    
         
             
                  }
         
     | 
| 
       503 
503 
     | 
    
         | 
| 
       504 
     | 
    
         
            -
                  var popperClass = (0, _classnames.default)(classes.popper, (_classNames = {}, (0, _defineProperty2.default)(_classNames, classes.popperWidth, !this.props.containerWidth), (0, _defineProperty2.default)(_classNames, classes.popperRightAlign, this.props.containerWidth), _classNames));
         
     | 
| 
      
 504 
     | 
    
         
            +
                  var popperClass = (0, _classnames.default)(classes.popper, (_classNames = {}, (0, _defineProperty2.default)(_classNames, classes.popperWidth, !this.props.containerWidth), (0, _defineProperty2.default)(_classNames, classes.popperRightAlign, this.props.containerWidth && this.props.align === 'right'), _classNames));
         
     | 
| 
       505 
505 
     | 
    
         | 
| 
       506 
506 
     | 
    
         
             
                  var content = _react.default.createElement(_ClickAwayListener.default, {
         
     | 
| 
       507 
507 
     | 
    
         
             
                    onClickAway: this.handleClickAway
         
     | 
| 
         @@ -595,6 +595,7 @@ function (_React$PureComponent) { 
     | 
|
| 
       595 
595 
     | 
    
         
             
            }(_react.default.PureComponent);
         
     | 
| 
       596 
596 
     | 
    
         | 
| 
       597 
597 
     | 
    
         
             
            HiSelect.defaultProps = {
         
     | 
| 
      
 598 
     | 
    
         
            +
              align: 'left',
         
     | 
| 
       598 
599 
     | 
    
         
             
              disabled: false,
         
     | 
| 
       599 
600 
     | 
    
         
             
              displayAsChip: false,
         
     | 
| 
       600 
601 
     | 
    
         
             
              error: false,
         
     | 
| 
         @@ -617,6 +618,8 @@ HiSelect.defaultProps = { 
     | 
|
| 
       617 
618 
     | 
    
         
             
              type: 'text'
         
     | 
| 
       618 
619 
     | 
    
         
             
            };
         
     | 
| 
       619 
620 
     | 
    
         
             
            HiSelect.propTypes = process.env.NODE_ENV !== "production" ? {
         
     | 
| 
      
 621 
     | 
    
         
            +
              align: _propTypes.default.oneOf(['left', 'right']),
         
     | 
| 
      
 622 
     | 
    
         
            +
             
     | 
| 
       620 
623 
     | 
    
         
             
              /**
         
     | 
| 
       621 
624 
     | 
    
         
             
               * Useful to extend the style applied to components.
         
     | 
| 
       622 
625 
     | 
    
         
             
               */
         
     | 
| 
         @@ -146,7 +146,9 @@ var styles = function styles(theme) { 
     | 
|
| 
       146 
146 
     | 
    
         
             
                  textOverflow: 'ellipsis',
         
     | 
| 
       147 
147 
     | 
    
         
             
                  textAlign: 'right',
         
     | 
| 
       148 
148 
     | 
    
         
             
                  margin: '4px 12px 4px 8px',
         
     | 
| 
       149 
     | 
    
         
            -
                  alignSelf: 'center'
         
     | 
| 
      
 149 
     | 
    
         
            +
                  alignSelf: 'center',
         
     | 
| 
      
 150 
     | 
    
         
            +
                  minWidth: '40%',
         
     | 
| 
      
 151 
     | 
    
         
            +
                  maxWidth: '100%'
         
     | 
| 
       150 
152 
     | 
    
         
             
                }),
         
     | 
| 
       151 
153 
     | 
    
         
             
                checkbox: {
         
     | 
| 
       152 
154 
     | 
    
         
             
                  marginTop: 3
         
     | 
    
        package/HiSwitch/HiSwitch.js
    CHANGED
    
    
    
        package/HiTable/HiCellBuilder.js
    CHANGED
    
    | 
         @@ -25,23 +25,25 @@ var _propTypes = _interopRequireDefault(require("prop-types")); 
     | 
|
| 
       25 
25 
     | 
    
         | 
| 
       26 
26 
     | 
    
         
             
            var _TableCell = _interopRequireDefault(require("@material-ui/core/TableCell"));
         
     | 
| 
       27 
27 
     | 
    
         | 
| 
       28 
     | 
    
         
            -
            var _CellAddress = _interopRequireDefault(require(" 
     | 
| 
      
 28 
     | 
    
         
            +
            var _CellAddress = _interopRequireDefault(require("../HiCell/CellAddress"));
         
     | 
| 
       29 
29 
     | 
    
         | 
| 
       30 
     | 
    
         
            -
            var _CellDate = _interopRequireDefault(require(" 
     | 
| 
      
 30 
     | 
    
         
            +
            var _CellDate = _interopRequireDefault(require("../HiCell/CellDate"));
         
     | 
| 
       31 
31 
     | 
    
         | 
| 
       32 
     | 
    
         
            -
            var _CellIcon = _interopRequireDefault(require(" 
     | 
| 
      
 32 
     | 
    
         
            +
            var _CellIcon = _interopRequireDefault(require("../HiCell/CellIcon"));
         
     | 
| 
       33 
33 
     | 
    
         | 
| 
       34 
     | 
    
         
            -
            var _CellImage = _interopRequireDefault(require(" 
     | 
| 
      
 34 
     | 
    
         
            +
            var _CellImage = _interopRequireDefault(require("../HiCell/CellImage"));
         
     | 
| 
       35 
35 
     | 
    
         | 
| 
       36 
     | 
    
         
            -
            var _CellNumeric = _interopRequireDefault(require(" 
     | 
| 
      
 36 
     | 
    
         
            +
            var _CellNumeric = _interopRequireDefault(require("../HiCell/CellNumeric"));
         
     | 
| 
       37 
37 
     | 
    
         | 
| 
       38 
     | 
    
         
            -
            var _CellSentinel = _interopRequireDefault(require(" 
     | 
| 
      
 38 
     | 
    
         
            +
            var _CellSentinel = _interopRequireDefault(require("../HiCell/CellSentinel"));
         
     | 
| 
       39 
39 
     | 
    
         | 
| 
       40 
     | 
    
         
            -
            var  
     | 
| 
      
 40 
     | 
    
         
            +
            var _CellSentinelScore = _interopRequireDefault(require("../HiCell/CellSentinelScore"));
         
     | 
| 
       41 
41 
     | 
    
         | 
| 
       42 
     | 
    
         
            -
            var  
     | 
| 
      
 42 
     | 
    
         
            +
            var _CellTextStyled = _interopRequireDefault(require("../HiCell/CellTextStyled"));
         
     | 
| 
       43 
43 
     | 
    
         | 
| 
       44 
     | 
    
         
            -
            var  
     | 
| 
      
 44 
     | 
    
         
            +
            var _CellRate = _interopRequireDefault(require("../HiCell/CellRate"));
         
     | 
| 
      
 45 
     | 
    
         
            +
             
     | 
| 
      
 46 
     | 
    
         
            +
            var _CellPinToAction = _interopRequireDefault(require("../HiCell/CellPinToAction"));
         
     | 
| 
       45 
47 
     | 
    
         | 
| 
       46 
48 
     | 
    
         
             
            var cst = _interopRequireWildcard(require("./constants"));
         
     | 
| 
       47 
49 
     | 
    
         | 
| 
         @@ -102,7 +104,8 @@ function (_React$PureComponent) { 
     | 
|
| 
       102 
104 
     | 
    
         
             
                            shortLabel: datacell.id,
         
     | 
| 
       103 
105 
     | 
    
         
             
                            path: datacell.img,
         
     | 
| 
       104 
106 
     | 
    
         
             
                            size: datacell.size,
         
     | 
| 
       105 
     | 
    
         
            -
                            view: cell.view ? cell.view : cst.DEFAULT_VIEWS[cell.type]
         
     | 
| 
      
 107 
     | 
    
         
            +
                            view: cell.view ? cell.view : cst.DEFAULT_VIEWS[cell.type],
         
     | 
| 
      
 108 
     | 
    
         
            +
                            fallbackImage: datacell.fallbackImage
         
     | 
| 
       106 
109 
     | 
    
         
             
                          });
         
     | 
| 
       107 
110 
     | 
    
         | 
| 
       108 
111 
     | 
    
         
             
                        case cst.TYPE_RATE:
         
     | 
| 
         @@ -155,13 +158,19 @@ function (_React$PureComponent) { 
     | 
|
| 
       155 
158 
     | 
    
         | 
| 
       156 
159 
     | 
    
         
             
                        case cst.TYPE_SENTINEL:
         
     | 
| 
       157 
160 
     | 
    
         
             
                          return _react.default.createElement(_CellSentinel.default, {
         
     | 
| 
       158 
     | 
    
         
            -
                             
     | 
| 
       159 
     | 
    
         
            -
                             
     | 
| 
       160 
     | 
    
         
            -
                             
     | 
| 
       161 
     | 
    
         
            -
                             
     | 
| 
       162 
     | 
    
         
            -
                             
     | 
| 
       163 
     | 
    
         
            -
                             
     | 
| 
       164 
     | 
    
         
            -
             
     | 
| 
      
 161 
     | 
    
         
            +
                            color: datacell.color,
         
     | 
| 
      
 162 
     | 
    
         
            +
                            label: datacell.label,
         
     | 
| 
      
 163 
     | 
    
         
            +
                            letter: datacell.label2,
         
     | 
| 
      
 164 
     | 
    
         
            +
                            active: datacell.active,
         
     | 
| 
      
 165 
     | 
    
         
            +
                            reviewer: datacell.reviewer,
         
     | 
| 
      
 166 
     | 
    
         
            +
                            outlined: datacell.outlined
         
     | 
| 
      
 167 
     | 
    
         
            +
                          });
         
     | 
| 
      
 168 
     | 
    
         
            +
             
     | 
| 
      
 169 
     | 
    
         
            +
                        case cst.TYPE_SENTINEL_SCORE:
         
     | 
| 
      
 170 
     | 
    
         
            +
                          return _react.default.createElement(_CellSentinelScore.default, {
         
     | 
| 
      
 171 
     | 
    
         
            +
                            value: datacell.value,
         
     | 
| 
      
 172 
     | 
    
         
            +
                            result: datacell.result,
         
     | 
| 
      
 173 
     | 
    
         
            +
                            active: datacell.active
         
     | 
| 
       165 
174 
     | 
    
         
             
                          });
         
     | 
| 
       166 
175 
     | 
    
         | 
| 
       167 
176 
     | 
    
         
             
                        case cst.TYPE_PIN_TO_ACTION:
         
     | 
| 
         @@ -171,18 +180,13 @@ function (_React$PureComponent) { 
     | 
|
| 
       171 
180 
     | 
    
         
             
                          });
         
     | 
| 
       172 
181 
     | 
    
         | 
| 
       173 
182 
     | 
    
         
             
                        case cst.TYPE_ACCOUNT_NUMBER:
         
     | 
| 
       174 
     | 
    
         
            -
                          return _react.default.createElement(_CellText.default, {
         
     | 
| 
       175 
     | 
    
         
            -
                            label: datacell.value,
         
     | 
| 
       176 
     | 
    
         
            -
                            color: datacell.color,
         
     | 
| 
       177 
     | 
    
         
            -
                            ellipsis: datacell.ellipse
         
     | 
| 
       178 
     | 
    
         
            -
                          });
         
     | 
| 
       179 
     | 
    
         
            -
             
     | 
| 
       180 
183 
     | 
    
         
             
                        default:
         
     | 
| 
       181 
     | 
    
         
            -
                          return _react.default.createElement( 
     | 
| 
       182 
     | 
    
         
            -
                             
     | 
| 
      
 184 
     | 
    
         
            +
                          return _react.default.createElement(_CellTextStyled.default, {
         
     | 
| 
      
 185 
     | 
    
         
            +
                            active: datacell.active,
         
     | 
| 
       183 
186 
     | 
    
         
             
                            color: datacell.color,
         
     | 
| 
       184 
     | 
    
         
            -
                             
     | 
| 
       185 
     | 
    
         
            -
                             
     | 
| 
      
 187 
     | 
    
         
            +
                            label: datacell.label,
         
     | 
| 
      
 188 
     | 
    
         
            +
                            title: datacell.title,
         
     | 
| 
      
 189 
     | 
    
         
            +
                            value: datacell.value
         
     | 
| 
       186 
190 
     | 
    
         
             
                          });
         
     | 
| 
       187 
191 
     | 
    
         
             
                      }
         
     | 
| 
       188 
192 
     | 
    
         
             
                    }
         
     | 
    
        package/HiTable/HiTableHeader.js
    CHANGED
    
    | 
         @@ -9,6 +9,8 @@ Object.defineProperty(exports, "__esModule", { 
     | 
|
| 
       9 
9 
     | 
    
         
             
            });
         
     | 
| 
       10 
10 
     | 
    
         
             
            exports.default = void 0;
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
      
 12 
     | 
    
         
            +
            var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
       12 
14 
     | 
    
         
             
            var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
         
     | 
| 
       13 
15 
     | 
    
         | 
| 
       14 
16 
     | 
    
         
             
            var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
         
     | 
| 
         @@ -76,6 +78,8 @@ function (_React$PureComponent) { 
     | 
|
| 
       76 
78 
     | 
    
         
             
              (0, _createClass2.default)(HiTableHeader, [{
         
     | 
| 
       77 
79 
     | 
    
         
             
                key: "render",
         
     | 
| 
       78 
80 
     | 
    
         
             
                value: function render() {
         
     | 
| 
      
 81 
     | 
    
         
            +
                  var _this2 = this;
         
     | 
| 
      
 82 
     | 
    
         
            +
             
     | 
| 
       79 
83 
     | 
    
         
             
                  var _this$props = this.props,
         
     | 
| 
       80 
84 
     | 
    
         
             
                      classes = _this$props.classes,
         
     | 
| 
       81 
85 
     | 
    
         
             
                      columns = _this$props.columns,
         
     | 
| 
         @@ -89,28 +93,32 @@ function (_React$PureComponent) { 
     | 
|
| 
       89 
93 
     | 
    
         
             
                      whiteSpace: 'nowrap'
         
     | 
| 
       90 
94 
     | 
    
         
             
                    }
         
     | 
| 
       91 
95 
     | 
    
         
             
                  }, Object.keys(columns).map(function (key) {
         
     | 
| 
       92 
     | 
    
         
            -
                    var  
     | 
| 
      
 96 
     | 
    
         
            +
                    var _columns$key = columns[key],
         
     | 
| 
      
 97 
     | 
    
         
            +
                        colId = _columns$key.colId,
         
     | 
| 
      
 98 
     | 
    
         
            +
                        type = _columns$key.type,
         
     | 
| 
      
 99 
     | 
    
         
            +
                        label = _columns$key.label,
         
     | 
| 
      
 100 
     | 
    
         
            +
                        smallLabel = _columns$key.smallLabel,
         
     | 
| 
      
 101 
     | 
    
         
            +
                        view = _columns$key.view;
         
     | 
| 
       93 
102 
     | 
    
         
             
                    return _react.default.createElement(_TableCell.default, {
         
     | 
| 
       94 
     | 
    
         
            -
                      key:  
     | 
| 
       95 
     | 
    
         
            -
                      sortDirection: orderBy ===  
     | 
| 
      
 103 
     | 
    
         
            +
                      key: colId,
         
     | 
| 
      
 104 
     | 
    
         
            +
                      sortDirection: orderBy === colId ? order : false,
         
     | 
| 
       96 
105 
     | 
    
         
             
                      style: {
         
     | 
| 
       97 
106 
     | 
    
         
             
                        border: 'none',
         
     | 
| 
       98 
     | 
    
         
            -
                        borderBottom: orderBy ===  
     | 
| 
      
 107 
     | 
    
         
            +
                        borderBottom: orderBy === colId ? 'solid 1px #00ADE9' : 'none',
         
     | 
| 
       99 
108 
     | 
    
         
             
                        paddingRight: '13px',
         
     | 
| 
       100 
109 
     | 
    
         
             
                        paddingLeft: '13px'
         
     | 
| 
       101 
110 
     | 
    
         
             
                      },
         
     | 
| 
       102 
     | 
    
         
            -
                      numeric:  
     | 
| 
       103 
     | 
    
         
            -
                    },  
     | 
| 
       104 
     | 
    
         
            -
                       
     | 
| 
       105 
     | 
    
         
            -
                      enterDelay: 300
         
     | 
| 
       106 
     | 
    
         
            -
                    }, _react.default.createElement(_TableSortLabel.default, {
         
     | 
| 
       107 
     | 
    
         
            -
                      active: orderBy === column.colId,
         
     | 
| 
      
 111 
     | 
    
         
            +
                      numeric: cst.ALIGN_RIGHT_TYPES.includes(type)
         
     | 
| 
      
 112 
     | 
    
         
            +
                    }, _react.default.createElement(_TableSortLabel.default, (0, _extends2.default)({}, sortable && {
         
     | 
| 
      
 113 
     | 
    
         
            +
                      active: orderBy === colId,
         
     | 
| 
       108 
114 
     | 
    
         
             
                      direction: order,
         
     | 
| 
       109 
     | 
    
         
            -
                      onClick:  
     | 
| 
      
 115 
     | 
    
         
            +
                      onClick: _this2.createSortHandler(colId)
         
     | 
| 
      
 116 
     | 
    
         
            +
                    }, {
         
     | 
| 
       110 
117 
     | 
    
         
             
                      classes: {
         
     | 
| 
       111 
118 
     | 
    
         
             
                        icon: classes.icon
         
     | 
| 
       112 
     | 
    
         
            -
                      }
         
     | 
| 
       113 
     | 
    
         
            -
             
     | 
| 
      
 119 
     | 
    
         
            +
                      },
         
     | 
| 
      
 120 
     | 
    
         
            +
                      title: label
         
     | 
| 
      
 121 
     | 
    
         
            +
                    }), view === 's' ? smallLabel : label));
         
     | 
| 
       114 
122 
     | 
    
         
             
                  }, this)));
         
     | 
| 
       115 
123 
     | 
    
         
             
                }
         
     | 
| 
       116 
124 
     | 
    
         
             
              }]);
         
     |