@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/index139.js
CHANGED
|
@@ -1,37 +1,90 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
const root = "krc-root-W2sel";
|
|
2
|
+
const bounded = "krc-bounded-dBcXI";
|
|
3
|
+
const fill = "krc-fill-resza";
|
|
4
|
+
const tableContainer = "krc-tableContainer-Ed3uk";
|
|
5
|
+
const table = "krc-table-7p0H-";
|
|
6
|
+
const th = "krc-th-fNmfv";
|
|
7
|
+
const thContent = "krc-thContent-BRDIL";
|
|
8
|
+
const headerContent = "krc-headerContent-XaZSF";
|
|
9
|
+
const sortLabel = "krc-sortLabel-OI4F1";
|
|
10
|
+
const sortIndicator = "krc-sortIndicator-PtGYj";
|
|
11
|
+
const sortToggle = "krc-sortToggle-ojyr8";
|
|
12
|
+
const sortToggleActive = "krc-sortToggleActive-Gylzq";
|
|
13
|
+
const resizeHandle = "krc-resizeHandle--St-g";
|
|
14
|
+
const alignCenter = "krc-alignCenter-Us7zE";
|
|
15
|
+
const alignEnd = "krc-alignEnd-VmGjc";
|
|
16
|
+
const numeric = "krc-numeric-XumsF";
|
|
17
|
+
const td = "krc-td-ZVsrU";
|
|
18
|
+
const row = "krc-row-JivMH";
|
|
19
|
+
const rowClickable = "krc-rowClickable-lTgQW";
|
|
20
|
+
const rowSelected = "krc-rowSelected-Sv0qs";
|
|
21
|
+
const expandedCell = "krc-expandedCell-7e-pD";
|
|
22
|
+
const groupHeader = "krc-groupHeader-nU8YW";
|
|
23
|
+
const emptyCell = "krc-emptyCell-ZAaNq";
|
|
24
|
+
const skeletonRow = "krc-skeletonRow-uD1y7";
|
|
25
|
+
const skeleton = "krc-skeleton-eeYso";
|
|
26
|
+
const pulse = "krc-pulse-dQDwl";
|
|
27
|
+
const loadMore = "krc-loadMore-njxDN";
|
|
28
|
+
const loadMoreButton = "krc-loadMoreButton-C3Q-f";
|
|
29
|
+
const styles = {
|
|
30
|
+
root,
|
|
31
|
+
bounded,
|
|
32
|
+
fill,
|
|
33
|
+
tableContainer,
|
|
34
|
+
table,
|
|
35
|
+
th,
|
|
36
|
+
thContent,
|
|
37
|
+
headerContent,
|
|
38
|
+
sortLabel,
|
|
39
|
+
sortIndicator,
|
|
40
|
+
sortToggle,
|
|
41
|
+
sortToggleActive,
|
|
42
|
+
resizeHandle,
|
|
43
|
+
alignCenter,
|
|
44
|
+
alignEnd,
|
|
45
|
+
numeric,
|
|
46
|
+
td,
|
|
47
|
+
row,
|
|
48
|
+
rowClickable,
|
|
49
|
+
rowSelected,
|
|
50
|
+
expandedCell,
|
|
51
|
+
groupHeader,
|
|
52
|
+
emptyCell,
|
|
53
|
+
skeletonRow,
|
|
54
|
+
skeleton,
|
|
55
|
+
pulse,
|
|
56
|
+
loadMore,
|
|
57
|
+
loadMoreButton
|
|
31
58
|
};
|
|
32
|
-
const sameViewport = (a, b) => a.zoom === b.zoom && a.center[0] === b.center[0] && a.center[1] === b.center[1] && a.bounds.west === b.bounds.west && a.bounds.south === b.bounds.south && a.bounds.east === b.bounds.east && a.bounds.north === b.bounds.north;
|
|
33
59
|
export {
|
|
34
|
-
|
|
35
|
-
|
|
60
|
+
alignCenter,
|
|
61
|
+
alignEnd,
|
|
62
|
+
bounded,
|
|
63
|
+
styles as default,
|
|
64
|
+
emptyCell,
|
|
65
|
+
expandedCell,
|
|
66
|
+
fill,
|
|
67
|
+
groupHeader,
|
|
68
|
+
headerContent,
|
|
69
|
+
loadMore,
|
|
70
|
+
loadMoreButton,
|
|
71
|
+
numeric,
|
|
72
|
+
pulse,
|
|
73
|
+
resizeHandle,
|
|
74
|
+
root,
|
|
75
|
+
row,
|
|
76
|
+
rowClickable,
|
|
77
|
+
rowSelected,
|
|
78
|
+
skeleton,
|
|
79
|
+
skeletonRow,
|
|
80
|
+
sortIndicator,
|
|
81
|
+
sortLabel,
|
|
82
|
+
sortToggle,
|
|
83
|
+
sortToggleActive,
|
|
84
|
+
table,
|
|
85
|
+
tableContainer,
|
|
86
|
+
td,
|
|
87
|
+
th,
|
|
88
|
+
thContent
|
|
36
89
|
};
|
|
37
90
|
//# sourceMappingURL=index139.js.map
|
package/dist/index139.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index139.js","sources":[
|
|
1
|
+
{"version":3,"file":"index139.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index14.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const clsx = require("./
|
|
6
|
-
const Button_module = require("./
|
|
5
|
+
const clsx = require("./index65.cjs");
|
|
6
|
+
const Button_module = require("./index128.cjs");
|
|
7
7
|
const Button = react.forwardRef(
|
|
8
8
|
({ className, variant = "primary", size = "md", type = "button", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
9
9
|
"button",
|
package/dist/index14.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { clsx } from "./
|
|
4
|
-
import styles from "./
|
|
3
|
+
import { clsx } from "./index65.js";
|
|
4
|
+
import styles from "./index128.js";
|
|
5
5
|
const Button = forwardRef(
|
|
6
6
|
({ className, variant = "primary", size = "md", type = "button", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
7
7
|
"button",
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const root = "krc-root-xKc1n";
|
|
4
|
+
const item = "krc-item-Omuyb";
|
|
5
|
+
const head = "krc-head-ePoJ-";
|
|
6
|
+
const headContent = "krc-headContent-wymxG";
|
|
7
|
+
const chev = "krc-chev-yPNHx";
|
|
8
|
+
const isOpen = "krc-isOpen-wp7DR";
|
|
9
|
+
const body = "krc-body-pZ1Bk";
|
|
10
|
+
const styles = {
|
|
11
|
+
root,
|
|
12
|
+
item,
|
|
13
|
+
head,
|
|
14
|
+
headContent,
|
|
15
|
+
chev,
|
|
16
|
+
isOpen,
|
|
17
|
+
body
|
|
18
|
+
};
|
|
19
|
+
exports.body = body;
|
|
20
|
+
exports.chev = chev;
|
|
21
|
+
exports.default = styles;
|
|
22
|
+
exports.head = head;
|
|
23
|
+
exports.headContent = headContent;
|
|
24
|
+
exports.isOpen = isOpen;
|
|
25
|
+
exports.item = item;
|
|
26
|
+
exports.root = root;
|
|
27
|
+
//# sourceMappingURL=index140.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index140.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index140.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const root = "krc-root-xKc1n";
|
|
2
|
+
const item = "krc-item-Omuyb";
|
|
3
|
+
const head = "krc-head-ePoJ-";
|
|
4
|
+
const headContent = "krc-headContent-wymxG";
|
|
5
|
+
const chev = "krc-chev-yPNHx";
|
|
6
|
+
const isOpen = "krc-isOpen-wp7DR";
|
|
7
|
+
const body = "krc-body-pZ1Bk";
|
|
8
|
+
const styles = {
|
|
9
|
+
root,
|
|
10
|
+
item,
|
|
11
|
+
head,
|
|
12
|
+
headContent,
|
|
13
|
+
chev,
|
|
14
|
+
isOpen,
|
|
15
|
+
body
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
body,
|
|
19
|
+
chev,
|
|
20
|
+
styles as default,
|
|
21
|
+
head,
|
|
22
|
+
headContent,
|
|
23
|
+
isOpen,
|
|
24
|
+
item,
|
|
25
|
+
root
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=index140.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index140.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const constants = require("./index67.cjs");
|
|
5
|
+
const HeatmapMatrix_module = require("./index143.cjs");
|
|
6
|
+
function ColumnHeader({ column, rowSpan }) {
|
|
7
|
+
return /* @__PURE__ */ jsxRuntime.jsx("th", { scope: "col", rowSpan, className: HeatmapMatrix_module.default.colh, title: column.title, children: column.label });
|
|
8
|
+
}
|
|
9
|
+
function HeatmapMatrixHeader({
|
|
10
|
+
columns,
|
|
11
|
+
runs,
|
|
12
|
+
columnGroups,
|
|
13
|
+
cornerLabel
|
|
14
|
+
}) {
|
|
15
|
+
const rowSpan = runs ? constants.HEATMAP_GROUPED_HEADER_ROWS : void 0;
|
|
16
|
+
const corner = /* @__PURE__ */ jsxRuntime.jsx("th", { scope: "col", rowSpan, className: HeatmapMatrix_module.default.corner, "aria-hidden": cornerLabel == null, children: cornerLabel });
|
|
17
|
+
if (!runs) {
|
|
18
|
+
return /* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
19
|
+
corner,
|
|
20
|
+
columns.map((column) => /* @__PURE__ */ jsxRuntime.jsx(ColumnHeader, { column }, column.key))
|
|
21
|
+
] }) });
|
|
22
|
+
}
|
|
23
|
+
const groupsByKey = new Map(columnGroups == null ? void 0 : columnGroups.map((group) => [group.key, group]));
|
|
24
|
+
const groupedColumns = runs.filter((run) => run.group !== void 0).flatMap((run) => run.columns);
|
|
25
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("thead", { children: [
|
|
26
|
+
/* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
27
|
+
corner,
|
|
28
|
+
runs.map((run) => {
|
|
29
|
+
if (run.group === void 0) {
|
|
30
|
+
return run.columns.map((column) => /* @__PURE__ */ jsxRuntime.jsx(ColumnHeader, { column, rowSpan }, column.key));
|
|
31
|
+
}
|
|
32
|
+
const entry = groupsByKey.get(run.group);
|
|
33
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34
|
+
"th",
|
|
35
|
+
{
|
|
36
|
+
scope: "colgroup",
|
|
37
|
+
colSpan: run.columns.length,
|
|
38
|
+
className: HeatmapMatrix_module.default.group,
|
|
39
|
+
title: entry == null ? void 0 : entry.title,
|
|
40
|
+
children: (entry == null ? void 0 : entry.label) ?? run.group
|
|
41
|
+
},
|
|
42
|
+
`group-${run.start}`
|
|
43
|
+
);
|
|
44
|
+
})
|
|
45
|
+
] }),
|
|
46
|
+
/* @__PURE__ */ jsxRuntime.jsx("tr", { children: groupedColumns.map((column) => /* @__PURE__ */ jsxRuntime.jsx(ColumnHeader, { column }, column.key)) })
|
|
47
|
+
] });
|
|
48
|
+
}
|
|
49
|
+
exports.HeatmapMatrixHeader = HeatmapMatrixHeader;
|
|
50
|
+
//# sourceMappingURL=index141.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index141.cjs","sources":["../src/data/HeatmapMatrix/HeatmapMatrixHeader.tsx"],"sourcesContent":["import { HEATMAP_GROUPED_HEADER_ROWS } from '../../constants';\nimport type { HeatmapColumnHeaderProps, HeatmapMatrixHeaderProps } from './HeatmapMatrix.types';\nimport styles from './HeatmapMatrix.module.css';\n\nfunction ColumnHeader({ column, rowSpan }: HeatmapColumnHeaderProps) {\n return (\n <th scope=\"col\" rowSpan={rowSpan} className={styles.colh} title={column.title}>\n {column.label}\n </th>\n );\n}\n\n/**\n * Flat (one row) when `runs` is undefined, so the DOM stays as it was before column groups.\n * Grouped: the corner and ungrouped columns span both rows; each grouped run gets one\n * `scope=\"colgroup\"` header above its columns.\n */\nexport function HeatmapMatrixHeader({\n columns,\n runs,\n columnGroups,\n cornerLabel,\n}: HeatmapMatrixHeaderProps) {\n const rowSpan = runs ? HEATMAP_GROUPED_HEADER_ROWS : undefined;\n const corner = (\n <th scope=\"col\" rowSpan={rowSpan} className={styles.corner} aria-hidden={cornerLabel == null}>\n {cornerLabel}\n </th>\n );\n\n if (!runs) {\n return (\n <thead>\n <tr>\n {corner}\n {columns.map((column) => (\n <ColumnHeader key={column.key} column={column} />\n ))}\n </tr>\n </thead>\n );\n }\n\n const groupsByKey = new Map(columnGroups?.map((group) => [group.key, group]));\n const groupedColumns = runs\n .filter((run) => run.group !== undefined)\n .flatMap((run) => run.columns);\n\n return (\n <thead>\n <tr>\n {corner}\n {runs.map((run) => {\n if (run.group === undefined) {\n return run.columns.map((column) => (\n <ColumnHeader key={column.key} column={column} rowSpan={rowSpan} />\n ));\n }\n const entry = groupsByKey.get(run.group);\n return (\n <th\n key={`group-${run.start}`}\n scope=\"colgroup\"\n colSpan={run.columns.length}\n className={styles.group}\n title={entry?.title}\n >\n {entry?.label ?? run.group}\n </th>\n );\n })}\n </tr>\n <tr>\n {groupedColumns.map((column) => (\n <ColumnHeader key={column.key} column={column} />\n ))}\n </tr>\n </thead>\n );\n}\n"],"names":["jsx","styles","HEATMAP_GROUPED_HEADER_ROWS","jsxs"],"mappings":";;;;;AAIA,SAAS,aAAa,EAAE,QAAQ,WAAqC;AACnE,SACEA,2BAAAA,IAAC,MAAA,EAAG,OAAM,OAAM,SAAkB,WAAWC,qBAAAA,QAAO,MAAM,OAAO,OAAO,OACrE,UAAA,OAAO,OACV;AAEJ;AAOO,SAAS,oBAAoB;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAA6B;AAC3B,QAAM,UAAU,OAAOC,UAAAA,8BAA8B;AACrD,QAAM,SACJF,2BAAAA,IAAC,MAAA,EAAG,OAAM,OAAM,SAAkB,WAAWC,qBAAAA,QAAO,QAAQ,eAAa,eAAe,MACrF,UAAA,aACH;AAGF,MAAI,CAAC,MAAM;AACT,WACED,2BAAAA,IAAC,SAAA,EACC,UAAAG,2BAAAA,KAAC,MAAA,EACE,UAAA;AAAA,MAAA;AAAA,MACA,QAAQ,IAAI,CAAC,0CACX,cAAA,EAA8B,OAAA,GAAZ,OAAO,GAAqB,CAChD;AAAA,IAAA,EAAA,CACH,EAAA,CACF;AAAA,EAEJ;AAEA,QAAM,cAAc,IAAI,IAAI,6CAAc,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,KAAK,EAAE;AAC5E,QAAM,iBAAiB,KACpB,OAAO,CAAC,QAAQ,IAAI,UAAU,MAAS,EACvC,QAAQ,CAAC,QAAQ,IAAI,OAAO;AAE/B,yCACG,SAAA,EACC,UAAA;AAAA,IAAAA,gCAAC,MAAA,EACE,UAAA;AAAA,MAAA;AAAA,MACA,KAAK,IAAI,CAAC,QAAQ;AACjB,YAAI,IAAI,UAAU,QAAW;AAC3B,iBAAO,IAAI,QAAQ,IAAI,CAAC,WACtBH,2BAAAA,IAAC,cAAA,EAA8B,QAAgB,QAAA,GAA5B,OAAO,GAAuC,CAClE;AAAA,QACH;AACA,cAAM,QAAQ,YAAY,IAAI,IAAI,KAAK;AACvC,eACEA,2BAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YAEC,OAAM;AAAA,YACN,SAAS,IAAI,QAAQ;AAAA,YACrB,WAAWC,qBAAAA,QAAO;AAAA,YAClB,OAAO,+BAAO;AAAA,YAEb,WAAA,+BAAO,UAAS,IAAI;AAAA,UAAA;AAAA,UANhB,SAAS,IAAI,KAAK;AAAA,QAAA;AAAA,MAS7B,CAAC;AAAA,IAAA,GACH;AAAA,IACAD,2BAAAA,IAAC,MAAA,EACE,UAAA,eAAe,IAAI,CAAC,WACnBA,2BAAAA,IAAC,cAAA,EAA8B,OAAA,GAAZ,OAAO,GAAqB,CAChD,EAAA,CACH;AAAA,EAAA,GACF;AAEJ;;"}
|
package/dist/index141.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { HEATMAP_GROUPED_HEADER_ROWS } from "./index67.js";
|
|
3
|
+
import styles from "./index143.js";
|
|
4
|
+
function ColumnHeader({ column, rowSpan }) {
|
|
5
|
+
return /* @__PURE__ */ jsx("th", { scope: "col", rowSpan, className: styles.colh, title: column.title, children: column.label });
|
|
6
|
+
}
|
|
7
|
+
function HeatmapMatrixHeader({
|
|
8
|
+
columns,
|
|
9
|
+
runs,
|
|
10
|
+
columnGroups,
|
|
11
|
+
cornerLabel
|
|
12
|
+
}) {
|
|
13
|
+
const rowSpan = runs ? HEATMAP_GROUPED_HEADER_ROWS : void 0;
|
|
14
|
+
const corner = /* @__PURE__ */ jsx("th", { scope: "col", rowSpan, className: styles.corner, "aria-hidden": cornerLabel == null, children: cornerLabel });
|
|
15
|
+
if (!runs) {
|
|
16
|
+
return /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
17
|
+
corner,
|
|
18
|
+
columns.map((column) => /* @__PURE__ */ jsx(ColumnHeader, { column }, column.key))
|
|
19
|
+
] }) });
|
|
20
|
+
}
|
|
21
|
+
const groupsByKey = new Map(columnGroups == null ? void 0 : columnGroups.map((group) => [group.key, group]));
|
|
22
|
+
const groupedColumns = runs.filter((run) => run.group !== void 0).flatMap((run) => run.columns);
|
|
23
|
+
return /* @__PURE__ */ jsxs("thead", { children: [
|
|
24
|
+
/* @__PURE__ */ jsxs("tr", { children: [
|
|
25
|
+
corner,
|
|
26
|
+
runs.map((run) => {
|
|
27
|
+
if (run.group === void 0) {
|
|
28
|
+
return run.columns.map((column) => /* @__PURE__ */ jsx(ColumnHeader, { column, rowSpan }, column.key));
|
|
29
|
+
}
|
|
30
|
+
const entry = groupsByKey.get(run.group);
|
|
31
|
+
return /* @__PURE__ */ jsx(
|
|
32
|
+
"th",
|
|
33
|
+
{
|
|
34
|
+
scope: "colgroup",
|
|
35
|
+
colSpan: run.columns.length,
|
|
36
|
+
className: styles.group,
|
|
37
|
+
title: entry == null ? void 0 : entry.title,
|
|
38
|
+
children: (entry == null ? void 0 : entry.label) ?? run.group
|
|
39
|
+
},
|
|
40
|
+
`group-${run.start}`
|
|
41
|
+
);
|
|
42
|
+
})
|
|
43
|
+
] }),
|
|
44
|
+
/* @__PURE__ */ jsx("tr", { children: groupedColumns.map((column) => /* @__PURE__ */ jsx(ColumnHeader, { column }, column.key)) })
|
|
45
|
+
] });
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
HeatmapMatrixHeader
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=index141.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index141.js","sources":["../src/data/HeatmapMatrix/HeatmapMatrixHeader.tsx"],"sourcesContent":["import { HEATMAP_GROUPED_HEADER_ROWS } from '../../constants';\nimport type { HeatmapColumnHeaderProps, HeatmapMatrixHeaderProps } from './HeatmapMatrix.types';\nimport styles from './HeatmapMatrix.module.css';\n\nfunction ColumnHeader({ column, rowSpan }: HeatmapColumnHeaderProps) {\n return (\n <th scope=\"col\" rowSpan={rowSpan} className={styles.colh} title={column.title}>\n {column.label}\n </th>\n );\n}\n\n/**\n * Flat (one row) when `runs` is undefined, so the DOM stays as it was before column groups.\n * Grouped: the corner and ungrouped columns span both rows; each grouped run gets one\n * `scope=\"colgroup\"` header above its columns.\n */\nexport function HeatmapMatrixHeader({\n columns,\n runs,\n columnGroups,\n cornerLabel,\n}: HeatmapMatrixHeaderProps) {\n const rowSpan = runs ? HEATMAP_GROUPED_HEADER_ROWS : undefined;\n const corner = (\n <th scope=\"col\" rowSpan={rowSpan} className={styles.corner} aria-hidden={cornerLabel == null}>\n {cornerLabel}\n </th>\n );\n\n if (!runs) {\n return (\n <thead>\n <tr>\n {corner}\n {columns.map((column) => (\n <ColumnHeader key={column.key} column={column} />\n ))}\n </tr>\n </thead>\n );\n }\n\n const groupsByKey = new Map(columnGroups?.map((group) => [group.key, group]));\n const groupedColumns = runs\n .filter((run) => run.group !== undefined)\n .flatMap((run) => run.columns);\n\n return (\n <thead>\n <tr>\n {corner}\n {runs.map((run) => {\n if (run.group === undefined) {\n return run.columns.map((column) => (\n <ColumnHeader key={column.key} column={column} rowSpan={rowSpan} />\n ));\n }\n const entry = groupsByKey.get(run.group);\n return (\n <th\n key={`group-${run.start}`}\n scope=\"colgroup\"\n colSpan={run.columns.length}\n className={styles.group}\n title={entry?.title}\n >\n {entry?.label ?? run.group}\n </th>\n );\n })}\n </tr>\n <tr>\n {groupedColumns.map((column) => (\n <ColumnHeader key={column.key} column={column} />\n ))}\n </tr>\n </thead>\n );\n}\n"],"names":[],"mappings":";;;AAIA,SAAS,aAAa,EAAE,QAAQ,WAAqC;AACnE,SACE,oBAAC,MAAA,EAAG,OAAM,OAAM,SAAkB,WAAW,OAAO,MAAM,OAAO,OAAO,OACrE,UAAA,OAAO,OACV;AAEJ;AAOO,SAAS,oBAAoB;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAA6B;AAC3B,QAAM,UAAU,OAAO,8BAA8B;AACrD,QAAM,SACJ,oBAAC,MAAA,EAAG,OAAM,OAAM,SAAkB,WAAW,OAAO,QAAQ,eAAa,eAAe,MACrF,UAAA,aACH;AAGF,MAAI,CAAC,MAAM;AACT,WACE,oBAAC,SAAA,EACC,UAAA,qBAAC,MAAA,EACE,UAAA;AAAA,MAAA;AAAA,MACA,QAAQ,IAAI,CAAC,+BACX,cAAA,EAA8B,OAAA,GAAZ,OAAO,GAAqB,CAChD;AAAA,IAAA,EAAA,CACH,EAAA,CACF;AAAA,EAEJ;AAEA,QAAM,cAAc,IAAI,IAAI,6CAAc,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,KAAK,EAAE;AAC5E,QAAM,iBAAiB,KACpB,OAAO,CAAC,QAAQ,IAAI,UAAU,MAAS,EACvC,QAAQ,CAAC,QAAQ,IAAI,OAAO;AAE/B,8BACG,SAAA,EACC,UAAA;AAAA,IAAA,qBAAC,MAAA,EACE,UAAA;AAAA,MAAA;AAAA,MACA,KAAK,IAAI,CAAC,QAAQ;AACjB,YAAI,IAAI,UAAU,QAAW;AAC3B,iBAAO,IAAI,QAAQ,IAAI,CAAC,WACtB,oBAAC,cAAA,EAA8B,QAAgB,QAAA,GAA5B,OAAO,GAAuC,CAClE;AAAA,QACH;AACA,cAAM,QAAQ,YAAY,IAAI,IAAI,KAAK;AACvC,eACE;AAAA,UAAC;AAAA,UAAA;AAAA,YAEC,OAAM;AAAA,YACN,SAAS,IAAI,QAAQ;AAAA,YACrB,WAAW,OAAO;AAAA,YAClB,OAAO,+BAAO;AAAA,YAEb,WAAA,+BAAO,UAAS,IAAI;AAAA,UAAA;AAAA,UANhB,SAAS,IAAI,KAAK;AAAA,QAAA;AAAA,MAS7B,CAAC;AAAA,IAAA,GACH;AAAA,IACA,oBAAC,MAAA,EACE,UAAA,eAAe,IAAI,CAAC,WACnB,oBAAC,cAAA,EAA8B,OAAA,GAAZ,OAAO,GAAqB,CAChD,EAAA,CACH;AAAA,EAAA,GACF;AAEJ;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
function getColumnRuns(columns) {
|
|
4
|
+
const runs = [];
|
|
5
|
+
columns.forEach((column, index) => {
|
|
6
|
+
const current = runs[runs.length - 1];
|
|
7
|
+
if (current && current.group === column.group) {
|
|
8
|
+
current.columns.push(column);
|
|
9
|
+
} else {
|
|
10
|
+
runs.push({ group: column.group, start: index, columns: [column] });
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
return runs;
|
|
14
|
+
}
|
|
15
|
+
function hasColumnGroups(columns) {
|
|
16
|
+
return columns.some((column) => column.group !== void 0);
|
|
17
|
+
}
|
|
18
|
+
exports.getColumnRuns = getColumnRuns;
|
|
19
|
+
exports.hasColumnGroups = hasColumnGroups;
|
|
20
|
+
//# sourceMappingURL=index142.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index142.cjs","sources":["../src/data/HeatmapMatrix/getColumnRuns.ts"],"sourcesContent":["import type { ColumnRun, HeatmapColumn } from './HeatmapMatrix.types';\n\n/**\n * Splits `columns` into runs of consecutive columns sharing the same `group`. Never sorts: a group\n * that appears in two non-contiguous places yields two runs, and ungrouped columns form their own\n * runs (`group` undefined).\n */\nexport function getColumnRuns(columns: HeatmapColumn[]): ColumnRun[] {\n const runs: ColumnRun[] = [];\n columns.forEach((column, index) => {\n const current = runs[runs.length - 1];\n if (current && current.group === column.group) {\n current.columns.push(column);\n } else {\n runs.push({ group: column.group, start: index, columns: [column] });\n }\n });\n return runs;\n}\n\n/** True when at least one column declares a `group`, i.e. the two-row header is needed. */\nexport function hasColumnGroups(columns: HeatmapColumn[]): boolean {\n return columns.some((column) => column.group !== undefined);\n}\n"],"names":[],"mappings":";;AAOO,SAAS,cAAc,SAAuC;AACnE,QAAM,OAAoB,CAAA;AAC1B,UAAQ,QAAQ,CAAC,QAAQ,UAAU;AACjC,UAAM,UAAU,KAAK,KAAK,SAAS,CAAC;AACpC,QAAI,WAAW,QAAQ,UAAU,OAAO,OAAO;AAC7C,cAAQ,QAAQ,KAAK,MAAM;AAAA,IAC7B,OAAO;AACL,WAAK,KAAK,EAAE,OAAO,OAAO,OAAO,OAAO,OAAO,SAAS,CAAC,MAAM,EAAA,CAAG;AAAA,IACpE;AAAA,EACF,CAAC;AACD,SAAO;AACT;AAGO,SAAS,gBAAgB,SAAmC;AACjE,SAAO,QAAQ,KAAK,CAAC,WAAW,OAAO,UAAU,MAAS;AAC5D;;;"}
|
package/dist/index142.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
function getColumnRuns(columns) {
|
|
2
|
+
const runs = [];
|
|
3
|
+
columns.forEach((column, index) => {
|
|
4
|
+
const current = runs[runs.length - 1];
|
|
5
|
+
if (current && current.group === column.group) {
|
|
6
|
+
current.columns.push(column);
|
|
7
|
+
} else {
|
|
8
|
+
runs.push({ group: column.group, start: index, columns: [column] });
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
return runs;
|
|
12
|
+
}
|
|
13
|
+
function hasColumnGroups(columns) {
|
|
14
|
+
return columns.some((column) => column.group !== void 0);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
getColumnRuns,
|
|
18
|
+
hasColumnGroups
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=index142.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index142.js","sources":["../src/data/HeatmapMatrix/getColumnRuns.ts"],"sourcesContent":["import type { ColumnRun, HeatmapColumn } from './HeatmapMatrix.types';\n\n/**\n * Splits `columns` into runs of consecutive columns sharing the same `group`. Never sorts: a group\n * that appears in two non-contiguous places yields two runs, and ungrouped columns form their own\n * runs (`group` undefined).\n */\nexport function getColumnRuns(columns: HeatmapColumn[]): ColumnRun[] {\n const runs: ColumnRun[] = [];\n columns.forEach((column, index) => {\n const current = runs[runs.length - 1];\n if (current && current.group === column.group) {\n current.columns.push(column);\n } else {\n runs.push({ group: column.group, start: index, columns: [column] });\n }\n });\n return runs;\n}\n\n/** True when at least one column declares a `group`, i.e. the two-row header is needed. */\nexport function hasColumnGroups(columns: HeatmapColumn[]): boolean {\n return columns.some((column) => column.group !== undefined);\n}\n"],"names":[],"mappings":"AAOO,SAAS,cAAc,SAAuC;AACnE,QAAM,OAAoB,CAAA;AAC1B,UAAQ,QAAQ,CAAC,QAAQ,UAAU;AACjC,UAAM,UAAU,KAAK,KAAK,SAAS,CAAC;AACpC,QAAI,WAAW,QAAQ,UAAU,OAAO,OAAO;AAC7C,cAAQ,QAAQ,KAAK,MAAM;AAAA,IAC7B,OAAO;AACL,WAAK,KAAK,EAAE,OAAO,OAAO,OAAO,OAAO,OAAO,SAAS,CAAC,MAAM,EAAA,CAAG;AAAA,IACpE;AAAA,EACF,CAAC;AACD,SAAO;AACT;AAGO,SAAS,gBAAgB,SAAmC;AACjE,SAAO,QAAQ,KAAK,CAAC,WAAW,OAAO,UAAU,MAAS;AAC5D;"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const wrap = "krc-wrap-JRsc1";
|
|
4
|
+
const root = "krc-root-k9ocd";
|
|
5
|
+
const colh = "krc-colh-Fi0Kr";
|
|
6
|
+
const group = "krc-group-rVQPU";
|
|
7
|
+
const groupStart = "krc-groupStart-bu8S4";
|
|
8
|
+
const rowh = "krc-rowh-bTG4G";
|
|
9
|
+
const corner = "krc-corner-MNGJd";
|
|
10
|
+
const cell = "krc-cell-i0lDG";
|
|
11
|
+
const bad = "krc-bad-Hb1F3";
|
|
12
|
+
const ok = "krc-ok-hx6Lc";
|
|
13
|
+
const clickable = "krc-clickable-Q8fZg";
|
|
14
|
+
const styles = {
|
|
15
|
+
wrap,
|
|
16
|
+
root,
|
|
17
|
+
colh,
|
|
18
|
+
group,
|
|
19
|
+
groupStart,
|
|
20
|
+
rowh,
|
|
21
|
+
corner,
|
|
22
|
+
cell,
|
|
23
|
+
bad,
|
|
24
|
+
ok,
|
|
25
|
+
clickable
|
|
26
|
+
};
|
|
27
|
+
exports.bad = bad;
|
|
28
|
+
exports.cell = cell;
|
|
29
|
+
exports.clickable = clickable;
|
|
30
|
+
exports.colh = colh;
|
|
31
|
+
exports.corner = corner;
|
|
32
|
+
exports.default = styles;
|
|
33
|
+
exports.group = group;
|
|
34
|
+
exports.groupStart = groupStart;
|
|
35
|
+
exports.ok = ok;
|
|
36
|
+
exports.root = root;
|
|
37
|
+
exports.rowh = rowh;
|
|
38
|
+
exports.wrap = wrap;
|
|
39
|
+
//# sourceMappingURL=index143.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index143.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index143.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const wrap = "krc-wrap-JRsc1";
|
|
2
|
+
const root = "krc-root-k9ocd";
|
|
3
|
+
const colh = "krc-colh-Fi0Kr";
|
|
4
|
+
const group = "krc-group-rVQPU";
|
|
5
|
+
const groupStart = "krc-groupStart-bu8S4";
|
|
6
|
+
const rowh = "krc-rowh-bTG4G";
|
|
7
|
+
const corner = "krc-corner-MNGJd";
|
|
8
|
+
const cell = "krc-cell-i0lDG";
|
|
9
|
+
const bad = "krc-bad-Hb1F3";
|
|
10
|
+
const ok = "krc-ok-hx6Lc";
|
|
11
|
+
const clickable = "krc-clickable-Q8fZg";
|
|
12
|
+
const styles = {
|
|
13
|
+
wrap,
|
|
14
|
+
root,
|
|
15
|
+
colh,
|
|
16
|
+
group,
|
|
17
|
+
groupStart,
|
|
18
|
+
rowh,
|
|
19
|
+
corner,
|
|
20
|
+
cell,
|
|
21
|
+
bad,
|
|
22
|
+
ok,
|
|
23
|
+
clickable
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
bad,
|
|
27
|
+
cell,
|
|
28
|
+
clickable,
|
|
29
|
+
colh,
|
|
30
|
+
corner,
|
|
31
|
+
styles as default,
|
|
32
|
+
group,
|
|
33
|
+
groupStart,
|
|
34
|
+
ok,
|
|
35
|
+
root,
|
|
36
|
+
rowh,
|
|
37
|
+
wrap
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=index143.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index143.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const CLIPPING_OVERFLOW = /* @__PURE__ */ new Set(["hidden", "auto", "scroll", "clip"]);
|
|
4
|
+
const CONTAINING_CONTAIN = /paint|layout|strict|content/;
|
|
5
|
+
const CONTAINING_WILL_CHANGE = /transform|perspective|filter/;
|
|
6
|
+
const isSet = (value) => Boolean(value) && value !== "none";
|
|
7
|
+
function trapsFixed(style) {
|
|
8
|
+
return isSet(style.transform) || isSet(style.perspective) || isSet(style.filter) || isSet(style.backdropFilter) || CONTAINING_CONTAIN.test(style.contain ?? "") || CONTAINING_WILL_CHANGE.test(style.willChange ?? "") || isSet(style.containerType) && style.containerType !== "normal";
|
|
9
|
+
}
|
|
10
|
+
function clipsVertically(style) {
|
|
11
|
+
if (CLIPPING_OVERFLOW.has(style.overflowY)) return true;
|
|
12
|
+
return style.overflowX !== "clip" && CLIPPING_OVERFLOW.has(style.overflowX);
|
|
13
|
+
}
|
|
14
|
+
const intersect = (a, b) => ({
|
|
15
|
+
top: Math.max(a.top, b.top),
|
|
16
|
+
bottom: Math.min(a.bottom, b.bottom)
|
|
17
|
+
});
|
|
18
|
+
function getClippingRect(element) {
|
|
19
|
+
const root = document.documentElement;
|
|
20
|
+
const viewport = { top: 0, bottom: root.clientHeight };
|
|
21
|
+
let horizontal = null;
|
|
22
|
+
const clippers = [];
|
|
23
|
+
let trapped = false;
|
|
24
|
+
for (let el = element.parentElement; el; el = el.parentElement) {
|
|
25
|
+
const style = getComputedStyle(el);
|
|
26
|
+
if (!trapped && trapsFixed(style)) trapped = true;
|
|
27
|
+
if (el === document.body || el === root) continue;
|
|
28
|
+
const clipsX = CLIPPING_OVERFLOW.has(style.overflowX);
|
|
29
|
+
const clipsY = clipsVertically(style);
|
|
30
|
+
if (!clipsX && !clipsY) continue;
|
|
31
|
+
const rect = el.getBoundingClientRect();
|
|
32
|
+
if (clipsX && !horizontal) {
|
|
33
|
+
const left = rect.left + el.clientLeft;
|
|
34
|
+
horizontal = { left, right: left + el.clientWidth };
|
|
35
|
+
}
|
|
36
|
+
if (clipsY) {
|
|
37
|
+
const top = rect.top + el.clientTop;
|
|
38
|
+
clippers.push({ top, bottom: top + el.clientHeight });
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
const viewportWidth = root.clientWidth;
|
|
42
|
+
const outermost = clippers[clippers.length - 1];
|
|
43
|
+
return {
|
|
44
|
+
horizontal: horizontal ? { left: Math.max(horizontal.left, 0), right: Math.min(horizontal.right, viewportWidth) } : { left: 0, right: viewportWidth },
|
|
45
|
+
vertical: clippers.reduce(intersect, viewport),
|
|
46
|
+
viewport,
|
|
47
|
+
escape: trapped || clippers.length < 2 ? null : intersect(outermost, viewport)
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.getClippingRect = getClippingRect;
|
|
51
|
+
//# sourceMappingURL=index144.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index144.cjs","sources":["../src/utils/clippingRect.ts"],"sourcesContent":["import type { ClippingBox, HorizontalRect, VerticalRect } from './panelPlacement.types';\n\nconst CLIPPING_OVERFLOW = new Set(['hidden', 'auto', 'scroll', 'clip']);\nconst CONTAINING_CONTAIN = /paint|layout|strict|content/;\nconst CONTAINING_WILL_CHANGE = /transform|perspective|filter/;\n\nconst isSet = (value: string | undefined) => Boolean(value) && value !== 'none';\n\n/**\n * Whether `style` makes its element the containing block of `position: fixed`\n * descendants, so they are no longer positioned against the viewport.\n */\nfunction trapsFixed(style: CSSStyleDeclaration): boolean {\n return (\n isSet(style.transform) ||\n isSet(style.perspective) ||\n isSet(style.filter) ||\n isSet(style.backdropFilter) ||\n CONTAINING_CONTAIN.test(style.contain ?? '') ||\n CONTAINING_WILL_CHANGE.test(style.willChange ?? '') ||\n (isSet(style.containerType) && style.containerType !== 'normal')\n );\n}\n\n/**\n * `overflow-y` clips when it is not `visible`, and also when only `overflow-x` is set:\n * CSS computes a `visible` axis to `auto` when the other one is not `visible` (except\n * with `clip`). Browsers report the computed value; this also covers test DOMs that\n * reflect inline styles only.\n */\nfunction clipsVertically(style: CSSStyleDeclaration): boolean {\n if (CLIPPING_OVERFLOW.has(style.overflowY)) return true;\n return style.overflowX !== 'clip' && CLIPPING_OVERFLOW.has(style.overflowX);\n}\n\nconst intersect = (a: VerticalRect, b: VerticalRect): VerticalRect => ({\n top: Math.max(a.top, b.top),\n bottom: Math.min(a.bottom, b.bottom),\n});\n\n/**\n * The boxes that clip `element`'s overflow, measured as inner boxes (no border, no\n * scrollbar) and intersected with the viewport:\n * - horizontally, the nearest ancestor whose `overflow-x` is not `visible`;\n * - vertically, every ancestor whose `overflow-y` is not `visible`;\n * - the escape box, the outermost of those, when there are at least two.\n *\n * The overflow walk stops below `<body>`: overflow set on `<body>` or `<html>` applies\n * to the viewport, which is already the outer limit. The fixed-position trap is checked\n * up to `<html>`.\n */\nexport function getClippingRect(element: HTMLElement): ClippingBox {\n const root = document.documentElement;\n const viewport: VerticalRect = { top: 0, bottom: root.clientHeight };\n let horizontal: HorizontalRect | null = null;\n const clippers: VerticalRect[] = [];\n let trapped = false;\n\n for (let el = element.parentElement; el; el = el.parentElement) {\n const style = getComputedStyle(el);\n if (!trapped && trapsFixed(style)) trapped = true;\n if (el === document.body || el === root) continue;\n\n const clipsX = CLIPPING_OVERFLOW.has(style.overflowX);\n const clipsY = clipsVertically(style);\n if (!clipsX && !clipsY) continue;\n\n const rect = el.getBoundingClientRect();\n if (clipsX && !horizontal) {\n const left = rect.left + el.clientLeft;\n horizontal = { left, right: left + el.clientWidth };\n }\n if (clipsY) {\n const top = rect.top + el.clientTop;\n clippers.push({ top, bottom: top + el.clientHeight });\n }\n }\n\n const viewportWidth = root.clientWidth;\n const outermost = clippers[clippers.length - 1];\n return {\n horizontal: horizontal\n ? { left: Math.max(horizontal.left, 0), right: Math.min(horizontal.right, viewportWidth) }\n : { left: 0, right: viewportWidth },\n vertical: clippers.reduce(intersect, viewport),\n viewport,\n escape: trapped || clippers.length < 2 ? null : intersect(outermost, viewport),\n };\n}\n"],"names":[],"mappings":";;AAEA,MAAM,wCAAwB,IAAI,CAAC,UAAU,QAAQ,UAAU,MAAM,CAAC;AACtE,MAAM,qBAAqB;AAC3B,MAAM,yBAAyB;AAE/B,MAAM,QAAQ,CAAC,UAA8B,QAAQ,KAAK,KAAK,UAAU;AAMzE,SAAS,WAAW,OAAqC;AACvD,SACE,MAAM,MAAM,SAAS,KACrB,MAAM,MAAM,WAAW,KACvB,MAAM,MAAM,MAAM,KAClB,MAAM,MAAM,cAAc,KAC1B,mBAAmB,KAAK,MAAM,WAAW,EAAE,KAC3C,uBAAuB,KAAK,MAAM,cAAc,EAAE,KACjD,MAAM,MAAM,aAAa,KAAK,MAAM,kBAAkB;AAE3D;AAQA,SAAS,gBAAgB,OAAqC;AAC5D,MAAI,kBAAkB,IAAI,MAAM,SAAS,EAAG,QAAO;AACnD,SAAO,MAAM,cAAc,UAAU,kBAAkB,IAAI,MAAM,SAAS;AAC5E;AAEA,MAAM,YAAY,CAAC,GAAiB,OAAmC;AAAA,EACrE,KAAK,KAAK,IAAI,EAAE,KAAK,EAAE,GAAG;AAAA,EAC1B,QAAQ,KAAK,IAAI,EAAE,QAAQ,EAAE,MAAM;AACrC;AAaO,SAAS,gBAAgB,SAAmC;AACjE,QAAM,OAAO,SAAS;AACtB,QAAM,WAAyB,EAAE,KAAK,GAAG,QAAQ,KAAK,aAAA;AACtD,MAAI,aAAoC;AACxC,QAAM,WAA2B,CAAA;AACjC,MAAI,UAAU;AAEd,WAAS,KAAK,QAAQ,eAAe,IAAI,KAAK,GAAG,eAAe;AAC9D,UAAM,QAAQ,iBAAiB,EAAE;AACjC,QAAI,CAAC,WAAW,WAAW,KAAK,EAAG,WAAU;AAC7C,QAAI,OAAO,SAAS,QAAQ,OAAO,KAAM;AAEzC,UAAM,SAAS,kBAAkB,IAAI,MAAM,SAAS;AACpD,UAAM,SAAS,gBAAgB,KAAK;AACpC,QAAI,CAAC,UAAU,CAAC,OAAQ;AAExB,UAAM,OAAO,GAAG,sBAAA;AAChB,QAAI,UAAU,CAAC,YAAY;AACzB,YAAM,OAAO,KAAK,OAAO,GAAG;AAC5B,mBAAa,EAAE,MAAM,OAAO,OAAO,GAAG,YAAA;AAAA,IACxC;AACA,QAAI,QAAQ;AACV,YAAM,MAAM,KAAK,MAAM,GAAG;AAC1B,eAAS,KAAK,EAAE,KAAK,QAAQ,MAAM,GAAG,cAAc;AAAA,IACtD;AAAA,EACF;AAEA,QAAM,gBAAgB,KAAK;AAC3B,QAAM,YAAY,SAAS,SAAS,SAAS,CAAC;AAC9C,SAAO;AAAA,IACL,YAAY,aACR,EAAE,MAAM,KAAK,IAAI,WAAW,MAAM,CAAC,GAAG,OAAO,KAAK,IAAI,WAAW,OAAO,aAAa,EAAA,IACrF,EAAE,MAAM,GAAG,OAAO,cAAA;AAAA,IACtB,UAAU,SAAS,OAAO,WAAW,QAAQ;AAAA,IAC7C;AAAA,IACA,QAAQ,WAAW,SAAS,SAAS,IAAI,OAAO,UAAU,WAAW,QAAQ;AAAA,EAAA;AAEjF;;"}
|
package/dist/index144.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
const CLIPPING_OVERFLOW = /* @__PURE__ */ new Set(["hidden", "auto", "scroll", "clip"]);
|
|
2
|
+
const CONTAINING_CONTAIN = /paint|layout|strict|content/;
|
|
3
|
+
const CONTAINING_WILL_CHANGE = /transform|perspective|filter/;
|
|
4
|
+
const isSet = (value) => Boolean(value) && value !== "none";
|
|
5
|
+
function trapsFixed(style) {
|
|
6
|
+
return isSet(style.transform) || isSet(style.perspective) || isSet(style.filter) || isSet(style.backdropFilter) || CONTAINING_CONTAIN.test(style.contain ?? "") || CONTAINING_WILL_CHANGE.test(style.willChange ?? "") || isSet(style.containerType) && style.containerType !== "normal";
|
|
7
|
+
}
|
|
8
|
+
function clipsVertically(style) {
|
|
9
|
+
if (CLIPPING_OVERFLOW.has(style.overflowY)) return true;
|
|
10
|
+
return style.overflowX !== "clip" && CLIPPING_OVERFLOW.has(style.overflowX);
|
|
11
|
+
}
|
|
12
|
+
const intersect = (a, b) => ({
|
|
13
|
+
top: Math.max(a.top, b.top),
|
|
14
|
+
bottom: Math.min(a.bottom, b.bottom)
|
|
15
|
+
});
|
|
16
|
+
function getClippingRect(element) {
|
|
17
|
+
const root = document.documentElement;
|
|
18
|
+
const viewport = { top: 0, bottom: root.clientHeight };
|
|
19
|
+
let horizontal = null;
|
|
20
|
+
const clippers = [];
|
|
21
|
+
let trapped = false;
|
|
22
|
+
for (let el = element.parentElement; el; el = el.parentElement) {
|
|
23
|
+
const style = getComputedStyle(el);
|
|
24
|
+
if (!trapped && trapsFixed(style)) trapped = true;
|
|
25
|
+
if (el === document.body || el === root) continue;
|
|
26
|
+
const clipsX = CLIPPING_OVERFLOW.has(style.overflowX);
|
|
27
|
+
const clipsY = clipsVertically(style);
|
|
28
|
+
if (!clipsX && !clipsY) continue;
|
|
29
|
+
const rect = el.getBoundingClientRect();
|
|
30
|
+
if (clipsX && !horizontal) {
|
|
31
|
+
const left = rect.left + el.clientLeft;
|
|
32
|
+
horizontal = { left, right: left + el.clientWidth };
|
|
33
|
+
}
|
|
34
|
+
if (clipsY) {
|
|
35
|
+
const top = rect.top + el.clientTop;
|
|
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
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
getClippingRect
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=index144.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index144.js","sources":["../src/utils/clippingRect.ts"],"sourcesContent":["import type { ClippingBox, HorizontalRect, VerticalRect } from './panelPlacement.types';\n\nconst CLIPPING_OVERFLOW = new Set(['hidden', 'auto', 'scroll', 'clip']);\nconst CONTAINING_CONTAIN = /paint|layout|strict|content/;\nconst CONTAINING_WILL_CHANGE = /transform|perspective|filter/;\n\nconst isSet = (value: string | undefined) => Boolean(value) && value !== 'none';\n\n/**\n * Whether `style` makes its element the containing block of `position: fixed`\n * descendants, so they are no longer positioned against the viewport.\n */\nfunction trapsFixed(style: CSSStyleDeclaration): boolean {\n return (\n isSet(style.transform) ||\n isSet(style.perspective) ||\n isSet(style.filter) ||\n isSet(style.backdropFilter) ||\n CONTAINING_CONTAIN.test(style.contain ?? '') ||\n CONTAINING_WILL_CHANGE.test(style.willChange ?? '') ||\n (isSet(style.containerType) && style.containerType !== 'normal')\n );\n}\n\n/**\n * `overflow-y` clips when it is not `visible`, and also when only `overflow-x` is set:\n * CSS computes a `visible` axis to `auto` when the other one is not `visible` (except\n * with `clip`). Browsers report the computed value; this also covers test DOMs that\n * reflect inline styles only.\n */\nfunction clipsVertically(style: CSSStyleDeclaration): boolean {\n if (CLIPPING_OVERFLOW.has(style.overflowY)) return true;\n return style.overflowX !== 'clip' && CLIPPING_OVERFLOW.has(style.overflowX);\n}\n\nconst intersect = (a: VerticalRect, b: VerticalRect): VerticalRect => ({\n top: Math.max(a.top, b.top),\n bottom: Math.min(a.bottom, b.bottom),\n});\n\n/**\n * The boxes that clip `element`'s overflow, measured as inner boxes (no border, no\n * scrollbar) and intersected with the viewport:\n * - horizontally, the nearest ancestor whose `overflow-x` is not `visible`;\n * - vertically, every ancestor whose `overflow-y` is not `visible`;\n * - the escape box, the outermost of those, when there are at least two.\n *\n * The overflow walk stops below `<body>`: overflow set on `<body>` or `<html>` applies\n * to the viewport, which is already the outer limit. The fixed-position trap is checked\n * up to `<html>`.\n */\nexport function getClippingRect(element: HTMLElement): ClippingBox {\n const root = document.documentElement;\n const viewport: VerticalRect = { top: 0, bottom: root.clientHeight };\n let horizontal: HorizontalRect | null = null;\n const clippers: VerticalRect[] = [];\n let trapped = false;\n\n for (let el = element.parentElement; el; el = el.parentElement) {\n const style = getComputedStyle(el);\n if (!trapped && trapsFixed(style)) trapped = true;\n if (el === document.body || el === root) continue;\n\n const clipsX = CLIPPING_OVERFLOW.has(style.overflowX);\n const clipsY = clipsVertically(style);\n if (!clipsX && !clipsY) continue;\n\n const rect = el.getBoundingClientRect();\n if (clipsX && !horizontal) {\n const left = rect.left + el.clientLeft;\n horizontal = { left, right: left + el.clientWidth };\n }\n if (clipsY) {\n const top = rect.top + el.clientTop;\n clippers.push({ top, bottom: top + el.clientHeight });\n }\n }\n\n const viewportWidth = root.clientWidth;\n const outermost = clippers[clippers.length - 1];\n return {\n horizontal: horizontal\n ? { left: Math.max(horizontal.left, 0), right: Math.min(horizontal.right, viewportWidth) }\n : { left: 0, right: viewportWidth },\n vertical: clippers.reduce(intersect, viewport),\n viewport,\n escape: trapped || clippers.length < 2 ? null : intersect(outermost, viewport),\n };\n}\n"],"names":[],"mappings":"AAEA,MAAM,wCAAwB,IAAI,CAAC,UAAU,QAAQ,UAAU,MAAM,CAAC;AACtE,MAAM,qBAAqB;AAC3B,MAAM,yBAAyB;AAE/B,MAAM,QAAQ,CAAC,UAA8B,QAAQ,KAAK,KAAK,UAAU;AAMzE,SAAS,WAAW,OAAqC;AACvD,SACE,MAAM,MAAM,SAAS,KACrB,MAAM,MAAM,WAAW,KACvB,MAAM,MAAM,MAAM,KAClB,MAAM,MAAM,cAAc,KAC1B,mBAAmB,KAAK,MAAM,WAAW,EAAE,KAC3C,uBAAuB,KAAK,MAAM,cAAc,EAAE,KACjD,MAAM,MAAM,aAAa,KAAK,MAAM,kBAAkB;AAE3D;AAQA,SAAS,gBAAgB,OAAqC;AAC5D,MAAI,kBAAkB,IAAI,MAAM,SAAS,EAAG,QAAO;AACnD,SAAO,MAAM,cAAc,UAAU,kBAAkB,IAAI,MAAM,SAAS;AAC5E;AAEA,MAAM,YAAY,CAAC,GAAiB,OAAmC;AAAA,EACrE,KAAK,KAAK,IAAI,EAAE,KAAK,EAAE,GAAG;AAAA,EAC1B,QAAQ,KAAK,IAAI,EAAE,QAAQ,EAAE,MAAM;AACrC;AAaO,SAAS,gBAAgB,SAAmC;AACjE,QAAM,OAAO,SAAS;AACtB,QAAM,WAAyB,EAAE,KAAK,GAAG,QAAQ,KAAK,aAAA;AACtD,MAAI,aAAoC;AACxC,QAAM,WAA2B,CAAA;AACjC,MAAI,UAAU;AAEd,WAAS,KAAK,QAAQ,eAAe,IAAI,KAAK,GAAG,eAAe;AAC9D,UAAM,QAAQ,iBAAiB,EAAE;AACjC,QAAI,CAAC,WAAW,WAAW,KAAK,EAAG,WAAU;AAC7C,QAAI,OAAO,SAAS,QAAQ,OAAO,KAAM;AAEzC,UAAM,SAAS,kBAAkB,IAAI,MAAM,SAAS;AACpD,UAAM,SAAS,gBAAgB,KAAK;AACpC,QAAI,CAAC,UAAU,CAAC,OAAQ;AAExB,UAAM,OAAO,GAAG,sBAAA;AAChB,QAAI,UAAU,CAAC,YAAY;AACzB,YAAM,OAAO,KAAK,OAAO,GAAG;AAC5B,mBAAa,EAAE,MAAM,OAAO,OAAO,GAAG,YAAA;AAAA,IACxC;AACA,QAAI,QAAQ;AACV,YAAM,MAAM,KAAK,MAAM,GAAG;AAC1B,eAAS,KAAK,EAAE,KAAK,QAAQ,MAAM,GAAG,cAAc;AAAA,IACtD;AAAA,EACF;AAEA,QAAM,gBAAgB,KAAK;AAC3B,QAAM,YAAY,SAAS,SAAS,SAAS,CAAC;AAC9C,SAAO;AAAA,IACL,YAAY,aACR,EAAE,MAAM,KAAK,IAAI,WAAW,MAAM,CAAC,GAAG,OAAO,KAAK,IAAI,WAAW,OAAO,aAAa,EAAA,IACrF,EAAE,MAAM,GAAG,OAAO,cAAA;AAAA,IACtB,UAAU,SAAS,OAAO,WAAW,QAAQ;AAAA,IAC7C;AAAA,IACA,QAAQ,WAAW,SAAS,SAAS,IAAI,OAAO,UAAU,WAAW,QAAQ;AAAA,EAAA;AAEjF;"}
|