elab_components 0.9.69 → 0.9.82

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/dist/index.esm.js CHANGED
@@ -33124,12 +33124,12 @@ var OkGrid = function (_a) {
33124
33124
  setFilteredData(filtered);
33125
33125
  };
33126
33126
  useEffect(function () {
33127
- if (col === null || col === void 0 ? void 0 : col.filterByID) {
33127
+ if (dataItem && dataItem[col === null || col === void 0 ? void 0 : col.filterByID]) {
33128
33128
  var filtered = col.data.filter(function (item) { return item.id === dataItem[col === null || col === void 0 ? void 0 : col.filterByID]; });
33129
33129
  console.log('first', filtered);
33130
33130
  setFilteredData(filtered);
33131
33131
  }
33132
- }, [col === null || col === void 0 ? void 0 : col.filterByID, col.data]);
33132
+ }, [dataItem[col === null || col === void 0 ? void 0 : col.filterByID], col.data]);
33133
33133
  console.log('filteredData', filteredData, col === null || col === void 0 ? void 0 : col.filterByID, dataItem[col === null || col === void 0 ? void 0 : col.filterByID]);
33134
33134
  return (React__default.createElement("td", __assign({}, cellProps.tdProps),
33135
33135
  React__default.createElement(DropDownList, { data: filteredData, textField: col.textField || 'name', value: selectedOption, onChange: handleChange, filterable: true, onFilterChange: handleFilterChange, disabled: disabledCondition })));
package/dist/index.js CHANGED
@@ -33152,12 +33152,12 @@ var OkGrid = function (_a) {
33152
33152
  setFilteredData(filtered);
33153
33153
  };
33154
33154
  React.useEffect(function () {
33155
- if (col === null || col === void 0 ? void 0 : col.filterByID) {
33155
+ if (dataItem && dataItem[col === null || col === void 0 ? void 0 : col.filterByID]) {
33156
33156
  var filtered = col.data.filter(function (item) { return item.id === dataItem[col === null || col === void 0 ? void 0 : col.filterByID]; });
33157
33157
  console.log('first', filtered);
33158
33158
  setFilteredData(filtered);
33159
33159
  }
33160
- }, [col === null || col === void 0 ? void 0 : col.filterByID, col.data]);
33160
+ }, [dataItem[col === null || col === void 0 ? void 0 : col.filterByID], col.data]);
33161
33161
  console.log('filteredData', filteredData, col === null || col === void 0 ? void 0 : col.filterByID, dataItem[col === null || col === void 0 ? void 0 : col.filterByID]);
33162
33162
  return (React__default["default"].createElement("td", __assign({}, cellProps.tdProps),
33163
33163
  React__default["default"].createElement(kendoReactDropdowns.DropDownList, { data: filteredData, textField: col.textField || 'name', value: selectedOption, onChange: handleChange, filterable: true, onFilterChange: handleFilterChange, disabled: disabledCondition })));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elab_components",
3
- "version": "0.9.69",
3
+ "version": "0.9.82",
4
4
  "private": false,
5
5
  "author": "Amar",
6
6
  "main": "dist/index.js",