@mailstep/design-system 0.8.8-beta.3 → 0.8.8-beta.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailstep/design-system",
3
- "version": "0.8.8-beta.3",
3
+ "version": "0.8.8-beta.4",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./ui/index.js",
@@ -107,6 +107,7 @@ var SelectFilter = function (_a) {
107
107
  var selectValue = showValue ? (isOptionArray(value) ? value.map(function (option) { return String(option.value); }) : value) : undefined;
108
108
  return (_jsx(Select, { maxMenuHeight: 250, onChange: handleOnMultiChange, value: selectValue, options: defaultOptions || options, showSelectAllButton: checkAllButton, style: "gridFilter", loadOptions: isAsync ? handleLoadOptions : undefined, defaultOptions: defaultOptions, placeholder: placerholderValue, noOptionsMessage: function () { return null; }, containerVariant: isAsync ? 'search' : undefined, placeholderIcon: placeholderIcon, onIconClick: !onlyInComparator ? handleIconClick : undefined, optionVariant: "checkbox", multiLabelVariant: "count", isMulti: true, disabled: disabled, isClearable: isSelectClearable }));
109
109
  }
110
- return (_jsx(SingleSelect, { maxMenuHeight: 250, onChange: onChange, value: value, options: options, style: "gridFilter", loadOptions: isAsync ? handleLoadOptions : undefined, placeholder: isAsync ? i18n._({ id: 'dataGrid.filterCell', message: 'Type to filter' }) : undefined, placeholderIcon: columnWidth && columnWidth < minColumnWidth ? null : undefined, isClearable: isSelectClearable }));
110
+ var placeholderValue = placeholder || (isAsync ? i18n._({ id: 'dataGrid.filterCell', message: 'Type to filter' }) : undefined);
111
+ return (_jsx(SingleSelect, { maxMenuHeight: 250, onChange: onChange, value: showValue ? value : undefined, options: options, style: "gridFilter", loadOptions: isAsync ? handleLoadOptions : undefined, placeholder: placeholderValue, placeholderIcon: columnWidth && columnWidth < minColumnWidth ? null : undefined, isClearable: isSelectClearable, disabled: disabled }));
111
112
  };
112
113
  export default SelectFilter;
@@ -15,8 +15,7 @@ export var enumColumn = {
15
15
  filterExtraProps: { isMulti: true, checkAllButton: true },
16
16
  filtering: true,
17
17
  sorting: false,
18
- cellComponent: EnumCellExample,
19
- asyncLoadKey: 'enumColumnAsync'
18
+ cellComponent: EnumCellExample
20
19
  };
21
20
  export var columnDefinitions = [
22
21
  {
@@ -39,10 +38,7 @@ export var columnDefinitions = [
39
38
  name: 'enumColumnAsync',
40
39
  title: 'Enum Column Async',
41
40
  flexBasis: 160,
42
- filterExtraProps: {
43
- isMulti: true,
44
- checkAllButton: true,
45
- },
41
+ filterExtraProps: { isMulti: true, checkAllButton: true },
46
42
  filtering: true,
47
43
  sorting: true,
48
44
  asyncLoadKey: 'enumColumnAsync'