@mcurros2/microm 1.1.138-0 → 1.1.139-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/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6430,10 +6430,18 @@ const $74f29643e1a74520$export$da03655abff5c59b = {
|
|
|
6430
6430
|
function $74f29643e1a74520$export$6f2f7bc6c278ece1(props) {
|
|
6431
6431
|
const { initialLocale: initialLocale } = (0, $b4te3$mantinecore.useComponentDefaultProps)("useLocaleFormat", $74f29643e1a74520$export$da03655abff5c59b, props);
|
|
6432
6432
|
const [locale, setLocale] = (0, $b4te3$react.useState)(initialLocale);
|
|
6433
|
-
const formatValue = (0, $b4te3$react.useCallback)((value, sqlType)
|
|
6433
|
+
const formatValue = (0, $b4te3$react.useCallback)(function(value, sqlType) {
|
|
6434
|
+
const result = (0, $7ttm6.formatSQLValue)(value, sqlType, locale);
|
|
6435
|
+
return result;
|
|
6436
|
+
}, [
|
|
6434
6437
|
locale
|
|
6435
6438
|
]);
|
|
6436
|
-
const getNativeValue = (0, $b4te3$react.useCallback)((value, sqlType)
|
|
6439
|
+
const getNativeValue = (0, $b4te3$react.useCallback)(function(value, sqlType) {
|
|
6440
|
+
const result = (0, $7ttm6.convertToNativeValue)(value, sqlType);
|
|
6441
|
+
return result;
|
|
6442
|
+
}, [
|
|
6443
|
+
locale
|
|
6444
|
+
]); // locale is here so the values captured here are in sync with formatValue
|
|
6437
6445
|
const formatColumnValue = (0, $b4te3$react.useCallback)((col)=>{
|
|
6438
6446
|
const result = (0, $7ttm6.formatSQLValue)(col.value, col.type, locale);
|
|
6439
6447
|
return result === "null" ? "" : result;
|