@azrico/reactgrid 1.3.11 → 1.3.12

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/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.3.12](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.10...v1.3.12) (2023-08-19)
6
+
7
+
8
+ ### Features
9
+
10
+ * DataGridSearchWrapper ([ebf3acf](https://github.com/Azrideus/azrico-reactgrid/commit/ebf3acff5f90c45090fad86be8e83e28744dd9dd))
11
+ * editable can be a function ([6ea857e](https://github.com/Azrideus/azrico-reactgrid/commit/6ea857e4f403d2a334dc5e74065f6b8033277ca4))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * DataGridDelayedSizeWrapper actual delayed ([2ddfd2f](https://github.com/Azrideus/azrico-reactgrid/commit/2ddfd2fb58c90bd906e1330f22f0ef7468d34afb))
17
+ * onCellSelectionChange ([95c8f54](https://github.com/Azrideus/azrico-reactgrid/commit/95c8f540e94dde0c7e245fb29fb6afc7172957ec))
18
+ * styling ([9018f75](https://github.com/Azrideus/azrico-reactgrid/commit/9018f7593e253720f751f52855a2d956dfc578ed))
19
+
5
20
  ### [1.3.11](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.10...v1.3.11) (2023-08-19)
6
21
 
7
22
 
@@ -305,7 +305,7 @@ function DataGridSearchWrapper(props) {
305
305
  }, [props.dataSource]);
306
306
  _react.default.useEffect(() => {
307
307
  if (!search) {
308
- set_filteredData(evaluatedDataSource);
308
+ set_filteredData(props.dataSource);
309
309
  } else try_search(evaluatedDataSource, search);
310
310
  }, [search, evaluatedDataSource]);
311
311
  return _react.default.createElement("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/reactgrid",
3
- "version": "1.3.11",
3
+ "version": "1.3.12",
4
4
  "main": "dist/index.js",
5
5
  "description": "React Datagrid",
6
6
  "author": "Azrideus <MehrdadTavangar@gmail.com>",
@@ -439,7 +439,7 @@ function DataGridDelayedSizeWrapper(props: DataGridWrapperProps) {
439
439
  function DataGridSearchWrapper(props: DataGridWrapperProps) {
440
440
  const [search, set_search] = React.useState('');
441
441
  const [evaluatedDataSource, set_evaluatedDataSource] = React.useState<any[]>([]);
442
- const [filteredData, set_filteredData] = React.useState<any[]>([]);
442
+ const [filteredData, set_filteredData] = React.useState<any>([]);
443
443
 
444
444
  const try_search = React.useCallback(
445
445
  debounce((ds, v) => {
@@ -473,7 +473,7 @@ function DataGridSearchWrapper(props: DataGridWrapperProps) {
473
473
  }, [props.dataSource]);
474
474
  React.useEffect(() => {
475
475
  if (!search) {
476
- set_filteredData(evaluatedDataSource);
476
+ set_filteredData(props.dataSource);
477
477
  } else try_search(evaluatedDataSource, search);
478
478
  }, [search, evaluatedDataSource]);
479
479