mongoDB - bigint support WIP

This commit is contained in:
SPRINX0\prochazka
2025-05-05 17:16:46 +02:00
parent ce7559087e
commit b9d4197b5c
5 changed files with 24 additions and 7 deletions

View File

@@ -81,7 +81,7 @@ export function parseCellValue(value, editorTypes?: DataEditorTypesBehaviour) {
if (editorTypes?.parseNumber) {
if (/^-?[0-9]+(?:\.[0-9]+)?$/.test(value)) {
return parseFloat(value);
return parseNumberSafe(value);
}
}
@@ -215,6 +215,12 @@ export function stringifyCellValue(
gridStyle: 'valueCellStyle',
};
}
if (typeof value === 'bigint') {
return {
value: value.toString(),
gridStyle: 'valueCellStyle',
};
}
if (editorTypes?.parseDateAsDollar) {
if (value?.$date) {