@hipay/hipay-material-ui 2.0.0-beta.69 → 2.0.0-beta.71
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +76 -0
- package/HiAlertModal/HiAlertModal.js +3 -3
- package/HiAppBar/HiAppBar.js +3 -3
- package/HiBreadcrumb/HiStepConnector.js +3 -3
- package/HiCell/CellIcon.js +33 -3
- package/HiCell/CellRate.js +1 -1
- package/HiCell/CellText.js +3 -3
- package/HiCell/CellTextStyled.js +31 -0
- package/HiCheckbox/HiCheckbox.js +3 -3
- package/HiChip/HiChipSwitch.js +6 -6
- 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 +12 -12
- 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/HiPin/HiPin.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 +25 -24
- package/HiSelect/HiSelectContent.js +13 -13
- package/HiSelect/HiSelectInput.js +10 -9
- package/HiSelect/HiSuggestSelect.js +15 -8
- package/HiSelectableList/HiSelectableListItem.js +4 -4
- package/HiTable/HiCellBuilder.js +10 -5
- package/HiTable/HiTable.js +3 -3
- package/HiTable/HiTableHeader.js +19 -14
- package/HiTable/HiTableRow.js +10 -6
- package/es/HiCell/CellIcon.js +32 -3
- package/es/HiCell/CellRate.js +1 -1
- package/es/HiCell/CellTextStyled.js +30 -0
- package/es/HiChip/HiChipSwitch.js +1 -1
- package/es/HiDatePicker/HiDatePicker.js +2 -1
- package/es/HiForm/HiFormLabel.js +1 -1
- package/es/HiForm/HiInput.js +1 -1
- package/es/HiForm/HiTextField.js +8 -1
- package/es/HiPin/HiPin.js +3 -3
- package/es/HiSelect/HiSelect.js +6 -5
- package/es/HiSelect/HiSelectInput.js +3 -2
- package/es/HiSelect/HiSuggestSelect.js +10 -3
- package/es/HiTable/HiCellBuilder.js +10 -5
- package/es/HiTable/HiTableHeader.js +16 -12
- package/es/HiTable/HiTableRow.js +7 -3
- package/es/hi-svg-icons/HiActivity.js +36 -0
- package/es/hi-svg-icons/HiPermission.js +36 -0
- package/es/hi-svg-icons/index.js +3 -1
- package/hi-svg-icons/HiActivity.js +50 -0
- package/hi-svg-icons/HiPermission.js +50 -0
- package/hi-svg-icons/index.js +17 -1
- package/index.es.js +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
- package/umd/hipay-material-ui.development.js +29646 -20537
- package/umd/hipay-material-ui.production.min.js +2 -2
@@ -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"));
|
@@ -127,8 +127,9 @@ var styles = function styles(theme) {
|
|
127
127
|
overflow: 'hidden',
|
128
128
|
textOverflow: 'ellipsis'
|
129
129
|
}, theme.typography.b1, {
|
130
|
-
display: 'inline-
|
131
|
-
width: '100%'
|
130
|
+
display: 'inline-block',
|
131
|
+
width: '100%',
|
132
|
+
maxWidth: 500
|
132
133
|
}),
|
133
134
|
placeholder: {
|
134
135
|
color: theme.palette.grey[400]
|
@@ -228,11 +229,11 @@ function (_React$PureComponent) {
|
|
228
229
|
}
|
229
230
|
};
|
230
231
|
|
231
|
-
_this.handleKeyDown = _this.handleKeyDown.bind((0, _assertThisInitialized2.default)(
|
232
|
-
_this.handleClick = _this.handleClick.bind((0, _assertThisInitialized2.default)(
|
233
|
-
_this.handleBlur = _this.handleBlur.bind((0, _assertThisInitialized2.default)(
|
234
|
-
_this.ref = _this.ref.bind((0, _assertThisInitialized2.default)(
|
235
|
-
_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));
|
236
237
|
return _this;
|
237
238
|
}
|
238
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
|
|
@@ -225,7 +225,8 @@ function (_React$PureComponent) {
|
|
225
225
|
onSearch = _this$props.onSearch,
|
226
226
|
translations = _this$props.translations,
|
227
227
|
align = _this$props.align,
|
228
|
-
|
228
|
+
inputClasses = _this$props.inputClasses,
|
229
|
+
otherProps = (0, _objectWithoutProperties2.default)(_this$props, ["classes", "id", "loading", "showMinLength", "showNoResults", "onSearch", "translations", "align", "inputClasses"]);
|
229
230
|
var _this$state = this.state,
|
230
231
|
focused = _this$state.focused,
|
231
232
|
options = _this$state.options;
|
@@ -265,7 +266,8 @@ function (_React$PureComponent) {
|
|
265
266
|
onChange: onSearch,
|
266
267
|
onKeyDown: this.handleKeyDownSearch,
|
267
268
|
onBlur: this.handleBlur,
|
268
|
-
onFocus: this.handleFocus
|
269
|
+
onFocus: this.handleFocus,
|
270
|
+
classes: inputClasses
|
269
271
|
})), open && _react.default.createElement(_Popper.default, {
|
270
272
|
disablePortal: true,
|
271
273
|
anchorEl: this.textInput,
|
@@ -319,6 +321,11 @@ HiSuggestSelect.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
319
321
|
*/
|
320
322
|
id: _propTypes.default.string,
|
321
323
|
|
324
|
+
/**
|
325
|
+
* Object that contains the style for Input component
|
326
|
+
*/
|
327
|
+
inputClasses: _propTypes.default.object,
|
328
|
+
|
322
329
|
/**
|
323
330
|
* Passe une ref callback au composant input
|
324
331
|
*/
|
@@ -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/HiCellBuilder.js
CHANGED
@@ -150,6 +150,7 @@ function (_React$PureComponent) {
|
|
150
150
|
color: datacell.color,
|
151
151
|
icon: datacell.icon,
|
152
152
|
label: datacell.label,
|
153
|
+
onClick: datacell.handleClick,
|
153
154
|
view: cell.view ? cell.view : cst.DEFAULT_VIEWS[cell.type],
|
154
155
|
size: cell.size
|
155
156
|
});
|
@@ -194,6 +195,8 @@ function (_React$PureComponent) {
|
|
194
195
|
active: datacell.active,
|
195
196
|
color: datacell.color,
|
196
197
|
label: datacell.label,
|
198
|
+
isButton: datacell.isButton,
|
199
|
+
onClick: datacell.handleClick,
|
197
200
|
title: cell.title ? cell.title(datacell, cell) : datacell.title,
|
198
201
|
value: datacell.value
|
199
202
|
});
|
@@ -211,15 +214,12 @@ function (_React$PureComponent) {
|
|
211
214
|
key: "render",
|
212
215
|
value: function render() {
|
213
216
|
var _this$props = this.props,
|
217
|
+
className = _this$props.className,
|
214
218
|
column = _this$props.column,
|
215
219
|
data = _this$props.data,
|
216
220
|
locale = _this$props.locale;
|
217
221
|
return _react.default.createElement(_TableCell.default, {
|
218
|
-
|
219
|
-
border: 'none',
|
220
|
-
paddingRight: '13px',
|
221
|
-
paddingLeft: '13px'
|
222
|
-
}
|
222
|
+
className: className
|
223
223
|
}, this.createCell(column, data, locale));
|
224
224
|
}
|
225
225
|
}]);
|
@@ -227,6 +227,11 @@ function (_React$PureComponent) {
|
|
227
227
|
}(_react.default.PureComponent);
|
228
228
|
|
229
229
|
HiCellBuilder.propTypes = process.env.NODE_ENV !== "production" ? {
|
230
|
+
/**
|
231
|
+
* Override TableCell style
|
232
|
+
*/
|
233
|
+
className: _propTypes.default.object,
|
234
|
+
|
230
235
|
/**
|
231
236
|
* Propriétés de la colonne
|
232
237
|
*/
|
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/HiTableHeader.js
CHANGED
@@ -36,13 +36,21 @@ var _TableSortLabel = _interopRequireDefault(require("@material-ui/core/TableSor
|
|
36
36
|
var cst = _interopRequireWildcard(require("./constants"));
|
37
37
|
|
38
38
|
// @inheritedComponent TableHeader
|
39
|
-
var styles = {
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
39
|
+
var styles = function styles(theme) {
|
40
|
+
return {
|
41
|
+
head: {
|
42
|
+
cursor: 'inherit',
|
43
|
+
borderBottom: "solid 1px ".concat(theme.palette.divider)
|
44
|
+
},
|
45
|
+
cell: {
|
46
|
+
border: 'none',
|
47
|
+
paddingRight: '13px',
|
48
|
+
paddingLeft: '13px'
|
49
|
+
},
|
50
|
+
icon: {
|
51
|
+
color: '#00ADE9'
|
52
|
+
}
|
53
|
+
};
|
46
54
|
};
|
47
55
|
|
48
56
|
var HiTableHeader =
|
@@ -84,7 +92,9 @@ function (_React$PureComponent) {
|
|
84
92
|
orderBy = _this$props.orderBy,
|
85
93
|
sortable = _this$props.sortable,
|
86
94
|
dense = _this$props.dense;
|
87
|
-
return _react.default.createElement(_TableHead.default,
|
95
|
+
return _react.default.createElement(_TableHead.default, {
|
96
|
+
className: classes.head
|
97
|
+
}, _react.default.createElement(_TableRow.default, {
|
88
98
|
style: {
|
89
99
|
height: dense ? cst.CELL_HEADER_HEIGHT_DENSE : cst.CELL_HEADER_HEIGHT,
|
90
100
|
whiteSpace: 'nowrap'
|
@@ -100,13 +110,8 @@ function (_React$PureComponent) {
|
|
100
110
|
var finalLabel = view === 's' ? smallLabel : label;
|
101
111
|
return _react.default.createElement(_TableCell.default, {
|
102
112
|
key: colId,
|
113
|
+
className: classes.cell,
|
103
114
|
sortDirection: orderBy === colId ? order : false,
|
104
|
-
style: {
|
105
|
-
border: 'none',
|
106
|
-
borderBottom: orderBy === colId ? 'solid 1px #00ADE9' : 'none',
|
107
|
-
paddingRight: '13px',
|
108
|
-
paddingLeft: '13px'
|
109
|
-
},
|
110
115
|
numeric: cst.ALIGN_RIGHT_TYPES.includes(type),
|
111
116
|
title: headerTooltip
|
112
117
|
}, sortable ? _react.default.createElement(_TableSortLabel.default, {
|
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"));
|
@@ -46,15 +46,18 @@ var styles = function styles(theme) {
|
|
46
46
|
'&:last-child': {
|
47
47
|
borderBottom: 'solid 1px #E4E7E8'
|
48
48
|
},
|
49
|
-
'&:first-child': {
|
50
|
-
borderTop: 'solid 1px #E4E7E8'
|
51
|
-
},
|
52
49
|
'&:hover, &:focus': {
|
53
50
|
backgroundColor: "".concat(theme.palette.action.hover, " !important")
|
54
51
|
}
|
55
52
|
},
|
56
53
|
clickableRow: {
|
57
54
|
cursor: 'pointer'
|
55
|
+
},
|
56
|
+
cell: {
|
57
|
+
border: 'none',
|
58
|
+
padding: '0px 13px',
|
59
|
+
minHeight: '32px',
|
60
|
+
maxHeight: '40px'
|
58
61
|
}
|
59
62
|
};
|
60
63
|
};
|
@@ -71,7 +74,7 @@ function (_React$PureComponent) {
|
|
71
74
|
|
72
75
|
(0, _classCallCheck2.default)(this, HiTableRow);
|
73
76
|
_this = (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(HiTableRow).call(this, props));
|
74
|
-
_this.handleClick = _this.handleClick.bind((0, _assertThisInitialized2.default)(
|
77
|
+
_this.handleClick = _this.handleClick.bind((0, _assertThisInitialized2.default)(_this));
|
75
78
|
return _this;
|
76
79
|
}
|
77
80
|
|
@@ -115,6 +118,7 @@ function (_React$PureComponent) {
|
|
115
118
|
}, Object.keys(columns).map(function (column) {
|
116
119
|
return _react.default.createElement(_HiCellBuilder.default, {
|
117
120
|
key: columns[column].colId,
|
121
|
+
className: classes.cell,
|
118
122
|
column: columns[column],
|
119
123
|
data: rowdata,
|
120
124
|
locale: locale
|
package/es/HiCell/CellIcon.js
CHANGED
@@ -2,6 +2,7 @@ import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import withStyles from '../styles/withStyles';
|
4
4
|
import HiIcon from '../HiIcon';
|
5
|
+
import HiIconButton from '../HiIconButton';
|
5
6
|
export const styles = {
|
6
7
|
icon: {
|
7
8
|
float: 'left'
|
@@ -29,13 +30,36 @@ class CellIcon extends React.PureComponent {
|
|
29
30
|
color,
|
30
31
|
icon,
|
31
32
|
label,
|
32
|
-
|
33
|
-
size
|
33
|
+
onClick,
|
34
|
+
size,
|
35
|
+
view
|
34
36
|
} = this.props;
|
37
|
+
|
38
|
+
if (onClick) {
|
39
|
+
return React.createElement("div", {
|
40
|
+
className: classes.wrapper,
|
41
|
+
title: label
|
42
|
+
}, React.createElement(HiIconButton, {
|
43
|
+
color: 'inherit',
|
44
|
+
style: {
|
45
|
+
color,
|
46
|
+
fontSize: size || 24,
|
47
|
+
maxHeight: 31,
|
48
|
+
maxWidth: 31
|
49
|
+
},
|
50
|
+
onClick: onClick
|
51
|
+
}, React.createElement(HiIcon, {
|
52
|
+
className: classes.icon,
|
53
|
+
icon: icon
|
54
|
+
}), view !== 's' && label && React.createElement("span", {
|
55
|
+
className: classes.label
|
56
|
+
}, label)));
|
57
|
+
}
|
58
|
+
|
35
59
|
return React.createElement("div", {
|
36
60
|
className: classes.wrapper,
|
37
61
|
title: label
|
38
|
-
},
|
62
|
+
}, React.createElement(HiIcon, {
|
39
63
|
color: 'inherit',
|
40
64
|
style: {
|
41
65
|
color,
|
@@ -76,6 +100,11 @@ CellIcon.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
76
100
|
*/
|
77
101
|
label: PropTypes.string,
|
78
102
|
|
103
|
+
/**
|
104
|
+
* Fonction déclenchée lors du clic
|
105
|
+
*/
|
106
|
+
onClick: PropTypes.func,
|
107
|
+
|
79
108
|
/**
|
80
109
|
* View (L/M/S)
|
81
110
|
*/
|
package/es/HiCell/CellRate.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import HiColoredLabel from '../HiColoredLabel';
|
4
|
+
import HiButton from '../HiButton';
|
4
5
|
const styleRoot = {
|
5
6
|
width: '100%',
|
6
7
|
height: 19,
|
@@ -21,12 +22,18 @@ const styleLabel = {
|
|
21
22
|
whiteSpace: 'pre',
|
22
23
|
width: '100%'
|
23
24
|
};
|
25
|
+
const styleButton = {
|
26
|
+
padding: '1px 5px',
|
27
|
+
minHeight: '18px',
|
28
|
+
maxHeight: '18px'
|
29
|
+
};
|
24
30
|
/**
|
25
31
|
* CellText functional component
|
26
32
|
* (don't includes complex ellipsis: middle, after-first-word...)
|
27
33
|
*
|
28
34
|
* @param label
|
29
35
|
* @param color
|
36
|
+
* @param isButton
|
30
37
|
* @param value
|
31
38
|
* @param active
|
32
39
|
* @param title
|
@@ -37,11 +44,24 @@ const styleLabel = {
|
|
37
44
|
const CellTextStyled = ({
|
38
45
|
label,
|
39
46
|
color,
|
47
|
+
isButton,
|
48
|
+
onClick,
|
40
49
|
value = '',
|
41
50
|
active = false,
|
42
51
|
title = ''
|
43
52
|
}) => {
|
44
53
|
const valueString = label ? label.toString() : value.toString();
|
54
|
+
|
55
|
+
if (isButton) {
|
56
|
+
return React.createElement(HiButton, {
|
57
|
+
color: color,
|
58
|
+
onClick: onClick,
|
59
|
+
size: "small",
|
60
|
+
style: styleButton,
|
61
|
+
variant: "raised"
|
62
|
+
}, valueString);
|
63
|
+
}
|
64
|
+
|
45
65
|
return React.createElement("div", {
|
46
66
|
style: styleRoot,
|
47
67
|
title: title || valueString
|
@@ -66,11 +86,21 @@ CellTextStyled.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
66
86
|
*/
|
67
87
|
color: PropTypes.string,
|
68
88
|
|
89
|
+
/**
|
90
|
+
* Définit si la cellule de text
|
91
|
+
*/
|
92
|
+
isButton: PropTypes.bool,
|
93
|
+
|
69
94
|
/**
|
70
95
|
* Label
|
71
96
|
*/
|
72
97
|
label: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
73
98
|
|
99
|
+
/**
|
100
|
+
* Fonction déclenchée lors du clic
|
101
|
+
*/
|
102
|
+
onClick: PropTypes.func,
|
103
|
+
|
74
104
|
/**
|
75
105
|
* Tooltip
|
76
106
|
*/
|
@@ -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/HiInput.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/HiPin/HiPin.js
CHANGED
@@ -6,9 +6,9 @@ import { withStyles } from '../styles';
|
|
6
6
|
export const styles = theme => ({
|
7
7
|
root: {
|
8
8
|
display: 'inline-block',
|
9
|
-
padding: '
|
10
|
-
height:
|
11
|
-
lineHeight: '
|
9
|
+
padding: '0px 9px',
|
10
|
+
height: 17,
|
11
|
+
lineHeight: '17px',
|
12
12
|
minWidth: 25,
|
13
13
|
textAlign: 'center',
|
14
14
|
borderRadius: '45px',
|
package/es/HiSelect/HiSelect.js
CHANGED
@@ -38,13 +38,14 @@ export const styles = theme => ({
|
|
38
38
|
transition: 'none !important'
|
39
39
|
},
|
40
40
|
labelIcon: {
|
41
|
-
marginRight: 10
|
41
|
+
marginRight: 10,
|
42
|
+
verticalAlign: 'text-bottom'
|
42
43
|
},
|
43
44
|
labelImg: {
|
44
45
|
height: 18,
|
45
46
|
width: 'auto',
|
46
47
|
margin: '0 4px',
|
47
|
-
verticalAlign: '
|
48
|
+
verticalAlign: 'text-bottom'
|
48
49
|
},
|
49
50
|
selectIconLabel: _objectSpread({
|
50
51
|
whiteSpace: 'nowrap',
|
@@ -52,7 +53,7 @@ export const styles = theme => ({
|
|
52
53
|
textOverflow: 'ellipsis',
|
53
54
|
paddingRight: 16
|
54
55
|
}, theme.typography.b1, {
|
55
|
-
display: 'inline-
|
56
|
+
display: 'inline-block',
|
56
57
|
width: '100%'
|
57
58
|
}),
|
58
59
|
selectImgLabel: _objectSpread({
|
@@ -460,10 +461,10 @@ class HiSelect extends React.PureComponent {
|
|
460
461
|
getLengthItemList(itemList) {
|
461
462
|
let itemListLength = 0;
|
462
463
|
itemList.forEach(parent => {
|
463
|
-
if (parent.displayed
|
464
|
+
if (parent.displayed !== false) {
|
464
465
|
itemListLength += 1;
|
465
466
|
|
466
|
-
if (parent.children
|
467
|
+
if (parent.children) {
|
467
468
|
itemListLength += this.getLengthItemList(parent.children);
|
468
469
|
}
|
469
470
|
}
|
@@ -93,8 +93,9 @@ export const styles = theme => ({
|
|
93
93
|
overflow: 'hidden',
|
94
94
|
textOverflow: 'ellipsis'
|
95
95
|
}, theme.typography.b1, {
|
96
|
-
display: 'inline-
|
97
|
-
width: '100%'
|
96
|
+
display: 'inline-block',
|
97
|
+
width: '100%',
|
98
|
+
maxWidth: 500
|
98
99
|
}),
|
99
100
|
placeholder: {
|
100
101
|
color: theme.palette.grey[400]
|