@teselagen/ui 0.7.1 → 0.7.2-beta.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.
package/index.es.js CHANGED
@@ -31419,10 +31419,10 @@ const itemRenderer = /* @__PURE__ */ __name((i = "", { index: index2, handleClic
31419
31419
  },
31420
31420
  i
31421
31421
  ), "itemRenderer");
31422
- const TgSuggest = /* @__PURE__ */ __name((props) => {
31423
- const _a = props, {
31422
+ const TgSuggest = /* @__PURE__ */ __name((_e) => {
31423
+ var _f = _e, {
31424
31424
  disabled,
31425
- inputProps,
31425
+ inputProps: _inputProps,
31426
31426
  intent,
31427
31427
  isLoading,
31428
31428
  isSimpleSearch,
@@ -31430,14 +31430,13 @@ const TgSuggest = /* @__PURE__ */ __name((props) => {
31430
31430
  noResultsText,
31431
31431
  notCreateable,
31432
31432
  onBlur,
31433
- onChange: onChange = /* @__PURE__ */ __name(() => {
31434
- }, "onChange"),
31433
+ onChange,
31435
31434
  optionRenderer,
31436
- options: options = [],
31435
+ options: options,
31437
31436
  placeholder,
31438
- popoverProps,
31439
- value = void 0
31440
- } = _a, rest = __objRest(_a, [
31437
+ popoverProps: _popoverProps,
31438
+ value
31439
+ } = _f, rest = __objRest(_f, [
31441
31440
  "disabled",
31442
31441
  "inputProps",
31443
31442
  "intent",
@@ -31447,7 +31446,6 @@ const TgSuggest = /* @__PURE__ */ __name((props) => {
31447
31446
  "noResultsText",
31448
31447
  "notCreateable",
31449
31448
  "onBlur",
31450
- // eslint-disable-next-line @typescript-eslint/no-empty-function
31451
31449
  "onChange",
31452
31450
  "optionRenderer",
31453
31451
  //pull this one out here so it doesn't get passsed along
@@ -31457,42 +31455,66 @@ const TgSuggest = /* @__PURE__ */ __name((props) => {
31457
31455
  "value"
31458
31456
  ]);
31459
31457
  const inputRef = useRef(null);
31460
- const handleItemSelect = /* @__PURE__ */ __name((item) => {
31461
- inputRef.current && inputRef.current.blur();
31462
- return onChange(item);
31463
- }, "handleItemSelect");
31464
- const _itemListPredicate = /* @__PURE__ */ __name((queryString2, item) => {
31465
- return itemListPredicate(queryString2, item, isSimpleSearch);
31466
- }, "_itemListPredicate");
31458
+ const handleItemSelect = useCallback(
31459
+ (item) => {
31460
+ inputRef.current && inputRef.current.blur();
31461
+ return onChange == null ? void 0 : onChange(item);
31462
+ },
31463
+ [onChange]
31464
+ );
31465
+ const _itemListPredicate = useCallback(
31466
+ (queryString2, item) => {
31467
+ return itemListPredicate(queryString2, item, isSimpleSearch);
31468
+ },
31469
+ [isSimpleSearch]
31470
+ );
31471
+ const popoverProps = useMemo(
31472
+ () => __spreadValues({
31473
+ minimal: true,
31474
+ className: classNames("tg-select", {
31475
+ "tg-single-select": !multi
31476
+ }),
31477
+ wrapperTagName: "div",
31478
+ usePortal: false,
31479
+ canEscapeKeyClose: true
31480
+ }, _popoverProps),
31481
+ [multi, _popoverProps]
31482
+ );
31483
+ const onKeyDown = useCallback((e2) => {
31484
+ const { which } = e2;
31485
+ if (which === Keys.ENTER) {
31486
+ e2.preventDefault();
31487
+ e2.stopPropagation();
31488
+ }
31489
+ if (which === Keys.ESCAPE || which === Keys.TAB) {
31490
+ if (inputRef.current != null) {
31491
+ inputRef.current.blur();
31492
+ }
31493
+ e2.preventDefault();
31494
+ e2.stopPropagation();
31495
+ }
31496
+ }, []);
31497
+ const inputProps = useMemo(
31498
+ () => __spreadValues({
31499
+ inputRef: (n2) => {
31500
+ if (n2)
31501
+ inputRef.current = n2;
31502
+ },
31503
+ placeholder: placeholder || "Type here...",
31504
+ disabled,
31505
+ // tg: adding isLoading will cause the input to be blurred when using generic select asReactSelect (don't do it),
31506
+ intent
31507
+ }, _inputProps),
31508
+ [disabled, _inputProps, intent, placeholder]
31509
+ );
31467
31510
  return /* @__PURE__ */ React__default.createElement(
31468
31511
  Suggest,
31469
31512
  __spreadValues({
31470
31513
  closeOnSelect: true,
31471
- items: options || [],
31514
+ items: options,
31472
31515
  query: value,
31473
- popoverProps: __spreadValues({
31474
- minimal: true,
31475
- className: classNames("tg-select", {
31476
- "tg-single-select": !multi
31477
- }),
31478
- wrapperTagName: "div",
31479
- usePortal: false,
31480
- canEscapeKeyClose: true
31481
- }, popoverProps),
31482
- onKeyDown: (e2) => {
31483
- const { which } = e2;
31484
- if (which === Keys.ENTER) {
31485
- e2.preventDefault();
31486
- e2.stopPropagation();
31487
- }
31488
- if (which === Keys.ESCAPE || which === Keys.TAB) {
31489
- if (inputRef.current != null) {
31490
- inputRef.current.blur();
31491
- }
31492
- e2.preventDefault();
31493
- e2.stopPropagation();
31494
- }
31495
- },
31516
+ popoverProps,
31517
+ onKeyDown,
31496
31518
  onItemSelect: handleItemSelect,
31497
31519
  noResults: null,
31498
31520
  resetOnSelect: false,
@@ -31501,23 +31523,14 @@ const TgSuggest = /* @__PURE__ */ __name((props) => {
31501
31523
  itemListPredicate: _itemListPredicate,
31502
31524
  selectedItem: value,
31503
31525
  inputValueRenderer: (item) => item,
31504
- inputProps: __spreadValues({
31505
- inputRef: (n2) => {
31506
- if (n2)
31507
- inputRef.current = n2;
31508
- },
31509
- placeholder: placeholder || "Type here...",
31510
- disabled,
31511
- // tg: adding isLoading will cause the input to be blurred when using generic select asReactSelect (don't do it),
31512
- intent
31513
- }, inputProps),
31526
+ inputProps,
31514
31527
  isSimpleSearch,
31515
31528
  onChange
31516
31529
  }, rest)
31517
31530
  );
31518
31531
  }, "TgSuggest");
31519
- const InfoHelper = /* @__PURE__ */ __name((_e) => {
31520
- var _f = _e, {
31532
+ const InfoHelper = /* @__PURE__ */ __name((_g) => {
31533
+ var _h = _g, {
31521
31534
  className,
31522
31535
  content: content2,
31523
31536
  children,
@@ -31533,7 +31546,7 @@ const InfoHelper = /* @__PURE__ */ __name((_e) => {
31533
31546
  disabled,
31534
31547
  displayToSide,
31535
31548
  style
31536
- } = _f, rest = __objRest(_f, [
31549
+ } = _h, rest = __objRest(_h, [
31537
31550
  "className",
31538
31551
  "content",
31539
31552
  "children",
@@ -31985,13 +31998,13 @@ const AbstractInput = /* @__PURE__ */ __name(({
31985
31998
  rightEl
31986
31999
  );
31987
32000
  }, "AbstractInput");
31988
- const renderBlueprintDateInput = /* @__PURE__ */ __name((_g) => {
31989
- var _h = _g, {
32001
+ const renderBlueprintDateInput = /* @__PURE__ */ __name((_i) => {
32002
+ var _j = _i, {
31990
32003
  input,
31991
32004
  intent,
31992
32005
  onFieldSubmit,
31993
32006
  inputProps
31994
- } = _h, rest = __objRest(_h, [
32007
+ } = _j, rest = __objRest(_j, [
31995
32008
  "input",
31996
32009
  "intent",
31997
32010
  "onFieldSubmit",
@@ -32011,13 +32024,13 @@ const renderBlueprintDateInput = /* @__PURE__ */ __name((_g) => {
32011
32024
  })
32012
32025
  );
32013
32026
  }, "renderBlueprintDateInput");
32014
- const renderBlueprintDateRangeInput = /* @__PURE__ */ __name((_i) => {
32015
- var _j = _i, {
32027
+ const renderBlueprintDateRangeInput = /* @__PURE__ */ __name((_k) => {
32028
+ var _l = _k, {
32016
32029
  input,
32017
32030
  intent,
32018
32031
  onFieldSubmit,
32019
32032
  inputProps
32020
- } = _j, rest = __objRest(_j, [
32033
+ } = _l, rest = __objRest(_l, [
32021
32034
  "input",
32022
32035
  "intent",
32023
32036
  "onFieldSubmit",
@@ -32037,8 +32050,8 @@ const renderBlueprintDateRangeInput = /* @__PURE__ */ __name((_i) => {
32037
32050
  })
32038
32051
  );
32039
32052
  }, "renderBlueprintDateRangeInput");
32040
- const RenderBlueprintInput = /* @__PURE__ */ __name((_k) => {
32041
- var _l = _k, {
32053
+ const RenderBlueprintInput = /* @__PURE__ */ __name((_m) => {
32054
+ var _n = _m, {
32042
32055
  input,
32043
32056
  intent: intent,
32044
32057
  onFieldSubmit,
@@ -32046,7 +32059,7 @@ const RenderBlueprintInput = /* @__PURE__ */ __name((_k) => {
32046
32059
  asyncValidating,
32047
32060
  rightElement,
32048
32061
  clickToEdit
32049
- } = _l, rest = __objRest(_l, [
32062
+ } = _n, rest = __objRest(_n, [
32050
32063
  "input",
32051
32064
  // meta = {},
32052
32065
  "intent",
@@ -32135,14 +32148,14 @@ const RenderBlueprintInput = /* @__PURE__ */ __name((_k) => {
32135
32148
  )));
32136
32149
  return inner;
32137
32150
  }, "RenderBlueprintInput");
32138
- const renderBlueprintCheckbox = /* @__PURE__ */ __name((_m) => {
32139
- var _n = _m, {
32151
+ const renderBlueprintCheckbox = /* @__PURE__ */ __name((_o) => {
32152
+ var _p = _o, {
32140
32153
  input,
32141
32154
  label,
32142
32155
  tooltipInfo,
32143
32156
  beforeOnChange,
32144
32157
  onFieldSubmit
32145
- } = _n, rest = __objRest(_n, [
32158
+ } = _p, rest = __objRest(_p, [
32146
32159
  "input",
32147
32160
  "label",
32148
32161
  "tooltipInfo",
@@ -32179,14 +32192,14 @@ const getCheckboxOrSwitchOnChange = /* @__PURE__ */ __name(({
32179
32192
  onFieldSubmit(v2);
32180
32193
  });
32181
32194
  }, "getCheckboxOrSwitchOnChange");
32182
- const renderBlueprintSwitch = /* @__PURE__ */ __name((_o) => {
32183
- var _p = _o, {
32195
+ const renderBlueprintSwitch = /* @__PURE__ */ __name((_q) => {
32196
+ var _r = _q, {
32184
32197
  input,
32185
32198
  label,
32186
32199
  tooltipInfo,
32187
32200
  onFieldSubmit,
32188
32201
  beforeOnChange
32189
- } = _p, rest = __objRest(_p, [
32202
+ } = _r, rest = __objRest(_r, [
32190
32203
  "input",
32191
32204
  "label",
32192
32205
  "tooltipInfo",
@@ -32206,8 +32219,8 @@ const renderBlueprintSwitch = /* @__PURE__ */ __name((_o) => {
32206
32219
  })
32207
32220
  );
32208
32221
  }, "renderBlueprintSwitch");
32209
- const renderFileUpload = /* @__PURE__ */ __name((_q) => {
32210
- var _r = _q, { input, onFieldSubmit } = _r, rest = __objRest(_r, ["input", "onFieldSubmit"]);
32222
+ const renderFileUpload = /* @__PURE__ */ __name((_s) => {
32223
+ var _t = _s, { input, onFieldSubmit } = _t, rest = __objRest(_t, ["input", "onFieldSubmit"]);
32211
32224
  return /* @__PURE__ */ React__default.createElement(
32212
32225
  Uploader,
32213
32226
  __spreadProps(__spreadValues({
@@ -32219,8 +32232,8 @@ const renderFileUpload = /* @__PURE__ */ __name((_q) => {
32219
32232
  })
32220
32233
  );
32221
32234
  }, "renderFileUpload");
32222
- const RenderBlueprintTextarea = /* @__PURE__ */ __name((_s) => {
32223
- var _t = _s, {
32235
+ const RenderBlueprintTextarea = /* @__PURE__ */ __name((_u) => {
32236
+ var _v = _u, {
32224
32237
  input,
32225
32238
  onFieldSubmit,
32226
32239
  onKeyDown,
@@ -32228,7 +32241,7 @@ const RenderBlueprintTextarea = /* @__PURE__ */ __name((_s) => {
32228
32241
  inputClassName,
32229
32242
  clickToEdit,
32230
32243
  disabled
32231
- } = _t, rest = __objRest(_t, [
32244
+ } = _v, rest = __objRest(_v, [
32232
32245
  "input",
32233
32246
  "onFieldSubmit",
32234
32247
  "onKeyDown",
@@ -32428,15 +32441,15 @@ const renderReactSelect = /* @__PURE__ */ __name((props) => {
32428
32441
  const renderSuggest_old = /* @__PURE__ */ __name((props) => {
32429
32442
  return renderReactSelect(__spreadProps(__spreadValues({}, props), { asSuggest: true }));
32430
32443
  }, "renderSuggest_old");
32431
- const renderSuggest = /* @__PURE__ */ __name((_u) => {
32432
- var _v = _u, {
32444
+ const renderSuggest = /* @__PURE__ */ __name((_w) => {
32445
+ var _x = _w, {
32433
32446
  async,
32434
32447
  input: { value, onChange },
32435
32448
  hideValue,
32436
32449
  intent,
32437
32450
  options,
32438
32451
  onFieldSubmit
32439
- } = _v, rest = __objRest(_v, [
32452
+ } = _x, rest = __objRest(_x, [
32440
32453
  "async",
32441
32454
  "input",
32442
32455
  "hideValue",
@@ -32461,12 +32474,12 @@ const renderSuggest = /* @__PURE__ */ __name((_u) => {
32461
32474
  });
32462
32475
  return /* @__PURE__ */ React__default.createElement(TgSuggest, __spreadValues({}, propsToUse));
32463
32476
  }, "renderSuggest");
32464
- const BPSelect = /* @__PURE__ */ __name((_w) => {
32465
- var _x = _w, { value, onChange } = _x, rest = __objRest(_x, ["value", "onChange"]);
32477
+ const BPSelect = /* @__PURE__ */ __name((_y) => {
32478
+ var _z = _y, { value, onChange } = _z, rest = __objRest(_z, ["value", "onChange"]);
32466
32479
  return renderSelect(__spreadProps(__spreadValues({}, rest), { input: { onChange, value } }));
32467
32480
  }, "BPSelect");
32468
- const renderSelect = /* @__PURE__ */ __name((_y) => {
32469
- var _z = _y, {
32481
+ const renderSelect = /* @__PURE__ */ __name((_A) => {
32482
+ var _B = _A, {
32470
32483
  input: { value, onChange },
32471
32484
  hideValue,
32472
32485
  className,
@@ -32476,7 +32489,7 @@ const renderSelect = /* @__PURE__ */ __name((_y) => {
32476
32489
  hidePlaceHolder,
32477
32490
  minimal,
32478
32491
  disabled
32479
- } = _z, rest = __objRest(_z, [
32492
+ } = _B, rest = __objRest(_B, [
32480
32493
  "input",
32481
32494
  "hideValue",
32482
32495
  "className",
@@ -32544,15 +32557,15 @@ const renderSelect = /* @__PURE__ */ __name((_y) => {
32544
32557
  )
32545
32558
  );
32546
32559
  }, "renderSelect");
32547
- const renderBlueprintNumericInput = /* @__PURE__ */ __name((_A) => {
32548
- var _B = _A, {
32560
+ const renderBlueprintNumericInput = /* @__PURE__ */ __name((_C) => {
32561
+ var _D = _C, {
32549
32562
  input,
32550
32563
  hideValue,
32551
32564
  intent,
32552
32565
  inputClassName,
32553
32566
  onFieldSubmit,
32554
32567
  onAnyNumberChange
32555
- } = _B, rest = __objRest(_B, [
32568
+ } = _D, rest = __objRest(_D, [
32556
32569
  "input",
32557
32570
  "hideValue",
32558
32571
  "intent",
@@ -32597,12 +32610,12 @@ const renderBlueprintNumericInput = /* @__PURE__ */ __name((_A) => {
32597
32610
  })
32598
32611
  );
32599
32612
  }, "renderBlueprintNumericInput");
32600
- const renderBlueprintRadioGroup = /* @__PURE__ */ __name((_C) => {
32601
- var _D = _C, {
32613
+ const renderBlueprintRadioGroup = /* @__PURE__ */ __name((_E) => {
32614
+ var _F = _E, {
32602
32615
  input,
32603
32616
  options,
32604
32617
  onFieldSubmit
32605
- } = _D, rest = __objRest(_D, [
32618
+ } = _F, rest = __objRest(_F, [
32606
32619
  "input",
32607
32620
  "options",
32608
32621
  "onFieldSubmit"
@@ -32641,8 +32654,8 @@ const renderBlueprintRadioGroup = /* @__PURE__ */ __name((_C) => {
32641
32654
  })
32642
32655
  );
32643
32656
  }, "renderBlueprintRadioGroup");
32644
- const RenderReactColorPicker = /* @__PURE__ */ __name((_E) => {
32645
- var _F = _E, { input, onFieldSubmit } = _F, rest = __objRest(_F, ["input", "onFieldSubmit"]);
32657
+ const RenderReactColorPicker = /* @__PURE__ */ __name((_G) => {
32658
+ var _H = _G, { input, onFieldSubmit } = _H, rest = __objRest(_H, ["input", "onFieldSubmit"]);
32646
32659
  return /* @__PURE__ */ React__default.createElement(
32647
32660
  Popover,
32648
32661
  {
@@ -52367,8 +52380,8 @@ const itemSizeEstimators = {
52367
52380
  normal: () => 33.34,
52368
52381
  comfortable: () => 41.34
52369
52382
  };
52370
- const DataTable = /* @__PURE__ */ __name((_G) => {
52371
- var _H = _G, {
52383
+ const DataTable = /* @__PURE__ */ __name((_I) => {
52384
+ var _J = _I, {
52372
52385
  controlled_pageSize,
52373
52386
  formName = "tgDataTable",
52374
52387
  history,
@@ -52382,7 +52395,7 @@ const DataTable = /* @__PURE__ */ __name((_G) => {
52382
52395
  tableParams: _tableParams,
52383
52396
  anyTouched,
52384
52397
  blur
52385
- } = _H, ownProps = __objRest(_H, [
52398
+ } = _J, ownProps = __objRest(_J, [
52386
52399
  "controlled_pageSize",
52387
52400
  "formName",
52388
52401
  "history",
@@ -52562,8 +52575,8 @@ const DataTable = /* @__PURE__ */ __name((_G) => {
52562
52575
  props = __spreadValues(__spreadValues({}, props), tableParams);
52563
52576
  const queryParams = useMemo(() => {
52564
52577
  if (!isTableParamsConnected) {
52565
- const additionalFilterToUse = typeof props.additionalFilter === "function" ? props.additionalFilter.bind(void 0, ownProps) : () => props.additionalFilter;
52566
- const additionalOrFilterToUse = typeof props.additionalOrFilter === "function" ? props.additionalOrFilter.bind(void 0, ownProps) : () => props.additionalOrFilter;
52578
+ const additionalFilterToUse = typeof props.additionalFilter === "function" ? props.additionalFilter : () => props.additionalFilter;
52579
+ const additionalOrFilterToUse = typeof props.additionalOrFilter === "function" ? props.additionalOrFilter : () => props.additionalOrFilter;
52567
52580
  return getQueryParams({
52568
52581
  doNotCoercePageSize,
52569
52582
  currentParams,
@@ -68404,14 +68417,14 @@ function BlueprintError({ error }) {
68404
68417
  return /* @__PURE__ */ React__default.createElement("div", { className: classNames(Classes.FORM_GROUP, Classes.INTENT_DANGER) }, /* @__PURE__ */ React__default.createElement("div", { className: classNames(Classes.FORM_HELPER_TEXT, "preserve-newline") }, error));
68405
68418
  }
68406
68419
  __name(BlueprintError, "BlueprintError");
68407
- function DropdownButton(_I) {
68408
- var _J = _I, {
68420
+ function DropdownButton(_K) {
68421
+ var _L = _K, {
68409
68422
  disabled,
68410
68423
  menu,
68411
68424
  noRightIcon,
68412
68425
  popoverProps,
68413
68426
  className
68414
- } = _J, rest = __objRest(_J, [
68427
+ } = _L, rest = __objRest(_L, [
68415
68428
  "disabled",
68416
68429
  "menu",
68417
68430
  "noRightIcon",
@@ -68595,8 +68608,8 @@ const useTableParams = /* @__PURE__ */ __name((props) => {
68595
68608
  [controlled_pageSize, defaultsToUse, pageSize, history == null ? void 0 : history.location]
68596
68609
  );
68597
68610
  const queryParams = useMemo(() => {
68598
- const additionalFilterToUse = typeof additionalFilter === "function" ? additionalFilter.bind(void 0, passingProps) : () => additionalFilter;
68599
- const additionalOrFilterToUse = typeof additionalOrFilter === "function" ? additionalOrFilter.bind(void 0, passingProps) : () => additionalOrFilter;
68611
+ const additionalFilterToUse = typeof additionalFilter === "function" ? additionalFilter : () => additionalFilter;
68612
+ const additionalOrFilterToUse = typeof additionalOrFilter === "function" ? additionalOrFilter : () => additionalOrFilter;
68600
68613
  return getQueryParams({
68601
68614
  doNotCoercePageSize,
68602
68615
  currentParams,
@@ -72092,14 +72105,14 @@ const EnhancedMenuItem = compose(
72092
72105
  }
72093
72106
  }),
72094
72107
  branch(({ navTo }) => navTo, withRouter)
72095
- )(function(_K) {
72096
- var _L = _K, {
72108
+ )(function(_M) {
72109
+ var _N = _M, {
72097
72110
  navTo,
72098
72111
  context,
72099
72112
  staticContext,
72100
72113
  didMount,
72101
72114
  willUnmount
72102
- } = _L, props = __objRest(_L, [
72115
+ } = _N, props = __objRest(_N, [
72103
72116
  "navTo",
72104
72117
  "context",
72105
72118
  "staticContext",
@@ -72323,8 +72336,8 @@ function doesSearchValMatchText(searchVal, justText) {
72323
72336
  );
72324
72337
  }
72325
72338
  __name(doesSearchValMatchText, "doesSearchValMatchText");
72326
- const MenuItemWithTooltip = /* @__PURE__ */ __name((_M) => {
72327
- var _N = _M, { tooltip } = _N, rest = __objRest(_N, ["tooltip"]);
72339
+ const MenuItemWithTooltip = /* @__PURE__ */ __name((_O) => {
72340
+ var _P = _O, { tooltip } = _P, rest = __objRest(_P, ["tooltip"]);
72328
72341
  let out = /* @__PURE__ */ React__default.createElement(MenuItem, __spreadValues({}, rest));
72329
72342
  if (tooltip) {
72330
72343
  out = /* @__PURE__ */ React__default.createElement(Tooltip, { content: tooltip }, out);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ui",
3
- "version": "0.7.1",
3
+ "version": "0.7.2-beta.1",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -1,13 +1,13 @@
1
- import React, { useEffect, useRef } from "react";
1
+ import React, { useEffect, useRef, useState } from "react";
2
2
 
3
3
  export const EditableCell = ({
4
- value,
5
- setValue,
6
4
  cancelEdit,
7
5
  dataTest,
8
6
  finishEdit,
9
- isNumeric
7
+ isNumeric,
8
+ initialValue
10
9
  }) => {
10
+ const [value, setValue] = useState(initialValue);
11
11
  const inputRef = useRef(null);
12
12
 
13
13
  useEffect(() => {
@@ -338,12 +338,12 @@ const DataTable = ({
338
338
  if (!isTableParamsConnected) {
339
339
  const additionalFilterToUse =
340
340
  typeof props.additionalFilter === "function"
341
- ? props.additionalFilter.bind(this, ownProps)
341
+ ? props.additionalFilter
342
342
  : () => props.additionalFilter;
343
343
 
344
344
  const additionalOrFilterToUse =
345
345
  typeof props.additionalOrFilter === "function"
346
- ? props.additionalOrFilter.bind(this, ownProps)
346
+ ? props.additionalOrFilter
347
347
  : () => props.additionalOrFilter;
348
348
 
349
349
  return getQueryParams({
@@ -352,7 +352,6 @@ export default function useTableParams(
352
352
  reduxFormSearchInput,
353
353
  onlyShowRowsWErrors,
354
354
  reduxFormCellValidation,
355
- reduxFormEntities,
356
355
  reduxFormSelectedCells,
357
356
  reduxFormSelectedEntityIdMap,
358
357
  reduxFormQueryParams,
@@ -168,12 +168,12 @@ export const useTableParams = props => {
168
168
  const queryParams = useMemo(() => {
169
169
  const additionalFilterToUse =
170
170
  typeof additionalFilter === "function"
171
- ? additionalFilter.bind(this, passingProps)
171
+ ? additionalFilter
172
172
  : () => additionalFilter;
173
173
 
174
174
  const additionalOrFilterToUse =
175
175
  typeof additionalOrFilter === "function"
176
- ? additionalOrFilter.bind(this, passingProps)
176
+ ? additionalOrFilter
177
177
  : () => additionalOrFilter;
178
178
 
179
179
  return getQueryParams({