@mcurros2/microm 1.1.129-0 → 1.1.131-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 +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3012,12 +3012,12 @@ function $5be4b35862a9dc4d$export$a04f965200623e61(data, notExportableColumns, s
|
|
|
3012
3012
|
column.numFmt = "0";
|
|
3013
3013
|
break;
|
|
3014
3014
|
case "date":
|
|
3015
|
-
column.numFmt = "
|
|
3015
|
+
column.numFmt = "yyyy-mm-dd";
|
|
3016
3016
|
break;
|
|
3017
3017
|
case "datetime":
|
|
3018
3018
|
case "datetime2":
|
|
3019
3019
|
case "smalldatetime":
|
|
3020
|
-
column.numFmt = "
|
|
3020
|
+
column.numFmt = "yyyy-mm-dd hh:mm:ss";
|
|
3021
3021
|
break;
|
|
3022
3022
|
case "time":
|
|
3023
3023
|
column.numFmt = "hh:mm:ss";
|
|
@@ -6282,7 +6282,7 @@ $parcel$export(module.exports, "formatTime", function () { return $571203341efec
|
|
|
6282
6282
|
$parcel$export(module.exports, "formatNumber", function () { return $571203341efec15f$export$f5dd818bff069720; });
|
|
6283
6283
|
$parcel$export(module.exports, "convertDateToNative", function () { return $571203341efec15f$export$5dd6539d90141996; });
|
|
6284
6284
|
$parcel$export(module.exports, "formatSQLValue", function () { return $571203341efec15f$export$62c5cbf81b90da20; });
|
|
6285
|
-
$parcel$export(module.exports, "
|
|
6285
|
+
$parcel$export(module.exports, "convertToNativeValue", function () { return $571203341efec15f$export$e41af95719431a64; });
|
|
6286
6286
|
function $571203341efec15f$export$3ae94a2503e890a1(value, locale, dateOptions) {
|
|
6287
6287
|
const date = new Date(String(value));
|
|
6288
6288
|
return new Intl.DateTimeFormat(locale, dateOptions).format(date);
|
|
@@ -6370,7 +6370,7 @@ function $571203341efec15f$export$62c5cbf81b90da20(value, sqlType, locale) {
|
|
|
6370
6370
|
return String(value);
|
|
6371
6371
|
}
|
|
6372
6372
|
}
|
|
6373
|
-
function $571203341efec15f$export$
|
|
6373
|
+
function $571203341efec15f$export$e41af95719431a64(value, sqlType) {
|
|
6374
6374
|
if (typeof value !== "string") return value;
|
|
6375
6375
|
switch(sqlType){
|
|
6376
6376
|
case "char":
|
|
@@ -6421,7 +6421,7 @@ function $74f29643e1a74520$export$6f2f7bc6c278ece1(props) {
|
|
|
6421
6421
|
const formatValue = (0, $b4te3$react.useCallback)((value, sqlType)=>(0, $7ttm6.formatSQLValue)(value, sqlType, locale), [
|
|
6422
6422
|
locale
|
|
6423
6423
|
]);
|
|
6424
|
-
const
|
|
6424
|
+
const getNativeValue = (0, $b4te3$react.useCallback)((value, sqlType)=>(0, $7ttm6.convertToNativeValue)(value, sqlType), []);
|
|
6425
6425
|
const formatColumnValue = (0, $b4te3$react.useCallback)((col)=>{
|
|
6426
6426
|
const result = (0, $7ttm6.formatSQLValue)(col.value, col.type, locale);
|
|
6427
6427
|
return result === "null" ? "" : result;
|
|
@@ -6432,7 +6432,7 @@ function $74f29643e1a74520$export$6f2f7bc6c278ece1(props) {
|
|
|
6432
6432
|
locale: locale,
|
|
6433
6433
|
setLocale: setLocale,
|
|
6434
6434
|
formatValue: formatValue,
|
|
6435
|
-
|
|
6435
|
+
getNativeValue: getNativeValue,
|
|
6436
6436
|
formatColumnValue: formatColumnValue
|
|
6437
6437
|
};
|
|
6438
6438
|
}
|
|
@@ -32623,7 +32623,8 @@ function $7a59e94d4829360b$export$98063caad9d01a0(props) {
|
|
|
32623
32623
|
if (sqlType) {
|
|
32624
32624
|
if (value === null) value = "";
|
|
32625
32625
|
else {
|
|
32626
|
-
const
|
|
32626
|
+
const nativeValue = localeFormat.getNativeValue(value, sqlType);
|
|
32627
|
+
const rawValue = localeFormat.formatValue(nativeValue, sqlType);
|
|
32627
32628
|
value = rawValue === "null" ? "" : rawValue;
|
|
32628
32629
|
}
|
|
32629
32630
|
}
|
|
@@ -36489,7 +36490,7 @@ function $40c00e2ecacb5ae0$export$2d2c672e82add59e(props, stateProps) {
|
|
|
36489
36490
|
viewResult
|
|
36490
36491
|
]);
|
|
36491
36492
|
const formatValue = (0, $b4te3$react.useCallback)((value, sqlType)=>{
|
|
36492
|
-
const rawValue = localeFormat.formatValue(localeFormat.
|
|
36493
|
+
const rawValue = localeFormat.formatValue(localeFormat.getNativeValue(value, sqlType), sqlType);
|
|
36493
36494
|
return rawValue === "null" ? "" : rawValue;
|
|
36494
36495
|
}, [
|
|
36495
36496
|
localeFormat
|