@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.
- package/README.md +1 -0
- package/dist/step-ag-grid.cjs.js +8 -5
- package/dist/step-ag-grid.cjs.js.map +1 -1
- package/dist/step-ag-grid.esm.js +8 -5
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/clickInputWhenContainingCellClicked.tsx +6 -6
- package/src/components/gridPopoverEdit/GridEditBoolean.tsx +9 -2
package/dist/step-ag-grid.esm.js
CHANGED
|
@@ -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 (
|
|
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
|
-
|
|
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
|