@hipay/hipay-material-ui 2.0.0-beta.70 → 2.0.0-beta.71
Sign up to get free protection for your applications and to get access to all the features.
- package/HiAlertModal/HiAlertModal.js +3 -3
- package/HiAppBar/HiAppBar.js +3 -3
- package/HiBreadcrumb/HiStepConnector.js +3 -3
- package/HiCell/CellText.js +3 -3
- package/HiCheckbox/HiCheckbox.js +3 -3
- package/HiChip/HiChipSwitch.js +5 -5
- package/HiDatePicker/HiDatePicker.js +19 -18
- package/HiDatePicker/Overlays/MonthPickerOverlay.js +3 -3
- package/HiDatePicker/Overlays/TimePickerOverlay.js +4 -4
- package/HiDatePicker/Overlays/YearPickerOverlay.js +3 -3
- package/HiDotsStepper/HiDotsStepper.js +4 -4
- package/HiForm/HiAddressField.js +7 -7
- package/HiForm/HiEmailField.js +3 -3
- package/HiForm/HiFormControl.js +6 -6
- package/HiForm/HiFormLabel.js +1 -1
- package/HiForm/HiInput.js +11 -11
- package/HiForm/HiPasswordField.js +3 -3
- package/HiForm/HiSearchField.js +5 -5
- package/HiForm/HiTextField.js +13 -6
- package/HiMap/HiMap.js +6 -6
- package/HiMap/HiMapExpand.js +4 -4
- package/HiNotice/HiKPI.js +3 -3
- package/HiSelect/HiDynamicSelect.js +7 -7
- package/HiSelect/HiNestedSelect.js +12 -12
- package/HiSelect/HiNestedSelectContent.js +9 -9
- package/HiSelect/HiSelect.js +21 -21
- package/HiSelect/HiSelectContent.js +13 -13
- package/HiSelect/HiSelectInput.js +7 -7
- package/HiSelect/HiSuggestSelect.js +6 -6
- package/HiSelectableList/HiSelectableListItem.js +4 -4
- package/HiTable/HiTable.js +3 -3
- package/HiTable/HiTableRow.js +3 -3
- package/es/HiDatePicker/HiDatePicker.js +2 -1
- package/es/HiForm/HiFormLabel.js +1 -1
- package/es/HiForm/HiTextField.js +8 -1
- package/es/HiSelect/HiSelect.js +2 -2
- package/index.es.js +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
- package/umd/hipay-material-ui.development.js +29466 -20497
- package/umd/hipay-material-ui.production.min.js +2 -2
@@ -21,10 +21,10 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
21
21
|
|
22
22
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
23
23
|
|
24
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
25
|
-
|
26
24
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
27
25
|
|
26
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
27
|
+
|
28
28
|
var _react = _interopRequireDefault(require("react"));
|
29
29
|
|
30
30
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
@@ -80,7 +80,7 @@ function (_React$PureComponent) {
|
|
80
80
|
return id !== item.id;
|
81
81
|
}), item);
|
82
82
|
} else {
|
83
|
-
onChange(event, (0, _toConsumableArray2.default)(value)
|
83
|
+
onChange(event, [].concat((0, _toConsumableArray2.default)(value), [item.id]), item);
|
84
84
|
}
|
85
85
|
};
|
86
86
|
|
@@ -91,14 +91,14 @@ function (_React$PureComponent) {
|
|
91
91
|
var _this$props2 = _this.props,
|
92
92
|
nextPage = _this$props2.nextPage,
|
93
93
|
translations = _this$props2.translations;
|
94
|
-
var itemList = (0, _toConsumableArray2.default)(options.length === 0 && !loading ? [{
|
94
|
+
var itemList = [].concat((0, _toConsumableArray2.default)(options.length === 0 && !loading ? [{
|
95
95
|
id: '_no_result',
|
96
96
|
type: 'text',
|
97
97
|
disabled: true,
|
98
98
|
centered: true,
|
99
99
|
hideCheckbox: true,
|
100
100
|
label: translations.no_result_match
|
101
|
-
}] : [])
|
101
|
+
}] : []), (0, _toConsumableArray2.default)(options), (0, _toConsumableArray2.default)(!loading && nextPage === 'manual' ? [{
|
102
102
|
id: '_next_page',
|
103
103
|
type: 'button',
|
104
104
|
centered: true,
|
@@ -117,8 +117,8 @@ function (_React$PureComponent) {
|
|
117
117
|
};
|
118
118
|
};
|
119
119
|
|
120
|
-
_this.handleScrollReachBottom = _this.handleScrollReachBottom.bind((0, _assertThisInitialized2.default)(
|
121
|
-
_this.handleSelect = _this.handleSelect.bind((0, _assertThisInitialized2.default)(
|
120
|
+
_this.handleScrollReachBottom = _this.handleScrollReachBottom.bind((0, _assertThisInitialized2.default)(_this));
|
121
|
+
_this.handleSelect = _this.handleSelect.bind((0, _assertThisInitialized2.default)(_this));
|
122
122
|
return _this;
|
123
123
|
}
|
124
124
|
|
@@ -17,10 +17,10 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
17
17
|
|
18
18
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
19
19
|
|
20
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
21
|
-
|
22
20
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
23
21
|
|
22
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
23
|
+
|
24
24
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
25
25
|
|
26
26
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
@@ -47,12 +47,12 @@ var _helpers = require("../utils/helpers");
|
|
47
47
|
*/
|
48
48
|
function getRecursiveFinalItemIdList(itemList) {
|
49
49
|
var finalItemIdList = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
50
|
-
return (0, _toConsumableArray2.default)(finalItemIdList)
|
50
|
+
return [].concat((0, _toConsumableArray2.default)(finalItemIdList), (0, _toConsumableArray2.default)(itemList.reduce(function (memo, item) {
|
51
51
|
if (item.children) {
|
52
52
|
return getRecursiveFinalItemIdList(item.children, memo);
|
53
53
|
}
|
54
54
|
|
55
|
-
return (0, _toConsumableArray2.default)(memo)
|
55
|
+
return [].concat((0, _toConsumableArray2.default)(memo), [item.id]);
|
56
56
|
}, [])));
|
57
57
|
}
|
58
58
|
/**
|
@@ -128,7 +128,7 @@ function buildFilteredItemList(itemList) {
|
|
128
128
|
}
|
129
129
|
|
130
130
|
return {
|
131
|
-
l: (0, _toConsumableArray2.default)(memoItemList)
|
131
|
+
l: [].concat((0, _toConsumableArray2.default)(memoItemList), [(0, _extends2.default)({}, item, disabledParent && {
|
132
132
|
disabled: true,
|
133
133
|
hideCheckbox: true // don't display checkbox on disabled parent
|
134
134
|
|
@@ -147,7 +147,7 @@ function buildFilteredItemList(itemList) {
|
|
147
147
|
|
148
148
|
var itemSelected = selectedItemIdList.includes(item.id);
|
149
149
|
return {
|
150
|
-
l: (0, _toConsumableArray2.default)(memoItemList)
|
150
|
+
l: [].concat((0, _toConsumableArray2.default)(memoItemList), [(0, _extends2.default)({
|
151
151
|
displayed: itemVisible || visibleParent
|
152
152
|
}, item)]),
|
153
153
|
s: itemSelected && memoSelected,
|
@@ -266,9 +266,9 @@ function (_React$PureComponent) {
|
|
266
266
|
}), item);
|
267
267
|
} else {
|
268
268
|
// select parent > add each selectable child without duplicates.
|
269
|
-
onChange(event, (0, _toConsumableArray2.default)(value.filter(function (vid) {
|
269
|
+
onChange(event, [].concat((0, _toConsumableArray2.default)(value.filter(function (vid) {
|
270
270
|
return !parentSelectableItemIdList.includes(vid);
|
271
|
-
}))
|
271
|
+
})), (0, _toConsumableArray2.default)(parentSelectableItemIdList)), item);
|
272
272
|
}
|
273
273
|
} else if (value.includes(item.id)) {
|
274
274
|
// unselect item
|
@@ -276,7 +276,7 @@ function (_React$PureComponent) {
|
|
276
276
|
return id !== item.id;
|
277
277
|
}), item);
|
278
278
|
} else {
|
279
|
-
onChange(event, (0, _toConsumableArray2.default)(value)
|
279
|
+
onChange(event, [].concat((0, _toConsumableArray2.default)(value), [item.id]), item);
|
280
280
|
}
|
281
281
|
};
|
282
282
|
|
@@ -315,14 +315,14 @@ function (_React$PureComponent) {
|
|
315
315
|
centered: true,
|
316
316
|
hideCheckbox: true,
|
317
317
|
label: translations.no_result_match
|
318
|
-
}]) : (0, _toConsumableArray2.default)(loading ? [{
|
318
|
+
}]) : [].concat((0, _toConsumableArray2.default)(loading ? [{
|
319
319
|
id: '_loading',
|
320
320
|
type: 'loader',
|
321
321
|
disabled: true,
|
322
322
|
centered: true,
|
323
323
|
hideCheckbox: true,
|
324
324
|
label: 'loading'
|
325
|
-
}] : [])
|
325
|
+
}] : []), (0, _toConsumableArray2.default)(hasAll ? [{
|
326
326
|
id: '_all',
|
327
327
|
iconAll: iconAll,
|
328
328
|
label: translations.all,
|
@@ -368,7 +368,7 @@ function (_React$PureComponent) {
|
|
368
368
|
};
|
369
369
|
};
|
370
370
|
|
371
|
-
_this.handleSelect = _this.handleSelect.bind((0, _assertThisInitialized2.default)(
|
371
|
+
_this.handleSelect = _this.handleSelect.bind((0, _assertThisInitialized2.default)(_this));
|
372
372
|
return _this;
|
373
373
|
}
|
374
374
|
/**
|
@@ -43,12 +43,12 @@ var _helpers = require("../utils/helpers");
|
|
43
43
|
*/
|
44
44
|
function getRecursiveFinalItemIdList(itemList) {
|
45
45
|
var finalItemIdList = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
46
|
-
return (0, _toConsumableArray2.default)(finalItemIdList)
|
46
|
+
return [].concat((0, _toConsumableArray2.default)(finalItemIdList), (0, _toConsumableArray2.default)(itemList.reduce(function (memo, item) {
|
47
47
|
if (item.children) {
|
48
48
|
return getRecursiveFinalItemIdList(item.children, memo);
|
49
49
|
}
|
50
50
|
|
51
|
-
return (0, _toConsumableArray2.default)(memo)
|
51
|
+
return [].concat((0, _toConsumableArray2.default)(memo), [item.id]);
|
52
52
|
}, [])));
|
53
53
|
}
|
54
54
|
/**
|
@@ -124,7 +124,7 @@ function buildFilteredItemList(itemList) {
|
|
124
124
|
}
|
125
125
|
|
126
126
|
return {
|
127
|
-
l: (0, _toConsumableArray2.default)(memoItemList)
|
127
|
+
l: [].concat((0, _toConsumableArray2.default)(memoItemList), [(0, _extends2.default)({}, item, disabledParent && {
|
128
128
|
disabled: true,
|
129
129
|
hideCheckbox: true // don't display checkbox on disabled parent
|
130
130
|
|
@@ -143,7 +143,7 @@ function buildFilteredItemList(itemList) {
|
|
143
143
|
|
144
144
|
var itemSelected = selectedItemIdList.includes(item.id);
|
145
145
|
return {
|
146
|
-
l: (0, _toConsumableArray2.default)(memoItemList)
|
146
|
+
l: [].concat((0, _toConsumableArray2.default)(memoItemList), [(0, _extends2.default)({
|
147
147
|
displayed: itemVisible || visibleParent
|
148
148
|
}, item)]),
|
149
149
|
s: itemSelected && memoSelected,
|
@@ -223,9 +223,9 @@ function (_React$PureComponent) {
|
|
223
223
|
}), item);
|
224
224
|
} else {
|
225
225
|
// select parent > add each selectable child without duplicates.
|
226
|
-
onChange(event, (0, _toConsumableArray2.default)(value.filter(function (vid) {
|
226
|
+
onChange(event, [].concat((0, _toConsumableArray2.default)(value.filter(function (vid) {
|
227
227
|
return !parentSelectableItemIdList.includes(vid);
|
228
|
-
}))
|
228
|
+
})), (0, _toConsumableArray2.default)(parentSelectableItemIdList)), item);
|
229
229
|
}
|
230
230
|
} else if (value.includes(item.id)) {
|
231
231
|
// unselect item
|
@@ -233,7 +233,7 @@ function (_React$PureComponent) {
|
|
233
233
|
return id !== item.id;
|
234
234
|
}), item);
|
235
235
|
} else {
|
236
|
-
onChange(event, (0, _toConsumableArray2.default)(value)
|
236
|
+
onChange(event, [].concat((0, _toConsumableArray2.default)(value), [item.id]), item);
|
237
237
|
}
|
238
238
|
};
|
239
239
|
|
@@ -271,14 +271,14 @@ function (_React$PureComponent) {
|
|
271
271
|
centered: true,
|
272
272
|
hideCheckbox: true,
|
273
273
|
label: translations.no_result_match
|
274
|
-
}]) : (0, _toConsumableArray2.default)(loading ? [{
|
274
|
+
}]) : [].concat((0, _toConsumableArray2.default)(loading ? [{
|
275
275
|
id: '_loading',
|
276
276
|
type: 'loader',
|
277
277
|
disabled: true,
|
278
278
|
centered: true,
|
279
279
|
hideCheckbox: true,
|
280
280
|
label: 'loading'
|
281
|
-
}] : [])
|
281
|
+
}] : []), (0, _toConsumableArray2.default)(hasAll ? [{
|
282
282
|
id: '_all',
|
283
283
|
iconAll: iconAll,
|
284
284
|
label: translations.all,
|
package/HiSelect/HiSelect.js
CHANGED
@@ -19,10 +19,10 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
19
19
|
|
20
20
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
21
21
|
|
22
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
23
|
-
|
24
22
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
25
23
|
|
24
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
25
|
+
|
26
26
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
27
27
|
|
28
28
|
var _react = _interopRequireDefault(require("react"));
|
@@ -150,22 +150,22 @@ function (_React$PureComponent) {
|
|
150
150
|
var search = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
151
151
|
var loading = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
152
152
|
// build item list
|
153
|
-
var itemList = (0, _toConsumableArray2.default)(loading ? [{
|
153
|
+
var itemList = [].concat((0, _toConsumableArray2.default)(loading ? [{
|
154
154
|
id: '_loading',
|
155
155
|
type: 'loader',
|
156
156
|
disabled: true,
|
157
157
|
centered: true,
|
158
158
|
hideCheckbox: true,
|
159
159
|
label: 'loading'
|
160
|
-
}] : [])
|
160
|
+
}] : []), (0, _toConsumableArray2.default)(search !== '' ? (0, _toConsumableArray2.default)(options.filter(function (item) {
|
161
161
|
return _this.props.filterFunc(item, search);
|
162
|
-
})) : (0, _toConsumableArray2.default)(_this.props.hasAll ? [(0, _extends2.default)({
|
162
|
+
})) : [].concat((0, _toConsumableArray2.default)(_this.props.hasAll ? [(0, _extends2.default)({
|
163
163
|
id: '_all',
|
164
164
|
label: _this.props.translations.all
|
165
165
|
}, _this.props.iconAll && {
|
166
166
|
type: 'icon',
|
167
167
|
icon: _this.props.iconAll
|
168
|
-
})] : [])
|
168
|
+
})] : []), (0, _toConsumableArray2.default)(options))));
|
169
169
|
return {
|
170
170
|
itemList: itemList,
|
171
171
|
inputValue: _this.buildInputValue(options, value, loading)
|
@@ -427,7 +427,7 @@ function (_React$PureComponent) {
|
|
427
427
|
return id !== item.id;
|
428
428
|
}), item);
|
429
429
|
} else {
|
430
|
-
onChange(event, (0, _toConsumableArray2.default)(value)
|
430
|
+
onChange(event, [].concat((0, _toConsumableArray2.default)(value), [item.id]), item);
|
431
431
|
}
|
432
432
|
};
|
433
433
|
|
@@ -453,13 +453,13 @@ function (_React$PureComponent) {
|
|
453
453
|
});
|
454
454
|
} else {
|
455
455
|
_this.setState({
|
456
|
-
suggestions: (0, _toConsumableArray2.default)(hasAll ? [(0, _extends2.default)({
|
456
|
+
suggestions: [].concat((0, _toConsumableArray2.default)(hasAll ? [(0, _extends2.default)({
|
457
457
|
id: '_all',
|
458
458
|
label: translations.all
|
459
459
|
}, iconAll && {
|
460
460
|
type: 'icon',
|
461
461
|
icon: iconAll
|
462
|
-
})] : [])
|
462
|
+
})] : []), (0, _toConsumableArray2.default)(suggestions))
|
463
463
|
});
|
464
464
|
}
|
465
465
|
};
|
@@ -491,16 +491,16 @@ function (_React$PureComponent) {
|
|
491
491
|
suggestions: props.options,
|
492
492
|
openDown: true
|
493
493
|
};
|
494
|
-
_this.handleBlur = _this.handleBlur.bind((0, _assertThisInitialized2.default)(
|
495
|
-
_this.handleClick = _this.handleClick.bind((0, _assertThisInitialized2.default)(
|
496
|
-
_this.handleClose = _this.handleClose.bind((0, _assertThisInitialized2.default)(
|
497
|
-
_this.handleClickAway = _this.handleClickAway.bind((0, _assertThisInitialized2.default)(
|
498
|
-
_this.handleFocus = _this.handleFocus.bind((0, _assertThisInitialized2.default)(
|
499
|
-
_this.handleSearch = _this.handleSearch.bind((0, _assertThisInitialized2.default)(
|
500
|
-
_this.handleSearchReset = _this.handleSearchReset.bind((0, _assertThisInitialized2.default)(
|
501
|
-
_this.handleSelect = _this.handleSelect.bind((0, _assertThisInitialized2.default)(
|
502
|
-
_this.handleSuggestions = _this.handleSuggestions.bind((0, _assertThisInitialized2.default)(
|
503
|
-
_this.getInputElement = _this.getInputElement.bind((0, _assertThisInitialized2.default)(
|
494
|
+
_this.handleBlur = _this.handleBlur.bind((0, _assertThisInitialized2.default)(_this));
|
495
|
+
_this.handleClick = _this.handleClick.bind((0, _assertThisInitialized2.default)(_this));
|
496
|
+
_this.handleClose = _this.handleClose.bind((0, _assertThisInitialized2.default)(_this));
|
497
|
+
_this.handleClickAway = _this.handleClickAway.bind((0, _assertThisInitialized2.default)(_this));
|
498
|
+
_this.handleFocus = _this.handleFocus.bind((0, _assertThisInitialized2.default)(_this));
|
499
|
+
_this.handleSearch = _this.handleSearch.bind((0, _assertThisInitialized2.default)(_this));
|
500
|
+
_this.handleSearchReset = _this.handleSearchReset.bind((0, _assertThisInitialized2.default)(_this));
|
501
|
+
_this.handleSelect = _this.handleSelect.bind((0, _assertThisInitialized2.default)(_this));
|
502
|
+
_this.handleSuggestions = _this.handleSuggestions.bind((0, _assertThisInitialized2.default)(_this));
|
503
|
+
_this.getInputElement = _this.getInputElement.bind((0, _assertThisInitialized2.default)(_this));
|
504
504
|
return _this;
|
505
505
|
}
|
506
506
|
|
@@ -518,10 +518,10 @@ function (_React$PureComponent) {
|
|
518
518
|
|
519
519
|
var itemListLength = 0;
|
520
520
|
itemList.forEach(function (parent) {
|
521
|
-
if (parent.displayed
|
521
|
+
if (parent.displayed !== false) {
|
522
522
|
itemListLength += 1;
|
523
523
|
|
524
|
-
if (parent.children
|
524
|
+
if (parent.children) {
|
525
525
|
itemListLength += _this2.getLengthItemList(parent.children);
|
526
526
|
}
|
527
527
|
}
|
@@ -17,10 +17,10 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
17
17
|
|
18
18
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
19
19
|
|
20
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
21
|
-
|
22
20
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
23
21
|
|
22
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
23
|
+
|
24
24
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
25
25
|
|
26
26
|
var _react = _interopRequireDefault(require("react"));
|
@@ -179,7 +179,7 @@ function (_React$PureComponent) {
|
|
179
179
|
return id !== item.id;
|
180
180
|
}), item);
|
181
181
|
} else {
|
182
|
-
onChange(event, (0, _toConsumableArray2.default)(value)
|
182
|
+
onChange(event, [].concat((0, _toConsumableArray2.default)(value), [item.id]), item);
|
183
183
|
}
|
184
184
|
};
|
185
185
|
|
@@ -209,13 +209,13 @@ function (_React$PureComponent) {
|
|
209
209
|
});
|
210
210
|
} else {
|
211
211
|
_this.setState({
|
212
|
-
suggestions: (0, _toConsumableArray2.default)(hasAll ? [(0, _extends2.default)({
|
212
|
+
suggestions: [].concat((0, _toConsumableArray2.default)(hasAll ? [(0, _extends2.default)({
|
213
213
|
id: '_all',
|
214
214
|
label: translations.all
|
215
215
|
}, iconAll && {
|
216
216
|
type: 'icon',
|
217
217
|
icon: iconAll
|
218
|
-
})] : [])
|
218
|
+
})] : []), (0, _toConsumableArray2.default)(suggestions))
|
219
219
|
});
|
220
220
|
}
|
221
221
|
};
|
@@ -251,22 +251,22 @@ function (_React$PureComponent) {
|
|
251
251
|
var search = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
252
252
|
var loading = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
253
253
|
// build item list
|
254
|
-
var itemList = (0, _toConsumableArray2.default)(loading ? [{
|
254
|
+
var itemList = [].concat((0, _toConsumableArray2.default)(loading ? [{
|
255
255
|
id: '_loading',
|
256
256
|
type: 'loader',
|
257
257
|
disabled: true,
|
258
258
|
centered: true,
|
259
259
|
hideCheckbox: true,
|
260
260
|
label: 'loading'
|
261
|
-
}] : [])
|
261
|
+
}] : []), (0, _toConsumableArray2.default)(search !== '' ? (0, _toConsumableArray2.default)(options.filter(function (item) {
|
262
262
|
return item.label && _this.props.filterFunc(item, search);
|
263
|
-
})) : (0, _toConsumableArray2.default)(_this.props.hasAll ? [(0, _extends2.default)({
|
263
|
+
})) : [].concat((0, _toConsumableArray2.default)(_this.props.hasAll ? [(0, _extends2.default)({
|
264
264
|
id: '_all',
|
265
265
|
label: _this.props.translations.all
|
266
266
|
}, _this.props.iconAll && {
|
267
267
|
type: 'icon',
|
268
268
|
icon: _this.props.iconAll
|
269
|
-
})] : [])
|
269
|
+
})] : []), (0, _toConsumableArray2.default)(options))));
|
270
270
|
return {
|
271
271
|
itemList: itemList
|
272
272
|
};
|
@@ -286,10 +286,10 @@ function (_React$PureComponent) {
|
|
286
286
|
searchValue: props.searchValue ? undefined : '',
|
287
287
|
suggestions: props.options
|
288
288
|
};
|
289
|
-
_this.handleSearch = _this.handleSearch.bind((0, _assertThisInitialized2.default)(
|
290
|
-
_this.handleSearchReset = _this.handleSearchReset.bind((0, _assertThisInitialized2.default)(
|
291
|
-
_this.handleSelect = _this.handleSelect.bind((0, _assertThisInitialized2.default)(
|
292
|
-
_this.handleSuggestions = _this.handleSuggestions.bind((0, _assertThisInitialized2.default)(
|
289
|
+
_this.handleSearch = _this.handleSearch.bind((0, _assertThisInitialized2.default)(_this));
|
290
|
+
_this.handleSearchReset = _this.handleSearchReset.bind((0, _assertThisInitialized2.default)(_this));
|
291
|
+
_this.handleSelect = _this.handleSelect.bind((0, _assertThisInitialized2.default)(_this));
|
292
|
+
_this.handleSuggestions = _this.handleSuggestions.bind((0, _assertThisInitialized2.default)(_this));
|
293
293
|
return _this;
|
294
294
|
}
|
295
295
|
|
@@ -17,10 +17,10 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
17
17
|
|
18
18
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
19
19
|
|
20
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
21
|
-
|
22
20
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
23
21
|
|
22
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
23
|
+
|
24
24
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
25
25
|
|
26
26
|
var _react = _interopRequireDefault(require("react"));
|
@@ -229,11 +229,11 @@ function (_React$PureComponent) {
|
|
229
229
|
}
|
230
230
|
};
|
231
231
|
|
232
|
-
_this.handleKeyDown = _this.handleKeyDown.bind((0, _assertThisInitialized2.default)(
|
233
|
-
_this.handleClick = _this.handleClick.bind((0, _assertThisInitialized2.default)(
|
234
|
-
_this.handleBlur = _this.handleBlur.bind((0, _assertThisInitialized2.default)(
|
235
|
-
_this.ref = _this.ref.bind((0, _assertThisInitialized2.default)(
|
236
|
-
_this.handleReset = _this.handleReset.bind((0, _assertThisInitialized2.default)(
|
232
|
+
_this.handleKeyDown = _this.handleKeyDown.bind((0, _assertThisInitialized2.default)(_this));
|
233
|
+
_this.handleClick = _this.handleClick.bind((0, _assertThisInitialized2.default)(_this));
|
234
|
+
_this.handleBlur = _this.handleBlur.bind((0, _assertThisInitialized2.default)(_this));
|
235
|
+
_this.ref = _this.ref.bind((0, _assertThisInitialized2.default)(_this));
|
236
|
+
_this.handleReset = _this.handleReset.bind((0, _assertThisInitialized2.default)(_this));
|
237
237
|
return _this;
|
238
238
|
}
|
239
239
|
|
@@ -19,12 +19,12 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
19
19
|
|
20
20
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
21
21
|
|
22
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
23
|
+
|
22
24
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
23
25
|
|
24
26
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
25
27
|
|
26
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
27
|
-
|
28
28
|
var _react = _interopRequireDefault(require("react"));
|
29
29
|
|
30
30
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
@@ -168,10 +168,10 @@ function (_React$PureComponent) {
|
|
168
168
|
focused: false,
|
169
169
|
options: props.options
|
170
170
|
};
|
171
|
-
_this.handleSelect = _this.handleSelect.bind((0, _assertThisInitialized2.default)(
|
172
|
-
_this.handleBlur = _this.handleBlur.bind((0, _assertThisInitialized2.default)(
|
173
|
-
_this.handleFocus = _this.handleFocus.bind((0, _assertThisInitialized2.default)(
|
174
|
-
_this.getInputElement = _this.getInputElement.bind((0, _assertThisInitialized2.default)(
|
171
|
+
_this.handleSelect = _this.handleSelect.bind((0, _assertThisInitialized2.default)(_this));
|
172
|
+
_this.handleBlur = _this.handleBlur.bind((0, _assertThisInitialized2.default)(_this));
|
173
|
+
_this.handleFocus = _this.handleFocus.bind((0, _assertThisInitialized2.default)(_this));
|
174
|
+
_this.getInputElement = _this.getInputElement.bind((0, _assertThisInitialized2.default)(_this));
|
175
175
|
return _this;
|
176
176
|
}
|
177
177
|
|
@@ -17,10 +17,10 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
17
17
|
|
18
18
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
19
19
|
|
20
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
21
|
-
|
22
20
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
23
21
|
|
22
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
23
|
+
|
24
24
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
25
25
|
|
26
26
|
var _react = _interopRequireDefault(require("react"));
|
@@ -242,8 +242,8 @@ function (_React$PureComponent) {
|
|
242
242
|
_this.state = {
|
243
243
|
hover: false
|
244
244
|
};
|
245
|
-
_this.buildItemLabel = _this.buildItemLabel.bind((0, _assertThisInitialized2.default)(
|
246
|
-
_this.setHover = _this.setHover.bind((0, _assertThisInitialized2.default)(
|
245
|
+
_this.buildItemLabel = _this.buildItemLabel.bind((0, _assertThisInitialized2.default)(_this));
|
246
|
+
_this.setHover = _this.setHover.bind((0, _assertThisInitialized2.default)(_this));
|
247
247
|
return _this;
|
248
248
|
}
|
249
249
|
|
package/HiTable/HiTable.js
CHANGED
@@ -15,10 +15,10 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
15
15
|
|
16
16
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
17
17
|
|
18
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
19
|
-
|
20
18
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
21
19
|
|
20
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
21
|
+
|
22
22
|
var _react = _interopRequireDefault(require("react"));
|
23
23
|
|
24
24
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
@@ -57,7 +57,7 @@ function (_React$PureComponent) {
|
|
57
57
|
}
|
58
58
|
};
|
59
59
|
|
60
|
-
_this.handleRequestSort = _this.handleRequestSort.bind((0, _assertThisInitialized2.default)(
|
60
|
+
_this.handleRequestSort = _this.handleRequestSort.bind((0, _assertThisInitialized2.default)(_this));
|
61
61
|
return _this;
|
62
62
|
}
|
63
63
|
|
package/HiTable/HiTableRow.js
CHANGED
@@ -19,10 +19,10 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
19
19
|
|
20
20
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
21
21
|
|
22
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
23
|
-
|
24
22
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
25
23
|
|
24
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
25
|
+
|
26
26
|
var _react = _interopRequireDefault(require("react"));
|
27
27
|
|
28
28
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
@@ -74,7 +74,7 @@ function (_React$PureComponent) {
|
|
74
74
|
|
75
75
|
(0, _classCallCheck2.default)(this, HiTableRow);
|
76
76
|
_this = (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(HiTableRow).call(this, props));
|
77
|
-
_this.handleClick = _this.handleClick.bind((0, _assertThisInitialized2.default)(
|
77
|
+
_this.handleClick = _this.handleClick.bind((0, _assertThisInitialized2.default)(_this));
|
78
78
|
return _this;
|
79
79
|
}
|
80
80
|
|
@@ -181,7 +181,8 @@ class HiDatePicker extends React.Component {
|
|
181
181
|
const yearPickerProps = {
|
182
182
|
value: this.state.currentMonth,
|
183
183
|
onChange: this.handleCurrentMonthChange,
|
184
|
-
disableFutureDays: this.props.disableFutureDays
|
184
|
+
disableFutureDays: this.props.disableFutureDays,
|
185
|
+
minimumDate: this.props.minimumDate
|
185
186
|
};
|
186
187
|
return React.createElement(YearPickerOverlay, _extends({
|
187
188
|
key: 'year-picker-overlay'
|
package/es/HiForm/HiFormLabel.js
CHANGED
package/es/HiForm/HiTextField.js
CHANGED
@@ -69,6 +69,7 @@ class HiTextField extends React.PureComponent {
|
|
69
69
|
placeholder,
|
70
70
|
value,
|
71
71
|
HiInputProps,
|
72
|
+
HiInputLabelProps,
|
72
73
|
name,
|
73
74
|
rows,
|
74
75
|
maxLength
|
@@ -88,7 +89,8 @@ class HiTextField extends React.PureComponent {
|
|
88
89
|
helperIcon: helperIcon,
|
89
90
|
multiline: multiline,
|
90
91
|
maxLength: maxLength,
|
91
|
-
nbChars: nbChars
|
92
|
+
nbChars: nbChars,
|
93
|
+
InputLabelProps: HiInputLabelProps
|
92
94
|
}, React.createElement(HiInput, _extends({
|
93
95
|
inputId: id,
|
94
96
|
name: name,
|
@@ -168,6 +170,11 @@ HiTextField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
168
170
|
*/
|
169
171
|
helperText: PropTypes.string,
|
170
172
|
|
173
|
+
/**
|
174
|
+
* Propriétés appliquées au composant HiFormLabel
|
175
|
+
*/
|
176
|
+
HiInputLabelProps: PropTypes.object,
|
177
|
+
|
171
178
|
/**
|
172
179
|
* Propriétés appliquées au composant HiInput
|
173
180
|
*/
|
package/es/HiSelect/HiSelect.js
CHANGED
@@ -461,10 +461,10 @@ class HiSelect extends React.PureComponent {
|
|
461
461
|
getLengthItemList(itemList) {
|
462
462
|
let itemListLength = 0;
|
463
463
|
itemList.forEach(parent => {
|
464
|
-
if (parent.displayed
|
464
|
+
if (parent.displayed !== false) {
|
465
465
|
itemListLength += 1;
|
466
466
|
|
467
|
-
if (parent.children
|
467
|
+
if (parent.children) {
|
468
468
|
itemListLength += this.getLengthItemList(parent.children);
|
469
469
|
}
|
470
470
|
}
|
package/index.es.js
CHANGED
package/index.js
CHANGED
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@hipay/hipay-material-ui",
|
3
3
|
"private": false,
|
4
4
|
"author": "HiPay PSYCHE Team",
|
5
|
-
"version": "2.0.0-beta.
|
5
|
+
"version": "2.0.0-beta.71",
|
6
6
|
"description": "React components that implement Google's Material Design.",
|
7
7
|
"keywords": [
|
8
8
|
"react",
|
@@ -74,4 +74,4 @@
|
|
74
74
|
},
|
75
75
|
"main": "./index.js",
|
76
76
|
"module": "./index.es.js"
|
77
|
-
}
|
77
|
+
}
|