@ktnpm_devops/react-component 0.12.1 → 0.13.1
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/README.md +39 -0
- package/dist/constants.d.ts +26 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/geo/GeoMapCard/GeoMapCard.d.ts +7 -0
- package/dist/geo/GeoMapCard/GeoMapCard.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/GeoMapCard.types.d.ts +91 -0
- package/dist/geo/GeoMapCard/GeoMapCard.types.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/MapLegend.d.ts +12 -0
- package/dist/geo/GeoMapCard/MapLegend.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/MapViewport.d.ts +17 -0
- package/dist/geo/GeoMapCard/MapViewport.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/PointListing.d.ts +14 -0
- package/dist/geo/GeoMapCard/PointListing.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/buildMarkerStyle.d.ts +47 -0
- package/dist/geo/GeoMapCard/buildMarkerStyle.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/buildMarkerStyle.test.d.ts +2 -0
- package/dist/geo/GeoMapCard/buildMarkerStyle.test.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/index.d.ts +3 -0
- package/dist/geo/GeoMapCard/index.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/normalizePoints.d.ts +26 -0
- package/dist/geo/GeoMapCard/normalizePoints.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/normalizePoints.test.d.ts +2 -0
- package/dist/geo/GeoMapCard/normalizePoints.test.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/warnMissingLeafletStylesheet.d.ts +13 -0
- package/dist/geo/GeoMapCard/warnMissingLeafletStylesheet.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/warnMissingLeafletStylesheet.test.d.ts +2 -0
- package/dist/geo/GeoMapCard/warnMissingLeafletStylesheet.test.d.ts.map +1 -0
- package/dist/geo/index.d.ts +3 -0
- package/dist/geo/index.d.ts.map +1 -0
- package/dist/hooks/useThemeMode.d.ts +8 -0
- package/dist/hooks/useThemeMode.d.ts.map +1 -0
- package/dist/index.cjs +52 -48
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +52 -48
- package/dist/index.js.map +1 -1
- package/dist/index10.cjs +45 -14
- package/dist/index10.cjs.map +1 -1
- package/dist/index10.js +46 -15
- package/dist/index10.js.map +1 -1
- package/dist/index100.cjs +35 -2
- package/dist/index100.cjs.map +1 -1
- package/dist/index100.js +36 -3
- package/dist/index100.js.map +1 -1
- package/dist/index101.cjs +52 -10
- package/dist/index101.cjs.map +1 -1
- package/dist/index101.js +52 -10
- package/dist/index101.js.map +1 -1
- package/dist/index102.cjs +134 -22
- package/dist/index102.cjs.map +1 -1
- package/dist/index102.js +133 -21
- package/dist/index102.js.map +1 -1
- package/dist/index103.cjs +42 -36
- package/dist/index103.cjs.map +1 -1
- package/dist/index103.js +42 -36
- package/dist/index103.js.map +1 -1
- package/dist/index104.cjs +35 -21
- package/dist/index104.cjs.map +1 -1
- package/dist/index104.js +34 -20
- package/dist/index104.js.map +1 -1
- package/dist/index105.cjs +43 -24
- package/dist/index105.cjs.map +1 -1
- package/dist/index105.js +42 -23
- package/dist/index105.js.map +1 -1
- package/dist/index106.cjs +27 -0
- package/dist/index106.cjs.map +1 -0
- package/dist/index106.js +27 -0
- package/dist/index106.js.map +1 -0
- package/dist/index107.cjs +22 -0
- package/dist/index107.cjs.map +1 -0
- package/dist/index107.js +22 -0
- package/dist/index107.js.map +1 -0
- package/dist/index108.cjs +16 -0
- package/dist/index108.cjs.map +1 -0
- package/dist/index108.js +16 -0
- package/dist/index108.js.map +1 -0
- package/dist/index109.cjs +63 -0
- package/dist/index109.cjs.map +1 -0
- package/dist/index109.js +63 -0
- package/dist/index109.js.map +1 -0
- package/dist/index11.cjs +14 -15
- package/dist/index11.cjs.map +1 -1
- package/dist/index11.js +15 -16
- package/dist/index11.js.map +1 -1
- package/dist/index110.cjs +36 -0
- package/dist/index110.cjs.map +1 -0
- package/dist/index110.js +36 -0
- package/dist/index110.js.map +1 -0
- package/dist/index111.cjs +18 -0
- package/dist/index111.cjs.map +1 -0
- package/dist/index111.js +18 -0
- package/dist/index111.js.map +1 -0
- package/dist/index112.cjs +27 -0
- package/dist/index112.cjs.map +1 -0
- package/dist/index112.js +27 -0
- package/dist/index112.js.map +1 -0
- package/dist/index113.cjs +21 -0
- package/dist/index113.cjs.map +1 -0
- package/dist/index113.js +21 -0
- package/dist/index113.js.map +1 -0
- package/dist/index12.cjs +15 -4
- package/dist/index12.cjs.map +1 -1
- package/dist/index12.js +15 -4
- package/dist/index12.js.map +1 -1
- package/dist/index13.cjs +4 -16
- package/dist/index13.cjs.map +1 -1
- package/dist/index13.js +4 -16
- package/dist/index13.js.map +1 -1
- package/dist/index14.cjs +16 -10
- package/dist/index14.cjs.map +1 -1
- package/dist/index14.js +16 -10
- package/dist/index14.js.map +1 -1
- package/dist/index15.cjs +10 -100
- package/dist/index15.cjs.map +1 -1
- package/dist/index15.js +11 -101
- package/dist/index15.js.map +1 -1
- package/dist/index16.cjs +100 -20
- package/dist/index16.cjs.map +1 -1
- package/dist/index16.js +101 -21
- package/dist/index16.js.map +1 -1
- package/dist/index17.cjs +20 -54
- package/dist/index17.cjs.map +1 -1
- package/dist/index17.js +20 -54
- package/dist/index17.js.map +1 -1
- package/dist/index18.cjs +52 -16
- package/dist/index18.cjs.map +1 -1
- package/dist/index18.js +54 -18
- package/dist/index18.js.map +1 -1
- package/dist/index19.cjs +16 -24
- package/dist/index19.cjs.map +1 -1
- package/dist/index19.js +17 -25
- package/dist/index19.js.map +1 -1
- package/dist/index20.cjs +22 -39
- package/dist/index20.cjs.map +1 -1
- package/dist/index20.js +23 -40
- package/dist/index20.js.map +1 -1
- package/dist/index21.cjs +38 -85
- package/dist/index21.cjs.map +1 -1
- package/dist/index21.js +40 -87
- package/dist/index21.js.map +1 -1
- package/dist/index22.cjs +84 -152
- package/dist/index22.cjs.map +1 -1
- package/dist/index22.js +87 -155
- package/dist/index22.js.map +1 -1
- package/dist/index23.cjs +149 -127
- package/dist/index23.cjs.map +1 -1
- package/dist/index23.js +150 -128
- package/dist/index23.js.map +1 -1
- package/dist/index24.cjs +121 -106
- package/dist/index24.cjs.map +1 -1
- package/dist/index24.js +122 -107
- package/dist/index24.js.map +1 -1
- package/dist/index25.cjs +121 -17
- package/dist/index25.cjs.map +1 -1
- package/dist/index25.js +121 -17
- package/dist/index25.js.map +1 -1
- package/dist/index26.cjs +16 -163
- package/dist/index26.cjs.map +1 -1
- package/dist/index26.js +16 -163
- package/dist/index26.js.map +1 -1
- package/dist/index27.cjs +163 -21
- package/dist/index27.cjs.map +1 -1
- package/dist/index27.js +164 -22
- package/dist/index27.js.map +1 -1
- package/dist/index28.cjs +20 -129
- package/dist/index28.cjs.map +1 -1
- package/dist/index28.js +21 -130
- package/dist/index28.js.map +1 -1
- package/dist/index29.cjs +129 -75
- package/dist/index29.cjs.map +1 -1
- package/dist/index29.js +131 -77
- package/dist/index29.js.map +1 -1
- package/dist/index30.cjs +152 -7
- package/dist/index30.cjs.map +1 -1
- package/dist/index30.js +154 -9
- package/dist/index30.js.map +1 -1
- package/dist/index31.cjs +74 -128
- package/dist/index31.cjs.map +1 -1
- package/dist/index31.js +75 -129
- package/dist/index31.js.map +1 -1
- package/dist/index32.cjs +6 -54
- package/dist/index32.cjs.map +1 -1
- package/dist/index32.js +8 -56
- package/dist/index32.js.map +1 -1
- package/dist/index33.cjs +128 -35
- package/dist/index33.cjs.map +1 -1
- package/dist/index33.js +129 -36
- package/dist/index33.js.map +1 -1
- package/dist/index34.cjs +50 -220
- package/dist/index34.cjs.map +1 -1
- package/dist/index34.js +53 -223
- package/dist/index34.js.map +1 -1
- package/dist/index35.cjs +38 -34
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +39 -35
- package/dist/index35.js.map +1 -1
- package/dist/index36.cjs +221 -105
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +224 -108
- package/dist/index36.js.map +1 -1
- package/dist/index37.cjs +30 -64
- package/dist/index37.cjs.map +1 -1
- package/dist/index37.js +31 -65
- package/dist/index37.js.map +1 -1
- package/dist/index38.cjs +105 -73
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +108 -76
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +63 -54
- package/dist/index39.cjs.map +1 -1
- package/dist/index39.js +64 -55
- package/dist/index39.js.map +1 -1
- package/dist/index40.cjs +68 -143
- package/dist/index40.cjs.map +1 -1
- package/dist/index40.js +70 -145
- package/dist/index40.js.map +1 -1
- package/dist/index41.cjs +57 -96
- package/dist/index41.cjs.map +1 -1
- package/dist/index41.js +59 -98
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +147 -66
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +149 -68
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +97 -7
- package/dist/index43.cjs.map +1 -1
- package/dist/index43.js +99 -9
- package/dist/index43.js.map +1 -1
- package/dist/index44.cjs +72 -17
- package/dist/index44.cjs.map +1 -1
- package/dist/index44.js +73 -18
- package/dist/index44.js.map +1 -1
- package/dist/index45.cjs +7 -76
- package/dist/index45.cjs.map +1 -1
- package/dist/index45.js +9 -78
- package/dist/index45.js.map +1 -1
- package/dist/index46.cjs +17 -143
- package/dist/index46.cjs.map +1 -1
- package/dist/index46.js +17 -143
- package/dist/index46.js.map +1 -1
- package/dist/index47.cjs +72 -59
- package/dist/index47.cjs.map +1 -1
- package/dist/index47.js +74 -61
- package/dist/index47.js.map +1 -1
- package/dist/index48.cjs +135 -97
- package/dist/index48.cjs.map +1 -1
- package/dist/index48.js +136 -98
- package/dist/index48.js.map +1 -1
- package/dist/index49.cjs +49 -32
- package/dist/index49.cjs.map +1 -1
- package/dist/index49.js +49 -32
- package/dist/index49.js.map +1 -1
- package/dist/index50.cjs +105 -6
- package/dist/index50.cjs.map +1 -1
- package/dist/index50.js +106 -7
- package/dist/index50.js.map +1 -1
- package/dist/index51.cjs +44 -144
- package/dist/index51.cjs.map +1 -1
- package/dist/index51.js +45 -145
- package/dist/index51.js.map +1 -1
- package/dist/index52.cjs +6 -8
- package/dist/index52.cjs.map +1 -1
- package/dist/index52.js +6 -8
- package/dist/index52.js.map +1 -1
- package/dist/index53.cjs +145 -15
- package/dist/index53.cjs.map +1 -1
- package/dist/index53.js +147 -17
- package/dist/index53.js.map +1 -1
- package/dist/index54.cjs +7 -65
- package/dist/index54.cjs.map +1 -1
- package/dist/index54.js +9 -67
- package/dist/index54.js.map +1 -1
- package/dist/index55.cjs +19 -16
- package/dist/index55.cjs.map +1 -1
- package/dist/index55.js +18 -15
- package/dist/index55.js.map +1 -1
- package/dist/index56.cjs +67 -24
- package/dist/index56.cjs.map +1 -1
- package/dist/index56.js +66 -23
- package/dist/index56.js.map +1 -1
- package/dist/index57.cjs +15 -69
- package/dist/index57.cjs.map +1 -1
- package/dist/index57.js +15 -69
- package/dist/index57.js.map +1 -1
- package/dist/index59.cjs +26 -0
- package/dist/index59.cjs.map +1 -1
- package/dist/index59.js +26 -0
- package/dist/index59.js.map +1 -1
- package/dist/index60.cjs +13 -16
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +13 -16
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +10 -22
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +11 -23
- package/dist/index61.js.map +1 -1
- package/dist/index62.cjs +13 -13
- package/dist/index62.js +13 -13
- package/dist/index63.cjs +20 -14
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +20 -14
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +34 -13
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +34 -13
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +1 -1
- package/dist/index66.cjs +2 -20
- package/dist/index66.cjs.map +1 -1
- package/dist/index66.js +3 -21
- package/dist/index66.js.map +1 -1
- package/dist/index67.cjs +5 -23
- package/dist/index67.cjs.map +1 -1
- package/dist/index67.js +6 -24
- package/dist/index67.js.map +1 -1
- package/dist/index68.cjs +19 -19
- package/dist/index68.js +20 -20
- package/dist/index69.cjs +20 -5
- package/dist/index69.cjs.map +1 -1
- package/dist/index69.js +21 -6
- package/dist/index69.js.map +1 -1
- package/dist/index7.cjs +32 -64
- package/dist/index7.cjs.map +1 -1
- package/dist/index7.js +32 -64
- package/dist/index7.js.map +1 -1
- package/dist/index70.cjs +15 -15
- package/dist/index70.js +15 -15
- package/dist/index71.cjs +13 -28
- package/dist/index71.cjs.map +1 -1
- package/dist/index71.js +14 -29
- package/dist/index71.js.map +1 -1
- package/dist/index72.cjs +2 -20
- package/dist/index72.cjs.map +1 -1
- package/dist/index72.js +2 -20
- package/dist/index72.js.map +1 -1
- package/dist/index73.cjs +30 -3
- package/dist/index73.cjs.map +1 -1
- package/dist/index73.js +30 -3
- package/dist/index73.js.map +1 -1
- package/dist/index74.cjs +36 -3
- package/dist/index74.cjs.map +1 -1
- package/dist/index74.js +36 -3
- package/dist/index74.js.map +1 -1
- package/dist/index75.cjs +34 -13
- package/dist/index75.cjs.map +1 -1
- package/dist/index75.js +35 -14
- package/dist/index75.js.map +1 -1
- package/dist/index76.cjs +22 -13
- package/dist/index76.cjs.map +1 -1
- package/dist/index76.js +23 -14
- package/dist/index76.js.map +1 -1
- package/dist/index77.cjs +3 -30
- package/dist/index77.cjs.map +1 -1
- package/dist/index77.js +3 -30
- package/dist/index77.js.map +1 -1
- package/dist/index78.cjs +16 -10
- package/dist/index78.cjs.map +1 -1
- package/dist/index78.js +16 -10
- package/dist/index78.js.map +1 -1
- package/dist/index79.cjs +10 -34
- package/dist/index79.cjs.map +1 -1
- package/dist/index79.js +11 -35
- package/dist/index79.js.map +1 -1
- package/dist/index8.cjs +58 -75
- package/dist/index8.cjs.map +1 -1
- package/dist/index8.js +58 -75
- package/dist/index8.js.map +1 -1
- package/dist/index80.cjs +64 -10
- package/dist/index80.cjs.map +1 -1
- package/dist/index80.js +65 -11
- package/dist/index80.js.map +1 -1
- package/dist/index81.cjs +16 -4
- package/dist/index81.cjs.map +1 -1
- package/dist/index81.js +17 -5
- package/dist/index81.js.map +1 -1
- package/dist/index82.cjs +52 -134
- package/dist/index82.cjs.map +1 -1
- package/dist/index82.js +51 -133
- package/dist/index82.js.map +1 -1
- package/dist/index83.cjs +50 -38
- package/dist/index83.cjs.map +1 -1
- package/dist/index83.js +50 -38
- package/dist/index83.js.map +1 -1
- package/dist/index84.cjs +16 -76
- package/dist/index84.cjs.map +1 -1
- package/dist/index84.js +16 -76
- package/dist/index84.js.map +1 -1
- package/dist/index85.cjs +20 -2
- package/dist/index85.cjs.map +1 -1
- package/dist/index85.js +20 -2
- package/dist/index85.js.map +1 -1
- package/dist/index86.cjs +77 -44
- package/dist/index86.cjs.map +1 -1
- package/dist/index86.js +78 -45
- package/dist/index86.js.map +1 -1
- package/dist/index87.cjs +2 -53
- package/dist/index87.cjs.map +1 -1
- package/dist/index87.js +3 -54
- package/dist/index87.js.map +1 -1
- package/dist/index88.cjs +15 -36
- package/dist/index88.cjs.map +1 -1
- package/dist/index88.js +16 -37
- package/dist/index88.js.map +1 -1
- package/dist/index89.cjs +26 -14
- package/dist/index89.cjs.map +1 -1
- package/dist/index89.js +26 -14
- package/dist/index89.js.map +1 -1
- package/dist/index9.cjs +81 -45
- package/dist/index9.cjs.map +1 -1
- package/dist/index9.js +81 -45
- package/dist/index9.js.map +1 -1
- package/dist/index90.cjs +22 -116
- package/dist/index90.cjs.map +1 -1
- package/dist/index90.js +21 -115
- package/dist/index90.js.map +1 -1
- package/dist/index91.cjs +116 -43
- package/dist/index91.cjs.map +1 -1
- package/dist/index91.js +115 -42
- package/dist/index91.js.map +1 -1
- package/dist/index92.cjs +35 -32
- package/dist/index92.cjs.map +1 -1
- package/dist/index92.js +35 -32
- package/dist/index92.js.map +1 -1
- package/dist/index93.cjs +26 -17
- package/dist/index93.cjs.map +1 -1
- package/dist/index93.js +27 -18
- package/dist/index93.js.map +1 -1
- package/dist/index94.cjs +9 -39
- package/dist/index94.cjs.map +1 -1
- package/dist/index94.js +8 -38
- package/dist/index94.js.map +1 -1
- package/dist/index95.cjs +21 -92
- package/dist/index95.cjs.map +1 -1
- package/dist/index95.js +20 -91
- package/dist/index95.js.map +1 -1
- package/dist/index96.cjs +47 -32
- package/dist/index96.cjs.map +1 -1
- package/dist/index96.js +47 -32
- package/dist/index96.js.map +1 -1
- package/dist/index97.cjs +25 -49
- package/dist/index97.cjs.map +1 -1
- package/dist/index97.js +25 -49
- package/dist/index97.js.map +1 -1
- package/dist/index98.cjs +39 -30
- package/dist/index98.cjs.map +1 -1
- package/dist/index98.js +38 -29
- package/dist/index98.js.map +1 -1
- package/dist/index99.cjs +92 -57
- package/dist/index99.cjs.map +1 -1
- package/dist/index99.js +91 -56
- package/dist/index99.js.map +1 -1
- package/dist/style.css +207 -0
- package/dist/types/geo.types.d.ts +45 -0
- package/dist/types/geo.types.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +16 -2
package/dist/index79.cjs
CHANGED
|
@@ -1,42 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "krc-root-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const popover = "krc-popover-IJFWK";
|
|
8
|
-
const popoverHeader = "krc-popoverHeader-mdeD8";
|
|
9
|
-
const fields = "krc-fields-h5R5w";
|
|
10
|
-
const field = "krc-field-u9yvp";
|
|
11
|
-
const error = "krc-error-jsFkv";
|
|
12
|
-
const actions = "krc-actions-prbFX";
|
|
13
|
-
const btnGhost = "krc-btnGhost-x8cbA";
|
|
14
|
-
const btnPrimary = "krc-btnPrimary-T0w2q";
|
|
3
|
+
const root = "krc-root-AouLD";
|
|
4
|
+
const header = "krc-header-pNze5";
|
|
5
|
+
const content = "krc-content-egG2e";
|
|
6
|
+
const footer = "krc-footer-WJw5Z";
|
|
15
7
|
const styles = {
|
|
16
8
|
root,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
popover,
|
|
21
|
-
popoverHeader,
|
|
22
|
-
fields,
|
|
23
|
-
field,
|
|
24
|
-
error,
|
|
25
|
-
actions,
|
|
26
|
-
btnGhost,
|
|
27
|
-
btnPrimary
|
|
9
|
+
header,
|
|
10
|
+
content,
|
|
11
|
+
footer
|
|
28
12
|
};
|
|
29
|
-
exports.
|
|
30
|
-
exports.active = active;
|
|
31
|
-
exports.btnGhost = btnGhost;
|
|
32
|
-
exports.btnPrimary = btnPrimary;
|
|
33
|
-
exports.chip = chip;
|
|
13
|
+
exports.content = content;
|
|
34
14
|
exports.default = styles;
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
37
|
-
exports.fields = fields;
|
|
38
|
-
exports.popover = popover;
|
|
39
|
-
exports.popoverHeader = popoverHeader;
|
|
15
|
+
exports.footer = footer;
|
|
16
|
+
exports.header = header;
|
|
40
17
|
exports.root = root;
|
|
41
|
-
exports.summary = summary;
|
|
42
18
|
//# sourceMappingURL=index79.cjs.map
|
package/dist/index79.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index79.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index79.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
package/dist/index79.js
CHANGED
|
@@ -1,42 +1,18 @@
|
|
|
1
|
-
const root = "krc-root-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const popover = "krc-popover-IJFWK";
|
|
6
|
-
const popoverHeader = "krc-popoverHeader-mdeD8";
|
|
7
|
-
const fields = "krc-fields-h5R5w";
|
|
8
|
-
const field = "krc-field-u9yvp";
|
|
9
|
-
const error = "krc-error-jsFkv";
|
|
10
|
-
const actions = "krc-actions-prbFX";
|
|
11
|
-
const btnGhost = "krc-btnGhost-x8cbA";
|
|
12
|
-
const btnPrimary = "krc-btnPrimary-T0w2q";
|
|
1
|
+
const root = "krc-root-AouLD";
|
|
2
|
+
const header = "krc-header-pNze5";
|
|
3
|
+
const content = "krc-content-egG2e";
|
|
4
|
+
const footer = "krc-footer-WJw5Z";
|
|
13
5
|
const styles = {
|
|
14
6
|
root,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
popover,
|
|
19
|
-
popoverHeader,
|
|
20
|
-
fields,
|
|
21
|
-
field,
|
|
22
|
-
error,
|
|
23
|
-
actions,
|
|
24
|
-
btnGhost,
|
|
25
|
-
btnPrimary
|
|
7
|
+
header,
|
|
8
|
+
content,
|
|
9
|
+
footer
|
|
26
10
|
};
|
|
27
11
|
export {
|
|
28
|
-
|
|
29
|
-
active,
|
|
30
|
-
btnGhost,
|
|
31
|
-
btnPrimary,
|
|
32
|
-
chip,
|
|
12
|
+
content,
|
|
33
13
|
styles as default,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
popover,
|
|
38
|
-
popoverHeader,
|
|
39
|
-
root,
|
|
40
|
-
summary
|
|
14
|
+
footer,
|
|
15
|
+
header,
|
|
16
|
+
root
|
|
41
17
|
};
|
|
42
18
|
//# sourceMappingURL=index79.js.map
|
package/dist/index79.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index79.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index79.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
package/dist/index8.cjs
CHANGED
|
@@ -1,85 +1,68 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return normalized || "export";
|
|
3
|
+
const truncateWithEllipsis = (value, maxLength = 36) => {
|
|
4
|
+
if (value.length <= maxLength) return value;
|
|
5
|
+
if (maxLength <= 3) return value.slice(0, maxLength);
|
|
6
|
+
return `${value.slice(0, maxLength - 3)}...`;
|
|
8
7
|
};
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
link.href = url;
|
|
22
|
-
link.download = filename;
|
|
23
|
-
document.body.appendChild(link);
|
|
24
|
-
link.click();
|
|
25
|
-
document.body.removeChild(link);
|
|
26
|
-
URL.revokeObjectURL(url);
|
|
27
|
-
};
|
|
28
|
-
const exportTableToCsv = (table, filename) => {
|
|
29
|
-
if (table.length === 0) return;
|
|
30
|
-
const csv = buildCsv(table);
|
|
31
|
-
const blob = new Blob([csv], { type: "text/csv;charset=utf-8;" });
|
|
32
|
-
const finalName = filename.endsWith(".csv") ? filename : `${filename}.csv`;
|
|
33
|
-
triggerDownload(blob, finalName);
|
|
8
|
+
const formatNumber = (value, options) => Number.isFinite(value) ? value.toLocaleString(void 0, options) : "0";
|
|
9
|
+
const formatBytes = (value) => {
|
|
10
|
+
if (!Number.isFinite(value) || value === 0) return "0 B";
|
|
11
|
+
const units = ["B", "KB", "MB", "GB", "TB", "PB"];
|
|
12
|
+
let index = 0;
|
|
13
|
+
let current = Math.abs(value);
|
|
14
|
+
while (current >= 1024 && index < units.length - 1) {
|
|
15
|
+
current /= 1024;
|
|
16
|
+
index += 1;
|
|
17
|
+
}
|
|
18
|
+
const formatted = current.toFixed(current >= 10 || index === 0 ? 0 : 1);
|
|
19
|
+
return `${value < 0 ? "-" : ""}${formatted} ${units[index]}`;
|
|
34
20
|
};
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
21
|
+
const DATETIME_FORMATTERS = /* @__PURE__ */ new Map();
|
|
22
|
+
const getDateTimeFormatter = (timeZone, withSeconds) => {
|
|
23
|
+
const key = `${timeZone}-${withSeconds ? "s" : "n"}`;
|
|
24
|
+
const cached = DATETIME_FORMATTERS.get(key);
|
|
25
|
+
if (cached) return cached;
|
|
26
|
+
const formatter = new Intl.DateTimeFormat(void 0, {
|
|
27
|
+
year: "numeric",
|
|
28
|
+
month: "2-digit",
|
|
29
|
+
day: "2-digit",
|
|
30
|
+
hour: "2-digit",
|
|
31
|
+
minute: "2-digit",
|
|
32
|
+
second: withSeconds ? "2-digit" : void 0,
|
|
33
|
+
hour12: false,
|
|
34
|
+
timeZone
|
|
35
|
+
});
|
|
36
|
+
DATETIME_FORMATTERS.set(key, formatter);
|
|
37
|
+
return formatter;
|
|
43
38
|
};
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
const
|
|
50
|
-
|
|
39
|
+
const formatDataTimestamp = (value, options = {}) => {
|
|
40
|
+
const { fallback = "Unknown", withSeconds = false, timeZone = "UTC", showTimeZoneLabel = false } = options;
|
|
41
|
+
if (!value) return fallback;
|
|
42
|
+
const date = new Date(value);
|
|
43
|
+
if (Number.isNaN(date.getTime())) return typeof value === "string" ? value : fallback;
|
|
44
|
+
const formatter = getDateTimeFormatter(timeZone, withSeconds);
|
|
45
|
+
const formatted = formatter.format(date);
|
|
46
|
+
return showTimeZoneLabel ? `${formatted} ${timeZone}` : formatted;
|
|
51
47
|
};
|
|
52
|
-
const
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
const tableHtml = buildTableHtml(table);
|
|
56
|
-
win.document.write("<!DOCTYPE html>");
|
|
57
|
-
win.document.write(`<html><head><title>${title}</title>`);
|
|
58
|
-
win.document.write(
|
|
59
|
-
"<style>body{font-family:Arial,Helvetica,sans-serif;padding:24px;color:#1f2937;}h1{font-size:20px;margin-bottom:16px;}img{max-width:100%;height:auto;margin-bottom:16px;border:1px solid #e5e7eb;border-radius:12px;}table{border-collapse:collapse;width:100%;}th,td{border:1px solid #d1d5db;padding:8px;text-align:left;font-size:12px;}th{background:#f3f4f6;text-transform:uppercase;letter-spacing:0.05em;font-weight:600;}</style>"
|
|
60
|
-
);
|
|
61
|
-
win.document.write("</head><body>");
|
|
62
|
-
win.document.write(`<h1>${title}</h1>`);
|
|
63
|
-
win.document.write(`<img src="${chartDataUrl}" alt="${title}" />`);
|
|
64
|
-
win.document.write(tableHtml);
|
|
65
|
-
win.document.write("</body></html>");
|
|
66
|
-
win.document.close();
|
|
67
|
-
win.focus();
|
|
68
|
-
setTimeout(() => win.print(), 300);
|
|
48
|
+
const formatLocalISOString = (date) => {
|
|
49
|
+
const pad = (n) => `${n}`.padStart(2, "0");
|
|
50
|
+
return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}T${pad(date.getHours())}:${pad(date.getMinutes())}:${pad(date.getSeconds())}`;
|
|
69
51
|
};
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
const suffixSanitized = sanitizeFilename(suffix);
|
|
74
|
-
return `${base}-${suffixSanitized}`;
|
|
52
|
+
const generateUUID = () => {
|
|
53
|
+
if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
|
|
54
|
+
return crypto.randomUUID();
|
|
75
55
|
}
|
|
76
|
-
return
|
|
56
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
|
|
57
|
+
const r = Math.random() * 16 | 0;
|
|
58
|
+
const v = c === "x" ? r : r & 3 | 8;
|
|
59
|
+
return v.toString(16);
|
|
60
|
+
});
|
|
77
61
|
};
|
|
78
|
-
exports.
|
|
79
|
-
exports.
|
|
80
|
-
exports.
|
|
81
|
-
exports.
|
|
82
|
-
exports.
|
|
83
|
-
exports.
|
|
84
|
-
exports.toStringTable = toStringTable;
|
|
62
|
+
exports.formatBytes = formatBytes;
|
|
63
|
+
exports.formatDataTimestamp = formatDataTimestamp;
|
|
64
|
+
exports.formatLocalISOString = formatLocalISOString;
|
|
65
|
+
exports.formatNumber = formatNumber;
|
|
66
|
+
exports.generateUUID = generateUUID;
|
|
67
|
+
exports.truncateWithEllipsis = truncateWithEllipsis;
|
|
85
68
|
//# sourceMappingURL=index8.cjs.map
|
package/dist/index8.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index8.cjs","sources":["../src/utils/
|
|
1
|
+
{"version":3,"file":"index8.cjs","sources":["../src/utils/format.ts"],"sourcesContent":["export const truncateWithEllipsis = (value: string, maxLength = 36) => {\n if (value.length <= maxLength) return value;\n if (maxLength <= 3) return value.slice(0, maxLength);\n return `${value.slice(0, maxLength - 3)}...`;\n};\n\nexport const formatNumber = (value: number, options?: Intl.NumberFormatOptions) =>\n Number.isFinite(value) ? value.toLocaleString(undefined, options) : '0';\n\nexport const formatBytes = (value: number): string => {\n if (!Number.isFinite(value) || value === 0) return '0 B';\n const units = ['B', 'KB', 'MB', 'GB', 'TB', 'PB'];\n let index = 0;\n let current = Math.abs(value);\n while (current >= 1024 && index < units.length - 1) {\n current /= 1024;\n index += 1;\n }\n const formatted = current.toFixed(current >= 10 || index === 0 ? 0 : 1);\n return `${value < 0 ? '-' : ''}${formatted} ${units[index]}`;\n};\n\ninterface FormatDataTimestampOptions {\n fallback?: string;\n withSeconds?: boolean;\n timeZone?: string;\n showTimeZoneLabel?: boolean;\n}\n\nconst DATETIME_FORMATTERS = new Map<string, Intl.DateTimeFormat>();\n\nconst getDateTimeFormatter = (timeZone: string, withSeconds: boolean) => {\n const key = `${timeZone}-${withSeconds ? 's' : 'n'}`;\n const cached = DATETIME_FORMATTERS.get(key);\n if (cached) return cached;\n const formatter = new Intl.DateTimeFormat(undefined, {\n year: 'numeric',\n month: '2-digit',\n day: '2-digit',\n hour: '2-digit',\n minute: '2-digit',\n second: withSeconds ? '2-digit' : undefined,\n hour12: false,\n timeZone,\n });\n DATETIME_FORMATTERS.set(key, formatter);\n return formatter;\n};\n\nexport const formatDataTimestamp = (\n value: string | null | undefined,\n options: FormatDataTimestampOptions = {},\n): string => {\n const { fallback = 'Unknown', withSeconds = false, timeZone = 'UTC', showTimeZoneLabel = false } =\n options;\n if (!value) return fallback;\n const date = new Date(value);\n if (Number.isNaN(date.getTime())) return typeof value === 'string' ? value : fallback;\n const formatter = getDateTimeFormatter(timeZone, withSeconds);\n const formatted = formatter.format(date);\n return showTimeZoneLabel ? `${formatted} ${timeZone}` : formatted;\n};\n\nexport const formatLocalISOString = (date: Date): string => {\n const pad = (n: number) => `${n}`.padStart(2, '0');\n return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}T${pad(date.getHours())}:${pad(date.getMinutes())}:${pad(date.getSeconds())}`;\n};\n\nexport const generateUUID = (): string => {\n if (typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function') {\n return crypto.randomUUID();\n }\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {\n const r = (Math.random() * 16) | 0;\n const v = c === 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n};\n"],"names":[],"mappings":";;AAAO,MAAM,uBAAuB,CAAC,OAAe,YAAY,OAAO;AACrE,MAAI,MAAM,UAAU,UAAW,QAAO;AACtC,MAAI,aAAa,EAAG,QAAO,MAAM,MAAM,GAAG,SAAS;AACnD,SAAO,GAAG,MAAM,MAAM,GAAG,YAAY,CAAC,CAAC;AACzC;AAEO,MAAM,eAAe,CAAC,OAAe,YAC1C,OAAO,SAAS,KAAK,IAAI,MAAM,eAAe,QAAW,OAAO,IAAI;AAE/D,MAAM,cAAc,CAAC,UAA0B;AACpD,MAAI,CAAC,OAAO,SAAS,KAAK,KAAK,UAAU,EAAG,QAAO;AACnD,QAAM,QAAQ,CAAC,KAAK,MAAM,MAAM,MAAM,MAAM,IAAI;AAChD,MAAI,QAAQ;AACZ,MAAI,UAAU,KAAK,IAAI,KAAK;AAC5B,SAAO,WAAW,QAAQ,QAAQ,MAAM,SAAS,GAAG;AAClD,eAAW;AACX,aAAS;AAAA,EACX;AACA,QAAM,YAAY,QAAQ,QAAQ,WAAW,MAAM,UAAU,IAAI,IAAI,CAAC;AACtE,SAAO,GAAG,QAAQ,IAAI,MAAM,EAAE,GAAG,SAAS,IAAI,MAAM,KAAK,CAAC;AAC5D;AASA,MAAM,0CAA0B,IAAA;AAEhC,MAAM,uBAAuB,CAAC,UAAkB,gBAAyB;AACvE,QAAM,MAAM,GAAG,QAAQ,IAAI,cAAc,MAAM,GAAG;AAClD,QAAM,SAAS,oBAAoB,IAAI,GAAG;AAC1C,MAAI,OAAQ,QAAO;AACnB,QAAM,YAAY,IAAI,KAAK,eAAe,QAAW;AAAA,IACnD,MAAM;AAAA,IACN,OAAO;AAAA,IACP,KAAK;AAAA,IACL,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,QAAQ,cAAc,YAAY;AAAA,IAClC,QAAQ;AAAA,IACR;AAAA,EAAA,CACD;AACD,sBAAoB,IAAI,KAAK,SAAS;AACtC,SAAO;AACT;AAEO,MAAM,sBAAsB,CACjC,OACA,UAAsC,OAC3B;AACX,QAAM,EAAE,WAAW,WAAW,cAAc,OAAO,WAAW,OAAO,oBAAoB,MAAA,IACvF;AACF,MAAI,CAAC,MAAO,QAAO;AACnB,QAAM,OAAO,IAAI,KAAK,KAAK;AAC3B,MAAI,OAAO,MAAM,KAAK,QAAA,CAAS,EAAG,QAAO,OAAO,UAAU,WAAW,QAAQ;AAC7E,QAAM,YAAY,qBAAqB,UAAU,WAAW;AAC5D,QAAM,YAAY,UAAU,OAAO,IAAI;AACvC,SAAO,oBAAoB,GAAG,SAAS,IAAI,QAAQ,KAAK;AAC1D;AAEO,MAAM,uBAAuB,CAAC,SAAuB;AAC1D,QAAM,MAAM,CAAC,MAAc,GAAG,CAAC,GAAG,SAAS,GAAG,GAAG;AACjD,SAAO,GAAG,KAAK,YAAA,CAAa,IAAI,IAAI,KAAK,SAAA,IAAa,CAAC,CAAC,IAAI,IAAI,KAAK,SAAS,CAAC,IAAI,IAAI,KAAK,SAAA,CAAU,CAAC,IAAI,IAAI,KAAK,WAAA,CAAY,CAAC,IAAI,IAAI,KAAK,WAAA,CAAY,CAAC;AAC7J;AAEO,MAAM,eAAe,MAAc;AACxC,MAAI,OAAO,WAAW,eAAe,OAAO,OAAO,eAAe,YAAY;AAC5E,WAAO,OAAO,WAAA;AAAA,EAChB;AACA,SAAO,uCAAuC,QAAQ,SAAS,CAAC,MAAM;AACpE,UAAM,IAAK,KAAK,OAAA,IAAW,KAAM;AACjC,UAAM,IAAI,MAAM,MAAM,IAAK,IAAI,IAAO;AACtC,WAAO,EAAE,SAAS,EAAE;AAAA,EACtB,CAAC;AACH;;;;;;;"}
|
package/dist/index8.js
CHANGED
|
@@ -1,85 +1,68 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return normalized || "export";
|
|
1
|
+
const truncateWithEllipsis = (value, maxLength = 36) => {
|
|
2
|
+
if (value.length <= maxLength) return value;
|
|
3
|
+
if (maxLength <= 3) return value.slice(0, maxLength);
|
|
4
|
+
return `${value.slice(0, maxLength - 3)}...`;
|
|
6
5
|
};
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
link.href = url;
|
|
20
|
-
link.download = filename;
|
|
21
|
-
document.body.appendChild(link);
|
|
22
|
-
link.click();
|
|
23
|
-
document.body.removeChild(link);
|
|
24
|
-
URL.revokeObjectURL(url);
|
|
25
|
-
};
|
|
26
|
-
const exportTableToCsv = (table, filename) => {
|
|
27
|
-
if (table.length === 0) return;
|
|
28
|
-
const csv = buildCsv(table);
|
|
29
|
-
const blob = new Blob([csv], { type: "text/csv;charset=utf-8;" });
|
|
30
|
-
const finalName = filename.endsWith(".csv") ? filename : `${filename}.csv`;
|
|
31
|
-
triggerDownload(blob, finalName);
|
|
6
|
+
const formatNumber = (value, options) => Number.isFinite(value) ? value.toLocaleString(void 0, options) : "0";
|
|
7
|
+
const formatBytes = (value) => {
|
|
8
|
+
if (!Number.isFinite(value) || value === 0) return "0 B";
|
|
9
|
+
const units = ["B", "KB", "MB", "GB", "TB", "PB"];
|
|
10
|
+
let index = 0;
|
|
11
|
+
let current = Math.abs(value);
|
|
12
|
+
while (current >= 1024 && index < units.length - 1) {
|
|
13
|
+
current /= 1024;
|
|
14
|
+
index += 1;
|
|
15
|
+
}
|
|
16
|
+
const formatted = current.toFixed(current >= 10 || index === 0 ? 0 : 1);
|
|
17
|
+
return `${value < 0 ? "-" : ""}${formatted} ${units[index]}`;
|
|
32
18
|
};
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
19
|
+
const DATETIME_FORMATTERS = /* @__PURE__ */ new Map();
|
|
20
|
+
const getDateTimeFormatter = (timeZone, withSeconds) => {
|
|
21
|
+
const key = `${timeZone}-${withSeconds ? "s" : "n"}`;
|
|
22
|
+
const cached = DATETIME_FORMATTERS.get(key);
|
|
23
|
+
if (cached) return cached;
|
|
24
|
+
const formatter = new Intl.DateTimeFormat(void 0, {
|
|
25
|
+
year: "numeric",
|
|
26
|
+
month: "2-digit",
|
|
27
|
+
day: "2-digit",
|
|
28
|
+
hour: "2-digit",
|
|
29
|
+
minute: "2-digit",
|
|
30
|
+
second: withSeconds ? "2-digit" : void 0,
|
|
31
|
+
hour12: false,
|
|
32
|
+
timeZone
|
|
33
|
+
});
|
|
34
|
+
DATETIME_FORMATTERS.set(key, formatter);
|
|
35
|
+
return formatter;
|
|
41
36
|
};
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
if (
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
|
|
37
|
+
const formatDataTimestamp = (value, options = {}) => {
|
|
38
|
+
const { fallback = "Unknown", withSeconds = false, timeZone = "UTC", showTimeZoneLabel = false } = options;
|
|
39
|
+
if (!value) return fallback;
|
|
40
|
+
const date = new Date(value);
|
|
41
|
+
if (Number.isNaN(date.getTime())) return typeof value === "string" ? value : fallback;
|
|
42
|
+
const formatter = getDateTimeFormatter(timeZone, withSeconds);
|
|
43
|
+
const formatted = formatter.format(date);
|
|
44
|
+
return showTimeZoneLabel ? `${formatted} ${timeZone}` : formatted;
|
|
49
45
|
};
|
|
50
|
-
const
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
const tableHtml = buildTableHtml(table);
|
|
54
|
-
win.document.write("<!DOCTYPE html>");
|
|
55
|
-
win.document.write(`<html><head><title>${title}</title>`);
|
|
56
|
-
win.document.write(
|
|
57
|
-
"<style>body{font-family:Arial,Helvetica,sans-serif;padding:24px;color:#1f2937;}h1{font-size:20px;margin-bottom:16px;}img{max-width:100%;height:auto;margin-bottom:16px;border:1px solid #e5e7eb;border-radius:12px;}table{border-collapse:collapse;width:100%;}th,td{border:1px solid #d1d5db;padding:8px;text-align:left;font-size:12px;}th{background:#f3f4f6;text-transform:uppercase;letter-spacing:0.05em;font-weight:600;}</style>"
|
|
58
|
-
);
|
|
59
|
-
win.document.write("</head><body>");
|
|
60
|
-
win.document.write(`<h1>${title}</h1>`);
|
|
61
|
-
win.document.write(`<img src="${chartDataUrl}" alt="${title}" />`);
|
|
62
|
-
win.document.write(tableHtml);
|
|
63
|
-
win.document.write("</body></html>");
|
|
64
|
-
win.document.close();
|
|
65
|
-
win.focus();
|
|
66
|
-
setTimeout(() => win.print(), 300);
|
|
46
|
+
const formatLocalISOString = (date) => {
|
|
47
|
+
const pad = (n) => `${n}`.padStart(2, "0");
|
|
48
|
+
return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}T${pad(date.getHours())}:${pad(date.getMinutes())}:${pad(date.getSeconds())}`;
|
|
67
49
|
};
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
const suffixSanitized = sanitizeFilename(suffix);
|
|
72
|
-
return `${base}-${suffixSanitized}`;
|
|
50
|
+
const generateUUID = () => {
|
|
51
|
+
if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
|
|
52
|
+
return crypto.randomUUID();
|
|
73
53
|
}
|
|
74
|
-
return
|
|
54
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
|
|
55
|
+
const r = Math.random() * 16 | 0;
|
|
56
|
+
const v = c === "x" ? r : r & 3 | 8;
|
|
57
|
+
return v.toString(16);
|
|
58
|
+
});
|
|
75
59
|
};
|
|
76
60
|
export {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
toStringTable
|
|
61
|
+
formatBytes,
|
|
62
|
+
formatDataTimestamp,
|
|
63
|
+
formatLocalISOString,
|
|
64
|
+
formatNumber,
|
|
65
|
+
generateUUID,
|
|
66
|
+
truncateWithEllipsis
|
|
84
67
|
};
|
|
85
68
|
//# sourceMappingURL=index8.js.map
|
package/dist/index8.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index8.js","sources":["../src/utils/
|
|
1
|
+
{"version":3,"file":"index8.js","sources":["../src/utils/format.ts"],"sourcesContent":["export const truncateWithEllipsis = (value: string, maxLength = 36) => {\n if (value.length <= maxLength) return value;\n if (maxLength <= 3) return value.slice(0, maxLength);\n return `${value.slice(0, maxLength - 3)}...`;\n};\n\nexport const formatNumber = (value: number, options?: Intl.NumberFormatOptions) =>\n Number.isFinite(value) ? value.toLocaleString(undefined, options) : '0';\n\nexport const formatBytes = (value: number): string => {\n if (!Number.isFinite(value) || value === 0) return '0 B';\n const units = ['B', 'KB', 'MB', 'GB', 'TB', 'PB'];\n let index = 0;\n let current = Math.abs(value);\n while (current >= 1024 && index < units.length - 1) {\n current /= 1024;\n index += 1;\n }\n const formatted = current.toFixed(current >= 10 || index === 0 ? 0 : 1);\n return `${value < 0 ? '-' : ''}${formatted} ${units[index]}`;\n};\n\ninterface FormatDataTimestampOptions {\n fallback?: string;\n withSeconds?: boolean;\n timeZone?: string;\n showTimeZoneLabel?: boolean;\n}\n\nconst DATETIME_FORMATTERS = new Map<string, Intl.DateTimeFormat>();\n\nconst getDateTimeFormatter = (timeZone: string, withSeconds: boolean) => {\n const key = `${timeZone}-${withSeconds ? 's' : 'n'}`;\n const cached = DATETIME_FORMATTERS.get(key);\n if (cached) return cached;\n const formatter = new Intl.DateTimeFormat(undefined, {\n year: 'numeric',\n month: '2-digit',\n day: '2-digit',\n hour: '2-digit',\n minute: '2-digit',\n second: withSeconds ? '2-digit' : undefined,\n hour12: false,\n timeZone,\n });\n DATETIME_FORMATTERS.set(key, formatter);\n return formatter;\n};\n\nexport const formatDataTimestamp = (\n value: string | null | undefined,\n options: FormatDataTimestampOptions = {},\n): string => {\n const { fallback = 'Unknown', withSeconds = false, timeZone = 'UTC', showTimeZoneLabel = false } =\n options;\n if (!value) return fallback;\n const date = new Date(value);\n if (Number.isNaN(date.getTime())) return typeof value === 'string' ? value : fallback;\n const formatter = getDateTimeFormatter(timeZone, withSeconds);\n const formatted = formatter.format(date);\n return showTimeZoneLabel ? `${formatted} ${timeZone}` : formatted;\n};\n\nexport const formatLocalISOString = (date: Date): string => {\n const pad = (n: number) => `${n}`.padStart(2, '0');\n return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}T${pad(date.getHours())}:${pad(date.getMinutes())}:${pad(date.getSeconds())}`;\n};\n\nexport const generateUUID = (): string => {\n if (typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function') {\n return crypto.randomUUID();\n }\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {\n const r = (Math.random() * 16) | 0;\n const v = c === 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n};\n"],"names":[],"mappings":"AAAO,MAAM,uBAAuB,CAAC,OAAe,YAAY,OAAO;AACrE,MAAI,MAAM,UAAU,UAAW,QAAO;AACtC,MAAI,aAAa,EAAG,QAAO,MAAM,MAAM,GAAG,SAAS;AACnD,SAAO,GAAG,MAAM,MAAM,GAAG,YAAY,CAAC,CAAC;AACzC;AAEO,MAAM,eAAe,CAAC,OAAe,YAC1C,OAAO,SAAS,KAAK,IAAI,MAAM,eAAe,QAAW,OAAO,IAAI;AAE/D,MAAM,cAAc,CAAC,UAA0B;AACpD,MAAI,CAAC,OAAO,SAAS,KAAK,KAAK,UAAU,EAAG,QAAO;AACnD,QAAM,QAAQ,CAAC,KAAK,MAAM,MAAM,MAAM,MAAM,IAAI;AAChD,MAAI,QAAQ;AACZ,MAAI,UAAU,KAAK,IAAI,KAAK;AAC5B,SAAO,WAAW,QAAQ,QAAQ,MAAM,SAAS,GAAG;AAClD,eAAW;AACX,aAAS;AAAA,EACX;AACA,QAAM,YAAY,QAAQ,QAAQ,WAAW,MAAM,UAAU,IAAI,IAAI,CAAC;AACtE,SAAO,GAAG,QAAQ,IAAI,MAAM,EAAE,GAAG,SAAS,IAAI,MAAM,KAAK,CAAC;AAC5D;AASA,MAAM,0CAA0B,IAAA;AAEhC,MAAM,uBAAuB,CAAC,UAAkB,gBAAyB;AACvE,QAAM,MAAM,GAAG,QAAQ,IAAI,cAAc,MAAM,GAAG;AAClD,QAAM,SAAS,oBAAoB,IAAI,GAAG;AAC1C,MAAI,OAAQ,QAAO;AACnB,QAAM,YAAY,IAAI,KAAK,eAAe,QAAW;AAAA,IACnD,MAAM;AAAA,IACN,OAAO;AAAA,IACP,KAAK;AAAA,IACL,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,QAAQ,cAAc,YAAY;AAAA,IAClC,QAAQ;AAAA,IACR;AAAA,EAAA,CACD;AACD,sBAAoB,IAAI,KAAK,SAAS;AACtC,SAAO;AACT;AAEO,MAAM,sBAAsB,CACjC,OACA,UAAsC,OAC3B;AACX,QAAM,EAAE,WAAW,WAAW,cAAc,OAAO,WAAW,OAAO,oBAAoB,MAAA,IACvF;AACF,MAAI,CAAC,MAAO,QAAO;AACnB,QAAM,OAAO,IAAI,KAAK,KAAK;AAC3B,MAAI,OAAO,MAAM,KAAK,QAAA,CAAS,EAAG,QAAO,OAAO,UAAU,WAAW,QAAQ;AAC7E,QAAM,YAAY,qBAAqB,UAAU,WAAW;AAC5D,QAAM,YAAY,UAAU,OAAO,IAAI;AACvC,SAAO,oBAAoB,GAAG,SAAS,IAAI,QAAQ,KAAK;AAC1D;AAEO,MAAM,uBAAuB,CAAC,SAAuB;AAC1D,QAAM,MAAM,CAAC,MAAc,GAAG,CAAC,GAAG,SAAS,GAAG,GAAG;AACjD,SAAO,GAAG,KAAK,YAAA,CAAa,IAAI,IAAI,KAAK,SAAA,IAAa,CAAC,CAAC,IAAI,IAAI,KAAK,SAAS,CAAC,IAAI,IAAI,KAAK,SAAA,CAAU,CAAC,IAAI,IAAI,KAAK,WAAA,CAAY,CAAC,IAAI,IAAI,KAAK,WAAA,CAAY,CAAC;AAC7J;AAEO,MAAM,eAAe,MAAc;AACxC,MAAI,OAAO,WAAW,eAAe,OAAO,OAAO,eAAe,YAAY;AAC5E,WAAO,OAAO,WAAA;AAAA,EAChB;AACA,SAAO,uCAAuC,QAAQ,SAAS,CAAC,MAAM;AACpE,UAAM,IAAK,KAAK,OAAA,IAAW,KAAM;AACjC,UAAM,IAAI,MAAM,MAAM,IAAK,IAAI,IAAO;AACtC,WAAO,EAAE,SAAS,EAAE;AAAA,EACtB,CAAC;AACH;"}
|
package/dist/index80.cjs
CHANGED
|
@@ -1,18 +1,72 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "krc-root-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
3
|
+
const root = "krc-root-HS837";
|
|
4
|
+
const gapNone = "krc-gapNone-MmCvp";
|
|
5
|
+
const gapXs = "krc-gapXs-Jketq";
|
|
6
|
+
const gapSm = "krc-gapSm-BFLhK";
|
|
7
|
+
const gapMd = "krc-gapMd--7IRg";
|
|
8
|
+
const gapLg = "krc-gapLg-ehuIZ";
|
|
9
|
+
const gapXl = "krc-gapXl-kNEyc";
|
|
10
|
+
const alignStart = "krc-alignStart-q6fMC";
|
|
11
|
+
const alignCenter = "krc-alignCenter-Py2Kt";
|
|
12
|
+
const alignEnd = "krc-alignEnd-ialGn";
|
|
13
|
+
const alignStretch = "krc-alignStretch-J-rq4";
|
|
14
|
+
const alignBaseline = "krc-alignBaseline-Hg-4L";
|
|
15
|
+
const justifyStart = "krc-justifyStart-tBqbD";
|
|
16
|
+
const justifyCenter = "krc-justifyCenter-6QDaO";
|
|
17
|
+
const justifyEnd = "krc-justifyEnd-2tbcB";
|
|
18
|
+
const justifyBetween = "krc-justifyBetween-5W1AJ";
|
|
19
|
+
const justifyAround = "krc-justifyAround-AMU1m";
|
|
20
|
+
const justifyEvenly = "krc-justifyEvenly-Vj3C-";
|
|
21
|
+
const wrap = "krc-wrap-Q4txZ";
|
|
22
|
+
const nowrap = "krc-nowrap-BUcfT";
|
|
23
|
+
const dirRow = "krc-dirRow-NBoPO";
|
|
24
|
+
const dirColumn = "krc-dirColumn-gJ7qS";
|
|
7
25
|
const styles = {
|
|
8
26
|
root,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
27
|
+
gapNone,
|
|
28
|
+
gapXs,
|
|
29
|
+
gapSm,
|
|
30
|
+
gapMd,
|
|
31
|
+
gapLg,
|
|
32
|
+
gapXl,
|
|
33
|
+
alignStart,
|
|
34
|
+
alignCenter,
|
|
35
|
+
alignEnd,
|
|
36
|
+
alignStretch,
|
|
37
|
+
alignBaseline,
|
|
38
|
+
justifyStart,
|
|
39
|
+
justifyCenter,
|
|
40
|
+
justifyEnd,
|
|
41
|
+
justifyBetween,
|
|
42
|
+
justifyAround,
|
|
43
|
+
justifyEvenly,
|
|
44
|
+
wrap,
|
|
45
|
+
nowrap,
|
|
46
|
+
dirRow,
|
|
47
|
+
dirColumn
|
|
12
48
|
};
|
|
13
|
-
exports.
|
|
49
|
+
exports.alignBaseline = alignBaseline;
|
|
50
|
+
exports.alignCenter = alignCenter;
|
|
51
|
+
exports.alignEnd = alignEnd;
|
|
52
|
+
exports.alignStart = alignStart;
|
|
53
|
+
exports.alignStretch = alignStretch;
|
|
14
54
|
exports.default = styles;
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
55
|
+
exports.dirColumn = dirColumn;
|
|
56
|
+
exports.dirRow = dirRow;
|
|
57
|
+
exports.gapLg = gapLg;
|
|
58
|
+
exports.gapMd = gapMd;
|
|
59
|
+
exports.gapNone = gapNone;
|
|
60
|
+
exports.gapSm = gapSm;
|
|
61
|
+
exports.gapXl = gapXl;
|
|
62
|
+
exports.gapXs = gapXs;
|
|
63
|
+
exports.justifyAround = justifyAround;
|
|
64
|
+
exports.justifyBetween = justifyBetween;
|
|
65
|
+
exports.justifyCenter = justifyCenter;
|
|
66
|
+
exports.justifyEnd = justifyEnd;
|
|
67
|
+
exports.justifyEvenly = justifyEvenly;
|
|
68
|
+
exports.justifyStart = justifyStart;
|
|
69
|
+
exports.nowrap = nowrap;
|
|
17
70
|
exports.root = root;
|
|
71
|
+
exports.wrap = wrap;
|
|
18
72
|
//# sourceMappingURL=index80.cjs.map
|
package/dist/index80.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index80.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index80.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|