@crystaldesign/grid 26.4.0-beta.8 → 26.4.0-rc.0
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
CHANGED
|
@@ -2486,13 +2486,13 @@ function PriceCell (props) {
|
|
|
2486
2486
|
}
|
|
2487
2487
|
item = props.column.preUpdateData(value, props.row);
|
|
2488
2488
|
_context.next = 8;
|
|
2489
|
-
return (_props$updateData = props.updateData) === null || _props$updateData === void 0 ? void 0 : _props$updateData.call(props, item, props.row.id);
|
|
2489
|
+
return (_props$updateData = props.updateData) === null || _props$updateData === void 0 ? void 0 : _props$updateData.call(props, unflatten(item), props.row.id);
|
|
2490
2490
|
case 8:
|
|
2491
2491
|
_context.next = 12;
|
|
2492
2492
|
break;
|
|
2493
2493
|
case 10:
|
|
2494
2494
|
_context.next = 12;
|
|
2495
|
-
return (_props$updateData2 = props.updateData) === null || _props$updateData2 === void 0 ? void 0 : _props$updateData2.call(props, _objectSpread$9(_objectSpread$9({}, props.row.original), {}, _defineProperty({}, props.column.id, value)), props.row.id);
|
|
2495
|
+
return (_props$updateData2 = props.updateData) === null || _props$updateData2 === void 0 ? void 0 : _props$updateData2.call(props, unflatten(_objectSpread$9(_objectSpread$9({}, props.row.original), {}, _defineProperty({}, props.column.id, value !== null && value !== void 0 ? value : 0))), props.row.id);
|
|
2496
2496
|
case 12:
|
|
2497
2497
|
setEditing(false);
|
|
2498
2498
|
case 13:
|
|
@@ -3216,7 +3216,15 @@ function parseRawFilterString(pf) {
|
|
|
3216
3216
|
return "[".concat(pf.filters.map(parseRawFilterString).join(','), "]");
|
|
3217
3217
|
}
|
|
3218
3218
|
if (pf.field && pf.operator && pf.value !== undefined) {
|
|
3219
|
-
|
|
3219
|
+
var valueString;
|
|
3220
|
+
if (Array.isArray(pf.value)) {
|
|
3221
|
+
valueString = pf.value.map(function (val) {
|
|
3222
|
+
return typeof val === 'string' ? "'".concat(val, "'") : val;
|
|
3223
|
+
}).join();
|
|
3224
|
+
} else {
|
|
3225
|
+
valueString = typeof pf.value === 'string' ? "'".concat(pf.value, "'") : pf.value;
|
|
3226
|
+
}
|
|
3227
|
+
return "{".concat(pf.field, ",").concat(pf.operator, ",").concat(valueString, "}");
|
|
3220
3228
|
}
|
|
3221
3229
|
return '';
|
|
3222
3230
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/price/PriceCell.tsx"],"names":[],"mappings":"AAAA,OAAkB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEpE,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"PriceCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/price/PriceCell.tsx"],"names":[],"mappings":"AAAA,OAAkB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEpE,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAKxE,MAAM,CAAC,OAAO,WAAW,CAAC,SAAS,MAAM,GAAG,GAAG,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,qBA4CnE;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,aAAa,EACb,KAAK,EAAE,SAAS,EAChB,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,kBAAkB,EAAE,eAAe,CAAC,GAAG,cAAc,GAAG;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAA;CAAE,qBAiCvG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/grid",
|
|
3
|
-
"version": "26.4.0-
|
|
3
|
+
"version": "26.4.0-rc.0",
|
|
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": "26.4.0-
|
|
16
|
-
"@crystaldesign/rtf-editor": "26.4.0-
|
|
17
|
-
"@crystaldesign/searchfield": "26.4.0-
|
|
15
|
+
"@crystaldesign/content-box": "26.4.0-rc.0",
|
|
16
|
+
"@crystaldesign/rtf-editor": "26.4.0-rc.0",
|
|
17
|
+
"@crystaldesign/searchfield": "26.4.0-rc.0",
|
|
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": "fc3f9909f2275c31d05389be7730f77162a21361"
|
|
44
44
|
}
|