@ktnpm_devops/react-component 0.24.0 → 0.26.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/DayRangePicker/DayRangePicker.d.ts +4 -0
- package/dist/composites/DayRangePicker/DayRangePicker.d.ts.map +1 -0
- package/dist/composites/DayRangePicker/DayRangePicker.types.d.ts +42 -0
- package/dist/composites/DayRangePicker/DayRangePicker.types.d.ts.map +1 -0
- package/dist/composites/DayRangePicker/index.d.ts +3 -0
- package/dist/composites/DayRangePicker/index.d.ts.map +1 -0
- package/dist/composites/DayRangePicker/rangeDays.d.ts +17 -0
- package/dist/composites/DayRangePicker/rangeDays.d.ts.map +1 -0
- package/dist/composites/DayRangePicker/rangeDays.test.d.ts +2 -0
- package/dist/composites/DayRangePicker/rangeDays.test.d.ts.map +1 -0
- package/dist/constants.d.ts +8 -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 +36 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +36 -32
- package/dist/index.js.map +1 -1
- package/dist/index10.cjs +2 -2
- package/dist/index10.js +2 -2
- package/dist/index100.cjs +61 -84
- package/dist/index100.cjs.map +1 -1
- package/dist/index100.js +61 -84
- package/dist/index100.js.map +1 -1
- package/dist/index101.cjs +6 -39
- package/dist/index101.cjs.map +1 -1
- package/dist/index101.js +5 -38
- 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 +10 -70
- package/dist/index103.cjs.map +1 -1
- package/dist/index103.js +8 -68
- package/dist/index103.js.map +1 -1
- package/dist/index104.cjs +115 -6
- package/dist/index104.cjs.map +1 -1
- package/dist/index104.js +115 -6
- package/dist/index104.js.map +1 -1
- package/dist/index105.cjs +23 -20
- package/dist/index105.cjs.map +1 -1
- package/dist/index105.js +23 -20
- package/dist/index105.js.map +1 -1
- package/dist/index106.cjs +51 -35
- package/dist/index106.cjs.map +1 -1
- package/dist/index106.js +50 -34
- package/dist/index106.js.map +1 -1
- package/dist/index107.cjs +33 -43
- package/dist/index107.cjs.map +1 -1
- package/dist/index107.js +33 -43
- package/dist/index107.js.map +1 -1
- package/dist/index108.cjs +33 -24
- package/dist/index108.cjs.map +1 -1
- package/dist/index108.js +32 -23
- package/dist/index108.js.map +1 -1
- package/dist/index109.cjs +18 -39
- package/dist/index109.cjs.map +1 -1
- package/dist/index109.js +17 -38
- package/dist/index109.js.map +1 -1
- package/dist/index11.cjs +2 -2
- package/dist/index11.js +2 -2
- package/dist/index110.cjs +19 -9
- package/dist/index110.cjs.map +1 -1
- package/dist/index110.js +18 -8
- package/dist/index110.js.map +1 -1
- package/dist/index111.cjs +39 -10
- package/dist/index111.cjs.map +1 -1
- package/dist/index111.js +38 -9
- package/dist/index111.js.map +1 -1
- package/dist/index112.cjs +85 -20
- package/dist/index112.cjs.map +1 -1
- package/dist/index112.js +84 -19
- package/dist/index112.js.map +1 -1
- package/dist/index113.cjs +22 -14
- package/dist/index113.cjs.map +1 -1
- package/dist/index113.js +21 -13
- package/dist/index113.js.map +1 -1
- package/dist/index114.cjs +33 -10
- package/dist/index114.cjs.map +1 -1
- package/dist/index114.js +32 -9
- package/dist/index114.js.map +1 -1
- package/dist/index115.cjs +2 -65
- package/dist/index115.cjs.map +1 -1
- package/dist/index115.js +3 -66
- package/dist/index115.js.map +1 -1
- package/dist/index116.cjs +19 -13
- package/dist/index116.cjs.map +1 -1
- package/dist/index116.js +20 -14
- package/dist/index116.js.map +1 -1
- package/dist/index118.cjs +10 -52
- package/dist/index118.cjs.map +1 -1
- package/dist/index118.js +11 -53
- package/dist/index118.js.map +1 -1
- package/dist/index119.cjs +5 -35
- package/dist/index119.cjs.map +1 -1
- package/dist/index119.js +6 -36
- package/dist/index119.js.map +1 -1
- package/dist/index12.cjs +2 -2
- package/dist/index12.js +2 -2
- package/dist/index120.cjs +10 -16
- package/dist/index120.cjs.map +1 -1
- package/dist/index120.js +10 -16
- package/dist/index120.js.map +1 -1
- package/dist/index121.cjs +22 -134
- package/dist/index121.cjs.map +1 -1
- package/dist/index121.js +21 -133
- package/dist/index121.js.map +1 -1
- package/dist/index122.cjs +17 -38
- package/dist/index122.cjs.map +1 -1
- package/dist/index122.js +18 -39
- package/dist/index122.js.map +1 -1
- package/dist/index123.cjs +34 -10
- package/dist/index123.cjs.map +1 -1
- package/dist/index123.js +35 -11
- package/dist/index123.js.map +1 -1
- package/dist/index124.cjs +36 -39
- package/dist/index124.cjs.map +1 -1
- package/dist/index124.js +36 -39
- 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 +28 -116
- package/dist/index126.cjs.map +1 -1
- package/dist/index126.js +27 -115
- package/dist/index126.js.map +1 -1
- package/dist/index127.cjs +64 -37
- package/dist/index127.cjs.map +1 -1
- package/dist/index127.js +64 -37
- package/dist/index127.js.map +1 -1
- package/dist/index128.cjs +22 -13
- package/dist/index128.cjs.map +1 -1
- package/dist/index128.js +23 -14
- package/dist/index128.js.map +1 -1
- package/dist/index129.cjs +19 -34
- package/dist/index129.cjs.map +1 -1
- package/dist/index129.js +19 -34
- package/dist/index129.js.map +1 -1
- package/dist/index13.cjs +2 -2
- package/dist/index13.js +2 -2
- package/dist/index130.cjs +13 -10
- package/dist/index130.cjs.map +1 -1
- package/dist/index130.js +14 -11
- package/dist/index130.js.map +1 -1
- package/dist/index131.cjs +15 -24
- package/dist/index131.cjs.map +1 -1
- package/dist/index131.js +15 -24
- package/dist/index131.js.map +1 -1
- package/dist/index132.cjs +15 -30
- package/dist/index132.cjs.map +1 -1
- package/dist/index132.js +15 -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 +25 -16
- package/dist/index134.cjs.map +1 -1
- package/dist/index134.js +25 -16
- package/dist/index134.js.map +1 -1
- package/dist/index135.cjs +69 -47
- package/dist/index135.cjs.map +1 -1
- package/dist/index135.js +69 -47
- package/dist/index135.js.map +1 -1
- package/dist/index136.cjs +48 -73
- package/dist/index136.cjs.map +1 -1
- package/dist/index136.js +48 -73
- package/dist/index136.js.map +1 -1
- package/dist/index137.cjs +4 -1162
- package/dist/index137.cjs.map +1 -1
- package/dist/index137.js +4 -1163
- package/dist/index137.js.map +1 -1
- package/dist/index138.cjs +26 -1574
- package/dist/index138.cjs.map +1 -1
- package/dist/index138.js +25 -1574
- package/dist/index138.js.map +1 -1
- package/dist/index139.cjs +87 -34
- package/dist/index139.cjs.map +1 -1
- package/dist/index139.js +86 -33
- package/dist/index139.js.map +1 -1
- package/dist/index14.cjs +2 -2
- package/dist/index14.js +2 -2
- package/dist/index140.cjs +27 -0
- package/dist/index140.cjs.map +1 -0
- package/dist/index140.js +27 -0
- package/dist/index140.js.map +1 -0
- package/dist/index141.cjs +50 -0
- package/dist/index141.cjs.map +1 -0
- package/dist/index141.js +50 -0
- package/dist/index141.js.map +1 -0
- package/dist/index142.cjs +20 -0
- package/dist/index142.cjs.map +1 -0
- package/dist/index142.js +20 -0
- package/dist/index142.js.map +1 -0
- package/dist/index143.cjs +39 -0
- package/dist/index143.cjs.map +1 -0
- package/dist/index143.js +39 -0
- package/dist/index143.js.map +1 -0
- package/dist/index144.cjs +51 -0
- package/dist/index144.cjs.map +1 -0
- package/dist/index144.js +51 -0
- package/dist/index144.js.map +1 -0
- package/dist/index145.cjs +78 -0
- package/dist/index145.cjs.map +1 -0
- package/dist/index145.js +78 -0
- package/dist/index145.js.map +1 -0
- package/dist/index146.cjs +1166 -0
- package/dist/index146.cjs.map +1 -0
- package/dist/index146.js +1167 -0
- package/dist/index146.js.map +1 -0
- package/dist/index147.cjs +1578 -0
- package/dist/index147.cjs.map +1 -0
- package/dist/index147.js +1579 -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/index149.cjs +10 -0
- package/dist/index149.cjs.map +1 -0
- package/dist/index149.js +10 -0
- package/dist/index149.js.map +1 -0
- package/dist/index15.cjs +2 -2
- package/dist/index15.js +2 -2
- package/dist/index150.cjs +15 -0
- package/dist/index150.cjs.map +1 -0
- package/dist/index150.js +15 -0
- package/dist/index150.js.map +1 -0
- package/dist/index151.cjs +51 -0
- package/dist/index151.cjs.map +1 -0
- package/dist/index151.js +51 -0
- package/dist/index151.js.map +1 -0
- 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 +8 -1
- package/dist/index27.cjs.map +1 -1
- package/dist/index27.js +8 -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 +82 -137
- package/dist/index31.cjs.map +1 -1
- package/dist/index31.js +83 -138
- package/dist/index31.js.map +1 -1
- package/dist/index32.cjs +21 -154
- package/dist/index32.cjs.map +1 -1
- package/dist/index32.js +22 -155
- package/dist/index32.js.map +1 -1
- package/dist/index33.cjs +135 -77
- package/dist/index33.cjs.map +1 -1
- package/dist/index33.js +136 -78
- package/dist/index33.js.map +1 -1
- package/dist/index34.cjs +147 -94
- package/dist/index34.cjs.map +1 -1
- package/dist/index34.js +149 -96
- package/dist/index34.js.map +1 -1
- package/dist/index35.cjs +86 -7
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +88 -9
- package/dist/index35.js.map +1 -1
- package/dist/index36.cjs +99 -138
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +101 -140
- package/dist/index36.js.map +1 -1
- package/dist/index37.cjs +6 -54
- package/dist/index37.cjs.map +1 -1
- package/dist/index37.js +8 -56
- package/dist/index37.js.map +1 -1
- package/dist/index38.cjs +109 -19
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +111 -21
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +55 -42
- package/dist/index39.cjs.map +1 -1
- package/dist/index39.js +55 -42
- package/dist/index39.js.map +1 -1
- package/dist/index40.cjs +16 -304
- package/dist/index40.cjs.map +1 -1
- package/dist/index40.js +18 -306
- package/dist/index40.js.map +1 -1
- package/dist/index41.cjs +43 -34
- package/dist/index41.cjs.map +1 -1
- package/dist/index41.js +44 -35
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +304 -113
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +306 -115
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +30 -64
- package/dist/index43.cjs.map +1 -1
- package/dist/index43.js +31 -65
- package/dist/index43.js.map +1 -1
- package/dist/index44.cjs +113 -74
- package/dist/index44.cjs.map +1 -1
- package/dist/index44.js +115 -76
- package/dist/index44.js.map +1 -1
- package/dist/index45.cjs +63 -54
- package/dist/index45.cjs.map +1 -1
- package/dist/index45.js +64 -55
- package/dist/index45.js.map +1 -1
- package/dist/index46.cjs +69 -144
- package/dist/index46.cjs.map +1 -1
- package/dist/index46.js +70 -145
- package/dist/index46.js.map +1 -1
- package/dist/index47.cjs +57 -96
- package/dist/index47.cjs.map +1 -1
- package/dist/index47.js +59 -98
- package/dist/index47.js.map +1 -1
- package/dist/index48.cjs +147 -66
- package/dist/index48.cjs.map +1 -1
- package/dist/index48.js +149 -68
- package/dist/index48.js.map +1 -1
- package/dist/index49.cjs +97 -7
- package/dist/index49.cjs.map +1 -1
- package/dist/index49.js +99 -9
- package/dist/index49.js.map +1 -1
- package/dist/index50.cjs +72 -17
- package/dist/index50.cjs.map +1 -1
- package/dist/index50.js +73 -18
- package/dist/index50.js.map +1 -1
- package/dist/index51.cjs +7 -76
- package/dist/index51.cjs.map +1 -1
- package/dist/index51.js +9 -78
- package/dist/index51.js.map +1 -1
- package/dist/index52.cjs +17 -192
- package/dist/index52.cjs.map +1 -1
- package/dist/index52.js +17 -192
- package/dist/index52.js.map +1 -1
- package/dist/index53.cjs +72 -59
- package/dist/index53.cjs.map +1 -1
- package/dist/index53.js +74 -61
- package/dist/index53.js.map +1 -1
- package/dist/index54.cjs +179 -101
- package/dist/index54.cjs.map +1 -1
- package/dist/index54.js +180 -102
- package/dist/index54.js.map +1 -1
- package/dist/index55.cjs +49 -32
- package/dist/index55.cjs.map +1 -1
- package/dist/index55.js +49 -32
- package/dist/index55.js.map +1 -1
- package/dist/index56.cjs +114 -6
- package/dist/index56.cjs.map +1 -1
- package/dist/index56.js +115 -7
- package/dist/index56.js.map +1 -1
- package/dist/index57.cjs +44 -142
- package/dist/index57.cjs.map +1 -1
- package/dist/index57.js +45 -143
- package/dist/index57.js.map +1 -1
- package/dist/index58.cjs +6 -8
- package/dist/index58.cjs.map +1 -1
- package/dist/index58.js +6 -8
- package/dist/index58.js.map +1 -1
- package/dist/index59.cjs +143 -15
- package/dist/index59.cjs.map +1 -1
- package/dist/index59.js +145 -17
- package/dist/index59.js.map +1 -1
- package/dist/index60.cjs +7 -65
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +9 -67
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +17 -2
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +18 -3
- package/dist/index61.js.map +1 -1
- package/dist/index62.cjs +66 -9
- package/dist/index62.cjs.map +1 -1
- package/dist/index62.js +66 -9
- package/dist/index62.js.map +1 -1
- package/dist/index63.cjs +4 -16
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +3 -15
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +10 -24
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +9 -23
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +15 -18
- package/dist/index65.cjs.map +1 -1
- package/dist/index65.js +15 -18
- package/dist/index65.js.map +1 -1
- package/dist/index66.cjs +73 -27
- package/dist/index66.cjs.map +1 -1
- package/dist/index66.js +72 -26
- package/dist/index66.js.map +1 -1
- package/dist/index67.cjs +153 -19
- package/dist/index67.cjs.map +1 -1
- package/dist/index67.js +151 -17
- package/dist/index67.js.map +1 -1
- package/dist/index68.cjs +11 -144
- package/dist/index68.cjs.map +1 -1
- package/dist/index68.js +11 -144
- package/dist/index68.js.map +1 -1
- package/dist/index69.cjs +52 -64
- package/dist/index69.cjs.map +1 -1
- package/dist/index69.js +52 -64
- package/dist/index69.js.map +1 -1
- package/dist/index70.cjs +17 -6
- package/dist/index70.cjs.map +1 -1
- package/dist/index70.js +16 -5
- package/dist/index70.js.map +1 -1
- package/dist/index71.cjs +2 -20
- package/dist/index71.cjs.map +1 -1
- package/dist/index71.js +2 -20
- package/dist/index71.js.map +1 -1
- package/dist/index72.cjs +19 -10
- package/dist/index72.cjs.map +1 -1
- package/dist/index72.js +19 -10
- package/dist/index72.js.map +1 -1
- package/dist/index73.cjs +7 -12
- package/dist/index73.cjs.map +1 -1
- package/dist/index73.js +6 -11
- package/dist/index73.js.map +1 -1
- package/dist/index74.cjs +21 -24
- package/dist/index74.cjs.map +1 -1
- package/dist/index74.js +20 -23
- package/dist/index74.js.map +1 -1
- package/dist/index75.cjs +10 -19
- package/dist/index75.cjs.map +1 -1
- package/dist/index75.js +10 -19
- package/dist/index75.js.map +1 -1
- package/dist/index76.cjs +6 -73
- package/dist/index76.cjs.map +1 -1
- package/dist/index76.js +5 -72
- package/dist/index76.js.map +1 -1
- package/dist/index77.cjs +10 -28
- package/dist/index77.cjs.map +1 -1
- package/dist/index77.js +11 -29
- package/dist/index77.js.map +1 -1
- package/dist/index78.cjs +17 -2
- package/dist/index78.cjs.map +1 -1
- package/dist/index78.js +18 -3
- package/dist/index78.js.map +1 -1
- package/dist/index79.cjs +16 -79
- package/dist/index79.cjs.map +1 -1
- package/dist/index79.js +16 -79
- package/dist/index79.js.map +1 -1
- package/dist/index80.cjs +15 -45
- package/dist/index80.cjs.map +1 -1
- package/dist/index80.js +16 -46
- package/dist/index80.js.map +1 -1
- package/dist/index81.cjs +131 -31
- package/dist/index81.cjs.map +1 -1
- package/dist/index81.js +131 -31
- package/dist/index81.js.map +1 -1
- package/dist/index82.cjs +40 -13
- package/dist/index82.cjs.map +1 -1
- package/dist/index82.js +40 -13
- package/dist/index82.js.map +1 -1
- package/dist/index83.cjs +28 -16
- package/dist/index83.cjs.map +1 -1
- package/dist/index83.js +28 -16
- package/dist/index83.js.map +1 -1
- package/dist/index84.cjs +50 -14
- package/dist/index84.cjs.map +1 -1
- package/dist/index84.js +50 -14
- package/dist/index84.js.map +1 -1
- package/dist/index85.cjs +38 -2
- package/dist/index85.cjs.map +1 -1
- package/dist/index85.js +39 -3
- package/dist/index85.js.map +1 -1
- package/dist/index86.cjs +39 -6
- package/dist/index86.cjs.map +1 -1
- package/dist/index86.js +38 -5
- package/dist/index86.js.map +1 -1
- package/dist/index87.cjs +92 -24
- package/dist/index87.cjs.map +1 -1
- package/dist/index87.js +91 -23
- package/dist/index87.js.map +1 -1
- package/dist/index88.cjs +34 -16
- package/dist/index88.cjs.map +1 -1
- package/dist/index88.js +35 -17
- package/dist/index88.js.map +1 -1
- package/dist/index89.cjs +35 -9
- package/dist/index89.cjs.map +1 -1
- package/dist/index89.js +34 -8
- package/dist/index89.js.map +1 -1
- package/dist/index90.cjs +43 -47
- package/dist/index90.cjs.map +1 -1
- package/dist/index90.js +43 -47
- package/dist/index90.js.map +1 -1
- package/dist/index91.cjs +24 -17
- package/dist/index91.cjs.map +1 -1
- package/dist/index91.js +24 -17
- package/dist/index91.js.map +1 -1
- package/dist/index92.cjs +39 -36
- package/dist/index92.cjs.map +1 -1
- package/dist/index92.js +38 -35
- package/dist/index92.js.map +1 -1
- package/dist/index93.cjs +8 -17
- package/dist/index93.cjs.map +1 -1
- package/dist/index93.js +8 -17
- package/dist/index93.js.map +1 -1
- package/dist/index94.cjs +10 -6
- package/dist/index94.cjs.map +1 -1
- package/dist/index94.js +9 -5
- package/dist/index94.js.map +1 -1
- package/dist/index95.cjs +20 -55
- package/dist/index95.cjs.map +1 -1
- package/dist/index95.js +19 -54
- package/dist/index95.js.map +1 -1
- package/dist/index96.cjs +14 -34
- package/dist/index96.cjs.map +1 -1
- package/dist/index96.js +13 -33
- package/dist/index96.js.map +1 -1
- package/dist/index97.cjs +10 -57
- package/dist/index97.cjs.map +1 -1
- package/dist/index97.js +9 -56
- 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 +20 -37
- package/dist/index99.cjs.map +1 -1
- package/dist/index99.js +20 -37
- package/dist/index99.js.map +1 -1
- package/dist/labels/ComponentLabels.types.d.ts +14 -0
- package/dist/labels/ComponentLabels.types.d.ts.map +1 -1
- package/dist/labels/defaults.d.ts.map +1 -1
- package/dist/labels/index.d.ts +1 -1
- package/dist/labels/index.d.ts.map +1 -1
- package/dist/style.css +405 -214
- package/package.json +1 -1
package/dist/index135.js
CHANGED
|
@@ -1,51 +1,73 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { clsx } from "./index65.js";
|
|
3
|
+
import { ArrowUpDown } from "lucide-react";
|
|
4
|
+
import { SORT_ICON_SIZE, RESIZE_FALLBACK_WIDTH } from "./index67.js";
|
|
5
|
+
import { alignClass } from "./index149.js";
|
|
6
|
+
import styles from "./index139.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
|
+
]
|
|
33
67
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
clippers.push({ top, bottom: top + el.clientHeight });
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
const viewportWidth = root.clientWidth;
|
|
40
|
-
const outermost = clippers[clippers.length - 1];
|
|
41
|
-
return {
|
|
42
|
-
horizontal: horizontal ? { left: Math.max(horizontal.left, 0), right: Math.min(horizontal.right, viewportWidth) } : { left: 0, right: viewportWidth },
|
|
43
|
-
vertical: clippers.reduce(intersect, viewport),
|
|
44
|
-
viewport,
|
|
45
|
-
escape: trapped || clippers.length < 2 ? null : intersect(outermost, viewport)
|
|
46
|
-
};
|
|
47
|
-
}
|
|
68
|
+
);
|
|
69
|
+
};
|
|
48
70
|
export {
|
|
49
|
-
|
|
71
|
+
LiveExplorerHeaderCell
|
|
50
72
|
};
|
|
51
73
|
//# 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/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,YAAY,EAAE,KAAK,aAAa,MAAM,aAAA;AAC5C,MAAM,QAAQ,EAAE,KAAK,KAAK,MAAM,IAAA;AAMzB,MAAM,yBAAyB,CAAwB;AAAA,EAC5D;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAA2C;AACzC,QAAM,aACJ,uCAAW,YAAW,OAAO,MAAM,UAAU,YAAY;AAC3D,QAAM,YAAY,OAAO,WAAW;AACpC,QAAM,OAAO,MAAM,OAAO,OAAO,GAAG;AAEpC,QAAM,YAAY,aAChB,oBAAC,QAAA,EAAK,WAAW,OAAO,eAAe,eAAY,QAChD,UAAA,MAAM,SAAS,EAAA,CAClB;AAGF,QAAM,eAAe,OAAO,WAC1B,qBAAC,UAAA,EAAO,MAAK,UAAS,WAAW,OAAO,WAAW,SAAS,MACzD,UAAA;AAAA,IAAA,OAAO;AAAA,IACP;AAAA,EAAA,EAAA,CACH,IAEA,OAAO;AAGT,QAAM,aAAa,YAAY,OAAO,KAAK;AAE3C,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAM;AAAA,MACN,WAAW,KAAK,OAAO,IAAI,WAAW,OAAO,KAAK,GAAG,OAAO,eAAe;AAAA,MAC3E,OAAO,OAAO,QAAQ,EAAE,OAAO,GAAG,OAAO,KAAK,KAAA,IAAS;AAAA,MACvD,OAAO,OAAO,eAAe;AAAA,MAC7B,aAAW,OAAO,WAAY,YAAY,UAAU,SAAS,IAAI,SAAU;AAAA,MAC3E,cAAY,YAAY,OAAO,QAAQ;AAAA,MAEvC,UAAA;AAAA,QAAA,qBAAC,QAAA,EAAK,WAAW,OAAO,WACrB,UAAA;AAAA,UAAA,gCAAa,QAAA,EAAK,WAAW,OAAO,eAAgB,UAAA,OAAO,QAAO,IAAU;AAAA,UAC5E,aAAa,OAAO,YACnB;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,SAAQ;AAAA,cACR,MAAK;AAAA,cACL,WAAW,KAAK,OAAO,YAAY,aAAa,OAAO,gBAAgB;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/index136.cjs
CHANGED
|
@@ -1,78 +1,53 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
if (
|
|
25
|
-
|
|
26
|
-
const kept = currentSide && candidates.find((c) => c.side === currentSide && fits(c));
|
|
27
|
-
const first = kept || candidates.find(fits);
|
|
28
|
-
if (first) return first;
|
|
29
|
-
const limit = escape ?? inside;
|
|
30
|
-
const side = room("bottom", limit) >= room("top", limit) ? "bottom" : "top";
|
|
31
|
-
return {
|
|
32
|
-
side,
|
|
33
|
-
outside: room(side, inside) < room(side, limit),
|
|
34
|
-
maxHeight: Math.max(room(side, limit), 0)
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
function fixedStyle(anchor, panel, viewportBottom, horizontal, vertical) {
|
|
38
|
-
const below = vertical.side === "bottom";
|
|
39
|
-
return {
|
|
40
|
-
position: "fixed",
|
|
41
|
-
top: below ? anchor.bottom + panel.gap : "auto",
|
|
42
|
-
bottom: below ? "auto" : viewportBottom - anchor.top + panel.gap,
|
|
43
|
-
left: horizontal.align === "start" ? anchor.left + (horizontal.shift ?? 0) : anchor.right - panel.width,
|
|
44
|
-
right: "auto",
|
|
45
|
-
width: panel.width,
|
|
46
|
-
boxSizing: "border-box"
|
|
47
|
-
};
|
|
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)`;
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const react = require("react");
|
|
5
|
+
const constants = require("./index67.cjs");
|
|
6
|
+
const groupRows = require("./index150.cjs");
|
|
7
|
+
const LiveExplorerDataRow = require("./index151.cjs");
|
|
8
|
+
const LiveExplorerTable_module = require("./index139.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}`)) });
|
|
64
26
|
}
|
|
65
|
-
if (
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
|
|
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 ?? "")) });
|
|
71
51
|
};
|
|
72
|
-
|
|
73
|
-
exports.DEFAULT_PLACEMENT = DEFAULT_PLACEMENT;
|
|
74
|
-
exports.resolveHorizontal = resolveHorizontal;
|
|
75
|
-
exports.resolvePanelPlacement = resolvePanelPlacement;
|
|
76
|
-
exports.resolveVertical = resolveVertical;
|
|
77
|
-
exports.samePlacement = samePlacement;
|
|
52
|
+
exports.LiveExplorerBody = LiveExplorerBody;
|
|
78
53
|
//# sourceMappingURL=index136.cjs.map
|
package/dist/index136.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index136.cjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index136.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,UAAA,MAAM,KAAK,EAAE,QAAQA,UAAAA,+BAA+B,CAAC,GAAG,MACvDC,2BAAAA,IAAC,MAAA,EAAyB,WAAWC,yBAAAA,QAAO,aACzC,UAAA,QAAQ,IAAI,CAAC,uCACX,MAAA,EACC,UAAAD,2BAAAA,IAAC,OAAA,EAAI,WAAWC,yBAAAA,QAAO,SAAA,CAAU,EAAA,GAD1B,IAAI,GAEb,CACD,EAAA,GALM,YAAY,CAAC,EAMtB,CACD,GACH;AAAA,EAEJ;AAEA,MAAI,KAAK,WAAW,GAAG;AACrB,0CACG,SAAA,EACC,UAAAD,2BAAAA,IAAC,MAAA,EAAG,WAAWC,yBAAAA,QAAO,UACpB,UAAAD,2BAAAA,IAAC,MAAA,EAAG,SAAS,QAAQ,QAAQ,WAAWC,yBAAAA,QAAO,WAC5C,UAAA,OACH,GACF,EAAA,CACF;AAAA,EAEJ;AAEA,QAAM,WAAW,IAAI,IAAI,eAAe;AAExC,SACED,2BAAAA,IAAC,SAAA,EACE,UAAAE,UAAAA,UAAU,MAAM,OAAO,EAAE,IAAI,CAAC,UAC7BC,2BAAAA,KAACC,MAAAA,UAAA,EACE,UAAA;AAAA,IAAA,MAAM,QAAQ,QACbJ,2BAAAA,IAAC,MAAA,EAAG,WAAWC,yBAAAA,QAAO,UACpB,UAAAD,2BAAAA,IAAC,MAAA,EAAG,OAAM,YAAW,SAAS,QAAQ,QAAQ,WAAWC,yBAAAA,QAAO,aAC7D,UAAA,oBAAoB,kBAAkB,MAAM,KAAK,MAAM,IAAI,IAAI,MAAM,IAAA,CACxE,GACF;AAAA,IAED,MAAM,KAAK,IAAI,CAAC,QAAQ;AACvB,YAAM,SAAS,SAAS,GAAG;AAC3B,aACED,2BAAAA;AAAAA,QAACK,oBAAAA;AAAAA,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/index136.js
CHANGED
|
@@ -1,78 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
if (
|
|
23
|
-
|
|
24
|
-
const kept = currentSide && candidates.find((c) => c.side === currentSide && fits(c));
|
|
25
|
-
const first = kept || candidates.find(fits);
|
|
26
|
-
if (first) return first;
|
|
27
|
-
const limit = escape ?? inside;
|
|
28
|
-
const side = room("bottom", limit) >= room("top", limit) ? "bottom" : "top";
|
|
29
|
-
return {
|
|
30
|
-
side,
|
|
31
|
-
outside: room(side, inside) < room(side, limit),
|
|
32
|
-
maxHeight: Math.max(room(side, limit), 0)
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
function fixedStyle(anchor, panel, viewportBottom, horizontal, vertical) {
|
|
36
|
-
const below = vertical.side === "bottom";
|
|
37
|
-
return {
|
|
38
|
-
position: "fixed",
|
|
39
|
-
top: below ? anchor.bottom + panel.gap : "auto",
|
|
40
|
-
bottom: below ? "auto" : viewportBottom - anchor.top + panel.gap,
|
|
41
|
-
left: horizontal.align === "start" ? anchor.left + (horizontal.shift ?? 0) : anchor.right - panel.width,
|
|
42
|
-
right: "auto",
|
|
43
|
-
width: panel.width,
|
|
44
|
-
boxSizing: "border-box"
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
function resolvePanelPlacement({
|
|
48
|
-
anchor,
|
|
49
|
-
panel,
|
|
50
|
-
box,
|
|
51
|
-
currentSide,
|
|
52
|
-
margin = PANEL_EDGE_MARGIN
|
|
53
|
-
}) {
|
|
54
|
-
if (panel.width === 0 || panel.height === 0) return DEFAULT_PLACEMENT;
|
|
55
|
-
const horizontal = resolveHorizontal(anchor, panel.width, box.horizontal, margin);
|
|
56
|
-
const vertical = resolveVertical(anchor, panel, box, currentSide, margin);
|
|
57
|
-
const { align } = horizontal;
|
|
58
|
-
const { side, maxHeight } = vertical;
|
|
59
|
-
const style = vertical.outside ? fixedStyle(anchor, panel, box.viewport.bottom, horizontal, vertical) : {};
|
|
60
|
-
if (!vertical.outside && horizontal.shift !== void 0) {
|
|
61
|
-
style.transform = `translateX(${horizontal.shift}px)`;
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment } from "react";
|
|
3
|
+
import { LIVE_EXPLORER_SKELETON_ROWS } from "./index67.js";
|
|
4
|
+
import { groupRows } from "./index150.js";
|
|
5
|
+
import { LiveExplorerDataRow } from "./index151.js";
|
|
6
|
+
import styles from "./index139.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}`)) });
|
|
62
24
|
}
|
|
63
|
-
if (
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
|
|
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 ?? "")) });
|
|
69
49
|
};
|
|
70
|
-
const samePlacement = (a, b) => a.align === b.align && a.side === b.side && sameStyle(a.style, b.style);
|
|
71
50
|
export {
|
|
72
|
-
|
|
73
|
-
resolveHorizontal,
|
|
74
|
-
resolvePanelPlacement,
|
|
75
|
-
resolveVertical,
|
|
76
|
-
samePlacement
|
|
51
|
+
LiveExplorerBody
|
|
77
52
|
};
|
|
78
53
|
//# sourceMappingURL=index136.js.map
|
package/dist/index136.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index136.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index136.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={renderExpandedRow}\n />\n );\n })}\n </Fragment>\n ))}\n </tbody>\n );\n};\n"],"names":[],"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,+BACG,SAAA,EACE,UAAA,MAAM,KAAK,EAAE,QAAQ,+BAA+B,CAAC,GAAG,MACvD,oBAAC,MAAA,EAAyB,WAAW,OAAO,aACzC,UAAA,QAAQ,IAAI,CAAC,4BACX,MAAA,EACC,UAAA,oBAAC,OAAA,EAAI,WAAW,OAAO,SAAA,CAAU,EAAA,GAD1B,IAAI,GAEb,CACD,EAAA,GALM,YAAY,CAAC,EAMtB,CACD,GACH;AAAA,EAEJ;AAEA,MAAI,KAAK,WAAW,GAAG;AACrB,+BACG,SAAA,EACC,UAAA,oBAAC,MAAA,EAAG,WAAW,OAAO,UACpB,UAAA,oBAAC,MAAA,EAAG,SAAS,QAAQ,QAAQ,WAAW,OAAO,WAC5C,UAAA,OACH,GACF,EAAA,CACF;AAAA,EAEJ;AAEA,QAAM,WAAW,IAAI,IAAI,eAAe;AAExC,SACE,oBAAC,SAAA,EACE,UAAA,UAAU,MAAM,OAAO,EAAE,IAAI,CAAC,UAC7B,qBAAC,UAAA,EACE,UAAA;AAAA,IAAA,MAAM,QAAQ,QACb,oBAAC,MAAA,EAAG,WAAW,OAAO,UACpB,UAAA,oBAAC,MAAA,EAAG,OAAM,YAAW,SAAS,QAAQ,QAAQ,WAAW,OAAO,aAC7D,UAAA,oBAAoB,kBAAkB,MAAM,KAAK,MAAM,IAAI,IAAI,MAAM,IAAA,CACxE,GACF;AAAA,IAED,MAAM,KAAK,IAAI,CAAC,QAAQ;AACvB,YAAM,SAAS,SAAS,GAAG;AAC3B,aACE;AAAA,QAAC;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;"}
|