@tsed/react-formio 1.10.13 → 1.11.1

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.
@@ -3213,12 +3213,18 @@ function SelectColumnFilter({
3213
3213
  column
3214
3214
  }) {
3215
3215
  const {
3216
+ id,
3217
+ preFilteredRows,
3216
3218
  filterValue,
3217
3219
  setFilter
3218
3220
  } = column;
3219
3221
  const {
3220
- choices = []
3222
+ choices: customChoices
3221
3223
  } = column;
3224
+ const choices = customChoices || [...new Set(preFilteredRows.map(row => row.values[id]))].filter(value => value).map(value => ({
3225
+ label: value,
3226
+ value
3227
+ }));
3222
3228
  return React.createElement(Select, {
3223
3229
  key: `filter-${column.id}`,
3224
3230
  name: `filter-${column.id}`,
@@ -8924,7 +8930,7 @@ function Loader({
8924
8930
  }
8925
8931
  Loader.propTypes = {
8926
8932
  isActive: PropTypes.bool,
8927
- icon: PropTypes.bool,
8933
+ icon: PropTypes.string,
8928
8934
  color: PropTypes.string,
8929
8935
  className: PropTypes.string
8930
8936
  };