@mcurros2/microm 1.1.130-0 → 1.1.132-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 +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3564,6 +3564,8 @@ var $8SZSR = parcelRequire("8SZSR");
|
|
|
3564
3564
|
var $lwxCY = parcelRequire("lwxCY");
|
|
3565
3565
|
|
|
3566
3566
|
var $4Hta3 = parcelRequire("4Hta3");
|
|
3567
|
+
|
|
3568
|
+
var $gmrAB = parcelRequire("gmrAB");
|
|
3567
3569
|
$parcel$exportWildcard(module.exports, $d50o9);
|
|
3568
3570
|
$parcel$exportWildcard(module.exports, $i6yJ4);
|
|
3569
3571
|
$parcel$exportWildcard(module.exports, $gLcPf);
|
|
@@ -3634,6 +3636,7 @@ $parcel$exportWildcard(module.exports, $8tnwL);
|
|
|
3634
3636
|
$parcel$exportWildcard(module.exports, $8SZSR);
|
|
3635
3637
|
$parcel$exportWildcard(module.exports, $lwxCY);
|
|
3636
3638
|
$parcel$exportWildcard(module.exports, $4Hta3);
|
|
3639
|
+
$parcel$exportWildcard(module.exports, $gmrAB);
|
|
3637
3640
|
|
|
3638
3641
|
});
|
|
3639
3642
|
parcelRegister("d50o9", function(module, exports) {
|
|
@@ -6282,7 +6285,7 @@ $parcel$export(module.exports, "formatTime", function () { return $571203341efec
|
|
|
6282
6285
|
$parcel$export(module.exports, "formatNumber", function () { return $571203341efec15f$export$f5dd818bff069720; });
|
|
6283
6286
|
$parcel$export(module.exports, "convertDateToNative", function () { return $571203341efec15f$export$5dd6539d90141996; });
|
|
6284
6287
|
$parcel$export(module.exports, "formatSQLValue", function () { return $571203341efec15f$export$62c5cbf81b90da20; });
|
|
6285
|
-
$parcel$export(module.exports, "
|
|
6288
|
+
$parcel$export(module.exports, "convertToNativeValue", function () { return $571203341efec15f$export$e41af95719431a64; });
|
|
6286
6289
|
function $571203341efec15f$export$3ae94a2503e890a1(value, locale, dateOptions) {
|
|
6287
6290
|
const date = new Date(String(value));
|
|
6288
6291
|
return new Intl.DateTimeFormat(locale, dateOptions).format(date);
|
|
@@ -6370,7 +6373,7 @@ function $571203341efec15f$export$62c5cbf81b90da20(value, sqlType, locale) {
|
|
|
6370
6373
|
return String(value);
|
|
6371
6374
|
}
|
|
6372
6375
|
}
|
|
6373
|
-
function $571203341efec15f$export$
|
|
6376
|
+
function $571203341efec15f$export$e41af95719431a64(value, sqlType) {
|
|
6374
6377
|
if (typeof value !== "string") return value;
|
|
6375
6378
|
switch(sqlType){
|
|
6376
6379
|
case "char":
|
|
@@ -6421,7 +6424,7 @@ function $74f29643e1a74520$export$6f2f7bc6c278ece1(props) {
|
|
|
6421
6424
|
const formatValue = (0, $b4te3$react.useCallback)((value, sqlType)=>(0, $7ttm6.formatSQLValue)(value, sqlType, locale), [
|
|
6422
6425
|
locale
|
|
6423
6426
|
]);
|
|
6424
|
-
const
|
|
6427
|
+
const getNativeValue = (0, $b4te3$react.useCallback)((value, sqlType)=>(0, $7ttm6.convertToNativeValue)(value, sqlType), []);
|
|
6425
6428
|
const formatColumnValue = (0, $b4te3$react.useCallback)((col)=>{
|
|
6426
6429
|
const result = (0, $7ttm6.formatSQLValue)(col.value, col.type, locale);
|
|
6427
6430
|
return result === "null" ? "" : result;
|
|
@@ -6432,7 +6435,7 @@ function $74f29643e1a74520$export$6f2f7bc6c278ece1(props) {
|
|
|
6432
6435
|
locale: locale,
|
|
6433
6436
|
setLocale: setLocale,
|
|
6434
6437
|
formatValue: formatValue,
|
|
6435
|
-
|
|
6438
|
+
getNativeValue: getNativeValue,
|
|
6436
6439
|
formatColumnValue: formatColumnValue
|
|
6437
6440
|
};
|
|
6438
6441
|
}
|
|
@@ -32623,7 +32626,8 @@ function $7a59e94d4829360b$export$98063caad9d01a0(props) {
|
|
|
32623
32626
|
if (sqlType) {
|
|
32624
32627
|
if (value === null) value = "";
|
|
32625
32628
|
else {
|
|
32626
|
-
const
|
|
32629
|
+
const nativeValue = localeFormat.getNativeValue(value, sqlType);
|
|
32630
|
+
const rawValue = localeFormat.formatValue(nativeValue, sqlType);
|
|
32627
32631
|
value = rawValue === "null" ? "" : rawValue;
|
|
32628
32632
|
}
|
|
32629
32633
|
}
|
|
@@ -36489,7 +36493,7 @@ function $40c00e2ecacb5ae0$export$2d2c672e82add59e(props, stateProps) {
|
|
|
36489
36493
|
viewResult
|
|
36490
36494
|
]);
|
|
36491
36495
|
const formatValue = (0, $b4te3$react.useCallback)((value, sqlType)=>{
|
|
36492
|
-
const rawValue = localeFormat.formatValue(localeFormat.
|
|
36496
|
+
const rawValue = localeFormat.formatValue(localeFormat.getNativeValue(value, sqlType), sqlType);
|
|
36493
36497
|
return rawValue === "null" ? "" : rawValue;
|
|
36494
36498
|
}, [
|
|
36495
36499
|
localeFormat
|
|
@@ -48050,6 +48054,29 @@ function $36c1cc5fa1af387c$export$7dfb35d99dc3ea4e(maxWidthRem, paddingRem) {
|
|
|
48050
48054
|
|
|
48051
48055
|
});
|
|
48052
48056
|
|
|
48057
|
+
parcelRegister("gmrAB", function(module, exports) {
|
|
48058
|
+
|
|
48059
|
+
$parcel$export(module.exports, "useViewportHeightVariable", function () { return $be941a1a67d7c186$export$4f9faaf71cf28cdf; });
|
|
48060
|
+
|
|
48061
|
+
function $be941a1a67d7c186$export$4f9faaf71cf28cdf() {
|
|
48062
|
+
(0, $b4te3$react.useEffect)(()=>{
|
|
48063
|
+
const setDynVH = ()=>{
|
|
48064
|
+
// window.innerHeight excludes address bar
|
|
48065
|
+
const dynVH = window.innerHeight * 0.01;
|
|
48066
|
+
document.documentElement.style.setProperty("--dynVH", `${dynVH}px`);
|
|
48067
|
+
};
|
|
48068
|
+
setDynVH();
|
|
48069
|
+
window.addEventListener("resize", setDynVH);
|
|
48070
|
+
window.addEventListener("orientationchange", setDynVH);
|
|
48071
|
+
return ()=>{
|
|
48072
|
+
window.removeEventListener("resize", setDynVH);
|
|
48073
|
+
window.removeEventListener("orientationchange", setDynVH);
|
|
48074
|
+
};
|
|
48075
|
+
}, []);
|
|
48076
|
+
}
|
|
48077
|
+
|
|
48078
|
+
});
|
|
48079
|
+
|
|
48053
48080
|
|
|
48054
48081
|
|
|
48055
48082
|
parcelRegister("8xtCs", function(module, exports) {
|