UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

19 lines (18 loc) 629 B
import u from "classnames"; function I(a) { const { rowData: d, rowIndex: i, columnId: e, selectedRowIndex: r, lastSelection: l, colValues: n } = a, f = r === i, o = d.__cellValidationResults, m = o && e && o.has(e), s = []; f && s.push("cell-row-selected"); let c = !1; return l && e && n && (c = i >= l.min.row && i <= l.max.row && n.findIndex((t) => t.id === e) >= l.min.col && n.findIndex((t) => t.id === e) <= l.max.col, c && s.push("cell-selected")), m && s.push("cell-invalid"), s.length ? u(s) : void 0; } export { I as getCellClassName }; //# sourceMappingURL=getCellClassName.js.map