@react-spectrum/table 3.7.2-nightly.3785 → 3.7.2-nightly.3796
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/dist/import.mjs +36 -54
- package/dist/main.css +1 -1
- package/dist/main.js +35 -53
- package/dist/main.js.map +1 -1
- package/dist/module.js +36 -54
- package/dist/module.js.map +1 -1
- package/package.json +31 -31
- package/src/Resizer.tsx +39 -52
- package/src/cursors/Cur_MoveHorizontal_9_9.svg +6 -3
- package/src/cursors/Cur_MoveToLeft_9_9.svg +8 -3
- package/src/cursors/Cur_MoveToRight_9_9.svg +8 -3
- package/src/table.css +0 -13
package/dist/module.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./main.css";
|
|
2
2
|
import {Column as $gyhAV$Column, TableHeader as $e668f3d0f378a712$re_export$TableHeader, TableBody as $e668f3d0f378a712$re_export$TableBody, Section as $e668f3d0f378a712$re_export$Section, Row as $e668f3d0f378a712$re_export$Row, Cell as $e668f3d0f378a712$re_export$Cell, useTableState as $gyhAV$useTableState, TableColumnLayout as $gyhAV$TableColumnLayout} from "@react-stately/table";
|
|
3
3
|
import $gyhAV$spectrumiconsuiArrowDownSmall from "@spectrum-icons/ui/ArrowDownSmall";
|
|
4
|
-
import {mergeProps as $gyhAV$mergeProps, scrollIntoViewport as $gyhAV$scrollIntoViewport, scrollIntoView as $gyhAV$scrollIntoView, useLayoutEffect as $gyhAV$useLayoutEffect, chain as $gyhAV$chain} from "@react-aria/utils";
|
|
4
|
+
import {mergeProps as $gyhAV$mergeProps, scrollIntoViewport as $gyhAV$scrollIntoViewport, scrollIntoView as $gyhAV$scrollIntoView, useLayoutEffect as $gyhAV$useLayoutEffect, chain as $gyhAV$chain, isWebKit as $gyhAV$isWebKit} from "@react-aria/utils";
|
|
5
5
|
import {Checkbox as $gyhAV$Checkbox} from "@react-spectrum/checkbox";
|
|
6
6
|
import $gyhAV$spectrumiconsuiChevronDownMedium from "@spectrum-icons/ui/ChevronDownMedium";
|
|
7
7
|
import {useStyleProps as $gyhAV$useStyleProps, useDOMRef as $gyhAV$useDOMRef, classNames as $gyhAV$classNames, useFocusableRef as $gyhAV$useFocusableRef, useIsMobileDevice as $gyhAV$useIsMobileDevice, useUnwrapDOMRef as $gyhAV$useUnwrapDOMRef} from "@react-spectrum/utils";
|
|
@@ -68,12 +68,6 @@ $parcel$export($325bc3d43b25708b$exports, "react-spectrum-Table-cell--alignStart
|
|
|
68
68
|
$parcel$export($325bc3d43b25708b$exports, "react-spectrum-Table-cell--alignCenter", () => $325bc3d43b25708b$export$14101ea2699002fc, (v) => $325bc3d43b25708b$export$14101ea2699002fc = v);
|
|
69
69
|
$parcel$export($325bc3d43b25708b$exports, "react-spectrum-Table-cell--alignEnd", () => $325bc3d43b25708b$export$c594335f8535fc47, (v) => $325bc3d43b25708b$export$c594335f8535fc47 = v);
|
|
70
70
|
$parcel$export($325bc3d43b25708b$exports, "react-spectrum-Table-centeredWrapper", () => $325bc3d43b25708b$export$8bffb31c98aaf8d5, (v) => $325bc3d43b25708b$export$8bffb31c98aaf8d5 = v);
|
|
71
|
-
$parcel$export($325bc3d43b25708b$exports, "resize-ew", () => $325bc3d43b25708b$export$649f0fca6895dd60, (v) => $325bc3d43b25708b$export$649f0fca6895dd60 = v);
|
|
72
|
-
$parcel$export($325bc3d43b25708b$exports, "react-spectrum-Table-columnResizer--ewresize", () => $325bc3d43b25708b$export$a1b113e03a5ee3de, (v) => $325bc3d43b25708b$export$a1b113e03a5ee3de = v);
|
|
73
|
-
$parcel$export($325bc3d43b25708b$exports, "resize-e", () => $325bc3d43b25708b$export$7c4671d507759106, (v) => $325bc3d43b25708b$export$7c4671d507759106 = v);
|
|
74
|
-
$parcel$export($325bc3d43b25708b$exports, "react-spectrum-Table-columnResizer--eresize", () => $325bc3d43b25708b$export$44b07791dc26fbe2, (v) => $325bc3d43b25708b$export$44b07791dc26fbe2 = v);
|
|
75
|
-
$parcel$export($325bc3d43b25708b$exports, "resize-w", () => $325bc3d43b25708b$export$f87ceeb5dfa395aa, (v) => $325bc3d43b25708b$export$f87ceeb5dfa395aa = v);
|
|
76
|
-
$parcel$export($325bc3d43b25708b$exports, "react-spectrum-Table-columnResizer--wresize", () => $325bc3d43b25708b$export$625aeffc18827554, (v) => $325bc3d43b25708b$export$625aeffc18827554 = v);
|
|
77
71
|
$parcel$export($325bc3d43b25708b$exports, "react-spectrum-Table-row-dragPreview", () => $325bc3d43b25708b$export$ba71e6bcd70242c7, (v) => $325bc3d43b25708b$export$ba71e6bcd70242c7 = v);
|
|
78
72
|
$parcel$export($325bc3d43b25708b$exports, "react-spectrum-Table-row-dragPreview--multiple", () => $325bc3d43b25708b$export$3d73889014dd20dd, (v) => $325bc3d43b25708b$export$3d73889014dd20dd = v);
|
|
79
73
|
$parcel$export($325bc3d43b25708b$exports, "react-spectrum-Table-row-badge", () => $325bc3d43b25708b$export$3559001d7e84a6da, (v) => $325bc3d43b25708b$export$3559001d7e84a6da = v);
|
|
@@ -94,12 +88,6 @@ var $325bc3d43b25708b$export$25d7f56ba6d0d442;
|
|
|
94
88
|
var $325bc3d43b25708b$export$14101ea2699002fc;
|
|
95
89
|
var $325bc3d43b25708b$export$c594335f8535fc47;
|
|
96
90
|
var $325bc3d43b25708b$export$8bffb31c98aaf8d5;
|
|
97
|
-
var $325bc3d43b25708b$export$649f0fca6895dd60;
|
|
98
|
-
var $325bc3d43b25708b$export$a1b113e03a5ee3de;
|
|
99
|
-
var $325bc3d43b25708b$export$7c4671d507759106;
|
|
100
|
-
var $325bc3d43b25708b$export$44b07791dc26fbe2;
|
|
101
|
-
var $325bc3d43b25708b$export$f87ceeb5dfa395aa;
|
|
102
|
-
var $325bc3d43b25708b$export$625aeffc18827554;
|
|
103
91
|
var $325bc3d43b25708b$export$ba71e6bcd70242c7;
|
|
104
92
|
var $325bc3d43b25708b$export$3d73889014dd20dd;
|
|
105
93
|
var $325bc3d43b25708b$export$3559001d7e84a6da;
|
|
@@ -120,12 +108,6 @@ $325bc3d43b25708b$export$25d7f56ba6d0d442 = "react-spectrum-Table-cell--alignSta
|
|
|
120
108
|
$325bc3d43b25708b$export$14101ea2699002fc = "react-spectrum-Table-cell--alignCenter_e844a7";
|
|
121
109
|
$325bc3d43b25708b$export$c594335f8535fc47 = "react-spectrum-Table-cell--alignEnd_e844a7";
|
|
122
110
|
$325bc3d43b25708b$export$8bffb31c98aaf8d5 = "react-spectrum-Table-centeredWrapper_e844a7";
|
|
123
|
-
$325bc3d43b25708b$export$649f0fca6895dd60 = "resize-ew_e844a7";
|
|
124
|
-
$325bc3d43b25708b$export$a1b113e03a5ee3de = "react-spectrum-Table-columnResizer--ewresize_e844a7";
|
|
125
|
-
$325bc3d43b25708b$export$7c4671d507759106 = "resize-e_e844a7";
|
|
126
|
-
$325bc3d43b25708b$export$44b07791dc26fbe2 = "react-spectrum-Table-columnResizer--eresize_e844a7";
|
|
127
|
-
$325bc3d43b25708b$export$f87ceeb5dfa395aa = "resize-w_e844a7";
|
|
128
|
-
$325bc3d43b25708b$export$625aeffc18827554 = "react-spectrum-Table-columnResizer--wresize_e844a7";
|
|
129
111
|
$325bc3d43b25708b$export$ba71e6bcd70242c7 = "react-spectrum-Table-row-dragPreview_e844a7";
|
|
130
112
|
$325bc3d43b25708b$export$3d73889014dd20dd = "react-spectrum-Table-row-dragPreview--multiple_e844a7";
|
|
131
113
|
$325bc3d43b25708b$export$3559001d7e84a6da = "react-spectrum-Table-row-badge_e844a7";
|
|
@@ -643,6 +625,13 @@ function $cb7d341e8868d81d$export$d9658cdf8c86807() {
|
|
|
643
625
|
|
|
644
626
|
|
|
645
627
|
/* eslint-disable jsx-a11y/role-supports-aria-props */
|
|
628
|
+
var $2fc56f9fdd93be52$exports = {};
|
|
629
|
+
$2fc56f9fdd93be52$exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" viewBox=\"-1 0 31 32\">\n <filter id=\"shadow\">\n <feDropShadow dx=\"0\" dy=\"0.5\" stdDeviation=\"1.2\" flood-opacity=\"0.7\"></feDropShadow>\n </filter>\n <g filter=\"url('#shadow')\">\n <path d=\"M9.5,2c.27614,0,.5,.22388,.5,.5v6.5h3v-1.74951c0-.14893,.12215-.25049,.2513-.25049,.05457,0,.1104,.01819,.15875,.05847l2.58995,2.44153-2.58995,2.44153c-.04837,.04028-.10419,.05847-.15875,.05847-.12914,0-.2513-.10156-.2513-.25049v-1.74951h-3v6.5c0,.27612-.22386,.5-.5,.5h-1c-.27614,0-.5-.22388-.5-.5V2.5c0-.27612,.22386-.5,.5-.5h1Zm0-1h-1c-.82843,0-1.5,.67157-1.5,1.5v14c0,.82843,.67157,1.5,1.5,1.5h1c.82843,0,1.5-.67157,1.5-1.5v-5.5h1v.67757c0,.40416,.1632,.80501,.48197,1.05347,.49639,.3869,1.14001,.33571,1.56838-.02144l.02344-.01953,.0222-.02087,2.97589-2.80537c.20937-.19737,.20937-.53028,0-.72765l-2.97589-2.80537-.0222-.02087-.02345-.01965c-.22456-.18713-.5083-.29028-.79895-.29028-.3208,0-.62624,.12134-.86003,.34167-.24872,.23438-.39136,.56567-.39136,.90881v.74951h-1V2.5c0-.82843-.67157-1.5-1.5-1.5Z\" fill=\"#fff\"></path>\n <path d=\"M10,16.5v-6.5h3v1.74952c0,.21196,.24721,.32775,.41005,.19206l2.58995-2.44158-2.58995-2.44158c-.16283-.13569-.41005-.0199-.41005,.19206v1.74952h-3V2.5c0-.27614-.22386-.5-.5-.5h-1c-.27614,0-.5,.22386-.5,.5v14c0,.27614,.22386,.5,.5,.5h1c.27614,0,.5-.22386,.5-.5Z\"></path>\n </g>\n</svg>\n";
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
var $ff1f3562a1be2216$exports = {};
|
|
633
|
+
$ff1f3562a1be2216$exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" viewBox=\"-1 0 31 32\">\n <filter id=\"shadow\">\n <feDropShadow dx=\"0\" dy=\"0.5\" stdDeviation=\"1.2\" flood-opacity=\"0.7\"></feDropShadow>\n </filter>\n <g filter=\"url('#shadow')\">\n <path fill=\"#fff\" d=\"M9.5,2a.5.5,0,0,1,.5.5V9h3V7.2505A.25014.25014,0,0,1,13.24978,7h.00152a.246.246,0,0,1,.15875.05847L16,9.5l-2.58995,2.44153A.24611.24611,0,0,1,13.2513,12,.25016.25016,0,0,1,13,11.751V10H10v6.5a.5.5,0,0,1-.5.5h-1a.5.5,0,0,1-.5-.5V10H5v1.7495A.25014.25014,0,0,1,4.75022,12H4.7487A.246.246,0,0,1,4.59,11.94153L2,9.5,4.59,7.05847A.246.246,0,0,1,4.7487,7,.25016.25016,0,0,1,5,7.249V9H8V2.5A.5.5,0,0,1,8.5,2Zm0-1h-1A1.5,1.5,0,0,0,7,2.5V8H6V7.32389a1.33,1.33,0,0,0-.4816-1.05444,1.23962,1.23962,0,0,0-1.56876.021l-.02344.01953-.0222.02088L.92812,9.13618A.5.5,0,0,0,.90726,9.843l.02086.02085L3.904,12.66919l.02221.02088.02345.01965a1.23986,1.23986,0,0,0,1.56836.02116A1.3294,1.3294,0,0,0,6,11.6765V11H7v5.5A1.5,1.5,0,0,0,8.5,18h1A1.5,1.5,0,0,0,11,16.5V11h1v.67757a1.32792,1.32792,0,0,0,.482,1.05347,1.24,1.24,0,0,0,1.56839-.02144l.02343-.01953.02221-.02088,2.97588-2.80537a.5.5,0,0,0,.02086-.70679l-.02086-.02085L14.096,6.33081l-.02221-.02087-.02345-.01965A1.24978,1.24978,0,0,0,12,7.2505V8H11V2.5A1.5,1.5,0,0,0,9.5,1Z\"></path>\n <path d=\"M10,16.5V10h3v1.7495a.25.25,0,0,0,.41.19206L16,9.5,13.41,7.05842A.25.25,0,0,0,13,7.2505V9H10V2.5A.5.5,0,0,0,9.5,2h-1a.5.5,0,0,0-.5.5V9H5V7.2505a.25.25,0,0,0-.41-.19206L2,9.5l2.59,2.44158A.25.25,0,0,0,5,11.7495V10H8v6.5a.5.5,0,0,0,.5.5h1A.5.5,0,0,0,10,16.5Z\"></path>\n </g>\n</svg>\n";
|
|
634
|
+
|
|
646
635
|
|
|
647
636
|
|
|
648
637
|
|
|
@@ -817,10 +806,21 @@ $bd5d41f647a296c3$export$d3861fcb1e5f6a2b = "spectrum-Table-colResizeIndicator--
|
|
|
817
806
|
|
|
818
807
|
|
|
819
808
|
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
809
|
+
var $58407c2d4eb33511$exports = {};
|
|
810
|
+
$58407c2d4eb33511$exports = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" viewBox=\"-1 0 31 32\">\n <filter id=\"shadow\">\n <feDropShadow dx=\"0\" dy=\"0.5\" stdDeviation=\"1.2\" flood-opacity=\"0.7\"></feDropShadow>\n </filter>\n <g filter=\"url('#shadow')\">\n <path d=\"M9.5,2c.27614,0,.5,.22388,.5,.5v14c0,.27612-.22386,.5-.5,.5h-1c-.27614,0-.5-.22388-.5-.5v-6.5h-3v1.74951c0,.14893-.12215,.25049-.2513,.25049-.05457,0-.1104-.01819-.15875-.05847l-2.58995-2.44153,2.58995-2.44153c.04837-.04028,.10419-.05847,.15875-.05847,.12914,0,.2513,.10156,.2513,.25049v1.74951h3V2.5c0-.27612,.22386-.5,.5-.5h1Zm0-1h-1c-.82843,0-1.5,.67157-1.5,1.5v5.5h-1v-.67611c0-.40436-.1629-.80555-.48159-1.05444-.4961-.38744-1.14015-.33635-1.56876,.02095l-.02344,.01953-.0222,.02087L.92811,9.13618c-.20937,.19737-.20937,.53028,0,.72765l2.97589,2.80537,.0222,.02087,.02345,.01965c.42839,.35694,1.07208,.40833,1.56837,.02116,.31886-.24875,.48198-.64994,.48198-1.05435v-.67652s.99999,0,.99999,0v5.5c0,.82843,.67157,1.5,1.5,1.5h1c.82843,0,1.5-.67157,1.5-1.5V2.5c0-.82843-.67157-1.5-1.5-1.5Z\" fill=\"#fff\"></path>\n <path d=\"M10,16.5V2.5c0-.27614-.22386-.5-.5-.5h-1c-.27614,0-.5,.22386-.5,.5v6.5h-3v-1.74952c0-.21196-.24721-.32775-.41005-.19206l-2.58995,2.44158,2.58995,2.44158c.16283,.13569,.41005,.0199,.41005-.19206v-1.74952h3v6.5c0,.27614,.22386,.5,.5,.5h1c.27614,0,.5-.22386,.5-.5Z\"></path>\n </g>\n</svg>\n";
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
function $fc695d2eafc2b351$var$getCursor(svg, fallback) {
|
|
814
|
+
// WebKit renders SVG cursors blurry on 2x screens: https://bugs.webkit.org/show_bug.cgi?id=160657
|
|
815
|
+
// To work around this, we generate two SVGs at different sizes and use image-set to pick between them.
|
|
816
|
+
// Only do this in WebKit to avoid Firefox rendering the cursor at twice the size.
|
|
817
|
+
if ((0, $gyhAV$isWebKit)()) return `image-set(url("data:image/svg+xml,${encodeURIComponent(svg)}") 1x, url("data:image/svg+xml,${encodeURIComponent(svg.replace('width="32" height="32"', 'width="64" height="64"'))}") 2x) 8 8, ${fallback}`;
|
|
818
|
+
else return `url("data:image/svg+xml,${encodeURIComponent(svg)}") 8 8, ${fallback}`;
|
|
819
|
+
}
|
|
820
|
+
const $fc695d2eafc2b351$var$CURSORS = {
|
|
821
|
+
ew: $fc695d2eafc2b351$var$getCursor((0, (/*@__PURE__*/$parcel$interopDefault($ff1f3562a1be2216$exports))), "ew-resize"),
|
|
822
|
+
w: $fc695d2eafc2b351$var$getCursor((0, (/*@__PURE__*/$parcel$interopDefault($58407c2d4eb33511$exports))), "w-resize"),
|
|
823
|
+
e: $fc695d2eafc2b351$var$getCursor((0, (/*@__PURE__*/$parcel$interopDefault($2fc56f9fdd93be52$exports))), "e-resize")
|
|
824
824
|
};
|
|
825
825
|
function $fc695d2eafc2b351$var$Resizer(props, ref) {
|
|
826
826
|
let { column: column , showResizer: showResizer } = props;
|
|
@@ -831,7 +831,6 @@ function $fc695d2eafc2b351$var$Resizer(props, ref) {
|
|
|
831
831
|
(0, $d14697b14e638114$export$3f8f74b6bfd2c5df)();
|
|
832
832
|
let stringFormatter = (0, $gyhAV$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($467944769c14687b$exports))));
|
|
833
833
|
let { direction: direction } = (0, $gyhAV$useLocale)();
|
|
834
|
-
let [directionClass, setDirectionClass] = (0, $gyhAV$react).useState(null);
|
|
835
834
|
let [isPointerDown, setIsPointerDown] = (0, $gyhAV$useState)(false);
|
|
836
835
|
(0, $gyhAV$useEffect)(()=>{
|
|
837
836
|
let setDown = (e)=>{
|
|
@@ -858,45 +857,28 @@ function $fc695d2eafc2b351$var$Resizer(props, ref) {
|
|
|
858
857
|
let { inputProps: inputProps , resizerProps: resizerProps } = (0, $gyhAV$useTableColumnResize)((0, $gyhAV$mergeProps)(props, {
|
|
859
858
|
"aria-label": stringFormatter.format("columnResizer"),
|
|
860
859
|
isDisabled: isEmpty,
|
|
861
|
-
shouldResizeOnFocus: true
|
|
862
|
-
onResizeStart: ()=>{
|
|
863
|
-
if ((0, $gyhAV$getInteractionModality)() === "pointer") {
|
|
864
|
-
if (layout.getColumnMinWidth(column.key) >= layout.getColumnWidth(column.key)) setDirectionClass(direction === "rtl" ? $fc695d2eafc2b351$var$CURSOR_CLASSES.w : $fc695d2eafc2b351$var$CURSOR_CLASSES.e);
|
|
865
|
-
else if (layout.getColumnMaxWidth(column.key) <= layout.getColumnWidth(column.key)) setDirectionClass(direction === "rtl" ? $fc695d2eafc2b351$var$CURSOR_CLASSES.e : $fc695d2eafc2b351$var$CURSOR_CLASSES.w);
|
|
866
|
-
else setDirectionClass($fc695d2eafc2b351$var$CURSOR_CLASSES.ew);
|
|
867
|
-
} else setDirectionClass(null);
|
|
868
|
-
},
|
|
869
|
-
onResize: ()=>{
|
|
870
|
-
if ((0, $gyhAV$getInteractionModality)() === "pointer") {
|
|
871
|
-
if (layout.getColumnMinWidth(column.key) >= layout.getColumnWidth(column.key)) setDirectionClass(direction === "rtl" ? $fc695d2eafc2b351$var$CURSOR_CLASSES.w : $fc695d2eafc2b351$var$CURSOR_CLASSES.e);
|
|
872
|
-
else if (layout.getColumnMaxWidth(column.key) <= layout.getColumnWidth(column.key)) setDirectionClass(direction === "rtl" ? $fc695d2eafc2b351$var$CURSOR_CLASSES.e : $fc695d2eafc2b351$var$CURSOR_CLASSES.w);
|
|
873
|
-
else setDirectionClass($fc695d2eafc2b351$var$CURSOR_CLASSES.ew);
|
|
874
|
-
} else setDirectionClass(null);
|
|
875
|
-
},
|
|
876
|
-
onResizeEnd: ()=>{
|
|
877
|
-
setDirectionClass(null);
|
|
878
|
-
}
|
|
860
|
+
shouldResizeOnFocus: true
|
|
879
861
|
}), layout, ref);
|
|
862
|
+
let isEResizable = layout.getColumnMinWidth(column.key) >= layout.getColumnWidth(column.key);
|
|
863
|
+
let isWResizable = layout.getColumnMaxWidth(column.key) <= layout.getColumnWidth(column.key);
|
|
864
|
+
let isResizing = layout.resizingColumn === column.key;
|
|
865
|
+
let cursor = "";
|
|
866
|
+
if (isEResizable) cursor = direction === "rtl" ? $fc695d2eafc2b351$var$CURSORS.w : $fc695d2eafc2b351$var$CURSORS.e;
|
|
867
|
+
else if (isWResizable) cursor = direction === "rtl" ? $fc695d2eafc2b351$var$CURSORS.e : $fc695d2eafc2b351$var$CURSORS.w;
|
|
868
|
+
else cursor = $fc695d2eafc2b351$var$CURSORS.ew;
|
|
880
869
|
let style = {
|
|
881
|
-
cursor: undefined,
|
|
882
870
|
height: "100%",
|
|
883
871
|
display: showResizer ? undefined : "none",
|
|
884
|
-
touchAction: "none"
|
|
872
|
+
touchAction: "none",
|
|
873
|
+
cursor: cursor
|
|
885
874
|
};
|
|
886
|
-
let isEResizable = layout.getColumnMinWidth(column.key) >= layout.getColumnWidth(column.key);
|
|
887
|
-
let isWResizable = layout.getColumnMaxWidth(column.key) <= layout.getColumnWidth(column.key);
|
|
888
|
-
let isResizing = layout.resizingColumn === column.key;
|
|
889
875
|
return /*#__PURE__*/ (0, $gyhAV$react).createElement((0, $gyhAV$react).Fragment, null, /*#__PURE__*/ (0, $gyhAV$react).createElement((0, $gyhAV$FocusRing), {
|
|
890
876
|
within: true,
|
|
891
877
|
focusRingClass: (0, $gyhAV$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($bd5d41f647a296c3$exports))), "focus-ring")
|
|
892
878
|
}, /*#__PURE__*/ (0, $gyhAV$react).createElement("div", {
|
|
893
879
|
role: "presentation",
|
|
894
880
|
style: style,
|
|
895
|
-
className: (0, $gyhAV$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($bd5d41f647a296c3$exports))), "spectrum-Table-columnResizer"
|
|
896
|
-
"react-spectrum-Table-columnResizer--ewresize": !(isEResizable && isWResizable),
|
|
897
|
-
"react-spectrum-Table-columnResizer--eresize": direction === "rtl" ? isWResizable : isEResizable,
|
|
898
|
-
"react-spectrum-Table-columnResizer--wresize": direction === "rtl" ? isEResizable : isWResizable
|
|
899
|
-
})),
|
|
881
|
+
className: (0, $gyhAV$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($bd5d41f647a296c3$exports))), "spectrum-Table-columnResizer"),
|
|
900
882
|
...resizerProps
|
|
901
883
|
}, /*#__PURE__*/ (0, $gyhAV$react).createElement((0, $gyhAV$VisuallyHidden), null, /*#__PURE__*/ (0, $gyhAV$react).createElement("input", {
|
|
902
884
|
ref: ref,
|
|
@@ -908,13 +890,13 @@ function $fc695d2eafc2b351$var$Resizer(props, ref) {
|
|
|
908
890
|
}), /*#__PURE__*/ (0, $gyhAV$react).createElement($fc695d2eafc2b351$var$CursorOverlay, {
|
|
909
891
|
show: isResizing && isPointerDown
|
|
910
892
|
}, /*#__PURE__*/ (0, $gyhAV$react).createElement("div", {
|
|
911
|
-
className: directionClass,
|
|
912
893
|
style: {
|
|
913
894
|
position: "fixed",
|
|
914
895
|
top: 0,
|
|
915
896
|
left: 0,
|
|
916
897
|
bottom: 0,
|
|
917
|
-
right: 0
|
|
898
|
+
right: 0,
|
|
899
|
+
cursor: cursor
|
|
918
900
|
}
|
|
919
901
|
})));
|
|
920
902
|
}
|