@linzjs/step-ag-grid 22.2.1 → 22.2.3

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.
@@ -2341,13 +2341,12 @@ const clickInputWhenContainingCellClicked = (params) => {
2341
2341
  const { data, event, colDef } = params;
2342
2342
  if (!data || !event)
2343
2343
  return;
2344
- if (fnOrVar(colDef.editable, params) === false) {
2345
- return;
2346
- }
2347
2344
  const element = event.target;
2348
2345
  // Already handled
2349
- if (["BUTTON", "INPUT"].includes(element?.tagName) && element.closest(".ag-cell-inline-editing"))
2346
+ if (element.closest(".GridCell-readonly") ||
2347
+ (["BUTTON", "INPUT"].includes(element?.tagName) && element.closest(".ag-cell-inline-editing"))) {
2350
2348
  return;
2349
+ }
2351
2350
  const row = element.closest("[row-id]");
2352
2351
  if (!row)
2353
2352
  return;
@@ -4477,7 +4476,11 @@ const BooleanCellRenderer = (props) => {
4477
4476
  api.removeEventListener("cellFocused", checkFocus);
4478
4477
  };
4479
4478
  }, [api, column, node.rowIndex]);
4480
- return (jsx("div", { className: clsx("ag-wrapper ag-input-wrapper ag-checkbox-input-wrapper", { "ag-checked": props.value }), children: jsx("input", { type: "checkbox", className: "ag-input-field-input ag-checkbox-input", disabled: !fnOrVar(colDef?.editable, props), ref: inputRef, checked: value, onChange: () => { }, onClick: (e) => {
4479
+ const isDisabled = !fnOrVar(colDef?.editable, props);
4480
+ return (jsx("div", { className: clsx("ag-wrapper ag-input-wrapper ag-checkbox-input-wrapper", {
4481
+ "ag-checked": props.value,
4482
+ "ag-disabled": isDisabled,
4483
+ }), children: jsx("input", { type: "checkbox", className: "ag-input-field-input ag-checkbox-input", disabled: isDisabled, ref: inputRef, checked: value, onChange: () => { }, onClick: (e) => {
4481
4484
  e.stopPropagation();
4482
4485
  // cell has to be in edit mode
4483
4486
  // if in non-edit mode clickInputWhenContainingCellClicked will click to put it in edit mode