@ktnpm_devops/react-component 0.23.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/composites/DatePickerDropdown/DatePickerDropdown.d.ts +1 -1
- package/dist/composites/DatePickerDropdown/DatePickerDropdown.d.ts.map +1 -1
- package/dist/composites/DatePickerDropdown/DatePickerDropdown.types.d.ts +6 -0
- package/dist/composites/DatePickerDropdown/DatePickerDropdown.types.d.ts.map +1 -1
- package/dist/composites/DatePickerDropdown/calendarDates.d.ts +9 -0
- package/dist/composites/DatePickerDropdown/calendarDates.d.ts.map +1 -0
- 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 +2 -11
- package/dist/index100.cjs.map +1 -1
- package/dist/index100.js +2 -11
- package/dist/index100.js.map +1 -1
- package/dist/index101.cjs +18 -18
- package/dist/index101.js +19 -19
- package/dist/index102.cjs +34 -10
- package/dist/index102.cjs.map +1 -1
- package/dist/index102.js +34 -10
- package/dist/index102.js.map +1 -1
- package/dist/index103.cjs +25 -64
- package/dist/index103.cjs.map +1 -1
- package/dist/index103.js +25 -64
- package/dist/index103.js.map +1 -1
- package/dist/index104.cjs +1 -4
- package/dist/index104.cjs.map +1 -1
- package/dist/index104.js +1 -4
- package/dist/index104.js.map +1 -1
- package/dist/index105.cjs +19 -16
- package/dist/index105.cjs.map +1 -1
- package/dist/index105.js +20 -17
- package/dist/index105.js.map +1 -1
- package/dist/index106.cjs +17 -2
- package/dist/index106.cjs.map +1 -1
- package/dist/index106.js +18 -3
- package/dist/index106.js.map +1 -1
- package/dist/index107.cjs +34 -16
- package/dist/index107.cjs.map +1 -1
- package/dist/index107.js +34 -16
- package/dist/index107.js.map +1 -1
- package/dist/index108.cjs +43 -6
- package/dist/index108.cjs.map +1 -1
- package/dist/index108.js +42 -5
- package/dist/index108.js.map +1 -1
- package/dist/index109.cjs +24 -24
- package/dist/index109.cjs.map +1 -1
- package/dist/index109.js +23 -23
- package/dist/index109.js.map +1 -1
- package/dist/index11.cjs +2 -2
- package/dist/index11.js +2 -2
- package/dist/index110.cjs +34 -68
- package/dist/index110.cjs.map +1 -1
- package/dist/index110.js +35 -69
- package/dist/index110.js.map +1 -1
- package/dist/index111.cjs +9 -34
- package/dist/index111.cjs.map +1 -1
- package/dist/index111.js +8 -33
- package/dist/index111.js.map +1 -1
- package/dist/index112.cjs +10 -6
- package/dist/index112.cjs.map +1 -1
- package/dist/index112.js +9 -5
- package/dist/index112.js.map +1 -1
- package/dist/index113.cjs +20 -40
- package/dist/index113.cjs.map +1 -1
- package/dist/index113.js +19 -39
- package/dist/index113.js.map +1 -1
- package/dist/index114.cjs +14 -85
- package/dist/index114.cjs.map +1 -1
- package/dist/index114.js +13 -84
- package/dist/index114.js.map +1 -1
- package/dist/index115.cjs +10 -51
- package/dist/index115.cjs.map +1 -1
- package/dist/index115.js +9 -50
- package/dist/index115.js.map +1 -1
- package/dist/index116.cjs +62 -14
- package/dist/index116.cjs.map +1 -1
- package/dist/index116.js +63 -15
- package/dist/index116.js.map +1 -1
- package/dist/index117.cjs +16 -13
- package/dist/index117.cjs.map +1 -1
- package/dist/index117.js +17 -14
- package/dist/index117.js.map +1 -1
- package/dist/index118.cjs +70 -6
- package/dist/index118.cjs.map +1 -1
- package/dist/index118.js +69 -5
- package/dist/index118.js.map +1 -1
- package/dist/index119.cjs +50 -24
- package/dist/index119.cjs.map +1 -1
- package/dist/index119.js +49 -23
- package/dist/index119.js.map +1 -1
- package/dist/index12.cjs +2 -2
- package/dist/index12.js +2 -2
- package/dist/index120.cjs +6 -19
- package/dist/index120.cjs.map +1 -1
- package/dist/index120.js +5 -18
- package/dist/index120.js.map +1 -1
- package/dist/index121.cjs +28 -7
- package/dist/index121.cjs.map +1 -1
- package/dist/index121.js +27 -6
- package/dist/index121.js.map +1 -1
- package/dist/index122.cjs +82 -4
- package/dist/index122.cjs.map +1 -1
- package/dist/index122.js +83 -5
- package/dist/index122.js.map +1 -1
- package/dist/index123.cjs +3 -30
- package/dist/index123.cjs.map +1 -1
- package/dist/index123.js +3 -30
- package/dist/index123.js.map +1 -1
- package/dist/index124.cjs +9 -9
- package/dist/index124.js +10 -10
- package/dist/index125.cjs +2 -11
- package/dist/index125.cjs.map +1 -1
- package/dist/index125.js +2 -11
- package/dist/index125.js.map +1 -1
- package/dist/index126.cjs +19 -52
- package/dist/index126.cjs.map +1 -1
- package/dist/index126.js +19 -52
- package/dist/index126.js.map +1 -1
- package/dist/index127.cjs +28 -16
- package/dist/index127.cjs.map +1 -1
- package/dist/index127.js +28 -16
- package/dist/index127.js.map +1 -1
- package/dist/index128.cjs +13 -19
- package/dist/index128.cjs.map +1 -1
- package/dist/index128.js +14 -20
- package/dist/index128.js.map +1 -1
- package/dist/index129.cjs +30 -15
- package/dist/index129.cjs.map +1 -1
- package/dist/index129.js +30 -15
- package/dist/index129.js.map +1 -1
- package/dist/index13.cjs +2 -2
- package/dist/index13.js +2 -2
- package/dist/index131.cjs +15 -36
- package/dist/index131.cjs.map +1 -1
- package/dist/index131.js +15 -36
- package/dist/index131.js.map +1 -1
- package/dist/index132.cjs +36 -51
- package/dist/index132.cjs.map +1 -1
- package/dist/index132.js +36 -51
- package/dist/index132.js.map +1 -1
- package/dist/index133.cjs +14 -14
- package/dist/index133.js +15 -15
- package/dist/index134.cjs +21 -34
- package/dist/index134.cjs.map +1 -1
- package/dist/index134.js +20 -33
- package/dist/index134.js.map +1 -1
- package/dist/index135.cjs +38 -1162
- package/dist/index135.cjs.map +1 -1
- package/dist/index135.js +37 -1162
- package/dist/index135.js.map +1 -1
- package/dist/index136.cjs +85 -1568
- package/dist/index136.cjs.map +1 -1
- package/dist/index136.js +84 -1568
- package/dist/index136.js.map +1 -1
- package/dist/index137.cjs +40 -49
- package/dist/index137.cjs.map +1 -1
- package/dist/index137.js +39 -48
- package/dist/index137.js.map +1 -1
- package/dist/index138.cjs +15 -75
- package/dist/index138.cjs.map +1 -1
- package/dist/index138.js +14 -74
- package/dist/index138.js.map +1 -1
- package/dist/index139.cjs +87 -0
- package/dist/index139.cjs.map +1 -0
- package/dist/index139.js +87 -0
- package/dist/index139.js.map +1 -0
- 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 +3 -3
- package/dist/index16.js +3 -3
- 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 +3 -3
- package/dist/index23.js +3 -3
- package/dist/index24.cjs +4 -4
- package/dist/index24.js +4 -4
- package/dist/index25.cjs +4 -4
- package/dist/index25.js +4 -4
- 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 -184
- package/dist/index29.cjs.map +1 -1
- package/dist/index29.js +58 -184
- 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 +126 -136
- 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 +85 -100
- 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 +107 -58
- package/dist/index43.cjs.map +1 -1
- package/dist/index43.js +108 -59
- package/dist/index43.js.map +1 -1
- package/dist/index44.cjs +66 -76
- 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 +128 -73
- 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 +66 -181
- 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 +15 -64
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +17 -66
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +67 -15
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +66 -14
- package/dist/index61.js.map +1 -1
- package/dist/index62.cjs +4 -28
- package/dist/index62.cjs.map +1 -1
- package/dist/index62.js +3 -27
- package/dist/index62.js.map +1 -1
- package/dist/index63.cjs +10 -24
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +9 -23
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +15 -18
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +15 -18
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +22 -22
- package/dist/index65.js +22 -22
- package/dist/index66.cjs +19 -4
- package/dist/index66.cjs.map +1 -1
- package/dist/index66.js +18 -3
- package/dist/index66.js.map +1 -1
- package/dist/index67.cjs +18 -10
- package/dist/index67.cjs.map +1 -1
- package/dist/index67.js +17 -9
- package/dist/index67.js.map +1 -1
- package/dist/index68.cjs +151 -19
- package/dist/index68.cjs.map +1 -1
- package/dist/index68.js +149 -17
- package/dist/index68.js.map +1 -1
- package/dist/index69.cjs +18 -15
- package/dist/index69.cjs.map +1 -1
- package/dist/index69.js +18 -15
- package/dist/index69.js.map +1 -1
- package/dist/index70.cjs +19 -145
- package/dist/index70.cjs.map +1 -1
- package/dist/index70.js +17 -143
- package/dist/index70.js.map +1 -1
- package/dist/index71.cjs +22 -37
- package/dist/index71.cjs.map +1 -1
- package/dist/index71.js +22 -37
- package/dist/index71.js.map +1 -1
- package/dist/index72.cjs +22 -134
- package/dist/index72.cjs.map +1 -1
- package/dist/index72.js +21 -133
- 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 +22 -25
- package/dist/index74.cjs.map +1 -1
- package/dist/index74.js +23 -26
- package/dist/index74.js.map +1 -1
- package/dist/index75.cjs +9 -113
- package/dist/index75.cjs.map +1 -1
- package/dist/index75.js +9 -113
- package/dist/index75.js.map +1 -1
- package/dist/index76.cjs +40 -25
- package/dist/index76.cjs.map +1 -1
- package/dist/index76.js +41 -26
- 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 +25 -40
- package/dist/index78.cjs.map +1 -1
- package/dist/index78.js +26 -41
- package/dist/index78.js.map +1 -1
- package/dist/index79.cjs +70 -32
- package/dist/index79.cjs.map +1 -1
- package/dist/index79.js +70 -32
- package/dist/index79.js.map +1 -1
- package/dist/index80.cjs +57 -43
- package/dist/index80.cjs.map +1 -1
- package/dist/index80.js +56 -42
- package/dist/index80.js.map +1 -1
- package/dist/index81.cjs +15 -24
- package/dist/index81.cjs.map +1 -1
- package/dist/index81.js +14 -23
- package/dist/index81.js.map +1 -1
- package/dist/index82.cjs +132 -38
- package/dist/index82.cjs.map +1 -1
- package/dist/index82.js +132 -38
- package/dist/index82.js.map +1 -1
- package/dist/index83.cjs +46 -9
- package/dist/index83.cjs.map +1 -1
- package/dist/index83.js +45 -8
- package/dist/index83.js.map +1 -1
- package/dist/index84.cjs +9 -10
- package/dist/index84.cjs.map +1 -1
- package/dist/index84.js +8 -9
- package/dist/index84.js.map +1 -1
- package/dist/index85.cjs +34 -20
- package/dist/index85.cjs.map +1 -1
- package/dist/index85.js +33 -19
- package/dist/index85.js.map +1 -1
- package/dist/index86.cjs +52 -14
- package/dist/index86.cjs.map +1 -1
- package/dist/index86.js +51 -13
- package/dist/index86.js.map +1 -1
- package/dist/index87.cjs +33 -10
- package/dist/index87.cjs.map +1 -1
- package/dist/index87.js +33 -10
- package/dist/index87.js.map +1 -1
- package/dist/index88.cjs +8 -62
- package/dist/index88.cjs.map +1 -1
- package/dist/index88.js +9 -63
- package/dist/index88.js.map +1 -1
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +1 -1
- package/dist/index93.cjs +10 -48
- package/dist/index93.cjs.map +1 -1
- package/dist/index93.js +9 -47
- package/dist/index93.js.map +1 -1
- package/dist/index94.cjs +45 -15
- package/dist/index94.cjs.map +1 -1
- package/dist/index94.js +45 -15
- package/dist/index94.js.map +1 -1
- package/dist/index95.cjs +18 -37
- package/dist/index95.cjs.map +1 -1
- package/dist/index95.js +17 -36
- package/dist/index95.js.map +1 -1
- package/dist/index96.cjs +36 -39
- package/dist/index96.cjs.map +1 -1
- package/dist/index96.js +35 -38
- package/dist/index96.js.map +1 -1
- package/dist/index97.cjs +6 -92
- package/dist/index97.cjs.map +1 -1
- package/dist/index97.js +5 -91
- package/dist/index97.js.map +1 -1
- package/dist/index98.cjs +64 -34
- package/dist/index98.cjs.map +1 -1
- package/dist/index98.js +64 -34
- package/dist/index98.js.map +1 -1
- package/dist/index99.cjs +17 -6
- package/dist/index99.cjs.map +1 -1
- package/dist/index99.js +16 -5
- 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/index118.cjs
CHANGED
|
@@ -1,9 +1,73 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const clsx = require("./index64.cjs");
|
|
5
|
+
const lucideReact = require("lucide-react");
|
|
6
|
+
const constants = require("./index68.cjs");
|
|
7
|
+
const columnClasses = require("./index145.cjs");
|
|
8
|
+
const LiveExplorerTable_module = require("./index122.cjs");
|
|
9
|
+
const Button = require("./index14.cjs");
|
|
10
|
+
const ARIA_SORT = { asc: "ascending", desc: "descending" };
|
|
11
|
+
const ARROW = { asc: "▲", desc: "▼" };
|
|
12
|
+
const LiveExplorerHeaderCell = ({
|
|
13
|
+
column,
|
|
14
|
+
sortState,
|
|
15
|
+
onSort,
|
|
16
|
+
sortByLabel,
|
|
17
|
+
onResizeStart
|
|
18
|
+
}) => {
|
|
19
|
+
const direction = (sortState == null ? void 0 : sortState.column) === column.key ? sortState.direction : null;
|
|
20
|
+
const hasHeader = column.header !== void 0;
|
|
21
|
+
const sort = () => onSort(column.key);
|
|
22
|
+
const indicator = direction && /* @__PURE__ */ jsxRuntime.jsx("span", { className: LiveExplorerTable_module.default.sortIndicator, "aria-hidden": "true", children: ARROW[direction] });
|
|
23
|
+
const labelContent = column.sortable ? /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: LiveExplorerTable_module.default.sortLabel, onClick: sort, children: [
|
|
24
|
+
column.label,
|
|
25
|
+
indicator
|
|
26
|
+
] }) : column.label;
|
|
27
|
+
const toggleName = sortByLabel(column.label);
|
|
28
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
29
|
+
"th",
|
|
30
|
+
{
|
|
31
|
+
scope: "col",
|
|
32
|
+
className: clsx.clsx(LiveExplorerTable_module.default.th, columnClasses.alignClass(column.align), column.headerClassName),
|
|
33
|
+
style: column.width ? { width: `${column.width}px` } : void 0,
|
|
34
|
+
title: column.description || void 0,
|
|
35
|
+
"aria-sort": column.sortable ? direction ? ARIA_SORT[direction] : "none" : void 0,
|
|
36
|
+
"aria-label": hasHeader ? column.label : void 0,
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: LiveExplorerTable_module.default.thContent, children: [
|
|
39
|
+
hasHeader ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: LiveExplorerTable_module.default.headerContent, children: column.header }) : labelContent,
|
|
40
|
+
hasHeader && column.sortable && /* @__PURE__ */ jsxRuntime.jsx(
|
|
41
|
+
Button.Button,
|
|
42
|
+
{
|
|
43
|
+
variant: "ghost",
|
|
44
|
+
size: "sm",
|
|
45
|
+
className: clsx.clsx(LiveExplorerTable_module.default.sortToggle, direction && LiveExplorerTable_module.default.sortToggleActive),
|
|
46
|
+
"aria-label": toggleName,
|
|
47
|
+
"aria-pressed": direction !== null,
|
|
48
|
+
title: toggleName,
|
|
49
|
+
onClick: sort,
|
|
50
|
+
children: direction ? /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", children: ARROW[direction] }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowUpDown, { size: constants.SORT_ICON_SIZE, "aria-hidden": true })
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
] }),
|
|
54
|
+
onResizeStart && /* @__PURE__ */ jsxRuntime.jsx(
|
|
55
|
+
"span",
|
|
56
|
+
{
|
|
57
|
+
className: LiveExplorerTable_module.default.resizeHandle,
|
|
58
|
+
role: "separator",
|
|
59
|
+
"aria-orientation": "vertical",
|
|
60
|
+
onMouseDown: (e) => {
|
|
61
|
+
e.preventDefault();
|
|
62
|
+
e.stopPropagation();
|
|
63
|
+
const th = e.target.closest("th");
|
|
64
|
+
onResizeStart(column.key, e.clientX, (th == null ? void 0 : th.offsetWidth) ?? constants.RESIZE_FALLBACK_WIDTH);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
);
|
|
6
71
|
};
|
|
7
|
-
exports.
|
|
8
|
-
exports.root = root;
|
|
72
|
+
exports.LiveExplorerHeaderCell = LiveExplorerHeaderCell;
|
|
9
73
|
//# sourceMappingURL=index118.cjs.map
|
package/dist/index118.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index118.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index118.cjs","sources":["../src/data/LiveExplorerTable/LiveExplorerHeaderCell.tsx"],"sourcesContent":["import clsx from 'clsx';\nimport { ArrowUpDown } from 'lucide-react';\nimport { Button } from '../../primitives/Button';\nimport { RESIZE_FALLBACK_WIDTH, SORT_ICON_SIZE } from '../../constants';\nimport type {\n LiveExplorerHeaderCellProps,\n LiveExplorerSortDirection,\n} from './LiveExplorerTable.types';\nimport { alignClass } from './columnClasses';\nimport styles from './LiveExplorerTable.module.css';\n\nconst ARIA_SORT = { asc: 'ascending', desc: 'descending' } as const;\nconst ARROW = { asc: '▲', desc: '▼' } as const;\n\n/**\n * One column header. A sortable column sorts through a button: its label itself, or —\n * when the column draws its own `header` content — a ghost toggle next to that content.\n */\nexport const LiveExplorerHeaderCell = <Row, K extends string>({\n column,\n sortState,\n onSort,\n sortByLabel,\n onResizeStart,\n}: LiveExplorerHeaderCellProps<Row, K>) => {\n const direction: LiveExplorerSortDirection | null =\n sortState?.column === column.key ? sortState.direction : null;\n const hasHeader = column.header !== undefined;\n const sort = () => onSort(column.key);\n\n const indicator = direction && (\n <span className={styles.sortIndicator} aria-hidden=\"true\">\n {ARROW[direction]}\n </span>\n );\n\n const labelContent = column.sortable ? (\n <button type=\"button\" className={styles.sortLabel} onClick={sort}>\n {column.label}\n {indicator}\n </button>\n ) : (\n column.label\n );\n\n const toggleName = sortByLabel(column.label);\n\n return (\n <th\n scope=\"col\"\n className={clsx(styles.th, alignClass(column.align), column.headerClassName)}\n style={column.width ? { width: `${column.width}px` } : undefined}\n title={column.description || undefined}\n aria-sort={column.sortable ? (direction ? ARIA_SORT[direction] : 'none') : undefined}\n aria-label={hasHeader ? column.label : undefined}\n >\n <span className={styles.thContent}>\n {hasHeader ? <span className={styles.headerContent}>{column.header}</span> : labelContent}\n {hasHeader && column.sortable && (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n className={clsx(styles.sortToggle, direction && styles.sortToggleActive)}\n aria-label={toggleName}\n aria-pressed={direction !== null}\n title={toggleName}\n onClick={sort}\n >\n {direction ? (\n <span aria-hidden=\"true\">{ARROW[direction]}</span>\n ) : (\n <ArrowUpDown size={SORT_ICON_SIZE} aria-hidden />\n )}\n </Button>\n )}\n </span>\n {onResizeStart && (\n <span\n className={styles.resizeHandle}\n role=\"separator\"\n aria-orientation=\"vertical\"\n onMouseDown={(e) => {\n e.preventDefault();\n e.stopPropagation();\n const th = (e.target as HTMLElement).closest('th');\n onResizeStart(column.key, e.clientX, th?.offsetWidth ?? RESIZE_FALLBACK_WIDTH);\n }}\n />\n )}\n </th>\n );\n};\n"],"names":["jsx","styles","jsxs","clsx","alignClass","Button","ArrowUpDown","SORT_ICON_SIZE","RESIZE_FALLBACK_WIDTH"],"mappings":";;;;;;;;;AAWA,MAAM,YAAY,EAAE,KAAK,aAAa,MAAM,aAAA;A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AAAA,cACC,SAAQ;AAAA,cACR,MAAK;AAAA,cACL,WAAWF,KAAAA,KAAKF,yBAAAA,QAAO,YAAY,aAAaA,yBAAAA,QAAO,gBAAgB;AAAA,cACvE,cAAY;AAAA,cACZ,gBAAc,cAAc;AAAA,cAC5B,OAAO;AAAA,cACP,SAAS;AAAA,cAER,UAAA,YACCD,+BAAC,QAAA,EAAK,eAAY,QAAQ,UAAA,MAAM,SAAS,EAAA,CAAE,IAE3CA,2BAAAA,IAACM,YAAAA,aAAA,EAAY,MAAMC,UAAAA,gBAAgB,eAAW,KAAA,CAAC;AAAA,YAAA;AAAA,UAAA;AAAA,QAEnD,GAEJ;AAAA,QACC,iBACCP,2BAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWC,yBAAAA,QAAO;AAAA,YAClB,MAAK;AAAA,YACL,oBAAiB;AAAA,YACjB,aAAa,CAAC,MAAM;AAClB,gBAAE,eAAA;AACF,gBAAE,gBAAA;AACF,oBAAM,KAAM,EAAE,OAAuB,QAAQ,IAAI;AACjD,4BAAc,OAAO,KAAK,EAAE,UAAS,yBAAI,gBAAeO,+BAAqB;AAAA,YAC/E;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAIR;;"}
|
package/dist/index118.js
CHANGED
|
@@ -1,9 +1,73 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { clsx } from "./index64.js";
|
|
3
|
+
import { ArrowUpDown } from "lucide-react";
|
|
4
|
+
import { SORT_ICON_SIZE, RESIZE_FALLBACK_WIDTH } from "./index68.js";
|
|
5
|
+
import { alignClass } from "./index145.js";
|
|
6
|
+
import styles from "./index122.js";
|
|
7
|
+
import { Button } from "./index14.js";
|
|
8
|
+
const ARIA_SORT = { asc: "ascending", desc: "descending" };
|
|
9
|
+
const ARROW = { asc: "▲", desc: "▼" };
|
|
10
|
+
const LiveExplorerHeaderCell = ({
|
|
11
|
+
column,
|
|
12
|
+
sortState,
|
|
13
|
+
onSort,
|
|
14
|
+
sortByLabel,
|
|
15
|
+
onResizeStart
|
|
16
|
+
}) => {
|
|
17
|
+
const direction = (sortState == null ? void 0 : sortState.column) === column.key ? sortState.direction : null;
|
|
18
|
+
const hasHeader = column.header !== void 0;
|
|
19
|
+
const sort = () => onSort(column.key);
|
|
20
|
+
const indicator = direction && /* @__PURE__ */ jsx("span", { className: styles.sortIndicator, "aria-hidden": "true", children: ARROW[direction] });
|
|
21
|
+
const labelContent = column.sortable ? /* @__PURE__ */ jsxs("button", { type: "button", className: styles.sortLabel, onClick: sort, children: [
|
|
22
|
+
column.label,
|
|
23
|
+
indicator
|
|
24
|
+
] }) : column.label;
|
|
25
|
+
const toggleName = sortByLabel(column.label);
|
|
26
|
+
return /* @__PURE__ */ jsxs(
|
|
27
|
+
"th",
|
|
28
|
+
{
|
|
29
|
+
scope: "col",
|
|
30
|
+
className: clsx(styles.th, alignClass(column.align), column.headerClassName),
|
|
31
|
+
style: column.width ? { width: `${column.width}px` } : void 0,
|
|
32
|
+
title: column.description || void 0,
|
|
33
|
+
"aria-sort": column.sortable ? direction ? ARIA_SORT[direction] : "none" : void 0,
|
|
34
|
+
"aria-label": hasHeader ? column.label : void 0,
|
|
35
|
+
children: [
|
|
36
|
+
/* @__PURE__ */ jsxs("span", { className: styles.thContent, children: [
|
|
37
|
+
hasHeader ? /* @__PURE__ */ jsx("span", { className: styles.headerContent, children: column.header }) : labelContent,
|
|
38
|
+
hasHeader && column.sortable && /* @__PURE__ */ jsx(
|
|
39
|
+
Button,
|
|
40
|
+
{
|
|
41
|
+
variant: "ghost",
|
|
42
|
+
size: "sm",
|
|
43
|
+
className: clsx(styles.sortToggle, direction && styles.sortToggleActive),
|
|
44
|
+
"aria-label": toggleName,
|
|
45
|
+
"aria-pressed": direction !== null,
|
|
46
|
+
title: toggleName,
|
|
47
|
+
onClick: sort,
|
|
48
|
+
children: direction ? /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: ARROW[direction] }) : /* @__PURE__ */ jsx(ArrowUpDown, { size: SORT_ICON_SIZE, "aria-hidden": true })
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
] }),
|
|
52
|
+
onResizeStart && /* @__PURE__ */ jsx(
|
|
53
|
+
"span",
|
|
54
|
+
{
|
|
55
|
+
className: styles.resizeHandle,
|
|
56
|
+
role: "separator",
|
|
57
|
+
"aria-orientation": "vertical",
|
|
58
|
+
onMouseDown: (e) => {
|
|
59
|
+
e.preventDefault();
|
|
60
|
+
e.stopPropagation();
|
|
61
|
+
const th = e.target.closest("th");
|
|
62
|
+
onResizeStart(column.key, e.clientX, (th == null ? void 0 : th.offsetWidth) ?? RESIZE_FALLBACK_WIDTH);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
);
|
|
4
69
|
};
|
|
5
70
|
export {
|
|
6
|
-
|
|
7
|
-
root
|
|
71
|
+
LiveExplorerHeaderCell
|
|
8
72
|
};
|
|
9
73
|
//# sourceMappingURL=index118.js.map
|
package/dist/index118.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index118.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index118.js","sources":["../src/data/LiveExplorerTable/LiveExplorerHeaderCell.tsx"],"sourcesContent":["import clsx from 'clsx';\nimport { ArrowUpDown } from 'lucide-react';\nimport { Button } from '../../primitives/Button';\nimport { RESIZE_FALLBACK_WIDTH, SORT_ICON_SIZE } from '../../constants';\nimport type {\n LiveExplorerHeaderCellProps,\n LiveExplorerSortDirection,\n} from './LiveExplorerTable.types';\nimport { alignClass } from './columnClasses';\nimport styles from './LiveExplorerTable.module.css';\n\nconst ARIA_SORT = { asc: 'ascending', desc: 'descending' } as const;\nconst ARROW = { asc: '▲', desc: '▼' } as const;\n\n/**\n * One column header. A sortable column sorts through a button: its label itself, or —\n * when the column draws its own `header` content — a ghost toggle next to that content.\n */\nexport const LiveExplorerHeaderCell = <Row, K extends string>({\n column,\n sortState,\n onSort,\n sortByLabel,\n onResizeStart,\n}: LiveExplorerHeaderCellProps<Row, K>) => {\n const direction: LiveExplorerSortDirection | null =\n sortState?.column === column.key ? sortState.direction : null;\n const hasHeader = column.header !== undefined;\n const sort = () => onSort(column.key);\n\n const indicator = direction && (\n <span className={styles.sortIndicator} aria-hidden=\"true\">\n {ARROW[direction]}\n </span>\n );\n\n const labelContent = column.sortable ? (\n <button type=\"button\" className={styles.sortLabel} onClick={sort}>\n {column.label}\n {indicator}\n </button>\n ) : (\n column.label\n );\n\n const toggleName = sortByLabel(column.label);\n\n return (\n <th\n scope=\"col\"\n className={clsx(styles.th, alignClass(column.align), column.headerClassName)}\n style={column.width ? { width: `${column.width}px` } : undefined}\n title={column.description || undefined}\n aria-sort={column.sortable ? (direction ? ARIA_SORT[direction] : 'none') : undefined}\n aria-label={hasHeader ? column.label : undefined}\n >\n <span className={styles.thContent}>\n {hasHeader ? <span className={styles.headerContent}>{column.header}</span> : labelContent}\n {hasHeader && column.sortable && (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n className={clsx(styles.sortToggle, direction && styles.sortToggleActive)}\n aria-label={toggleName}\n aria-pressed={direction !== null}\n title={toggleName}\n onClick={sort}\n >\n {direction ? (\n <span aria-hidden=\"true\">{ARROW[direction]}</span>\n ) : (\n <ArrowUpDown size={SORT_ICON_SIZE} aria-hidden />\n )}\n </Button>\n )}\n </span>\n {onResizeStart && (\n <span\n className={styles.resizeHandle}\n role=\"separator\"\n aria-orientation=\"vertical\"\n onMouseDown={(e) => {\n e.preventDefault();\n e.stopPropagation();\n const th = (e.target as HTMLElement).closest('th');\n onResizeStart(column.key, e.clientX, th?.offsetWidth ?? RESIZE_FALLBACK_WIDTH);\n }}\n />\n )}\n </th>\n );\n};\n"],"names":[],"mappings":";;;;;;;AAWA,MAAM,YAA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gB;AAAA,cACvE,cAAY;AAAA,cACZ,gBAAc,cAAc;AAAA,cAC5B,OAAO;AAAA,cACP,SAAS;AAAA,cAER,UAAA,YACC,oBAAC,QAAA,EAAK,eAAY,QAAQ,UAAA,MAAM,SAAS,EAAA,CAAE,IAE3C,oBAAC,aAAA,EAAY,MAAM,gBAAgB,eAAW,KAAA,CAAC;AAAA,YAAA;AAAA,UAAA;AAAA,QAEnD,GAEJ;AAAA,QACC,iBACC;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAW,OAAO;AAAA,YAClB,MAAK;AAAA,YACL,oBAAiB;AAAA,YACjB,aAAa,CAAC,MAAM;AAClB,gBAAE,eAAA;AACF,gBAAE,gBAAA;AACF,oBAAM,KAAM,EAAE,OAAuB,QAAQ,IAAI;AACjD,4BAAc,OAAO,KAAK,EAAE,UAAS,yBAAI,gBAAe,qBAAqB;AAAA,YAC/E;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAIR;"}
|
package/dist/index119.cjs
CHANGED
|
@@ -1,27 +1,53 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const react = require("react");
|
|
5
|
+
const constants = require("./index68.cjs");
|
|
6
|
+
const groupRows = require("./index146.cjs");
|
|
7
|
+
const LiveExplorerDataRow = require("./index147.cjs");
|
|
8
|
+
const LiveExplorerTable_module = require("./index122.cjs");
|
|
9
|
+
const LiveExplorerBody = ({
|
|
10
|
+
rows,
|
|
11
|
+
columns,
|
|
12
|
+
getRowId,
|
|
13
|
+
isLoading,
|
|
14
|
+
empty,
|
|
15
|
+
selectedRowKey,
|
|
16
|
+
selectedRef,
|
|
17
|
+
onRowClick,
|
|
18
|
+
rowClassName,
|
|
19
|
+
renderExpandedRow,
|
|
20
|
+
expandedRowKeys,
|
|
21
|
+
groupBy,
|
|
22
|
+
renderGroupHeader
|
|
23
|
+
}) => {
|
|
24
|
+
if (rows.length === 0 && isLoading) {
|
|
25
|
+
return /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: Array.from({ length: constants.LIVE_EXPLORER_SKELETON_ROWS }, (_, i) => /* @__PURE__ */ jsxRuntime.jsx("tr", { className: LiveExplorerTable_module.default.skeletonRow, children: columns.map((col) => /* @__PURE__ */ jsxRuntime.jsx("td", { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: LiveExplorerTable_module.default.skeleton }) }, col.key)) }, `skeleton-${i}`)) });
|
|
26
|
+
}
|
|
27
|
+
if (rows.length === 0) {
|
|
28
|
+
return /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: /* @__PURE__ */ jsxRuntime.jsx("tr", { className: LiveExplorerTable_module.default.emptyRow, children: /* @__PURE__ */ jsxRuntime.jsx("td", { colSpan: columns.length, className: LiveExplorerTable_module.default.emptyCell, children: empty }) }) });
|
|
29
|
+
}
|
|
30
|
+
const expanded = new Set(expandedRowKeys);
|
|
31
|
+
return /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: groupRows.groupRows(rows, groupBy).map((group) => /* @__PURE__ */ jsxRuntime.jsxs(react.Fragment, { children: [
|
|
32
|
+
group.key !== null && /* @__PURE__ */ jsxRuntime.jsx("tr", { className: LiveExplorerTable_module.default.groupRow, children: /* @__PURE__ */ jsxRuntime.jsx("th", { scope: "colgroup", colSpan: columns.length, className: LiveExplorerTable_module.default.groupHeader, children: renderGroupHeader ? renderGroupHeader(group.key, group.rows) : group.key }) }),
|
|
33
|
+
group.rows.map((row) => {
|
|
34
|
+
const rowKey = getRowId(row);
|
|
35
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
36
|
+
LiveExplorerDataRow.LiveExplorerDataRow,
|
|
37
|
+
{
|
|
38
|
+
row,
|
|
39
|
+
columns,
|
|
40
|
+
isSelected: rowKey === selectedRowKey,
|
|
41
|
+
selectedRef,
|
|
42
|
+
onRowClick,
|
|
43
|
+
className: rowClassName == null ? void 0 : rowClassName(row),
|
|
44
|
+
isExpanded: expanded.has(rowKey),
|
|
45
|
+
renderExpandedRow
|
|
46
|
+
},
|
|
47
|
+
rowKey
|
|
48
|
+
);
|
|
49
|
+
})
|
|
50
|
+
] }, group.key ?? "")) });
|
|
18
51
|
};
|
|
19
|
-
exports.
|
|
20
|
-
exports.badge = badge;
|
|
21
|
-
exports.collapsed = collapsed;
|
|
22
|
-
exports.default = styles;
|
|
23
|
-
exports.disabled = disabled;
|
|
24
|
-
exports.icon = icon;
|
|
25
|
-
exports.label = label;
|
|
26
|
-
exports.root = root;
|
|
52
|
+
exports.LiveExplorerBody = LiveExplorerBody;
|
|
27
53
|
//# sourceMappingURL=index119.cjs.map
|
package/dist/index119.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index119.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index119.cjs","sources":["../src/data/LiveExplorerTable/LiveExplorerBody.tsx"],"sourcesContent":["import { Fragment } from 'react';\nimport { LIVE_EXPLORER_SKELETON_ROWS } from '../../constants';\nimport type { LiveExplorerBodyProps } from './LiveExplorerTable.types';\nimport { groupRows } from './groupRows';\nimport { LiveExplorerDataRow } from './LiveExplorerDataRow';\nimport styles from './LiveExplorerTable.module.css';\n\n/**\n * The table body: skeleton rows while the first page loads, a full-width empty row when\n * there is nothing to show, and otherwise the rows — grouped and expanded as asked.\n */\nexport const LiveExplorerBody = <Row, K extends string>({\n rows,\n columns,\n getRowId,\n isLoading,\n empty,\n selectedRowKey,\n selectedRef,\n onRowClick,\n rowClassName,\n renderExpandedRow,\n expandedRowKeys,\n groupBy,\n renderGroupHeader,\n}: LiveExplorerBodyProps<Row, K>) => {\n if (rows.length === 0 && isLoading) {\n return (\n <tbody>\n {Array.from({ length: LIVE_EXPLORER_SKELETON_ROWS }, (_, i) => (\n <tr key={`skeleton-${i}`} className={styles.skeletonRow}>\n {columns.map((col) => (\n <td key={col.key}>\n <div className={styles.skeleton} />\n </td>\n ))}\n </tr>\n ))}\n </tbody>\n );\n }\n\n if (rows.length === 0) {\n return (\n <tbody>\n <tr className={styles.emptyRow}>\n <td colSpan={columns.length} className={styles.emptyCell}>\n {empty}\n </td>\n </tr>\n </tbody>\n );\n }\n\n const expanded = new Set(expandedRowKeys);\n\n return (\n <tbody>\n {groupRows(rows, groupBy).map((group) => (\n <Fragment key={group.key ?? ''}>\n {group.key !== null && (\n <tr className={styles.groupRow}>\n <th scope=\"colgroup\" colSpan={columns.length} className={styles.groupHeader}>\n {renderGroupHeader ? renderGroupHeader(group.key, group.rows) : group.key}\n </th>\n </tr>\n )}\n {group.rows.map((row) => {\n const rowKey = getRowId(row);\n return (\n <LiveExplorerDataRow\n key={rowKey}\n row={row}\n columns={columns}\n isSelected={rowKey === selectedRowKey}\n selectedRef={selectedRef}\n onRowClick={onRowClick}\n className={rowClassName?.(row)}\n isExpanded={expanded.has(rowKey)}\n renderExpandedRow={renderExpandedRow}\n />\n );\n })}\n </Fragment>\n ))}\n </tbody>\n );\n};\n"],"names":["LIVE_EXPLORER_SKELETON_ROWS","jsx","styles","groupRows","jsxs","Fragment","LiveExplorerDataRow"],"mappings":";;;;;;;;AAWO,MAAM,mBAAmB,CAAwB;AAAA,EACtD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAqC;AACnC,MAAI,KAAK,WAAW,KAAK,WAAW;AAClC,0CACG,SAAA,EACE,UA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;AAAA,UAC/B;AAAA,QAAA;AAAA,QARK;AAAA,MAAA;AAAA,IAWX,CAAC;AAAA,EAAA,EAAA,GAvBY,MAAM,OAAO,EAwB5B,CACD,EAAA,CACH;AAEJ;;"}
|
package/dist/index119.js
CHANGED
|
@@ -1,27 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment } from "react";
|
|
3
|
+
import { LIVE_EXPLORER_SKELETON_ROWS } from "./index68.js";
|
|
4
|
+
import { groupRows } from "./index146.js";
|
|
5
|
+
import { LiveExplorerDataRow } from "./index147.js";
|
|
6
|
+
import styles from "./index122.js";
|
|
7
|
+
const LiveExplorerBody = ({
|
|
8
|
+
rows,
|
|
9
|
+
columns,
|
|
10
|
+
getRowId,
|
|
11
|
+
isLoading,
|
|
12
|
+
empty,
|
|
13
|
+
selectedRowKey,
|
|
14
|
+
selectedRef,
|
|
15
|
+
onRowClick,
|
|
16
|
+
rowClassName,
|
|
17
|
+
renderExpandedRow,
|
|
18
|
+
expandedRowKeys,
|
|
19
|
+
groupBy,
|
|
20
|
+
renderGroupHeader
|
|
21
|
+
}) => {
|
|
22
|
+
if (rows.length === 0 && isLoading) {
|
|
23
|
+
return /* @__PURE__ */ jsx("tbody", { children: Array.from({ length: LIVE_EXPLORER_SKELETON_ROWS }, (_, i) => /* @__PURE__ */ jsx("tr", { className: styles.skeletonRow, children: columns.map((col) => /* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx("div", { className: styles.skeleton }) }, col.key)) }, `skeleton-${i}`)) });
|
|
24
|
+
}
|
|
25
|
+
if (rows.length === 0) {
|
|
26
|
+
return /* @__PURE__ */ jsx("tbody", { children: /* @__PURE__ */ jsx("tr", { className: styles.emptyRow, children: /* @__PURE__ */ jsx("td", { colSpan: columns.length, className: styles.emptyCell, children: empty }) }) });
|
|
27
|
+
}
|
|
28
|
+
const expanded = new Set(expandedRowKeys);
|
|
29
|
+
return /* @__PURE__ */ jsx("tbody", { children: groupRows(rows, groupBy).map((group) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
30
|
+
group.key !== null && /* @__PURE__ */ jsx("tr", { className: styles.groupRow, children: /* @__PURE__ */ jsx("th", { scope: "colgroup", colSpan: columns.length, className: styles.groupHeader, children: renderGroupHeader ? renderGroupHeader(group.key, group.rows) : group.key }) }),
|
|
31
|
+
group.rows.map((row) => {
|
|
32
|
+
const rowKey = getRowId(row);
|
|
33
|
+
return /* @__PURE__ */ jsx(
|
|
34
|
+
LiveExplorerDataRow,
|
|
35
|
+
{
|
|
36
|
+
row,
|
|
37
|
+
columns,
|
|
38
|
+
isSelected: rowKey === selectedRowKey,
|
|
39
|
+
selectedRef,
|
|
40
|
+
onRowClick,
|
|
41
|
+
className: rowClassName == null ? void 0 : rowClassName(row),
|
|
42
|
+
isExpanded: expanded.has(rowKey),
|
|
43
|
+
renderExpandedRow
|
|
44
|
+
},
|
|
45
|
+
rowKey
|
|
46
|
+
);
|
|
47
|
+
})
|
|
48
|
+
] }, group.key ?? "")) });
|
|
16
49
|
};
|
|
17
50
|
export {
|
|
18
|
-
|
|
19
|
-
badge,
|
|
20
|
-
collapsed,
|
|
21
|
-
styles as default,
|
|
22
|
-
disabled,
|
|
23
|
-
icon,
|
|
24
|
-
label,
|
|
25
|
-
root
|
|
51
|
+
LiveExplorerBody
|
|
26
52
|
};
|
|
27
53
|
//# sourceMappingURL=index119.js.map
|
package/dist/index119.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index119.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index119.js","sources":["../src/data/LiveExplorerTable/LiveExplorerBody.tsx"],"sourcesContent":["import { Fragment } from 'react';\nimport { LIVE_EXPLORER_SKELETON_ROWS } from '../../constants';\nimport type { LiveExplorerBodyProps } from './LiveExplorerTable.types';\nimport { groupRows } from './groupRows';\nimport { LiveExplorerDataRow } from './LiveExplorerDataRow';\nimport styles from './LiveExplorerTable.module.css';\n\n/**\n * The table body: skeleton rows while the first page loads, a full-width empty row when\n * there is nothing to show, and otherwise the rows — grouped and expanded as asked.\n */\nexport const LiveExplorerBody = <Row, K extends string>({\n rows,\n columns,\n getRowId,\n isLoading,\n empty,\n selectedRowKey,\n selectedRef,\n onRowClick,\n rowClassName,\n renderExpandedRow,\n expandedRowKeys,\n groupBy,\n renderGroupHeader,\n}: LiveExplorerBodyProps<Row, K>) => {\n if (rows.length === 0 && isLoading) {\n return (\n <tbody>\n {Array.from({ length: LIVE_EXPLORER_SKELETON_ROWS }, (_, i) => (\n <tr key={`skeleton-${i}`} className={styles.skeletonRow}>\n {columns.map((col) => (\n <td key={col.key}>\n <div className={styles.skeleton} />\n </td>\n ))}\n </tr>\n ))}\n </tbody>\n );\n }\n\n if (rows.length === 0) {\n return (\n <tbody>\n <tr className={styles.emptyRow}>\n <td colSpan={columns.length} className={styles.emptyCell}>\n {empty}\n </td>\n </tr>\n </tbody>\n );\n }\n\n const expanded = new Set(expandedRowKeys);\n\n return (\n <tbody>\n {groupRows(rows, groupBy).map((group) => (\n <Fragment key={group.key ?? ''}>\n {group.key !== null && (\n <tr className={styles.groupRow}>\n <th scope=\"colgroup\" colSpan={columns.length} className={styles.groupHeader}>\n {renderGroupHeader ? renderGroupHeader(group.key, group.rows) : group.key}\n </th>\n </tr>\n )}\n {group.rows.map((row) => {\n const rowKey = getRowId(row);\n return (\n <LiveExplorerDataRow\n key={rowKey}\n row={row}\n columns={columns}\n isSelected={rowKey === selectedRowKey}\n selectedRef={selectedRef}\n onRowClick={onRowClick}\n className={rowClassName?.(row)}\n isExpanded={expanded.has(rowKey)}\n renderExpandedRow={renderExpandedR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AAC;AAAA,QAAA;AAAA,UAEC;AAAA,UACA;AAAA,UACA,YAAY,WAAW;AAAA,UACvB;AAAA,UACA;AAAA,UACA,WAAW,6CAAe;AAAA,UAC1B,YAAY,SAAS,IAAI,MAAM;AAAA,UAC/B;AAAA,QAAA;AAAA,QARK;AAAA,MAAA;AAAA,IAWX,CAAC;AAAA,EAAA,EAAA,GAvBY,MAAM,OAAO,EAwB5B,CACD,EAAA,CACH;AAEJ;"}
|
package/dist/index12.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const clsx = require("./
|
|
5
|
-
const Avatar_module = require("./
|
|
4
|
+
const clsx = require("./index64.cjs");
|
|
5
|
+
const Avatar_module = require("./index81.cjs");
|
|
6
6
|
const Avatar = ({ label, size = "md", className, ...props }) => {
|
|
7
7
|
const initials = label.split(" ").filter(Boolean).map((part) => part[0]).join("").slice(0, 2).toUpperCase();
|
|
8
8
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
package/dist/index12.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { clsx } from "./
|
|
3
|
-
import styles from "./
|
|
2
|
+
import { clsx } from "./index64.js";
|
|
3
|
+
import styles from "./index81.js";
|
|
4
4
|
const Avatar = ({ label, size = "md", className, ...props }) => {
|
|
5
5
|
const initials = label.split(" ").filter(Boolean).map((part) => part[0]).join("").slice(0, 2).toUpperCase();
|
|
6
6
|
return /* @__PURE__ */ jsx(
|
package/dist/index120.cjs
CHANGED
|
@@ -1,21 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const styles = {
|
|
9
|
-
root,
|
|
10
|
-
left,
|
|
11
|
-
right,
|
|
12
|
-
divider,
|
|
13
|
-
dividerHandle
|
|
14
|
-
};
|
|
15
|
-
exports.default = styles;
|
|
16
|
-
exports.divider = divider;
|
|
17
|
-
exports.dividerHandle = dividerHandle;
|
|
18
|
-
exports.left = left;
|
|
19
|
-
exports.right = right;
|
|
20
|
-
exports.root = root;
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
function nextSortState(current, column) {
|
|
4
|
+
if ((current == null ? void 0 : current.column) !== column) return { column, direction: "asc" };
|
|
5
|
+
return current.direction === "asc" ? { column, direction: "desc" } : null;
|
|
6
|
+
}
|
|
7
|
+
exports.nextSortState = nextSortState;
|
|
21
8
|
//# sourceMappingURL=index120.cjs.map
|
package/dist/index120.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index120.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index120.cjs","sources":["../src/data/LiveExplorerTable/nextSortState.ts"],"sourcesContent":["import type { LiveExplorerSortState } from './LiveExplorerTable.types';\n\n/**\n * The sort a click on `column`'s sort button asks for: another column → ascending; the\n * sorted column ascending → descending; the sorted column descending → no sort.\n */\nexport function nextSortState<K extends string>(\n current: LiveExplorerSortState<K> | null,\n column: K,\n): LiveExplorerSortState<K> | null {\n if (current?.column !== column) return { column, direction: 'asc' };\n return current.direction === 'asc' ? { column, direction: 'desc' } : null;\n}\n"],"names":[],"mappings":";;AAMO,SAAS,cACd,SACA,QACiC;AACjC,OAAI,mCAAS,YAAW,eAAe,EAAE,QAAQ,WAAW,MAAA;AAC5D,SAAO,QAAQ,cAAc,QAAQ,EAAE,QAAQ,WAAW,WAAW;AACvE;;"}
|
package/dist/index120.js
CHANGED
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const dividerHandle = "krc-dividerHandle-SoNqx";
|
|
6
|
-
const styles = {
|
|
7
|
-
root,
|
|
8
|
-
left,
|
|
9
|
-
right,
|
|
10
|
-
divider,
|
|
11
|
-
dividerHandle
|
|
12
|
-
};
|
|
1
|
+
function nextSortState(current, column) {
|
|
2
|
+
if ((current == null ? void 0 : current.column) !== column) return { column, direction: "asc" };
|
|
3
|
+
return current.direction === "asc" ? { column, direction: "desc" } : null;
|
|
4
|
+
}
|
|
13
5
|
export {
|
|
14
|
-
|
|
15
|
-
divider,
|
|
16
|
-
dividerHandle,
|
|
17
|
-
left,
|
|
18
|
-
right,
|
|
19
|
-
root
|
|
6
|
+
nextSortState
|
|
20
7
|
};
|
|
21
8
|
//# sourceMappingURL=index120.js.map
|
package/dist/index120.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index120.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index120.js","sources":["../src/data/LiveExplorerTable/nextSortState.ts"],"sourcesContent":["import type { LiveExplorerSortState } from './LiveExplorerTable.types';\n\n/**\n * The sort a click on `column`'s sort button asks for: another column → ascending; the\n * sorted column ascending → descending; the sorted column descending → no sort.\n */\nexport function nextSortState<K extends string>(\n current: LiveExplorerSortState<K> | null,\n column: K,\n): LiveExplorerSortState<K> | null {\n if (current?.column !== column) return { column, direction: 'asc' };\n return current.direction === 'asc' ? { column, direction: 'desc' } : null;\n}\n"],"names":[],"mappings":"AAMO,SAAS,cACd,SACA,QACiC;AACjC,OAAI,mCAAS,YAAW,eAAe,EAAE,QAAQ,WAAW,MAAA;AAC5D,SAAO,QAAQ,cAAc,QAAQ,EAAE,QAAQ,WAAW,WAAW;AACvE;"}
|
package/dist/index121.cjs
CHANGED
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const react = require("react");
|
|
4
|
+
const constants = require("./index68.cjs");
|
|
5
|
+
function useColumnResize(columns, onColumnResize) {
|
|
6
|
+
return react.useCallback(
|
|
7
|
+
(columnKey, startX, startWidth) => {
|
|
8
|
+
if (!onColumnResize) return;
|
|
9
|
+
const col = columns.find((c) => c.key === columnKey);
|
|
10
|
+
const minW = (col == null ? void 0 : col.minWidth) ?? constants.MIN_COLUMN_WIDTH;
|
|
11
|
+
const onMouseMove = (e) => {
|
|
12
|
+
const newWidth = Math.max(minW, startWidth + e.clientX - startX);
|
|
13
|
+
onColumnResize(columnKey, newWidth);
|
|
14
|
+
};
|
|
15
|
+
const onMouseUp = () => {
|
|
16
|
+
document.removeEventListener("mousemove", onMouseMove);
|
|
17
|
+
document.removeEventListener("mouseup", onMouseUp);
|
|
18
|
+
document.body.style.cursor = "";
|
|
19
|
+
document.body.style.userSelect = "";
|
|
20
|
+
};
|
|
21
|
+
document.addEventListener("mousemove", onMouseMove);
|
|
22
|
+
document.addEventListener("mouseup", onMouseUp);
|
|
23
|
+
document.body.style.cursor = "col-resize";
|
|
24
|
+
document.body.style.userSelect = "none";
|
|
25
|
+
},
|
|
26
|
+
[onColumnResize, columns]
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
exports.useColumnResize = useColumnResize;
|
|
9
30
|
//# sourceMappingURL=index121.cjs.map
|
package/dist/index121.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index121.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index121.cjs","sources":["../src/data/LiveExplorerTable/useColumnResize.ts"],"sourcesContent":["import { useCallback } from 'react';\nimport { MIN_COLUMN_WIDTH } from '../../constants';\nimport type { LiveExplorerColumnDef } from './LiveExplorerTable.types';\n\n/**\n * Starts a mouse-drag resize of a column: reports each new width (never below the\n * column's `minWidth`) until the mouse is released. Without `onColumnResize`, a no-op.\n */\nexport function useColumnResize<Row, K extends string>(\n columns: LiveExplorerColumnDef<Row, K>[],\n onColumnResize?: (column: K, width: number) => void,\n) {\n return useCallback(\n (columnKey: K, startX: number, startWidth: number) => {\n if (!onColumnResize) return;\n const col = columns.find((c) => c.key === columnKey);\n const minW = col?.minWidth ?? MIN_COLUMN_WIDTH;\n\n const onMouseMove = (e: MouseEvent) => {\n const newWidth = Math.max(minW, startWidth + e.clientX - startX);\n onColumnResize(columnKey, newWidth);\n };\n\n const onMouseUp = () => {\n document.removeEventListener('mousemove', onMouseMove);\n document.removeEventListener('mouseup', onMouseUp);\n document.body.style.cursor = '';\n document.body.style.userSelect = '';\n };\n\n document.addEventListener('mousemove', onMouseMove);\n document.addEventListener('mouseup', onMouseUp);\n document.body.style.cursor = 'col-resize';\n document.body.style.userSelect = 'none';\n },\n [onColumnResize, columns],\n );\n}\n"],"names":["useCallback","MIN_COLUMN_WIDTH"],"mappings":";;;;AAQO,SAAS,gBACd,SACA,gBACA;AACA,SAAOA,MAAAA;AAAAA,IACL,CAAC,WAAc,QAAgB,eAAuB;AACpD,UAAI,CAAC,eAAgB;AACrB,YAAM,MAAM,QAAQ,KAAK,CAAC,MAAM,EAAE,QAAQ,SAAS;AACnD,YAAM,QAAO,2BAAK,aAAYC,UAAAA;AAE9B,YAAM,cAAc,CAAC,MAAkB;AACrC,cAAM,WAAW,KAAK,IAAI,MAAM,aAAa,EAAE,UAAU,MAAM;AAC/D,uBAAe,WAAW,QAAQ;AAAA,MACpC;AAEA,YAAM,YAAY,MAAM;AACtB,iBAAS,oBAAoB,aAAa,WAAW;AACrD,iBAAS,oBAAoB,WAAW,SAAS;AACjD,iBAAS,KAAK,MAAM,SAAS;AAC7B,iBAAS,KAAK,MAAM,aAAa;AAAA,MACnC;AAEA,eAAS,iBAAiB,aAAa,WAAW;AAClD,eAAS,iBAAiB,WAAW,SAAS;AAC9C,eAAS,KAAK,MAAM,SAAS;AAC7B,eAAS,KAAK,MAAM,aAAa;AAAA,IACnC;AAAA,IACA,CAAC,gBAAgB,OAAO;AAAA,EAAA;AAE5B;;"}
|
package/dist/index121.js
CHANGED
|
@@ -1,9 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { useCallback } from "react";
|
|
2
|
+
import { MIN_COLUMN_WIDTH } from "./index68.js";
|
|
3
|
+
function useColumnResize(columns, onColumnResize) {
|
|
4
|
+
return useCallback(
|
|
5
|
+
(columnKey, startX, startWidth) => {
|
|
6
|
+
if (!onColumnResize) return;
|
|
7
|
+
const col = columns.find((c) => c.key === columnKey);
|
|
8
|
+
const minW = (col == null ? void 0 : col.minWidth) ?? MIN_COLUMN_WIDTH;
|
|
9
|
+
const onMouseMove = (e) => {
|
|
10
|
+
const newWidth = Math.max(minW, startWidth + e.clientX - startX);
|
|
11
|
+
onColumnResize(columnKey, newWidth);
|
|
12
|
+
};
|
|
13
|
+
const onMouseUp = () => {
|
|
14
|
+
document.removeEventListener("mousemove", onMouseMove);
|
|
15
|
+
document.removeEventListener("mouseup", onMouseUp);
|
|
16
|
+
document.body.style.cursor = "";
|
|
17
|
+
document.body.style.userSelect = "";
|
|
18
|
+
};
|
|
19
|
+
document.addEventListener("mousemove", onMouseMove);
|
|
20
|
+
document.addEventListener("mouseup", onMouseUp);
|
|
21
|
+
document.body.style.cursor = "col-resize";
|
|
22
|
+
document.body.style.userSelect = "none";
|
|
23
|
+
},
|
|
24
|
+
[onColumnResize, columns]
|
|
25
|
+
);
|
|
26
|
+
}
|
|
5
27
|
export {
|
|
6
|
-
|
|
7
|
-
root
|
|
28
|
+
useColumnResize
|
|
8
29
|
};
|
|
9
30
|
//# sourceMappingURL=index121.js.map
|
package/dist/index121.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index121.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index121.js","sources":["../src/data/LiveExplorerTable/useColumnResize.ts"],"sourcesContent":["import { useCallback } from 'react';\nimport { MIN_COLUMN_WIDTH } from '../../constants';\nimport type { LiveExplorerColumnDef } from './LiveExplorerTable.types';\n\n/**\n * Starts a mouse-drag resize of a column: reports each new width (never below the\n * column's `minWidth`) until the mouse is released. Without `onColumnResize`, a no-op.\n */\nexport function useColumnResize<Row, K extends string>(\n columns: LiveExplorerColumnDef<Row, K>[],\n onColumnResize?: (column: K, width: number) => void,\n) {\n return useCallback(\n (columnKey: K, startX: number, startWidth: number) => {\n if (!onColumnResize) return;\n const col = columns.find((c) => c.key === columnKey);\n const minW = col?.minWidth ?? MIN_COLUMN_WIDTH;\n\n const onMouseMove = (e: MouseEvent) => {\n const newWidth = Math.max(minW, startWidth + e.clientX - startX);\n onColumnResize(columnKey, newWidth);\n };\n\n const onMouseUp = () => {\n document.removeEventListener('mousemove', onMouseMove);\n document.removeEventListener('mouseup', onMouseUp);\n document.body.style.cursor = '';\n document.body.style.userSelect = '';\n };\n\n document.addEventListener('mousemove', onMouseMove);\n document.addEventListener('mouseup', onMouseUp);\n document.body.style.cursor = 'col-resize';\n document.body.style.userSelect = 'none';\n },\n [onColumnResize, columns],\n );\n}\n"],"names":[],"mappings":";;AAQO,SAAS,gBACd,SACA,gBACA;AACA,SAAO;AAAA,IACL,CAAC,WAAc,QAAgB,eAAuB;AACpD,UAAI,CAAC,eAAgB;AACrB,YAAM,MAAM,QAAQ,KAAK,CAAC,MAAM,EAAE,QAAQ,SAAS;AACnD,YAAM,QAAO,2BAAK,aAAY;AAE9B,YAAM,cAAc,CAAC,MAAkB;AACrC,cAAM,WAAW,KAAK,IAAI,MAAM,aAAa,EAAE,UAAU,MAAM;AAC/D,uBAAe,WAAW,QAAQ;AAAA,MACpC;AAEA,YAAM,YAAY,MAAM;AACtB,iBAAS,oBAAoB,aAAa,WAAW;AACrD,iBAAS,oBAAoB,WAAW,SAAS;AACjD,iBAAS,KAAK,MAAM,SAAS;AAC7B,iBAAS,KAAK,MAAM,aAAa;AAAA,MACnC;AAEA,eAAS,iBAAiB,aAAa,WAAW;AAClD,eAAS,iBAAiB,WAAW,SAAS;AAC9C,eAAS,KAAK,MAAM,SAAS;AAC7B,eAAS,KAAK,MAAM,aAAa;AAAA,IACnC;AAAA,IACA,CAAC,gBAAgB,OAAO;AAAA,EAAA;AAE5B;"}
|