@lanaco/lnc-react-ui 3.11.20 → 3.11.21

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/lib/index.esm.js CHANGED
@@ -72866,21 +72866,21 @@ var ActionsToolbar = /*#__PURE__*/React__default.forwardRef(function (props, ref
72866
72866
  })
72867
72867
  }), showCopy && readOnly == false && /*#__PURE__*/React__default.createElement(DropdownItem, {
72868
72868
  icon: "copy",
72869
- disabled: !(enableCopyOnSelection && selectedRowsLength > 1),
72869
+ disabled: !(enableCopyOnSelection && selectedRowsLength > 0),
72870
72870
  onClick: onCopy
72871
72871
  }, copyText), showEdit && readOnly == false && /*#__PURE__*/React__default.createElement(DropdownItem, {
72872
72872
  icon: "pen",
72873
- disabled: !(enableEditOnSelection && selectedRowsLength > 1),
72873
+ disabled: !(enableEditOnSelection && selectedRowsLength > 0),
72874
72874
  onClick: onEdit
72875
72875
  }, editText), showDelete && readOnly == false && /*#__PURE__*/React__default.createElement(DropdownItem, {
72876
72876
  icon: "trash",
72877
- disabled: !(enableDeleteOnSelection && selectedRowsLength > 1),
72877
+ disabled: !(enableDeleteOnSelection && selectedRowsLength > 0),
72878
72878
  onClick: onDelete
72879
72879
  }, deleteText), /*#__PURE__*/React__default.createElement(Separator$1, null), customActions === null || customActions === void 0 ? void 0 : customActions.map(function (action, index) {
72880
72880
  if ((action === null || action === void 0 ? void 0 : action.show) != false) return /*#__PURE__*/React__default.createElement(DropdownItem, {
72881
72881
  key: index,
72882
72882
  icon: action.icon,
72883
- disabled: !(action.enableOnSelection == true && selectedRowsLength > 1 || action.enable == true && action.enableOnSelection == false),
72883
+ disabled: !(action.enableOnSelection == true && selectedRowsLength > 0 || action.enable == true && action.enableOnSelection == false),
72884
72884
  onClick: action.onAction
72885
72885
  }, action.name);
72886
72886
  }))));
package/lib/index.js CHANGED
@@ -72915,21 +72915,21 @@ var ActionsToolbar = /*#__PURE__*/React__default["default"].forwardRef(function
72915
72915
  })
72916
72916
  }), showCopy && readOnly == false && /*#__PURE__*/React__default["default"].createElement(DropdownItem, {
72917
72917
  icon: "copy",
72918
- disabled: !(enableCopyOnSelection && selectedRowsLength > 1),
72918
+ disabled: !(enableCopyOnSelection && selectedRowsLength > 0),
72919
72919
  onClick: onCopy
72920
72920
  }, copyText), showEdit && readOnly == false && /*#__PURE__*/React__default["default"].createElement(DropdownItem, {
72921
72921
  icon: "pen",
72922
- disabled: !(enableEditOnSelection && selectedRowsLength > 1),
72922
+ disabled: !(enableEditOnSelection && selectedRowsLength > 0),
72923
72923
  onClick: onEdit
72924
72924
  }, editText), showDelete && readOnly == false && /*#__PURE__*/React__default["default"].createElement(DropdownItem, {
72925
72925
  icon: "trash",
72926
- disabled: !(enableDeleteOnSelection && selectedRowsLength > 1),
72926
+ disabled: !(enableDeleteOnSelection && selectedRowsLength > 0),
72927
72927
  onClick: onDelete
72928
72928
  }, deleteText), /*#__PURE__*/React__default["default"].createElement(Separator$1, null), customActions === null || customActions === void 0 ? void 0 : customActions.map(function (action, index) {
72929
72929
  if ((action === null || action === void 0 ? void 0 : action.show) != false) return /*#__PURE__*/React__default["default"].createElement(DropdownItem, {
72930
72930
  key: index,
72931
72931
  icon: action.icon,
72932
- disabled: !(action.enableOnSelection == true && selectedRowsLength > 1 || action.enable == true && action.enableOnSelection == false),
72932
+ disabled: !(action.enableOnSelection == true && selectedRowsLength > 0 || action.enable == true && action.enableOnSelection == false),
72933
72933
  onClick: action.onAction
72934
72934
  }, action.name);
72935
72935
  }))));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
3
  "type": "module",
4
- "version": "3.11.20",
4
+ "version": "3.11.21",
5
5
  "description": "component library",
6
6
  "main": "lib/index.js",
7
7
  "module": "lib/index.esm.js",