@crystaldesign/grid 25.12.0-beta.13 → 25.12.0-beta.15
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/build/esm/index.js +11 -1
- package/package.json +5 -5
package/build/esm/index.js
CHANGED
|
@@ -3394,7 +3394,12 @@ function getCellProps(props, meta) {
|
|
|
3394
3394
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3395
3395
|
var _h$match, _h$match2, _h$match3;
|
|
3396
3396
|
var h = _step.value;
|
|
3397
|
-
|
|
3397
|
+
var accessor = h === null || h === void 0 || (_h$match = h.match) === null || _h$match === void 0 ? void 0 : _h$match.accessor;
|
|
3398
|
+
if (!accessor) continue;
|
|
3399
|
+
var cellValue = getNestedValue(meta.cell.row.original, accessor);
|
|
3400
|
+
var matchesValue = (h === null || h === void 0 || (_h$match2 = h.match) === null || _h$match2 === void 0 ? void 0 : _h$match2.value) !== undefined && cellValue === h.match.value;
|
|
3401
|
+
var matchesValues = h === null || h === void 0 || (_h$match3 = h.match) === null || _h$match3 === void 0 || (_h$match3 = _h$match3.values) === null || _h$match3 === void 0 ? void 0 : _h$match3.includes(cellValue);
|
|
3402
|
+
if (matchesValue || matchesValues) {
|
|
3398
3403
|
props.style = _objectSpread$3(_objectSpread$3({}, props.style), h.style);
|
|
3399
3404
|
break;
|
|
3400
3405
|
}
|
|
@@ -3407,6 +3412,11 @@ function getCellProps(props, meta) {
|
|
|
3407
3412
|
}
|
|
3408
3413
|
return props;
|
|
3409
3414
|
}
|
|
3415
|
+
function getNestedValue(obj, path) {
|
|
3416
|
+
return path.split('.').reduce(function (acc, key) {
|
|
3417
|
+
return acc === null || acc === void 0 ? void 0 : acc[key];
|
|
3418
|
+
}, obj);
|
|
3419
|
+
}
|
|
3410
3420
|
|
|
3411
3421
|
var beginActionsHeader = "begin-actions-header-bDKrO";
|
|
3412
3422
|
var beginActionsCell = "begin-actions-cell-27DB3";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/grid",
|
|
3
|
-
"version": "25.12.0-beta.
|
|
3
|
+
"version": "25.12.0-beta.15",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@mui/x-date-pickers": "^7.22.0",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"react-dom": "18.3.1"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@crystaldesign/content-box": "25.12.0-beta.
|
|
16
|
-
"@crystaldesign/rtf-editor": "25.12.0-beta.
|
|
17
|
-
"@crystaldesign/searchfield": "25.12.0-beta.
|
|
15
|
+
"@crystaldesign/content-box": "25.12.0-beta.15",
|
|
16
|
+
"@crystaldesign/rtf-editor": "25.12.0-beta.15",
|
|
17
|
+
"@crystaldesign/searchfield": "25.12.0-beta.15",
|
|
18
18
|
"@hello-pangea/dnd": "^18.0.1",
|
|
19
19
|
"@mui/icons-material": "^6.1.5",
|
|
20
20
|
"@mui/lab": "^6.0.0-beta.13",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
},
|
|
41
41
|
"module": "build/esm/index.js",
|
|
42
42
|
"types": "./build/types/grid/src/index.d.ts",
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "b861b213334be6c976ea64c09620803a182a3685"
|
|
44
44
|
}
|