@ktnpm_devops/react-component 0.24.0 → 0.25.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/README.md +1 -1
- package/dist/constants.d.ts +6 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/data/DataTableCard/DataTableCard.d.ts +13 -0
- package/dist/data/DataTableCard/DataTableCard.d.ts.map +1 -0
- package/dist/data/DataTableCard/DataTableCard.types.d.ts +41 -0
- package/dist/data/DataTableCard/DataTableCard.types.d.ts.map +1 -0
- package/dist/data/DataTableCard/index.d.ts +3 -0
- package/dist/data/DataTableCard/index.d.ts.map +1 -0
- package/dist/data/LiveExplorerTable/LiveExplorerBody.d.ts +8 -0
- package/dist/data/LiveExplorerTable/LiveExplorerBody.d.ts.map +1 -0
- package/dist/data/LiveExplorerTable/LiveExplorerDataRow.d.ts +5 -0
- package/dist/data/LiveExplorerTable/LiveExplorerDataRow.d.ts.map +1 -0
- package/dist/data/LiveExplorerTable/LiveExplorerHeaderCell.d.ts +8 -0
- package/dist/data/LiveExplorerTable/LiveExplorerHeaderCell.d.ts.map +1 -0
- package/dist/data/LiveExplorerTable/LiveExplorerTable.d.ts +2 -2
- package/dist/data/LiveExplorerTable/LiveExplorerTable.d.ts.map +1 -1
- package/dist/data/LiveExplorerTable/LiveExplorerTable.types.d.ts +122 -25
- package/dist/data/LiveExplorerTable/LiveExplorerTable.types.d.ts.map +1 -1
- package/dist/data/LiveExplorerTable/columnClasses.d.ts +5 -0
- package/dist/data/LiveExplorerTable/columnClasses.d.ts.map +1 -0
- package/dist/data/LiveExplorerTable/groupRows.d.ts +8 -0
- package/dist/data/LiveExplorerTable/groupRows.d.ts.map +1 -0
- package/dist/data/LiveExplorerTable/groupRows.test.d.ts +2 -0
- package/dist/data/LiveExplorerTable/groupRows.test.d.ts.map +1 -0
- package/dist/data/LiveExplorerTable/index.d.ts +1 -1
- package/dist/data/LiveExplorerTable/index.d.ts.map +1 -1
- package/dist/data/LiveExplorerTable/nextSortState.d.ts +8 -0
- package/dist/data/LiveExplorerTable/nextSortState.d.ts.map +1 -0
- package/dist/data/LiveExplorerTable/nextSortState.test.d.ts +2 -0
- package/dist/data/LiveExplorerTable/nextSortState.test.d.ts.map +1 -0
- package/dist/data/LiveExplorerTable/useColumnResize.d.ts +8 -0
- package/dist/data/LiveExplorerTable/useColumnResize.d.ts.map +1 -0
- package/dist/index.cjs +34 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +34 -32
- package/dist/index.js.map +1 -1
- package/dist/index10.cjs +2 -2
- package/dist/index10.js +2 -2
- package/dist/index100.cjs +6 -92
- package/dist/index100.cjs.map +1 -1
- package/dist/index100.js +5 -91
- package/dist/index100.js.map +1 -1
- package/dist/index101.cjs +19 -34
- package/dist/index101.cjs.map +1 -1
- package/dist/index101.js +20 -35
- package/dist/index101.js.map +1 -1
- package/dist/index102.cjs +39 -22
- package/dist/index102.cjs.map +1 -1
- package/dist/index102.js +38 -21
- package/dist/index102.js.map +1 -1
- package/dist/index103.cjs +30 -69
- package/dist/index103.cjs.map +1 -1
- package/dist/index103.js +29 -68
- package/dist/index103.js.map +1 -1
- package/dist/index104.cjs +6 -6
- package/dist/index104.cjs.map +1 -1
- package/dist/index104.js +5 -5
- package/dist/index104.js.map +1 -1
- package/dist/index105.cjs +15 -30
- package/dist/index105.cjs.map +1 -1
- package/dist/index105.js +16 -31
- package/dist/index105.js.map +1 -1
- package/dist/index106.cjs +21 -35
- package/dist/index106.cjs.map +1 -1
- package/dist/index106.js +20 -34
- package/dist/index106.js.map +1 -1
- package/dist/index107.cjs +30 -38
- package/dist/index107.cjs.map +1 -1
- package/dist/index107.js +30 -38
- package/dist/index107.js.map +1 -1
- package/dist/index108.cjs +41 -22
- package/dist/index108.cjs.map +1 -1
- package/dist/index108.js +42 -23
- package/dist/index108.js.map +1 -1
- package/dist/index109.cjs +17 -32
- package/dist/index109.cjs.map +1 -1
- package/dist/index109.js +17 -32
- package/dist/index109.js.map +1 -1
- package/dist/index11.cjs +2 -2
- package/dist/index11.js +2 -2
- package/dist/index110.cjs +39 -8
- package/dist/index110.cjs.map +1 -1
- package/dist/index110.js +39 -8
- package/dist/index110.js.map +1 -1
- package/dist/index111.cjs +8 -10
- package/dist/index111.cjs.map +1 -1
- package/dist/index111.js +8 -10
- package/dist/index111.js.map +1 -1
- package/dist/index112.cjs +10 -19
- package/dist/index112.cjs.map +1 -1
- package/dist/index112.js +10 -19
- package/dist/index112.js.map +1 -1
- package/dist/index113.cjs +18 -12
- package/dist/index113.cjs.map +1 -1
- package/dist/index113.js +19 -13
- package/dist/index113.js.map +1 -1
- package/dist/index114.cjs +13 -10
- package/dist/index114.cjs.map +1 -1
- package/dist/index114.js +13 -10
- package/dist/index114.js.map +1 -1
- package/dist/index115.cjs +10 -69
- package/dist/index115.cjs.map +1 -1
- package/dist/index115.js +9 -68
- package/dist/index115.js.map +1 -1
- package/dist/index116.cjs +64 -13
- package/dist/index116.cjs.map +1 -1
- package/dist/index116.js +65 -14
- package/dist/index116.js.map +1 -1
- package/dist/index117.cjs +20 -2
- package/dist/index117.cjs.map +1 -1
- package/dist/index117.js +20 -2
- package/dist/index117.js.map +1 -1
- package/dist/index118.cjs +70 -57
- package/dist/index118.cjs.map +1 -1
- package/dist/index118.js +69 -56
- package/dist/index118.js.map +1 -1
- package/dist/index119.cjs +50 -39
- package/dist/index119.cjs.map +1 -1
- package/dist/index119.js +49 -38
- package/dist/index119.js.map +1 -1
- package/dist/index12.cjs +2 -2
- package/dist/index12.js +2 -2
- package/dist/index120.cjs +6 -22
- package/dist/index120.cjs.map +1 -1
- package/dist/index120.js +5 -21
- package/dist/index120.js.map +1 -1
- package/dist/index121.cjs +25 -131
- package/dist/index121.cjs.map +1 -1
- package/dist/index121.js +26 -132
- package/dist/index121.js.map +1 -1
- package/dist/index122.cjs +82 -40
- package/dist/index122.cjs.map +1 -1
- package/dist/index122.js +82 -40
- package/dist/index122.js.map +1 -1
- package/dist/index123.cjs +2 -11
- package/dist/index123.cjs.map +1 -1
- package/dist/index123.js +2 -11
- package/dist/index123.js.map +1 -1
- package/dist/index124.cjs +15 -36
- package/dist/index124.cjs.map +1 -1
- package/dist/index124.js +16 -37
- package/dist/index124.js.map +1 -1
- package/dist/index125.cjs +2 -5
- package/dist/index125.cjs.map +1 -1
- package/dist/index125.js +2 -5
- package/dist/index125.js.map +1 -1
- package/dist/index126.cjs +25 -116
- package/dist/index126.cjs.map +1 -1
- package/dist/index126.js +24 -115
- package/dist/index126.js.map +1 -1
- package/dist/index127.cjs +28 -37
- package/dist/index127.cjs.map +1 -1
- package/dist/index127.js +28 -37
- package/dist/index127.js.map +1 -1
- package/dist/index128.cjs +13 -13
- package/dist/index128.js +13 -13
- package/dist/index129.cjs +26 -32
- package/dist/index129.cjs.map +1 -1
- package/dist/index129.js +26 -32
- package/dist/index129.js.map +1 -1
- package/dist/index13.cjs +2 -2
- package/dist/index13.js +2 -2
- package/dist/index130.cjs +31 -7
- package/dist/index130.cjs.map +1 -1
- package/dist/index130.js +32 -8
- package/dist/index130.js.map +1 -1
- package/dist/index131.cjs +13 -22
- package/dist/index131.cjs.map +1 -1
- package/dist/index131.js +14 -23
- package/dist/index131.js.map +1 -1
- package/dist/index132.cjs +36 -30
- package/dist/index132.cjs.map +1 -1
- package/dist/index132.js +36 -30
- package/dist/index132.js.map +1 -1
- package/dist/index133.cjs +18 -36
- package/dist/index133.cjs.map +1 -1
- package/dist/index133.js +18 -36
- package/dist/index133.js.map +1 -1
- package/dist/index134.cjs +16 -16
- package/dist/index134.js +17 -17
- package/dist/index135.cjs +36 -45
- package/dist/index135.cjs.map +1 -1
- package/dist/index135.js +36 -45
- package/dist/index135.js.map +1 -1
- package/dist/index136.cjs +87 -70
- package/dist/index136.cjs.map +1 -1
- package/dist/index136.js +88 -71
- package/dist/index136.js.map +1 -1
- package/dist/index137.cjs +40 -1164
- package/dist/index137.cjs.map +1 -1
- package/dist/index137.js +38 -1163
- package/dist/index137.js.map +1 -1
- package/dist/index138.cjs +15 -1575
- package/dist/index138.cjs.map +1 -1
- package/dist/index138.js +14 -1575
- package/dist/index138.js.map +1 -1
- package/dist/index139.cjs +84 -34
- package/dist/index139.cjs.map +1 -1
- package/dist/index139.js +83 -33
- package/dist/index139.js.map +1 -1
- package/dist/index14.cjs +2 -2
- package/dist/index14.js +2 -2
- package/dist/index140.cjs +9 -0
- package/dist/index140.cjs.map +1 -0
- package/dist/index140.js +9 -0
- package/dist/index140.js.map +1 -0
- package/dist/index141.cjs +51 -0
- package/dist/index141.cjs.map +1 -0
- package/dist/index141.js +51 -0
- package/dist/index141.js.map +1 -0
- package/dist/index142.cjs +78 -0
- package/dist/index142.cjs.map +1 -0
- package/dist/index142.js +78 -0
- package/dist/index142.js.map +1 -0
- package/dist/index143.cjs +1166 -0
- package/dist/index143.cjs.map +1 -0
- package/dist/index143.js +1167 -0
- package/dist/index143.js.map +1 -0
- package/dist/index144.cjs +1578 -0
- package/dist/index144.cjs.map +1 -0
- package/dist/index144.js +1579 -0
- package/dist/index144.js.map +1 -0
- package/dist/index145.cjs +10 -0
- package/dist/index145.cjs.map +1 -0
- package/dist/index145.js +10 -0
- package/dist/index145.js.map +1 -0
- package/dist/index146.cjs +15 -0
- package/dist/index146.cjs.map +1 -0
- package/dist/index146.js +15 -0
- package/dist/index146.js.map +1 -0
- package/dist/index147.cjs +51 -0
- package/dist/index147.cjs.map +1 -0
- package/dist/index147.js +51 -0
- package/dist/index147.js.map +1 -0
- package/dist/index148.cjs +37 -0
- package/dist/index148.cjs.map +1 -0
- package/dist/index148.js +37 -0
- package/dist/index148.js.map +1 -0
- package/dist/index15.cjs +2 -2
- package/dist/index15.js +2 -2
- package/dist/index16.cjs +2 -2
- package/dist/index16.js +2 -2
- package/dist/index17.cjs +2 -2
- package/dist/index17.js +2 -2
- package/dist/index18.cjs +2 -2
- package/dist/index18.js +2 -2
- package/dist/index19.cjs +2 -2
- package/dist/index19.js +2 -2
- package/dist/index20.cjs +2 -2
- package/dist/index20.js +2 -2
- package/dist/index21.cjs +2 -2
- package/dist/index21.js +2 -2
- package/dist/index22.cjs +2 -2
- package/dist/index22.js +2 -2
- package/dist/index23.cjs +2 -2
- package/dist/index23.js +2 -2
- package/dist/index24.cjs +3 -3
- package/dist/index24.js +3 -3
- package/dist/index25.cjs +3 -3
- package/dist/index25.js +3 -3
- package/dist/index26.cjs +4 -4
- package/dist/index26.js +4 -4
- package/dist/index27.cjs +2 -1
- package/dist/index27.cjs.map +1 -1
- package/dist/index27.js +2 -1
- package/dist/index27.js.map +1 -1
- package/dist/index28.cjs +2 -2
- package/dist/index28.js +2 -2
- package/dist/index29.cjs +58 -158
- package/dist/index29.cjs.map +1 -1
- package/dist/index29.js +58 -158
- package/dist/index29.js.map +1 -1
- package/dist/index30.cjs +161 -21
- package/dist/index30.cjs.map +1 -1
- package/dist/index30.js +162 -22
- package/dist/index30.js.map +1 -1
- package/dist/index31.cjs +20 -143
- package/dist/index31.cjs.map +1 -1
- package/dist/index31.js +21 -144
- package/dist/index31.js.map +1 -1
- package/dist/index32.cjs +125 -135
- package/dist/index32.cjs.map +1 -1
- package/dist/index32.js +127 -137
- package/dist/index32.js.map +1 -1
- package/dist/index33.cjs +135 -67
- package/dist/index33.cjs.map +1 -1
- package/dist/index33.js +134 -66
- package/dist/index33.js.map +1 -1
- package/dist/index34.cjs +83 -98
- package/dist/index34.cjs.map +1 -1
- package/dist/index34.js +84 -99
- package/dist/index34.js.map +1 -1
- package/dist/index35.cjs +100 -6
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +101 -7
- package/dist/index35.js.map +1 -1
- package/dist/index36.cjs +7 -140
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +9 -142
- package/dist/index36.js.map +1 -1
- package/dist/index37.cjs +108 -54
- package/dist/index37.cjs.map +1 -1
- package/dist/index37.js +110 -56
- package/dist/index37.js.map +1 -1
- package/dist/index38.cjs +49 -13
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +51 -15
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +20 -43
- package/dist/index39.cjs.map +1 -1
- package/dist/index39.js +21 -44
- package/dist/index39.js.map +1 -1
- package/dist/index40.cjs +39 -304
- package/dist/index40.cjs.map +1 -1
- package/dist/index40.js +40 -305
- package/dist/index40.js.map +1 -1
- package/dist/index41.cjs +302 -28
- package/dist/index41.cjs.map +1 -1
- package/dist/index41.js +304 -30
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +30 -113
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +31 -114
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +106 -57
- package/dist/index43.cjs.map +1 -1
- package/dist/index43.js +108 -59
- package/dist/index43.js.map +1 -1
- package/dist/index44.cjs +65 -75
- package/dist/index44.cjs.map +1 -1
- package/dist/index44.js +67 -77
- package/dist/index44.js.map +1 -1
- package/dist/index45.cjs +76 -57
- package/dist/index45.cjs.map +1 -1
- package/dist/index45.js +78 -59
- package/dist/index45.js.map +1 -1
- package/dist/index46.cjs +56 -150
- package/dist/index46.cjs.map +1 -1
- package/dist/index46.js +58 -152
- package/dist/index46.js.map +1 -1
- package/dist/index47.cjs +127 -72
- package/dist/index47.cjs.map +1 -1
- package/dist/index47.js +123 -68
- package/dist/index47.js.map +1 -1
- package/dist/index48.cjs +94 -68
- package/dist/index48.cjs.map +1 -1
- package/dist/index48.js +96 -70
- package/dist/index48.js.map +1 -1
- package/dist/index49.cjs +71 -7
- package/dist/index49.cjs.map +1 -1
- package/dist/index49.js +72 -8
- package/dist/index49.js.map +1 -1
- package/dist/index50.cjs +8 -17
- package/dist/index50.cjs.map +1 -1
- package/dist/index50.js +9 -18
- package/dist/index50.js.map +1 -1
- package/dist/index51.cjs +15 -75
- package/dist/index51.cjs.map +1 -1
- package/dist/index51.js +16 -76
- package/dist/index51.js.map +1 -1
- package/dist/index52.cjs +65 -180
- package/dist/index52.cjs.map +1 -1
- package/dist/index52.js +68 -183
- package/dist/index52.js.map +1 -1
- package/dist/index53.cjs +180 -52
- package/dist/index53.cjs.map +1 -1
- package/dist/index53.js +181 -53
- package/dist/index53.js.map +1 -1
- package/dist/index54.cjs +61 -111
- package/dist/index54.cjs.map +1 -1
- package/dist/index54.js +62 -112
- package/dist/index54.js.map +1 -1
- package/dist/index55.cjs +111 -44
- package/dist/index55.cjs.map +1 -1
- package/dist/index55.js +112 -45
- package/dist/index55.js.map +1 -1
- package/dist/index56.cjs +47 -6
- package/dist/index56.cjs.map +1 -1
- package/dist/index56.js +48 -7
- package/dist/index56.js.map +1 -1
- package/dist/index57.cjs +6 -145
- package/dist/index57.cjs.map +1 -1
- package/dist/index57.js +7 -146
- package/dist/index57.js.map +1 -1
- package/dist/index58.cjs +144 -7
- package/dist/index58.cjs.map +1 -1
- package/dist/index58.js +146 -9
- package/dist/index58.js.map +1 -1
- package/dist/index59.cjs +6 -15
- package/dist/index59.cjs.map +1 -1
- package/dist/index59.js +6 -15
- package/dist/index59.js.map +1 -1
- package/dist/index60.cjs +14 -63
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +16 -65
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +66 -2
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +67 -3
- package/dist/index61.js.map +1 -1
- package/dist/index62.cjs +3 -10
- package/dist/index62.cjs.map +1 -1
- package/dist/index62.js +3 -10
- package/dist/index62.js.map +1 -1
- package/dist/index63.cjs +11 -16
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +10 -15
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +15 -24
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +15 -24
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +20 -11
- package/dist/index65.cjs.map +1 -1
- package/dist/index65.js +20 -11
- package/dist/index65.js.map +1 -1
- package/dist/index66.cjs +13 -22
- package/dist/index66.cjs.map +1 -1
- package/dist/index66.js +13 -22
- package/dist/index66.js.map +1 -1
- package/dist/index68.cjs +6 -0
- package/dist/index68.cjs.map +1 -1
- package/dist/index68.js +6 -0
- package/dist/index68.js.map +1 -1
- package/dist/index69.cjs +16 -64
- package/dist/index69.cjs.map +1 -1
- package/dist/index69.js +16 -64
- package/dist/index69.js.map +1 -1
- package/dist/index70.cjs +14 -2
- package/dist/index70.cjs.map +1 -1
- package/dist/index70.js +15 -3
- package/dist/index70.js.map +1 -1
- package/dist/index71.cjs +20 -17
- package/dist/index71.cjs.map +1 -1
- package/dist/index71.js +21 -18
- package/dist/index71.js.map +1 -1
- package/dist/index72.cjs +16 -10
- package/dist/index72.cjs.map +1 -1
- package/dist/index72.js +16 -10
- package/dist/index72.js.map +1 -1
- package/dist/index73.cjs +25 -12
- package/dist/index73.cjs.map +1 -1
- package/dist/index73.js +24 -11
- package/dist/index73.js.map +1 -1
- package/dist/index74.cjs +33 -15
- package/dist/index74.cjs.map +1 -1
- package/dist/index74.js +34 -16
- package/dist/index74.js.map +1 -1
- package/dist/index75.cjs +12 -25
- package/dist/index75.cjs.map +1 -1
- package/dist/index75.js +11 -24
- package/dist/index75.js.map +1 -1
- package/dist/index76.cjs +57 -73
- package/dist/index76.cjs.map +1 -1
- package/dist/index76.js +56 -72
- package/dist/index76.js.map +1 -1
- package/dist/index77.cjs +116 -34
- package/dist/index77.cjs.map +1 -1
- package/dist/index77.js +115 -33
- package/dist/index77.js.map +1 -1
- package/dist/index78.cjs +38 -2
- package/dist/index78.cjs.map +1 -1
- package/dist/index78.js +39 -3
- package/dist/index78.js.map +1 -1
- package/dist/index79.cjs +73 -84
- package/dist/index79.cjs.map +1 -1
- package/dist/index79.js +72 -83
- package/dist/index79.js.map +1 -1
- package/dist/index80.cjs +49 -43
- package/dist/index80.cjs.map +1 -1
- package/dist/index80.js +50 -44
- package/dist/index80.js.map +1 -1
- package/dist/index81.cjs +16 -34
- package/dist/index81.cjs.map +1 -1
- package/dist/index81.js +15 -33
- package/dist/index81.js.map +1 -1
- package/dist/index82.cjs +134 -19
- package/dist/index82.cjs.map +1 -1
- package/dist/index82.js +133 -18
- package/dist/index82.js.map +1 -1
- package/dist/index83.cjs +40 -16
- package/dist/index83.cjs.map +1 -1
- package/dist/index83.js +40 -16
- package/dist/index83.js.map +1 -1
- package/dist/index84.cjs +4 -16
- package/dist/index84.cjs.map +1 -1
- package/dist/index84.js +5 -17
- package/dist/index84.js.map +1 -1
- package/dist/index85.cjs +29 -2
- package/dist/index85.cjs.map +1 -1
- package/dist/index85.js +30 -3
- package/dist/index85.js.map +1 -1
- package/dist/index86.cjs +47 -2
- package/dist/index86.cjs.map +1 -1
- package/dist/index86.js +48 -3
- package/dist/index86.js.map +1 -1
- package/dist/index87.cjs +34 -25
- package/dist/index87.cjs.map +1 -1
- package/dist/index87.js +33 -24
- package/dist/index87.js.map +1 -1
- package/dist/index88.cjs +10 -16
- package/dist/index88.cjs.map +1 -1
- package/dist/index88.js +10 -16
- package/dist/index88.js.map +1 -1
- package/dist/index89.cjs +22 -9
- package/dist/index89.cjs.map +1 -1
- package/dist/index89.js +21 -8
- package/dist/index89.js.map +1 -1
- package/dist/index90.cjs +68 -46
- package/dist/index90.cjs.map +1 -1
- package/dist/index90.js +69 -47
- package/dist/index90.js.map +1 -1
- package/dist/index91.cjs +6 -17
- package/dist/index91.cjs.map +1 -1
- package/dist/index91.js +6 -17
- package/dist/index91.js.map +1 -1
- package/dist/index92.cjs +34 -31
- package/dist/index92.cjs.map +1 -1
- package/dist/index92.js +34 -31
- package/dist/index92.js.map +1 -1
- package/dist/index93.cjs +9 -17
- package/dist/index93.cjs.map +1 -1
- package/dist/index93.js +8 -16
- package/dist/index93.js.map +1 -1
- package/dist/index94.cjs +48 -7
- package/dist/index94.cjs.map +1 -1
- package/dist/index94.js +47 -6
- package/dist/index94.js.map +1 -1
- package/dist/index95.cjs +18 -55
- package/dist/index95.cjs.map +1 -1
- package/dist/index95.js +17 -54
- package/dist/index95.js.map +1 -1
- package/dist/index96.cjs +31 -28
- package/dist/index96.cjs.map +1 -1
- package/dist/index96.js +31 -28
- package/dist/index96.js.map +1 -1
- package/dist/index97.cjs +2 -53
- package/dist/index97.cjs.map +1 -1
- package/dist/index97.js +3 -54
- package/dist/index97.js.map +1 -1
- package/dist/index98.cjs +64 -16
- package/dist/index98.cjs.map +1 -1
- package/dist/index98.js +64 -16
- package/dist/index98.js.map +1 -1
- package/dist/index99.cjs +16 -38
- package/dist/index99.cjs.map +1 -1
- package/dist/index99.js +16 -38
- package/dist/index99.js.map +1 -1
- package/dist/labels/ComponentLabels.types.d.ts +2 -0
- package/dist/labels/ComponentLabels.types.d.ts.map +1 -1
- package/dist/labels/defaults.d.ts.map +1 -1
- package/dist/style.css +382 -214
- package/package.json +1 -1
package/dist/index133.js
CHANGED
|
@@ -1,42 +1,24 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const step = "krc-step-hzz-Q";
|
|
8
|
-
const pending = "krc-pending-sxbM4";
|
|
9
|
-
const iconSlot = "krc-iconSlot-74ZD2";
|
|
10
|
-
const stepSpinner = "krc-stepSpinner-0d1jM";
|
|
11
|
-
const checkIcon = "krc-checkIcon-FhWlj";
|
|
12
|
-
const nonClosable = "krc-nonClosable-7NB7j";
|
|
1
|
+
const root = "krc-root-rzEDE";
|
|
2
|
+
const sidebar = "krc-sidebar-ediN2";
|
|
3
|
+
const sidebarCollapsed = "krc-sidebarCollapsed--qs43";
|
|
4
|
+
const main = "krc-main-E8utR";
|
|
5
|
+
const filterBar = "krc-filterBar-O8ajX";
|
|
6
|
+
const content = "krc-content-lY5l-";
|
|
13
7
|
const styles = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
step,
|
|
21
|
-
pending,
|
|
22
|
-
iconSlot,
|
|
23
|
-
stepSpinner,
|
|
24
|
-
checkIcon,
|
|
25
|
-
nonClosable
|
|
8
|
+
root,
|
|
9
|
+
sidebar,
|
|
10
|
+
sidebarCollapsed,
|
|
11
|
+
main,
|
|
12
|
+
filterBar,
|
|
13
|
+
content
|
|
26
14
|
};
|
|
27
15
|
export {
|
|
28
|
-
|
|
16
|
+
content,
|
|
29
17
|
styles as default,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
step,
|
|
36
|
-
stepSpinner,
|
|
37
|
-
steps,
|
|
38
|
-
throbber,
|
|
39
|
-
titleRow,
|
|
40
|
-
titleSpinner
|
|
18
|
+
filterBar,
|
|
19
|
+
main,
|
|
20
|
+
root,
|
|
21
|
+
sidebar,
|
|
22
|
+
sidebarCollapsed
|
|
41
23
|
};
|
|
42
24
|
//# sourceMappingURL=index133.js.map
|
package/dist/index133.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index133.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index133.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
package/dist/index134.cjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
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
|
|
8
|
-
const
|
|
3
|
+
const root = "krc-root-wErEG";
|
|
4
|
+
const list = "krc-list-Np3Qt";
|
|
5
|
+
const page = "krc-page-znalz";
|
|
6
|
+
const arrow = "krc-arrow-ruhgF";
|
|
7
|
+
const isActive = "krc-isActive-azJrs";
|
|
8
|
+
const ellipsis = "krc-ellipsis-vMrZ6";
|
|
9
9
|
const styles = {
|
|
10
10
|
root,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
list,
|
|
12
|
+
page,
|
|
13
|
+
arrow,
|
|
14
|
+
isActive,
|
|
15
|
+
ellipsis
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
17
|
+
exports.arrow = arrow;
|
|
18
18
|
exports.default = styles;
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
19
|
+
exports.ellipsis = ellipsis;
|
|
20
|
+
exports.isActive = isActive;
|
|
21
|
+
exports.list = list;
|
|
22
|
+
exports.page = page;
|
|
22
23
|
exports.root = root;
|
|
23
|
-
exports.sidebar = sidebar;
|
|
24
24
|
//# sourceMappingURL=index134.cjs.map
|
package/dist/index134.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
const root = "krc-root-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
1
|
+
const root = "krc-root-wErEG";
|
|
2
|
+
const list = "krc-list-Np3Qt";
|
|
3
|
+
const page = "krc-page-znalz";
|
|
4
|
+
const arrow = "krc-arrow-ruhgF";
|
|
5
|
+
const isActive = "krc-isActive-azJrs";
|
|
6
|
+
const ellipsis = "krc-ellipsis-vMrZ6";
|
|
7
7
|
const styles = {
|
|
8
8
|
root,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
list,
|
|
10
|
+
page,
|
|
11
|
+
arrow,
|
|
12
|
+
isActive,
|
|
13
|
+
ellipsis
|
|
14
14
|
};
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
arrow,
|
|
17
17
|
styles as default,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
ellipsis,
|
|
19
|
+
isActive,
|
|
20
|
+
list,
|
|
21
|
+
page,
|
|
22
|
+
root
|
|
23
23
|
};
|
|
24
24
|
//# sourceMappingURL=index134.js.map
|
package/dist/index135.cjs
CHANGED
|
@@ -1,51 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return style.overflowX !== "clip" && CLIPPING_OVERFLOW.has(style.overflowX);
|
|
13
|
-
}
|
|
14
|
-
const intersect = (a, b) => ({
|
|
15
|
-
top: Math.max(a.top, b.top),
|
|
16
|
-
bottom: Math.min(a.bottom, b.bottom)
|
|
17
|
-
});
|
|
18
|
-
function getClippingRect(element) {
|
|
19
|
-
const root = document.documentElement;
|
|
20
|
-
const viewport = { top: 0, bottom: root.clientHeight };
|
|
21
|
-
let horizontal = null;
|
|
22
|
-
const clippers = [];
|
|
23
|
-
let trapped = false;
|
|
24
|
-
for (let el = element.parentElement; el; el = el.parentElement) {
|
|
25
|
-
const style = getComputedStyle(el);
|
|
26
|
-
if (!trapped && trapsFixed(style)) trapped = true;
|
|
27
|
-
if (el === document.body || el === root) continue;
|
|
28
|
-
const clipsX = CLIPPING_OVERFLOW.has(style.overflowX);
|
|
29
|
-
const clipsY = clipsVertically(style);
|
|
30
|
-
if (!clipsX && !clipsY) continue;
|
|
31
|
-
const rect = el.getBoundingClientRect();
|
|
32
|
-
if (clipsX && !horizontal) {
|
|
33
|
-
const left = rect.left + el.clientLeft;
|
|
34
|
-
horizontal = { left, right: left + el.clientWidth };
|
|
3
|
+
const weightOf = (point) => point.weight ?? 1;
|
|
4
|
+
const fold = (data) => {
|
|
5
|
+
const byPosition = /* @__PURE__ */ new Map();
|
|
6
|
+
data.forEach((point, index) => {
|
|
7
|
+
const key = `${point.x}|${point.y}`;
|
|
8
|
+
const existing = byPosition.get(key);
|
|
9
|
+
if (!existing) {
|
|
10
|
+
byPosition.set(key, { point, index, count: 1 });
|
|
11
|
+
return;
|
|
35
12
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
13
|
+
existing.count += 1;
|
|
14
|
+
existing.point = {
|
|
15
|
+
...existing.point,
|
|
16
|
+
weight: weightOf(existing.point) + weightOf(point)
|
|
17
|
+
};
|
|
18
|
+
});
|
|
19
|
+
return [...byPosition.values()];
|
|
20
|
+
};
|
|
21
|
+
const sample = (points, cap) => {
|
|
22
|
+
if (cap <= 1) return points.slice(0, Math.max(cap, 0));
|
|
23
|
+
const lastIndex = points.length - 1;
|
|
24
|
+
const step = lastIndex / (cap - 1);
|
|
25
|
+
return Array.from({ length: cap }, (_, i) => points[Math.round(i * step)]);
|
|
26
|
+
};
|
|
27
|
+
const foldPoints = (data, maxPoints, mergeCoincident) => {
|
|
28
|
+
const folded = mergeCoincident ? fold(data) : data.map((point, index) => ({ point, index, count: 1 }));
|
|
29
|
+
const points = folded.length > maxPoints ? sample(folded, maxPoints) : folded;
|
|
30
|
+
const represented = points.reduce((sum, p) => sum + p.count, 0);
|
|
43
31
|
return {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
32
|
+
points,
|
|
33
|
+
info: {
|
|
34
|
+
total: data.length,
|
|
35
|
+
drawn: points.length,
|
|
36
|
+
merged: represented - points.length,
|
|
37
|
+
dropped: data.length - represented
|
|
38
|
+
}
|
|
48
39
|
};
|
|
49
|
-
}
|
|
50
|
-
exports.
|
|
40
|
+
};
|
|
41
|
+
exports.foldPoints = foldPoints;
|
|
51
42
|
//# sourceMappingURL=index135.cjs.map
|
package/dist/index135.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index135.cjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index135.cjs","sources":["../src/charts/ScatterChartCard/foldPoints.ts"],"sourcesContent":["import type { ScatterPoint, ScatterRenderInfo } from '../../types/chart.types';\n\n/** A drawn mark, standing for one or more coincident source points. */\nexport interface FoldedPoint {\n /** Representative point. `weight` is the sum across the folded group. */\n point: ScatterPoint;\n /** Index of the representative in the original `data` array. */\n index: number;\n /** How many source points this mark stands for (1 when nothing folded). */\n count: number;\n}\n\nexport interface FoldResult {\n points: FoldedPoint[];\n info: ScatterRenderInfo;\n}\n\n/** Weight a point contributes when folding; unweighted points count as one. */\nconst weightOf = (point: ScatterPoint) => point.weight ?? 1;\n\n/**\n * Group points sharing the same (x, y) into a single mark, summing their weights.\n * A group of one keeps its original weight — including `undefined`, so a dataset\n * with no weights at all stays unweighted and renders at the base symbol size.\n */\nconst fold = (data: ScatterPoint[]): FoldedPoint[] => {\n const byPosition = new Map<string, FoldedPoint>();\n\n data.forEach((point, index) => {\n const key = `${point.x}|${point.y}`;\n const existing = byPosition.get(key);\n\n if (!existing) {\n byPosition.set(key, { point, index, count: 1 });\n return;\n }\n\n existing.count += 1;\n existing.point = {\n ...existing.point,\n weight: weightOf(existing.point) + weightOf(point),\n };\n });\n\n return [...byPosition.values()];\n};\n\n/**\n * Evenly spread `cap` marks across `points`, always keeping the first and last.\n * Deterministic on purpose: the same data must always draw the same chart.\n */\nconst sample = (points: FoldedPoint[], cap: number): FoldedPoint[] => {\n if (cap <= 1) return points.slice(0, Math.max(cap, 0));\n\n const lastIndex = points.length - 1;\n const step = lastIndex / (cap - 1);\n\n return Array.from({ length: cap }, (_, i) => points[Math.round(i * step)]);\n};\n\n/**\n * Fold coincident points, then cap the mark count, then report what happened.\n * Folding runs first because it often removes the need to sample at all.\n *\n * The reported counts satisfy `total === drawn + merged + dropped`.\n */\nexport const foldPoints = (\n data: ScatterPoint[],\n maxPoints: number,\n mergeCoincident: boolean,\n): FoldResult => {\n const folded = mergeCoincident\n ? fold(data)\n : data.map((point, index) => ({ point, index, count: 1 }));\n\n const points = folded.length > maxPoints ? sample(folded, maxPoints) : folded;\n\n const represented = points.reduce((sum, p) => sum + p.count, 0);\n\n return {\n points,\n info: {\n total: data.length,\n drawn: points.length,\n merged: represented - points.length,\n dropped: data.length - represented,\n },\n };\n};\n"],"names":[],"mappings":";;AAkBA,MAAM,WAAW,CAAC,UAAwB,MAAM,UAAU;AAO1D,MAAM,OAAO,CAAC,SAAwC;AACpD,QAAM,iCAAiB,IAAA;AAEvB,OAAK,QAAQ,CAAC,OAAO,UAAU;AAC7B,UAAM,MAAM,GAAG,MAAM,CAAC,IAAI,MAAM,CAAC;AACjC,UAAM,WAAW,WAAW,IAAI,GAAG;AAEnC,QAAI,CAAC,UAAU;AACb,iBAAW,IAAI,KAAK,EAAE,OAAO,OAAO,OAAO,GAAG;AAC9C;AAAA,IACF;AAEA,aAAS,SAAS;AAClB,aAAS,QAAQ;AAAA,MACf,GAAG,SAAS;AAAA,MACZ,QAAQ,SAAS,SAAS,KAAK,IAAI,SAAS,KAAK;AAAA,IAAA;AAAA,EAErD,CAAC;AAED,SAAO,CAAC,GAAG,WAAW,QAAQ;AAChC;AAMA,MAAM,SAAS,CAAC,QAAuB,QAA+B;AACpE,MAAI,OAAO,EAAG,QAAO,OAAO,MAAM,GAAG,KAAK,IAAI,KAAK,CAAC,CAAC;AAErD,QAAM,YAAY,OAAO,SAAS;AAClC,QAAM,OAAO,aAAa,MAAM;AAEhC,SAAO,MAAM,KAAK,EAAE,QAAQ,OAAO,CAAC,GAAG,MAAM,OAAO,KAAK,MAAM,IAAI,IAAI,CAAC,CAAC;AAC3E;AAQO,MAAM,aAAa,CACxB,MACA,WACA,oBACe;AACf,QAAM,SAAS,kBACX,KAAK,IAAI,IACT,KAAK,IAAI,CAAC,OAAO,WAAW,EAAE,OAAO,OAAO,OAAO,IAAI;AAE3D,QAAM,SAAS,OAAO,SAAS,YAAY,OAAO,QAAQ,SAAS,IAAI;AAEvE,QAAM,cAAc,OAAO,OAAO,CAAC,KAAK,MAAM,MAAM,EAAE,OAAO,CAAC;AAE9D,SAAO;AAAA,IACL;AAAA,IACA,MAAM;AAAA,MACJ,OAAO,KAAK;AAAA,MACZ,OAAO,OAAO;AAAA,MACd,QAAQ,cAAc,OAAO;AAAA,MAC7B,SAAS,KAAK,SAAS;AAAA,IAAA;AAAA,EACzB;AAEJ;;"}
|
package/dist/index135.js
CHANGED
|
@@ -1,51 +1,42 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return style.overflowX !== "clip" && CLIPPING_OVERFLOW.has(style.overflowX);
|
|
11
|
-
}
|
|
12
|
-
const intersect = (a, b) => ({
|
|
13
|
-
top: Math.max(a.top, b.top),
|
|
14
|
-
bottom: Math.min(a.bottom, b.bottom)
|
|
15
|
-
});
|
|
16
|
-
function getClippingRect(element) {
|
|
17
|
-
const root = document.documentElement;
|
|
18
|
-
const viewport = { top: 0, bottom: root.clientHeight };
|
|
19
|
-
let horizontal = null;
|
|
20
|
-
const clippers = [];
|
|
21
|
-
let trapped = false;
|
|
22
|
-
for (let el = element.parentElement; el; el = el.parentElement) {
|
|
23
|
-
const style = getComputedStyle(el);
|
|
24
|
-
if (!trapped && trapsFixed(style)) trapped = true;
|
|
25
|
-
if (el === document.body || el === root) continue;
|
|
26
|
-
const clipsX = CLIPPING_OVERFLOW.has(style.overflowX);
|
|
27
|
-
const clipsY = clipsVertically(style);
|
|
28
|
-
if (!clipsX && !clipsY) continue;
|
|
29
|
-
const rect = el.getBoundingClientRect();
|
|
30
|
-
if (clipsX && !horizontal) {
|
|
31
|
-
const left = rect.left + el.clientLeft;
|
|
32
|
-
horizontal = { left, right: left + el.clientWidth };
|
|
1
|
+
const weightOf = (point) => point.weight ?? 1;
|
|
2
|
+
const fold = (data) => {
|
|
3
|
+
const byPosition = /* @__PURE__ */ new Map();
|
|
4
|
+
data.forEach((point, index) => {
|
|
5
|
+
const key = `${point.x}|${point.y}`;
|
|
6
|
+
const existing = byPosition.get(key);
|
|
7
|
+
if (!existing) {
|
|
8
|
+
byPosition.set(key, { point, index, count: 1 });
|
|
9
|
+
return;
|
|
33
10
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
11
|
+
existing.count += 1;
|
|
12
|
+
existing.point = {
|
|
13
|
+
...existing.point,
|
|
14
|
+
weight: weightOf(existing.point) + weightOf(point)
|
|
15
|
+
};
|
|
16
|
+
});
|
|
17
|
+
return [...byPosition.values()];
|
|
18
|
+
};
|
|
19
|
+
const sample = (points, cap) => {
|
|
20
|
+
if (cap <= 1) return points.slice(0, Math.max(cap, 0));
|
|
21
|
+
const lastIndex = points.length - 1;
|
|
22
|
+
const step = lastIndex / (cap - 1);
|
|
23
|
+
return Array.from({ length: cap }, (_, i) => points[Math.round(i * step)]);
|
|
24
|
+
};
|
|
25
|
+
const foldPoints = (data, maxPoints, mergeCoincident) => {
|
|
26
|
+
const folded = mergeCoincident ? fold(data) : data.map((point, index) => ({ point, index, count: 1 }));
|
|
27
|
+
const points = folded.length > maxPoints ? sample(folded, maxPoints) : folded;
|
|
28
|
+
const represented = points.reduce((sum, p) => sum + p.count, 0);
|
|
41
29
|
return {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
30
|
+
points,
|
|
31
|
+
info: {
|
|
32
|
+
total: data.length,
|
|
33
|
+
drawn: points.length,
|
|
34
|
+
merged: represented - points.length,
|
|
35
|
+
dropped: data.length - represented
|
|
36
|
+
}
|
|
46
37
|
};
|
|
47
|
-
}
|
|
38
|
+
};
|
|
48
39
|
export {
|
|
49
|
-
|
|
40
|
+
foldPoints
|
|
50
41
|
};
|
|
51
42
|
//# sourceMappingURL=index135.js.map
|
package/dist/index135.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index135.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index135.js","sources":["../src/charts/ScatterChartCard/foldPoints.ts"],"sourcesContent":["import type { ScatterPoint, ScatterRenderInfo } from '../../types/chart.types';\n\n/** A drawn mark, standing for one or more coincident source points. */\nexport interface FoldedPoint {\n /** Representative point. `weight` is the sum across the folded group. */\n point: ScatterPoint;\n /** Index of the representative in the original `data` array. */\n index: number;\n /** How many source points this mark stands for (1 when nothing folded). */\n count: number;\n}\n\nexport interface FoldResult {\n points: FoldedPoint[];\n info: ScatterRenderInfo;\n}\n\n/** Weight a point contributes when folding; unweighted points count as one. */\nconst weightOf = (point: ScatterPoint) => point.weight ?? 1;\n\n/**\n * Group points sharing the same (x, y) into a single mark, summing their weights.\n * A group of one keeps its original weight — including `undefined`, so a dataset\n * with no weights at all stays unweighted and renders at the base symbol size.\n */\nconst fold = (data: ScatterPoint[]): FoldedPoint[] => {\n const byPosition = new Map<string, FoldedPoint>();\n\n data.forEach((point, index) => {\n const key = `${point.x}|${point.y}`;\n const existing = byPosition.get(key);\n\n if (!existing) {\n byPosition.set(key, { point, index, count: 1 });\n return;\n }\n\n existing.count += 1;\n existing.point = {\n ...existing.point,\n weight: weightOf(existing.point) + weightOf(point),\n };\n });\n\n return [...byPosition.values()];\n};\n\n/**\n * Evenly spread `cap` marks across `points`, always keeping the first and last.\n * Deterministic on purpose: the same data must always draw the same chart.\n */\nconst sample = (points: FoldedPoint[], cap: number): FoldedPoint[] => {\n if (cap <= 1) return points.slice(0, Math.max(cap, 0));\n\n const lastIndex = points.length - 1;\n const step = lastIndex / (cap - 1);\n\n return Array.from({ length: cap }, (_, i) => points[Math.round(i * step)]);\n};\n\n/**\n * Fold coincident points, then cap the mark count, then report what happened.\n * Folding runs first because it often removes the need to sample at all.\n *\n * The reported counts satisfy `total === drawn + merged + dropped`.\n */\nexport const foldPoints = (\n data: ScatterPoint[],\n maxPoints: number,\n mergeCoincident: boolean,\n): FoldResult => {\n const folded = mergeCoincident\n ? fold(data)\n : data.map((point, index) => ({ point, index, count: 1 }));\n\n const points = folded.length > maxPoints ? sample(folded, maxPoints) : folded;\n\n const represented = points.reduce((sum, p) => sum + p.count, 0);\n\n return {\n points,\n info: {\n total: data.length,\n drawn: points.length,\n merged: represented - points.length,\n dropped: data.length - represented,\n },\n };\n};\n"],"names":[],"mappings":"AAkBA,MAAM,WAAW,CAAC,UAAwB,MAAM,UAAU;AAO1D,MAAM,OAAO,CAAC,SAAwC;AACpD,QAAM,iCAAiB,IAAA;AAEvB,OAAK,QAAQ,CAAC,OAAO,UAAU;AAC7B,UAAM,MAAM,GAAG,MAAM,CAAC,IAAI,MAAM,CAAC;AACjC,UAAM,WAAW,WAAW,IAAI,GAAG;AAEnC,QAAI,CAAC,UAAU;AACb,iBAAW,IAAI,KAAK,EAAE,OAAO,OAAO,OAAO,GAAG;AAC9C;AAAA,IACF;AAEA,aAAS,SAAS;AAClB,aAAS,QAAQ;AAAA,MACf,GAAG,SAAS;AAAA,MACZ,QAAQ,SAAS,SAAS,KAAK,IAAI,SAAS,KAAK;AAAA,IAAA;AAAA,EAErD,CAAC;AAED,SAAO,CAAC,GAAG,WAAW,QAAQ;AAChC;AAMA,MAAM,SAAS,CAAC,QAAuB,QAA+B;AACpE,MAAI,OAAO,EAAG,QAAO,OAAO,MAAM,GAAG,KAAK,IAAI,KAAK,CAAC,CAAC;AAErD,QAAM,YAAY,OAAO,SAAS;AAClC,QAAM,OAAO,aAAa,MAAM;AAEhC,SAAO,MAAM,KAAK,EAAE,QAAQ,OAAO,CAAC,GAAG,MAAM,OAAO,KAAK,MAAM,IAAI,IAAI,CAAC,CAAC;AAC3E;AAQO,MAAM,aAAa,CACxB,MACA,WACA,oBACe;AACf,QAAM,SAAS,kBACX,KAAK,IAAI,IACT,KAAK,IAAI,CAAC,OAAO,WAAW,EAAE,OAAO,OAAO,OAAO,IAAI;AAE3D,QAAM,SAAS,OAAO,SAAS,YAAY,OAAO,QAAQ,SAAS,IAAI;AAEvE,QAAM,cAAc,OAAO,OAAO,CAAC,KAAK,MAAM,MAAM,EAAE,OAAO,CAAC;AAE9D,SAAO;AAAA,IACL;AAAA,IACA,MAAM;AAAA,MACJ,OAAO,KAAK;AAAA,MACZ,OAAO,OAAO;AAAA,MACd,QAAQ,cAAc,OAAO;AAAA,MAC7B,SAAS,KAAK,SAAS;AAAA,IAAA;AAAA,EACzB;AAEJ;"}
|
package/dist/index136.cjs
CHANGED
|
@@ -1,78 +1,95 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const constants = require("./index68.cjs");
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
const AXIS_NAME_GAP = { X: 28, Y: 38 };
|
|
5
|
+
const GRID_MARGIN = {
|
|
6
|
+
BASE: 8,
|
|
7
|
+
TOP: 16,
|
|
8
|
+
RIGHT: 16,
|
|
9
|
+
X_NAME: 23,
|
|
10
|
+
Y_NAME: 34,
|
|
11
|
+
LEGEND: 30
|
|
12
|
+
};
|
|
13
|
+
const UNCATEGORISED_SERIES = "Points";
|
|
14
|
+
const escapeHtml = (value) => value.replace(/[&<>"]/g, (char) => `&#${char.charCodeAt(0)};`);
|
|
15
|
+
const symbolSizeFor = (weight, minWeight, maxWeight) => {
|
|
16
|
+
if (maxWeight === minWeight) return constants.SCATTER.BASE_SYMBOL_SIZE;
|
|
17
|
+
const ratio = Math.sqrt((weight - minWeight) / (maxWeight - minWeight));
|
|
18
|
+
return constants.SCATTER.MIN_SYMBOL_SIZE + (constants.SCATTER.MAX_SYMBOL_SIZE - constants.SCATTER.MIN_SYMBOL_SIZE) * ratio;
|
|
19
|
+
};
|
|
20
|
+
const groupByCategory = (points) => {
|
|
21
|
+
const groups = /* @__PURE__ */ new Map();
|
|
22
|
+
for (const folded of points) {
|
|
23
|
+
const key = folded.point.category ?? UNCATEGORISED_SERIES;
|
|
24
|
+
const group = groups.get(key);
|
|
25
|
+
if (group) group.push(folded);
|
|
26
|
+
else groups.set(key, [folded]);
|
|
27
|
+
}
|
|
28
|
+
return groups;
|
|
29
|
+
};
|
|
30
|
+
const toDataItem = (folded, sizeOf) => ({
|
|
31
|
+
name: folded.point.label,
|
|
32
|
+
value: [folded.point.x, folded.point.y, folded.count, folded.index],
|
|
33
|
+
symbolSize: sizeOf(folded.point.weight)
|
|
15
34
|
});
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
const buildTooltipFormatter = (config) => (params) => {
|
|
36
|
+
const { name, seriesName, value, marker } = params;
|
|
37
|
+
const [x, y, count] = value;
|
|
38
|
+
const lines = [`${marker} ${escapeHtml(name)}`];
|
|
39
|
+
lines.push(`${escapeHtml(config.xLabel ?? "x")}: ${x}`);
|
|
40
|
+
lines.push(`${escapeHtml(config.yLabel ?? "y")}: ${y}`);
|
|
41
|
+
if (seriesName !== UNCATEGORISED_SERIES) {
|
|
42
|
+
lines.push(`${escapeHtml(config.categoryLabel ?? "Category")}: ${escapeHtml(seriesName)}`);
|
|
43
|
+
}
|
|
44
|
+
if (count > 1) lines.push(`${count} points here`);
|
|
45
|
+
return lines.join("<br/>");
|
|
46
|
+
};
|
|
47
|
+
const buildScatterOption = (points, config) => {
|
|
48
|
+
const weights = points.map((p) => p.point.weight).filter((w) => w != null);
|
|
49
|
+
const minWeight = weights.length > 0 ? Math.min(...weights) : 0;
|
|
50
|
+
const maxWeight = weights.length > 0 ? Math.max(...weights) : 0;
|
|
51
|
+
const sizeOf = (weight) => weights.length === 0 ? constants.SCATTER.BASE_SYMBOL_SIZE : symbolSizeFor(weight ?? minWeight, minWeight, maxWeight);
|
|
52
|
+
const groups = groupByCategory(points);
|
|
53
|
+
const series = [...groups.entries()].map(([category, group], i) => ({
|
|
54
|
+
name: category,
|
|
55
|
+
type: "scatter",
|
|
56
|
+
data: group.map((folded) => toDataItem(folded, sizeOf)),
|
|
57
|
+
itemStyle: { color: constants.CHART_COLORS[i % constants.CHART_COLORS.length], opacity: 0.85 },
|
|
58
|
+
emphasis: { focus: "series" }
|
|
59
|
+
}));
|
|
39
60
|
return {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
61
|
+
tooltip: { trigger: "item", formatter: buildTooltipFormatter(config) },
|
|
62
|
+
legend: config.showLegend ? { bottom: 0, type: "scroll" } : void 0,
|
|
63
|
+
grid: {
|
|
64
|
+
left: config.yLabel ? GRID_MARGIN.Y_NAME : GRID_MARGIN.BASE,
|
|
65
|
+
right: GRID_MARGIN.RIGHT,
|
|
66
|
+
top: GRID_MARGIN.TOP,
|
|
67
|
+
// Room for the x axis name and the legend, each only when drawn.
|
|
68
|
+
bottom: GRID_MARGIN.BASE + (config.xLabel ? GRID_MARGIN.X_NAME : 0) + (config.showLegend ? GRID_MARGIN.LEGEND : 0),
|
|
69
|
+
containLabel: true
|
|
70
|
+
},
|
|
71
|
+
xAxis: {
|
|
72
|
+
type: "value",
|
|
73
|
+
name: config.xLabel,
|
|
74
|
+
nameLocation: "middle",
|
|
75
|
+
nameGap: AXIS_NAME_GAP.X,
|
|
76
|
+
scale: true
|
|
77
|
+
},
|
|
78
|
+
yAxis: {
|
|
79
|
+
type: "value",
|
|
80
|
+
name: config.yLabel,
|
|
81
|
+
nameLocation: "middle",
|
|
82
|
+
// Without this the y name is drawn horizontally and eats the plot's width.
|
|
83
|
+
nameRotate: 90,
|
|
84
|
+
nameGap: AXIS_NAME_GAP.Y,
|
|
85
|
+
scale: true
|
|
86
|
+
},
|
|
87
|
+
dataZoom: config.enableDataZoom ? [
|
|
88
|
+
{ type: "inside", xAxisIndex: 0 },
|
|
89
|
+
{ type: "inside", yAxisIndex: 0 }
|
|
90
|
+
] : void 0,
|
|
91
|
+
series
|
|
47
92
|
};
|
|
48
|
-
}
|
|
49
|
-
function resolvePanelPlacement({
|
|
50
|
-
anchor,
|
|
51
|
-
panel,
|
|
52
|
-
box,
|
|
53
|
-
currentSide,
|
|
54
|
-
margin = constants.PANEL_EDGE_MARGIN
|
|
55
|
-
}) {
|
|
56
|
-
if (panel.width === 0 || panel.height === 0) return DEFAULT_PLACEMENT;
|
|
57
|
-
const horizontal = resolveHorizontal(anchor, panel.width, box.horizontal, margin);
|
|
58
|
-
const vertical = resolveVertical(anchor, panel, box, currentSide, margin);
|
|
59
|
-
const { align } = horizontal;
|
|
60
|
-
const { side, maxHeight } = vertical;
|
|
61
|
-
const style = vertical.outside ? fixedStyle(anchor, panel, box.viewport.bottom, horizontal, vertical) : {};
|
|
62
|
-
if (!vertical.outside && horizontal.shift !== void 0) {
|
|
63
|
-
style.transform = `translateX(${horizontal.shift}px)`;
|
|
64
|
-
}
|
|
65
|
-
if (maxHeight !== void 0) style.maxHeight = maxHeight;
|
|
66
|
-
return Object.keys(style).length ? { align, side, style } : { align, side };
|
|
67
|
-
}
|
|
68
|
-
const sameStyle = (a = {}, b = {}) => {
|
|
69
|
-
const keys = Object.keys(a);
|
|
70
|
-
return keys.length === Object.keys(b).length && keys.every((key) => a[key] === b[key]);
|
|
71
93
|
};
|
|
72
|
-
|
|
73
|
-
exports.DEFAULT_PLACEMENT = DEFAULT_PLACEMENT;
|
|
74
|
-
exports.resolveHorizontal = resolveHorizontal;
|
|
75
|
-
exports.resolvePanelPlacement = resolvePanelPlacement;
|
|
76
|
-
exports.resolveVertical = resolveVertical;
|
|
77
|
-
exports.samePlacement = samePlacement;
|
|
94
|
+
exports.buildScatterOption = buildScatterOption;
|
|
78
95
|
//# sourceMappingURL=index136.cjs.map
|