@react-spectrum/table 3.10.1-nightly.4028 → 3.10.1-nightly.4036

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 CHANGED
@@ -1,17 +1,20 @@
1
1
  import "./main.css";
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";
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, UNSTABLE_useTreeGridState as $gyhAV$UNSTABLE_useTreeGridState} from "@react-stately/table";
3
+ import $gyhAV$react, {useState as $gyhAV$useState, useContext as $gyhAV$useContext, useRef as $gyhAV$useRef, useEffect as $gyhAV$useEffect, useCallback as $gyhAV$useCallback, useMemo as $gyhAV$useMemo} from "react";
4
+ import {tableNestedRows as $gyhAV$tableNestedRows} from "@react-stately/flags";
3
5
  import $gyhAV$spectrumiconsuiArrowDownSmall from "@spectrum-icons/ui/ArrowDownSmall";
4
- import {mergeProps as $gyhAV$mergeProps, scrollIntoView as $gyhAV$scrollIntoView, scrollIntoViewport as $gyhAV$scrollIntoViewport, chain as $gyhAV$chain, isWebKit as $gyhAV$isWebKit} from "@react-aria/utils";
6
+ import {mergeProps as $gyhAV$mergeProps, scrollIntoView as $gyhAV$scrollIntoView, scrollIntoViewport as $gyhAV$scrollIntoViewport, chain as $gyhAV$chain, isAndroid as $gyhAV$isAndroid, isWebKit as $gyhAV$isWebKit} from "@react-aria/utils";
5
7
  import {Checkbox as $gyhAV$Checkbox} from "@react-spectrum/checkbox";
6
8
  import $gyhAV$spectrumiconsuiChevronDownMedium from "@spectrum-icons/ui/ChevronDownMedium";
9
+ import $gyhAV$spectrumiconsuiChevronLeftMedium from "@spectrum-icons/ui/ChevronLeftMedium";
10
+ import $gyhAV$spectrumiconsuiChevronRightMedium from "@spectrum-icons/ui/ChevronRightMedium";
7
11
  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";
8
12
  import {useFocusRing as $gyhAV$useFocusRing, FocusScope as $gyhAV$FocusScope, FocusRing as $gyhAV$FocusRing} from "@react-aria/focus";
9
- import {getInteractionModality as $gyhAV$getInteractionModality, usePress as $gyhAV$usePress, useHover as $gyhAV$useHover} from "@react-aria/interactions";
13
+ import {getInteractionModality as $gyhAV$getInteractionModality, usePress as $gyhAV$usePress, useHover as $gyhAV$useHover, isFocusVisible as $gyhAV$isFocusVisible} from "@react-aria/interactions";
10
14
  import {MenuTrigger as $gyhAV$MenuTrigger, Menu as $gyhAV$Menu, Item as $gyhAV$Item} from "@react-spectrum/menu";
11
15
  import {layoutInfoToStyle as $gyhAV$layoutInfoToStyle, VirtualizerItem as $gyhAV$VirtualizerItem, setScrollLeft as $gyhAV$setScrollLeft, useVirtualizer as $gyhAV$useVirtualizer, ScrollView as $gyhAV$ScrollView} from "@react-aria/virtualizer";
12
16
  import $gyhAV$spectrumiconsuiListGripper from "@spectrum-icons/ui/ListGripper";
13
17
  import {ProgressCircle as $gyhAV$ProgressCircle} from "@react-spectrum/progress";
14
- import $gyhAV$react, {useContext as $gyhAV$useContext, useRef as $gyhAV$useRef, useEffect as $gyhAV$useEffect, useState as $gyhAV$useState, useCallback as $gyhAV$useCallback, useMemo as $gyhAV$useMemo} from "react";
15
18
  import {useVirtualizerState as $gyhAV$useVirtualizerState} from "@react-stately/virtualizer";
16
19
  import {TableLayout as $gyhAV$TableLayout} from "@react-stately/layout";
17
20
  import {TooltipTrigger as $gyhAV$TooltipTrigger, Tooltip as $gyhAV$Tooltip} from "@react-spectrum/tooltip";
@@ -41,7 +44,30 @@ function $parcel$export(e, n, v, s) {
41
44
  * governing permissions and limitations under the License.
42
45
  */ /// <reference types="css-module-types" />
43
46
  /*
44
- * Copyright 2020 Adobe. All rights reserved.
47
+ * Copyright 2023 Adobe. All rights reserved.
48
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
49
+ * you may not use this file except in compliance with the License. You may obtain a copy
50
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
51
+ *
52
+ * Unless required by applicable law or agreed to in writing, software distributed under
53
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
54
+ * OF ANY KIND, either express or implied. See the License for the specific language
55
+ * governing permissions and limitations under the License.
56
+ */
57
+
58
+ /*
59
+ * Copyright 2023 Adobe. All rights reserved.
60
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
61
+ * you may not use this file except in compliance with the License. You may obtain a copy
62
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
63
+ *
64
+ * Unless required by applicable law or agreed to in writing, software distributed under
65
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
66
+ * OF ANY KIND, either express or implied. See the License for the specific language
67
+ * governing permissions and limitations under the License.
68
+ */
69
+ /*
70
+ * Copyright 2023 Adobe. All rights reserved.
45
71
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
46
72
  * you may not use this file except in compliance with the License. You may obtain a copy
47
73
  * of the License at http://www.apache.org/licenses/LICENSE-2.0
@@ -57,6 +83,8 @@ function $parcel$export(e, n, v, s) {
57
83
 
58
84
 
59
85
 
86
+
87
+
60
88
  /*
61
89
  * Copyright 2023 Adobe. All rights reserved.
62
90
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -73,6 +101,7 @@ var $325bc3d43b25708b$exports = {};
73
101
 
74
102
  $parcel$export($325bc3d43b25708b$exports, "react-spectrum-Table", () => $325bc3d43b25708b$export$8cc7e6e5f955c192, (v) => $325bc3d43b25708b$export$8cc7e6e5f955c192 = v);
75
103
  $parcel$export($325bc3d43b25708b$exports, "react-spectrum-Table-cell", () => $325bc3d43b25708b$export$19015e98090cea63, (v) => $325bc3d43b25708b$export$19015e98090cea63 = v);
104
+ $parcel$export($325bc3d43b25708b$exports, "react-spectrum-Table-cell--hasExpandCollapseButton", () => $325bc3d43b25708b$export$54c344ff0a219615, (v) => $325bc3d43b25708b$export$54c344ff0a219615 = v);
76
105
  $parcel$export($325bc3d43b25708b$exports, "react-spectrum-Table-cellWrapper", () => $325bc3d43b25708b$export$ea1d9f40910c509, (v) => $325bc3d43b25708b$export$ea1d9f40910c509 = v);
77
106
  $parcel$export($325bc3d43b25708b$exports, "react-spectrum-Table-cell--alignStart", () => $325bc3d43b25708b$export$25d7f56ba6d0d442, (v) => $325bc3d43b25708b$export$25d7f56ba6d0d442 = v);
78
107
  $parcel$export($325bc3d43b25708b$exports, "react-spectrum-Table-cell--alignCenter", () => $325bc3d43b25708b$export$14101ea2699002fc, (v) => $325bc3d43b25708b$export$14101ea2699002fc = v);
@@ -95,6 +124,7 @@ $parcel$export($325bc3d43b25708b$exports, "react-spectrum-Table-row--dropTarget"
95
124
  $parcel$export($325bc3d43b25708b$exports, "react-spectrum-Table-cellWrapper--dropTarget", () => $325bc3d43b25708b$export$374244a7e6e6e484, (v) => $325bc3d43b25708b$export$374244a7e6e6e484 = v);
96
125
  var $325bc3d43b25708b$export$8cc7e6e5f955c192;
97
126
  var $325bc3d43b25708b$export$19015e98090cea63;
127
+ var $325bc3d43b25708b$export$54c344ff0a219615;
98
128
  var $325bc3d43b25708b$export$ea1d9f40910c509;
99
129
  var $325bc3d43b25708b$export$25d7f56ba6d0d442;
100
130
  var $325bc3d43b25708b$export$14101ea2699002fc;
@@ -117,6 +147,7 @@ var $325bc3d43b25708b$export$5e4ce8d9f081b812;
117
147
  var $325bc3d43b25708b$export$374244a7e6e6e484;
118
148
  $325bc3d43b25708b$export$8cc7e6e5f955c192 = "react-spectrum-Table_e844a7";
119
149
  $325bc3d43b25708b$export$19015e98090cea63 = "react-spectrum-Table-cell_e844a7";
150
+ $325bc3d43b25708b$export$54c344ff0a219615 = "react-spectrum-Table-cell--hasExpandCollapseButton_e844a7";
120
151
  $325bc3d43b25708b$export$ea1d9f40910c509 = "react-spectrum-Table-cellWrapper_e844a7";
121
152
  $325bc3d43b25708b$export$25d7f56ba6d0d442 = "react-spectrum-Table-cell--alignStart_e844a7";
122
153
  $325bc3d43b25708b$export$14101ea2699002fc = "react-spectrum-Table-cell--alignCenter_e844a7";
@@ -142,7 +173,7 @@ $325bc3d43b25708b$export$374244a7e6e6e484 = "react-spectrum-Table-cellWrapper--d
142
173
 
143
174
 
144
175
  function $7ee9a922ee4e8032$export$2c0bab5914a9d088(props) {
145
- let { dropState: dropState , dragAndDropHooks: dragAndDropHooks } = (0, $d14697b14e638114$export$3cb274deb6c2d854)();
176
+ let { dropState: dropState , dragAndDropHooks: dragAndDropHooks } = (0, $bd013581c0a4b065$export$3cb274deb6c2d854)();
146
177
  const { target: target , rowProps: rowProps } = props;
147
178
  let ref = (0, $gyhAV$useRef)();
148
179
  let { dropIndicatorProps: dropIndicatorProps } = dragAndDropHooks.useDropIndicator(props, dropState, ref);
@@ -180,7 +211,9 @@ $daf541512f75fd9b$exports = {
180
211
  "loadingMore": `جارٍ تحميل المزيد...`,
181
212
  "resizeColumn": `تغيير حجم العمود`,
182
213
  "sortAscending": `فرز بترتيب تصاعدي`,
183
- "sortDescending": `فرز بترتيب تنازلي`
214
+ "sortDescending": `فرز بترتيب تنازلي`,
215
+ "expand": `Expand`,
216
+ "collapse": `Collapse`
184
217
  };
185
218
 
186
219
 
@@ -252,7 +285,9 @@ $4040b78666bdeb49$exports = {
252
285
  "sortDescending": `Sort Descending`,
253
286
  "resizeColumn": `Resize column`,
254
287
  "columnResizer": `Column resizer`,
255
- "drag": `Drag`
288
+ "drag": `Drag`,
289
+ "expand": `Expand`,
290
+ "collapse": `Collapse`
256
291
  };
257
292
 
258
293
 
@@ -711,9 +746,12 @@ $parcel$export($bd5d41f647a296c3$exports, "spectrum-Table-row", () => $bd5d41f64
711
746
  $parcel$export($bd5d41f647a296c3$exports, "spectrum-Table-body--resizerAtTableEdge", () => $bd5d41f647a296c3$export$ec8d96850ac2415e, (v) => $bd5d41f647a296c3$export$ec8d96850ac2415e = v);
712
747
  $parcel$export($bd5d41f647a296c3$exports, "spectrum-Table--quiet", () => $bd5d41f647a296c3$export$80f179961079d85e, (v) => $bd5d41f647a296c3$export$80f179961079d85e = v);
713
748
  $parcel$export($bd5d41f647a296c3$exports, "spectrum-Table-cell", () => $bd5d41f647a296c3$export$c073926c283bb618, (v) => $bd5d41f647a296c3$export$c073926c283bb618 = v);
749
+ $parcel$export($bd5d41f647a296c3$exports, "spectrum-Table--regular", () => $bd5d41f647a296c3$export$3be3e4ba813e9589, (v) => $bd5d41f647a296c3$export$3be3e4ba813e9589 = v);
714
750
  $parcel$export($bd5d41f647a296c3$exports, "spectrum-Table--compact", () => $bd5d41f647a296c3$export$bcb43fe016211cab, (v) => $bd5d41f647a296c3$export$bcb43fe016211cab = v);
715
751
  $parcel$export($bd5d41f647a296c3$exports, "spectrum-Table--spacious", () => $bd5d41f647a296c3$export$eef21b0715bc0914, (v) => $bd5d41f647a296c3$export$eef21b0715bc0914 = v);
716
752
  $parcel$export($bd5d41f647a296c3$exports, "spectrum-Table-cellContents", () => $bd5d41f647a296c3$export$683061182a3353d3, (v) => $bd5d41f647a296c3$export$683061182a3353d3 = v);
753
+ $parcel$export($bd5d41f647a296c3$exports, "spectrum-Table-expandButton", () => $bd5d41f647a296c3$export$ce10510e27df0512, (v) => $bd5d41f647a296c3$export$ce10510e27df0512 = v);
754
+ $parcel$export($bd5d41f647a296c3$exports, "is-open", () => $bd5d41f647a296c3$export$a9781837241c946d, (v) => $bd5d41f647a296c3$export$a9781837241c946d = v);
717
755
  $parcel$export($bd5d41f647a296c3$exports, "spectrum-Table-cell--hideHeader", () => $bd5d41f647a296c3$export$8ff2ab45f5f0045d, (v) => $bd5d41f647a296c3$export$8ff2ab45f5f0045d = v);
718
756
  $parcel$export($bd5d41f647a296c3$exports, "spectrum-Table--wrap", () => $bd5d41f647a296c3$export$9d4c255d6285f0ec, (v) => $bd5d41f647a296c3$export$9d4c255d6285f0ec = v);
719
757
  $parcel$export($bd5d41f647a296c3$exports, "is-focused", () => $bd5d41f647a296c3$export$e7dc768d35940237, (v) => $bd5d41f647a296c3$export$e7dc768d35940237 = v);
@@ -764,9 +802,12 @@ var $bd5d41f647a296c3$export$fefa57dcd4648052;
764
802
  var $bd5d41f647a296c3$export$ec8d96850ac2415e;
765
803
  var $bd5d41f647a296c3$export$80f179961079d85e;
766
804
  var $bd5d41f647a296c3$export$c073926c283bb618;
805
+ var $bd5d41f647a296c3$export$3be3e4ba813e9589;
767
806
  var $bd5d41f647a296c3$export$bcb43fe016211cab;
768
807
  var $bd5d41f647a296c3$export$eef21b0715bc0914;
769
808
  var $bd5d41f647a296c3$export$683061182a3353d3;
809
+ var $bd5d41f647a296c3$export$ce10510e27df0512;
810
+ var $bd5d41f647a296c3$export$a9781837241c946d;
770
811
  var $bd5d41f647a296c3$export$8ff2ab45f5f0045d;
771
812
  var $bd5d41f647a296c3$export$9d4c255d6285f0ec;
772
813
  var $bd5d41f647a296c3$export$e7dc768d35940237;
@@ -817,9 +858,12 @@ $bd5d41f647a296c3$export$fefa57dcd4648052 = "spectrum-Table-row_d0fc74";
817
858
  $bd5d41f647a296c3$export$ec8d96850ac2415e = "spectrum-Table-body--resizerAtTableEdge_d0fc74";
818
859
  $bd5d41f647a296c3$export$80f179961079d85e = "spectrum-Table--quiet_d0fc74";
819
860
  $bd5d41f647a296c3$export$c073926c283bb618 = "spectrum-Table-cell_d0fc74";
861
+ $bd5d41f647a296c3$export$3be3e4ba813e9589 = "spectrum-Table--regular_d0fc74";
820
862
  $bd5d41f647a296c3$export$bcb43fe016211cab = "spectrum-Table--compact_d0fc74";
821
863
  $bd5d41f647a296c3$export$eef21b0715bc0914 = "spectrum-Table--spacious_d0fc74";
822
864
  $bd5d41f647a296c3$export$683061182a3353d3 = "spectrum-Table-cellContents_d0fc74";
865
+ $bd5d41f647a296c3$export$ce10510e27df0512 = "spectrum-Table-expandButton_d0fc74";
866
+ $bd5d41f647a296c3$export$a9781837241c946d = "is-open_d0fc74";
823
867
  $bd5d41f647a296c3$export$8ff2ab45f5f0045d = "spectrum-Table-cell--hideHeader_d0fc74";
824
868
  $bd5d41f647a296c3$export$9d4c255d6285f0ec = "spectrum-Table--wrap_d0fc74";
825
869
  $bd5d41f647a296c3$export$e7dc768d35940237 = "is-focused_d0fc74";
@@ -870,11 +914,11 @@ const $fc695d2eafc2b351$var$CURSORS = {
870
914
  };
871
915
  function $fc695d2eafc2b351$var$Resizer(props, ref) {
872
916
  let { column: column , showResizer: showResizer } = props;
873
- let { isEmpty: isEmpty , layout: layout } = (0, $d14697b14e638114$export$3cb274deb6c2d854)();
917
+ let { isEmpty: isEmpty , layout: layout } = (0, $bd013581c0a4b065$export$3cb274deb6c2d854)();
874
918
  // Virtualizer re-renders, but these components are all cached
875
919
  // in order to get around that and cause a rerender here, we use context
876
920
  // but we don't actually need any value, they are available on the layout object
877
- (0, $d14697b14e638114$export$3f8f74b6bfd2c5df)();
921
+ (0, $bd013581c0a4b065$export$3f8f74b6bfd2c5df)();
878
922
  let stringFormatter = (0, $gyhAV$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($cc43b2d4f6011c04$exports))));
879
923
  let { direction: direction } = (0, $gyhAV$useLocale)();
880
924
  let [isPointerDown, setIsPointerDown] = (0, $gyhAV$useState)(false);
@@ -968,7 +1012,7 @@ const $fc695d2eafc2b351$export$48a76196cafe3b93 = /*#__PURE__*/ (0, $gyhAV$react
968
1012
 
969
1013
 
970
1014
  function $4e6fc36ba71ba405$export$d30a7814cfd4033e() {
971
- let { dropState: dropState , dragAndDropHooks: dragAndDropHooks , state: state } = (0, $d14697b14e638114$export$3cb274deb6c2d854)();
1015
+ let { dropState: dropState , dragAndDropHooks: dragAndDropHooks , state: state } = (0, $bd013581c0a4b065$export$3cb274deb6c2d854)();
972
1016
  let ref = (0, $gyhAV$useRef)();
973
1017
  let { dropIndicatorProps: dropIndicatorProps } = dragAndDropHooks.useDropIndicator({
974
1018
  target: {
@@ -1041,15 +1085,15 @@ function $daa6ead3d9d3506a$export$905ab40ac2179daa(props) {
1041
1085
 
1042
1086
 
1043
1087
 
1044
- const $d14697b14e638114$var$DEFAULT_HEADER_HEIGHT = {
1088
+ const $bd013581c0a4b065$var$DEFAULT_HEADER_HEIGHT = {
1045
1089
  medium: 34,
1046
1090
  large: 40
1047
1091
  };
1048
- const $d14697b14e638114$var$DEFAULT_HIDE_HEADER_CELL_WIDTH = {
1092
+ const $bd013581c0a4b065$var$DEFAULT_HIDE_HEADER_CELL_WIDTH = {
1049
1093
  medium: 38,
1050
1094
  large: 46
1051
1095
  };
1052
- const $d14697b14e638114$var$ROW_HEIGHTS = {
1096
+ const $bd013581c0a4b065$var$ROW_HEIGHTS = {
1053
1097
  compact: {
1054
1098
  medium: 32,
1055
1099
  large: 40
@@ -1063,26 +1107,30 @@ const $d14697b14e638114$var$ROW_HEIGHTS = {
1063
1107
  large: 60
1064
1108
  }
1065
1109
  };
1066
- const $d14697b14e638114$var$SELECTION_CELL_DEFAULT_WIDTH = {
1110
+ const $bd013581c0a4b065$var$SELECTION_CELL_DEFAULT_WIDTH = {
1067
1111
  medium: 38,
1068
1112
  large: 48
1069
1113
  };
1070
- const $d14697b14e638114$var$DRAG_BUTTON_CELL_DEFAULT_WIDTH = {
1114
+ const $bd013581c0a4b065$var$DRAG_BUTTON_CELL_DEFAULT_WIDTH = {
1071
1115
  medium: 16,
1072
1116
  large: 20
1073
1117
  };
1074
- const $d14697b14e638114$var$TableContext = /*#__PURE__*/ (0, $gyhAV$react).createContext(null);
1075
- function $d14697b14e638114$export$3cb274deb6c2d854() {
1076
- return (0, $gyhAV$useContext)($d14697b14e638114$var$TableContext);
1118
+ const $bd013581c0a4b065$var$LEVEL_OFFSET_WIDTH = {
1119
+ medium: 16,
1120
+ large: 20
1121
+ };
1122
+ const $bd013581c0a4b065$export$93e4b0b2cc49b648 = /*#__PURE__*/ (0, $gyhAV$react).createContext(null);
1123
+ function $bd013581c0a4b065$export$3cb274deb6c2d854() {
1124
+ return (0, $gyhAV$useContext)($bd013581c0a4b065$export$93e4b0b2cc49b648);
1077
1125
  }
1078
- const $d14697b14e638114$var$VirtualizerContext = /*#__PURE__*/ (0, $gyhAV$react).createContext(null);
1079
- function $d14697b14e638114$export$3f8f74b6bfd2c5df() {
1080
- return (0, $gyhAV$useContext)($d14697b14e638114$var$VirtualizerContext);
1126
+ const $bd013581c0a4b065$export$d288a7dd40372bc = /*#__PURE__*/ (0, $gyhAV$react).createContext(null);
1127
+ function $bd013581c0a4b065$export$3f8f74b6bfd2c5df() {
1128
+ return (0, $gyhAV$useContext)($bd013581c0a4b065$export$d288a7dd40372bc);
1081
1129
  }
1082
- function $d14697b14e638114$var$TableView(props, ref) {
1130
+ function $bd013581c0a4b065$var$TableViewBase(props, ref) {
1083
1131
  var _dropState_target;
1084
1132
  props = (0, $gyhAV$useProviderProps)(props);
1085
- let { isQuiet: isQuiet , onAction: onAction , onResizeStart: propsOnResizeStart , onResizeEnd: propsOnResizeEnd , dragAndDropHooks: dragAndDropHooks } = props;
1133
+ let { isQuiet: isQuiet , onAction: onAction , onResizeStart: propsOnResizeStart , onResizeEnd: propsOnResizeEnd , dragAndDropHooks: dragAndDropHooks , state: state } = props;
1086
1134
  let isTableDraggable = !!(dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDraggableCollectionState);
1087
1135
  let isTableDroppable = !!(dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDroppableCollectionState);
1088
1136
  let dragHooksProvided = (0, $gyhAV$useRef)(isTableDraggable);
@@ -1090,29 +1138,30 @@ function $d14697b14e638114$var$TableView(props, ref) {
1090
1138
  (0, $gyhAV$useEffect)(()=>{
1091
1139
  if (dragHooksProvided.current !== isTableDraggable) console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");
1092
1140
  if (dropHooksProvided.current !== isTableDroppable) console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");
1141
+ if ("expandedKeys" in state && (isTableDraggable || isTableDroppable)) console.warn("Drag and drop is not yet fully supported with expandable rows and may produce unexpected results.");
1093
1142
  }, [
1094
1143
  isTableDraggable,
1095
- isTableDroppable
1144
+ isTableDroppable,
1145
+ state
1096
1146
  ]);
1097
1147
  let { styleProps: styleProps } = (0, $gyhAV$useStyleProps)(props);
1098
- let [showSelectionCheckboxes, setShowSelectionCheckboxes] = (0, $gyhAV$useState)(props.selectionStyle !== "highlight");
1099
1148
  let { direction: direction } = (0, $gyhAV$useLocale)();
1100
1149
  let { scale: scale } = (0, $gyhAV$useProvider)();
1101
1150
  const getDefaultWidth = (0, $gyhAV$useCallback)(({ props: { hideHeader: hideHeader , isSelectionCell: isSelectionCell , showDivider: showDivider , isDragButtonCell: isDragButtonCell } })=>{
1102
1151
  if (hideHeader) {
1103
- let width = $d14697b14e638114$var$DEFAULT_HIDE_HEADER_CELL_WIDTH[scale];
1152
+ let width = $bd013581c0a4b065$var$DEFAULT_HIDE_HEADER_CELL_WIDTH[scale];
1104
1153
  return showDivider ? width + 1 : width;
1105
- } else if (isSelectionCell) return $d14697b14e638114$var$SELECTION_CELL_DEFAULT_WIDTH[scale];
1106
- else if (isDragButtonCell) return $d14697b14e638114$var$DRAG_BUTTON_CELL_DEFAULT_WIDTH[scale];
1154
+ } else if (isSelectionCell) return $bd013581c0a4b065$var$SELECTION_CELL_DEFAULT_WIDTH[scale];
1155
+ else if (isDragButtonCell) return $bd013581c0a4b065$var$DRAG_BUTTON_CELL_DEFAULT_WIDTH[scale];
1107
1156
  }, [
1108
1157
  scale
1109
1158
  ]);
1110
1159
  const getDefaultMinWidth = (0, $gyhAV$useCallback)(({ props: { hideHeader: hideHeader , isSelectionCell: isSelectionCell , showDivider: showDivider , isDragButtonCell: isDragButtonCell } })=>{
1111
1160
  if (hideHeader) {
1112
- let width = $d14697b14e638114$var$DEFAULT_HIDE_HEADER_CELL_WIDTH[scale];
1161
+ let width = $bd013581c0a4b065$var$DEFAULT_HIDE_HEADER_CELL_WIDTH[scale];
1113
1162
  return showDivider ? width + 1 : width;
1114
- } else if (isSelectionCell) return $d14697b14e638114$var$SELECTION_CELL_DEFAULT_WIDTH[scale];
1115
- else if (isDragButtonCell) return $d14697b14e638114$var$DRAG_BUTTON_CELL_DEFAULT_WIDTH[scale];
1163
+ } else if (isSelectionCell) return $bd013581c0a4b065$var$SELECTION_CELL_DEFAULT_WIDTH[scale];
1164
+ else if (isDragButtonCell) return $bd013581c0a4b065$var$DRAG_BUTTON_CELL_DEFAULT_WIDTH[scale];
1116
1165
  return 75;
1117
1166
  }, [
1118
1167
  scale
@@ -1124,15 +1173,6 @@ function $d14697b14e638114$var$TableView(props, ref) {
1124
1173
  // entering resizing/exiting resizing doesn't trigger a render
1125
1174
  // with table layout, so we need to track it here
1126
1175
  let [, setIsResizing] = (0, $gyhAV$useState)(false);
1127
- let state = (0, $gyhAV$useTableState)({
1128
- ...props,
1129
- showSelectionCheckboxes: showSelectionCheckboxes,
1130
- showDragButtons: isTableDraggable,
1131
- selectionBehavior: props.selectionStyle === "highlight" ? "replace" : "toggle"
1132
- });
1133
- // If the selection behavior changes in state, we need to update showSelectionCheckboxes here due to the circular dependency...
1134
- let shouldShowCheckboxes = state.selectionManager.selectionBehavior !== "replace";
1135
- if (shouldShowCheckboxes !== showSelectionCheckboxes) setShowSelectionCheckboxes(shouldShowCheckboxes);
1136
1176
  let domRef = (0, $gyhAV$useDOMRef)(ref);
1137
1177
  let headerRef = (0, $gyhAV$useRef)();
1138
1178
  let bodyRef = (0, $gyhAV$useRef)();
@@ -1147,10 +1187,10 @@ function $d14697b14e638114$var$TableView(props, ref) {
1147
1187
  ]);
1148
1188
  let tableLayout = (0, $gyhAV$useMemo)(()=>new (0, $gyhAV$TableLayout)({
1149
1189
  // If props.rowHeight is auto, then use estimated heights based on scale, otherwise use fixed heights.
1150
- rowHeight: props.overflowMode === "wrap" ? null : $d14697b14e638114$var$ROW_HEIGHTS[density][scale],
1151
- estimatedRowHeight: props.overflowMode === "wrap" ? $d14697b14e638114$var$ROW_HEIGHTS[density][scale] : null,
1152
- headingHeight: props.overflowMode === "wrap" ? null : $d14697b14e638114$var$DEFAULT_HEADER_HEIGHT[scale],
1153
- estimatedHeadingHeight: props.overflowMode === "wrap" ? $d14697b14e638114$var$DEFAULT_HEADER_HEIGHT[scale] : null,
1190
+ rowHeight: props.overflowMode === "wrap" ? null : $bd013581c0a4b065$var$ROW_HEIGHTS[density][scale],
1191
+ estimatedRowHeight: props.overflowMode === "wrap" ? $bd013581c0a4b065$var$ROW_HEIGHTS[density][scale] : null,
1192
+ headingHeight: props.overflowMode === "wrap" ? null : $bd013581c0a4b065$var$DEFAULT_HEADER_HEIGHT[scale],
1193
+ estimatedHeadingHeight: props.overflowMode === "wrap" ? $bd013581c0a4b065$var$DEFAULT_HEADER_HEIGHT[scale] : null,
1154
1194
  columnLayout: columnLayout,
1155
1195
  initialCollection: state.collection
1156
1196
  }), // don't recompute when state.collection changes, only used for initial value
@@ -1212,17 +1252,17 @@ function $d14697b14e638114$var$TableView(props, ref) {
1212
1252
  let renderWrapper = (parent, reusableView, children, renderChildren)=>{
1213
1253
  let style = (0, $gyhAV$layoutInfoToStyle)(reusableView.layoutInfo, direction, parent && parent.layoutInfo);
1214
1254
  if (style.overflow === "hidden") style.overflow = "visible"; // needed to support position: sticky
1215
- if (reusableView.viewType === "rowgroup") return /*#__PURE__*/ (0, $gyhAV$react).createElement($d14697b14e638114$var$TableRowGroup, {
1255
+ if (reusableView.viewType === "rowgroup") return /*#__PURE__*/ (0, $gyhAV$react).createElement($bd013581c0a4b065$var$TableRowGroup, {
1216
1256
  key: reusableView.key,
1217
1257
  style: style
1218
1258
  }, isTableDroppable && /*#__PURE__*/ (0, $gyhAV$react).createElement((0, $4e6fc36ba71ba405$export$d30a7814cfd4033e), {
1219
1259
  key: "root"
1220
1260
  }), renderChildren(children));
1221
- if (reusableView.viewType === "header") return /*#__PURE__*/ (0, $gyhAV$react).createElement($d14697b14e638114$var$TableHeader, {
1261
+ if (reusableView.viewType === "header") return /*#__PURE__*/ (0, $gyhAV$react).createElement($bd013581c0a4b065$var$TableHeader, {
1222
1262
  key: reusableView.key,
1223
1263
  style: style
1224
1264
  }, renderChildren(children));
1225
- if (reusableView.viewType === "row") return /*#__PURE__*/ (0, $gyhAV$react).createElement($d14697b14e638114$var$TableRow, {
1265
+ if (reusableView.viewType === "row") return /*#__PURE__*/ (0, $gyhAV$react).createElement($bd013581c0a4b065$var$TableRow, {
1226
1266
  key: reusableView.key,
1227
1267
  item: reusableView.content,
1228
1268
  style: style,
@@ -1230,7 +1270,7 @@ function $d14697b14e638114$var$TableView(props, ref) {
1230
1270
  isTableDroppable: isTableDroppable,
1231
1271
  isTableDraggable: isTableDraggable
1232
1272
  }, renderChildren(children));
1233
- if (reusableView.viewType === "headerrow") return /*#__PURE__*/ (0, $gyhAV$react).createElement($d14697b14e638114$var$TableHeaderRow, {
1273
+ if (reusableView.viewType === "headerrow") return /*#__PURE__*/ (0, $gyhAV$react).createElement($bd013581c0a4b065$var$TableHeaderRow, {
1234
1274
  onHoverChange: setHeaderRowHovered,
1235
1275
  key: reusableView.key,
1236
1276
  style: style,
@@ -1268,13 +1308,13 @@ function $d14697b14e638114$var$TableView(props, ref) {
1268
1308
  case "headerrow":
1269
1309
  return null;
1270
1310
  case "cell":
1271
- if (item.props.isSelectionCell) return /*#__PURE__*/ (0, $gyhAV$react).createElement($d14697b14e638114$var$TableCheckboxCell, {
1311
+ if (item.props.isSelectionCell) return /*#__PURE__*/ (0, $gyhAV$react).createElement($bd013581c0a4b065$var$TableCheckboxCell, {
1272
1312
  cell: item
1273
1313
  });
1274
- if (item.props.isDragButtonCell) return /*#__PURE__*/ (0, $gyhAV$react).createElement($d14697b14e638114$var$TableDragCell, {
1314
+ if (item.props.isDragButtonCell) return /*#__PURE__*/ (0, $gyhAV$react).createElement($bd013581c0a4b065$var$TableDragCell, {
1275
1315
  cell: item
1276
1316
  });
1277
- return /*#__PURE__*/ (0, $gyhAV$react).createElement($d14697b14e638114$var$TableCell, {
1317
+ return /*#__PURE__*/ (0, $gyhAV$react).createElement($bd013581c0a4b065$var$TableCell, {
1278
1318
  cell: item
1279
1319
  });
1280
1320
  case "placeholder":
@@ -1285,30 +1325,30 @@ function $d14697b14e638114$var$TableView(props, ref) {
1285
1325
  "aria-colspan": item.colspan > 1 ? item.colspan : null
1286
1326
  });
1287
1327
  case "column":
1288
- if (item.props.isSelectionCell) return /*#__PURE__*/ (0, $gyhAV$react).createElement($d14697b14e638114$var$TableSelectAllCell, {
1328
+ if (item.props.isSelectionCell) return /*#__PURE__*/ (0, $gyhAV$react).createElement($bd013581c0a4b065$var$TableSelectAllCell, {
1289
1329
  column: item
1290
1330
  });
1291
- if (item.props.isDragButtonCell) return /*#__PURE__*/ (0, $gyhAV$react).createElement($d14697b14e638114$var$TableDragHeaderCell, {
1331
+ if (item.props.isDragButtonCell) return /*#__PURE__*/ (0, $gyhAV$react).createElement($bd013581c0a4b065$var$TableDragHeaderCell, {
1292
1332
  column: item
1293
1333
  });
1294
1334
  // TODO: consider this case, what if we have hidden headers and a empty table
1295
1335
  if (item.props.hideHeader) return /*#__PURE__*/ (0, $gyhAV$react).createElement((0, $gyhAV$TooltipTrigger), {
1296
1336
  placement: "top",
1297
1337
  trigger: "focus"
1298
- }, /*#__PURE__*/ (0, $gyhAV$react).createElement($d14697b14e638114$var$TableColumnHeader, {
1338
+ }, /*#__PURE__*/ (0, $gyhAV$react).createElement($bd013581c0a4b065$var$TableColumnHeader, {
1299
1339
  column: item
1300
1340
  }), /*#__PURE__*/ (0, $gyhAV$react).createElement((0, $gyhAV$Tooltip), {
1301
1341
  placement: "top"
1302
1342
  }, item.rendered));
1303
- if (item.props.allowsResizing && !item.hasChildNodes) return /*#__PURE__*/ (0, $gyhAV$react).createElement($d14697b14e638114$var$ResizableTableColumnHeader, {
1343
+ if (item.props.allowsResizing && !item.hasChildNodes) return /*#__PURE__*/ (0, $gyhAV$react).createElement($bd013581c0a4b065$var$ResizableTableColumnHeader, {
1304
1344
  tableRef: domRef,
1305
1345
  column: item
1306
1346
  });
1307
- return /*#__PURE__*/ (0, $gyhAV$react).createElement($d14697b14e638114$var$TableColumnHeader, {
1347
+ return /*#__PURE__*/ (0, $gyhAV$react).createElement($bd013581c0a4b065$var$TableColumnHeader, {
1308
1348
  column: item
1309
1349
  });
1310
1350
  case "loader":
1311
- return /*#__PURE__*/ (0, $gyhAV$react).createElement($d14697b14e638114$var$CenteredWrapper, null, /*#__PURE__*/ (0, $gyhAV$react).createElement((0, $gyhAV$ProgressCircle), {
1351
+ return /*#__PURE__*/ (0, $gyhAV$react).createElement($bd013581c0a4b065$var$CenteredWrapper, null, /*#__PURE__*/ (0, $gyhAV$react).createElement((0, $gyhAV$ProgressCircle), {
1312
1352
  isIndeterminate: true,
1313
1353
  "aria-label": state.collection.size > 0 ? stringFormatter.format("loadingMore") : stringFormatter.format("loading")
1314
1354
  }));
@@ -1316,7 +1356,7 @@ function $d14697b14e638114$var$TableView(props, ref) {
1316
1356
  {
1317
1357
  let emptyState = props.renderEmptyState ? props.renderEmptyState() : null;
1318
1358
  if (emptyState == null) return null;
1319
- return /*#__PURE__*/ (0, $gyhAV$react).createElement($d14697b14e638114$var$CenteredWrapper, null, emptyState);
1359
+ return /*#__PURE__*/ (0, $gyhAV$react).createElement($bd013581c0a4b065$var$CenteredWrapper, null, emptyState);
1320
1360
  }
1321
1361
  }
1322
1362
  };
@@ -1362,7 +1402,7 @@ function $d14697b14e638114$var$TableView(props, ref) {
1362
1402
  let mergedProps = (0, $gyhAV$mergeProps)(isTableDroppable && (droppableCollection === null || droppableCollection === void 0 ? void 0 : droppableCollection.collectionProps), gridProps, focusProps, (dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.isVirtualDragging()) && {
1363
1403
  tabIndex: null
1364
1404
  });
1365
- return /*#__PURE__*/ (0, $gyhAV$react).createElement($d14697b14e638114$var$TableContext.Provider, {
1405
+ return /*#__PURE__*/ (0, $gyhAV$react).createElement($bd013581c0a4b065$export$93e4b0b2cc49b648.Provider, {
1366
1406
  value: {
1367
1407
  state: state,
1368
1408
  dragState: dragState,
@@ -1380,10 +1420,9 @@ function $d14697b14e638114$var$TableView(props, ref) {
1380
1420
  isEmpty: isEmpty,
1381
1421
  onFocusedResizer: onFocusedResizer,
1382
1422
  headerMenuOpen: headerMenuOpen,
1383
- setHeaderMenuOpen: setHeaderMenuOpen,
1384
- shouldShowCheckboxes: shouldShowCheckboxes
1423
+ setHeaderMenuOpen: setHeaderMenuOpen
1385
1424
  }
1386
- }, /*#__PURE__*/ (0, $gyhAV$react).createElement($d14697b14e638114$var$TableVirtualizer, {
1425
+ }, /*#__PURE__*/ (0, $gyhAV$react).createElement($bd013581c0a4b065$var$TableVirtualizer, {
1387
1426
  ...mergedProps,
1388
1427
  ...styleProps,
1389
1428
  className: (0, $gyhAV$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($bd5d41f647a296c3$exports))), "spectrum-Table", `spectrum-Table--${density}`, {
@@ -1411,7 +1450,7 @@ function $d14697b14e638114$var$TableView(props, ref) {
1411
1450
  if (dragAndDropHooks.renderPreview) return dragAndDropHooks.renderPreview(dragState.draggingKeys, dragState.draggedKey);
1412
1451
  let itemCount = dragState.draggingKeys.size;
1413
1452
  let maxWidth = bodyRef.current.getBoundingClientRect().width;
1414
- let height = $d14697b14e638114$var$ROW_HEIGHTS[density][scale];
1453
+ let height = $bd013581c0a4b065$var$ROW_HEIGHTS[density][scale];
1415
1454
  let itemText = state.collection.getTextValue(dragState.draggedKey);
1416
1455
  return /*#__PURE__*/ (0, $gyhAV$react).createElement((0, $daa6ead3d9d3506a$export$905ab40ac2179daa), {
1417
1456
  itemText: itemText,
@@ -1422,7 +1461,7 @@ function $d14697b14e638114$var$TableView(props, ref) {
1422
1461
  }));
1423
1462
  }
1424
1463
  // This is a custom Virtualizer that also has a header that syncs its scroll position with the body.
1425
- function $d14697b14e638114$var$TableVirtualizer(props) {
1464
+ function $bd013581c0a4b065$var$TableVirtualizer(props) {
1426
1465
  var _layout_getLayoutInfo;
1427
1466
  let { layout: layout , collection: collection , focusedKey: focusedKey , renderView: renderView , renderWrapper: renderWrapper , domRef: domRef , bodyRef: bodyRef , headerRef: headerRef , onVisibleRectChange: onVisibleRectChangeProp , isFocusVisible: isFocusVisible , isVirtualDragging: isVirtualDragging , isRootDropTarget: isRootDropTarget , ...otherProps } = props;
1428
1467
  let { direction: direction } = (0, $gyhAV$useLocale)();
@@ -1524,7 +1563,7 @@ function $d14697b14e638114$var$TableVirtualizer(props) {
1524
1563
  let mergedProps = (0, $gyhAV$mergeProps)(otherProps, virtualizerProps, isVirtualDragging && {
1525
1564
  tabIndex: null
1526
1565
  });
1527
- return /*#__PURE__*/ (0, $gyhAV$react).createElement($d14697b14e638114$var$VirtualizerContext.Provider, {
1566
+ return /*#__PURE__*/ (0, $gyhAV$react).createElement($bd013581c0a4b065$export$d288a7dd40372bc.Provider, {
1528
1567
  value: resizingColumn
1529
1568
  }, /*#__PURE__*/ (0, $gyhAV$react).createElement((0, $gyhAV$FocusScope), null, /*#__PURE__*/ (0, $gyhAV$react).createElement("div", {
1530
1569
  ...mergedProps,
@@ -1572,7 +1611,7 @@ function $d14697b14e638114$var$TableVirtualizer(props) {
1572
1611
  }
1573
1612
  })))));
1574
1613
  }
1575
- function $d14697b14e638114$var$TableHeader({ children: children , ...otherProps }) {
1614
+ function $bd013581c0a4b065$var$TableHeader({ children: children , ...otherProps }) {
1576
1615
  let { rowGroupProps: rowGroupProps } = (0, $gyhAV$useTableRowGroup)();
1577
1616
  return /*#__PURE__*/ (0, $gyhAV$react).createElement("div", {
1578
1617
  ...rowGroupProps,
@@ -1580,11 +1619,11 @@ function $d14697b14e638114$var$TableHeader({ children: children , ...otherProps
1580
1619
  className: (0, $gyhAV$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($bd5d41f647a296c3$exports))), "spectrum-Table-head")
1581
1620
  }, children);
1582
1621
  }
1583
- function $d14697b14e638114$var$TableColumnHeader(props) {
1622
+ function $bd013581c0a4b065$var$TableColumnHeader(props) {
1584
1623
  var _state_sortDescriptor, _state_sortDescriptor1, _state_sortDescriptor2, _state_sortDescriptor3;
1585
1624
  let { column: column } = props;
1586
1625
  let ref = (0, $gyhAV$useRef)(null);
1587
- let { state: state , isEmpty: isEmpty } = $d14697b14e638114$export$3cb274deb6c2d854();
1626
+ let { state: state , isEmpty: isEmpty } = $bd013581c0a4b065$export$3cb274deb6c2d854();
1588
1627
  let { pressProps: pressProps , isPressed: isPressed } = (0, $gyhAV$usePress)({
1589
1628
  isDisabled: isEmpty
1590
1629
  });
@@ -1631,9 +1670,9 @@ function $d14697b14e638114$var$TableColumnHeader(props) {
1631
1670
  className: (0, $gyhAV$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($bd5d41f647a296c3$exports))), "spectrum-Table-headCellContents")
1632
1671
  }, column.rendered)));
1633
1672
  }
1634
- let $d14697b14e638114$var$_TableColumnHeaderButton = (props, ref)=>{
1673
+ let $bd013581c0a4b065$var$_TableColumnHeaderButton = (props, ref)=>{
1635
1674
  let { focusProps: focusProps , alignment: alignment , ...otherProps } = props;
1636
- let { isEmpty: isEmpty } = $d14697b14e638114$export$3cb274deb6c2d854();
1675
+ let { isEmpty: isEmpty } = $bd013581c0a4b065$export$3cb274deb6c2d854();
1637
1676
  let domRef = (0, $gyhAV$useFocusableRef)(ref);
1638
1677
  let { buttonProps: buttonProps } = (0, $gyhAV$useButton)({
1639
1678
  ...otherProps,
@@ -1659,14 +1698,14 @@ let $d14697b14e638114$var$_TableColumnHeaderButton = (props, ref)=>{
1659
1698
  ref: domRef
1660
1699
  }, props.children));
1661
1700
  };
1662
- let $d14697b14e638114$var$TableColumnHeaderButton = /*#__PURE__*/ (0, $gyhAV$react).forwardRef($d14697b14e638114$var$_TableColumnHeaderButton);
1663
- function $d14697b14e638114$var$ResizableTableColumnHeader(props) {
1701
+ let $bd013581c0a4b065$var$TableColumnHeaderButton = /*#__PURE__*/ (0, $gyhAV$react).forwardRef($bd013581c0a4b065$var$_TableColumnHeaderButton);
1702
+ function $bd013581c0a4b065$var$ResizableTableColumnHeader(props) {
1664
1703
  var _column_props, _state_sortDescriptor, _state_sortDescriptor1, _state_sortDescriptor2, _state_sortDescriptor3;
1665
1704
  let { column: column } = props;
1666
1705
  let ref = (0, $gyhAV$useRef)(null);
1667
1706
  let triggerRef = (0, $gyhAV$useRef)(null);
1668
1707
  let resizingRef = (0, $gyhAV$useRef)(null);
1669
- let { state: state , layout: layout , onResizeStart: onResizeStart , onResize: onResize , onResizeEnd: onResizeEnd , headerRowHovered: headerRowHovered , setIsInResizeMode: setIsInResizeMode , isEmpty: isEmpty , onFocusedResizer: onFocusedResizer , isInResizeMode: isInResizeMode , headerMenuOpen: headerMenuOpen , setHeaderMenuOpen: setHeaderMenuOpen } = $d14697b14e638114$export$3cb274deb6c2d854();
1708
+ let { state: state , layout: layout , onResizeStart: onResizeStart , onResize: onResize , onResizeEnd: onResizeEnd , headerRowHovered: headerRowHovered , setIsInResizeMode: setIsInResizeMode , isEmpty: isEmpty , onFocusedResizer: onFocusedResizer , isInResizeMode: isInResizeMode , headerMenuOpen: headerMenuOpen , setHeaderMenuOpen: setHeaderMenuOpen } = $bd013581c0a4b065$export$3cb274deb6c2d854();
1670
1709
  let stringFormatter = (0, $gyhAV$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($cc43b2d4f6011c04$exports))));
1671
1710
  let { pressProps: pressProps , isPressed: isPressed } = (0, $gyhAV$usePress)({
1672
1711
  isDisabled: isEmpty
@@ -1785,7 +1824,7 @@ function $d14697b14e638114$var$ResizableTableColumnHeader(props) {
1785
1824
  }, /*#__PURE__*/ (0, $gyhAV$react).createElement((0, $gyhAV$MenuTrigger), {
1786
1825
  onOpenChange: setHeaderMenuOpen,
1787
1826
  align: menuAlign
1788
- }, /*#__PURE__*/ (0, $gyhAV$react).createElement($d14697b14e638114$var$TableColumnHeaderButton, {
1827
+ }, /*#__PURE__*/ (0, $gyhAV$react).createElement($bd013581c0a4b065$var$TableColumnHeaderButton, {
1789
1828
  alignment: alignment,
1790
1829
  ref: triggerRef,
1791
1830
  focusProps: focusProps
@@ -1819,9 +1858,9 @@ function $d14697b14e638114$var$ResizableTableColumnHeader(props) {
1819
1858
  })
1820
1859
  }, /*#__PURE__*/ (0, $gyhAV$react).createElement((0, $cb7d341e8868d81d$export$d9658cdf8c86807), null)))));
1821
1860
  }
1822
- function $d14697b14e638114$var$TableSelectAllCell({ column: column }) {
1861
+ function $bd013581c0a4b065$var$TableSelectAllCell({ column: column }) {
1823
1862
  let ref = (0, $gyhAV$useRef)();
1824
- let { state: state } = $d14697b14e638114$export$3cb274deb6c2d854();
1863
+ let { state: state } = $bd013581c0a4b065$export$3cb274deb6c2d854();
1825
1864
  let isSingleSelectionMode = state.selectionManager.selectionMode === "single";
1826
1865
  let { columnHeaderProps: columnHeaderProps } = (0, $gyhAV$useTableColumnHeader)({
1827
1866
  node: column,
@@ -1851,9 +1890,9 @@ function $d14697b14e638114$var$TableSelectAllCell({ column: column }) {
1851
1890
  UNSAFE_className: (0, $gyhAV$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($bd5d41f647a296c3$exports))), "spectrum-Table-checkbox")
1852
1891
  })));
1853
1892
  }
1854
- function $d14697b14e638114$var$TableDragHeaderCell({ column: column }) {
1893
+ function $bd013581c0a4b065$var$TableDragHeaderCell({ column: column }) {
1855
1894
  let ref = (0, $gyhAV$useRef)();
1856
- let { state: state } = $d14697b14e638114$export$3cb274deb6c2d854();
1895
+ let { state: state } = $bd013581c0a4b065$export$3cb274deb6c2d854();
1857
1896
  let { columnHeaderProps: columnHeaderProps } = (0, $gyhAV$useTableColumnHeader)({
1858
1897
  node: column,
1859
1898
  isVirtualized: true
@@ -1867,15 +1906,15 @@ function $d14697b14e638114$var$TableDragHeaderCell({ column: column }) {
1867
1906
  className: (0, $gyhAV$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($bd5d41f647a296c3$exports))), "spectrum-Table-headCell", (0, $gyhAV$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($325bc3d43b25708b$exports))), "react-spectrum-Table-headCell", "react-spectrum-Table-dragButtonHeadCell"))
1868
1907
  }, /*#__PURE__*/ (0, $gyhAV$react).createElement((0, $gyhAV$VisuallyHidden), null, stringFormatter.format("drag"))));
1869
1908
  }
1870
- function $d14697b14e638114$var$TableRowGroup({ children: children , ...otherProps }) {
1909
+ function $bd013581c0a4b065$var$TableRowGroup({ children: children , ...otherProps }) {
1871
1910
  let { rowGroupProps: rowGroupProps } = (0, $gyhAV$useTableRowGroup)();
1872
1911
  return /*#__PURE__*/ (0, $gyhAV$react).createElement("div", {
1873
1912
  ...rowGroupProps,
1874
1913
  ...otherProps
1875
1914
  }, children);
1876
1915
  }
1877
- function $d14697b14e638114$var$DragButton() {
1878
- let { dragButtonProps: dragButtonProps , dragButtonRef: dragButtonRef , isFocusVisibleWithin: isFocusVisibleWithin } = $d14697b14e638114$export$cd7c5802f9e21187();
1916
+ function $bd013581c0a4b065$var$DragButton() {
1917
+ let { dragButtonProps: dragButtonProps , dragButtonRef: dragButtonRef , isFocusVisibleWithin: isFocusVisibleWithin } = $bd013581c0a4b065$export$cd7c5802f9e21187();
1879
1918
  let { visuallyHiddenProps: visuallyHiddenProps } = (0, $gyhAV$useVisuallyHidden)();
1880
1919
  return /*#__PURE__*/ (0, $gyhAV$react).createElement((0, $gyhAV$FocusRing), {
1881
1920
  focusRingClass: (0, $gyhAV$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($325bc3d43b25708b$exports))), "focus-ring")
@@ -1891,14 +1930,14 @@ function $d14697b14e638114$var$DragButton() {
1891
1930
  UNSAFE_className: (0, $gyhAV$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($325bc3d43b25708b$exports))))
1892
1931
  })));
1893
1932
  }
1894
- const $d14697b14e638114$var$TableRowContext = /*#__PURE__*/ (0, $gyhAV$react).createContext(null);
1895
- function $d14697b14e638114$export$cd7c5802f9e21187() {
1896
- return (0, $gyhAV$useContext)($d14697b14e638114$var$TableRowContext);
1933
+ const $bd013581c0a4b065$var$TableRowContext = /*#__PURE__*/ (0, $gyhAV$react).createContext(null);
1934
+ function $bd013581c0a4b065$export$cd7c5802f9e21187() {
1935
+ return (0, $gyhAV$useContext)($bd013581c0a4b065$var$TableRowContext);
1897
1936
  }
1898
- function $d14697b14e638114$var$TableRow({ item: item , children: children , hasActions: hasActions , isTableDraggable: isTableDraggable , isTableDroppable: isTableDroppable , ...otherProps }) {
1937
+ function $bd013581c0a4b065$var$TableRow({ item: item , children: children , hasActions: hasActions , isTableDraggable: isTableDraggable , isTableDroppable: isTableDroppable , ...otherProps }) {
1899
1938
  var _state_collection_rows_find, _layout_getContentSize, _layout_virtualizer;
1900
1939
  let ref = (0, $gyhAV$useRef)();
1901
- let { state: state , layout: layout , dragAndDropHooks: dragAndDropHooks , dragState: dragState , dropState: dropState } = $d14697b14e638114$export$3cb274deb6c2d854();
1940
+ let { state: state , layout: layout , dragAndDropHooks: dragAndDropHooks , dragState: dragState , dropState: dropState } = $bd013581c0a4b065$export$3cb274deb6c2d854();
1902
1941
  let allowsInteraction = state.selectionManager.selectionMode !== "none" || hasActions;
1903
1942
  let isDisabled = !allowsInteraction || state.disabledKeys.has(item.key);
1904
1943
  let isDroppable = isTableDroppable && !isDisabled;
@@ -1967,7 +2006,7 @@ function $d14697b14e638114$var$TableRow({ item: item , children: children , hasA
1967
2006
  "aria-hidden": droppableItem === null || droppableItem === void 0 ? void 0 : droppableItem.dropProps["aria-hidden"]
1968
2007
  };
1969
2008
  let { visuallyHiddenProps: visuallyHiddenProps } = (0, $gyhAV$useVisuallyHidden)();
1970
- return /*#__PURE__*/ (0, $gyhAV$react).createElement($d14697b14e638114$var$TableRowContext.Provider, {
2009
+ return /*#__PURE__*/ (0, $gyhAV$react).createElement($bd013581c0a4b065$var$TableRowContext.Provider, {
1971
2010
  value: {
1972
2011
  dragButtonProps: dragButtonProps,
1973
2012
  dragButtonRef: dragButtonRef,
@@ -2018,8 +2057,8 @@ function $d14697b14e638114$var$TableRow({ item: item , children: children , hasA
2018
2057
  }
2019
2058
  }));
2020
2059
  }
2021
- function $d14697b14e638114$var$TableHeaderRow({ item: item , children: children , style: style , ...props }) {
2022
- let { state: state , headerMenuOpen: headerMenuOpen } = $d14697b14e638114$export$3cb274deb6c2d854();
2060
+ function $bd013581c0a4b065$var$TableHeaderRow({ item: item , children: children , style: style , ...props }) {
2061
+ let { state: state , headerMenuOpen: headerMenuOpen } = $bd013581c0a4b065$export$3cb274deb6c2d854();
2023
2062
  let ref = (0, $gyhAV$useRef)();
2024
2063
  let { rowProps: rowProps } = (0, $gyhAV$useTableHeaderRow)({
2025
2064
  node: item,
@@ -2035,9 +2074,9 @@ function $d14697b14e638114$var$TableHeaderRow({ item: item , children: children
2035
2074
  style: style
2036
2075
  }, children);
2037
2076
  }
2038
- function $d14697b14e638114$var$TableDragCell({ cell: cell }) {
2077
+ function $bd013581c0a4b065$var$TableDragCell({ cell: cell }) {
2039
2078
  let ref = (0, $gyhAV$useRef)();
2040
- let { state: state , isTableDraggable: isTableDraggable } = $d14697b14e638114$export$3cb274deb6c2d854();
2079
+ let { state: state , isTableDraggable: isTableDraggable } = $bd013581c0a4b065$export$3cb274deb6c2d854();
2041
2080
  let isDisabled = state.disabledKeys.has(cell.parentKey);
2042
2081
  let { gridCellProps: gridCellProps } = (0, $gyhAV$useTableCell)({
2043
2082
  node: cell,
@@ -2051,11 +2090,11 @@ function $d14697b14e638114$var$TableDragCell({ cell: cell }) {
2051
2090
  className: (0, $gyhAV$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($bd5d41f647a296c3$exports))), "spectrum-Table-cell", {
2052
2091
  "is-disabled": isDisabled
2053
2092
  }, (0, $gyhAV$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($325bc3d43b25708b$exports))), "react-spectrum-Table-cell", "react-spectrum-Table-dragButtonCell"))
2054
- }, isTableDraggable && !isDisabled && /*#__PURE__*/ (0, $gyhAV$react).createElement($d14697b14e638114$var$DragButton, null)));
2093
+ }, isTableDraggable && !isDisabled && /*#__PURE__*/ (0, $gyhAV$react).createElement($bd013581c0a4b065$var$DragButton, null)));
2055
2094
  }
2056
- function $d14697b14e638114$var$TableCheckboxCell({ cell: cell }) {
2095
+ function $bd013581c0a4b065$var$TableCheckboxCell({ cell: cell }) {
2057
2096
  let ref = (0, $gyhAV$useRef)();
2058
- let { state: state } = $d14697b14e638114$export$3cb274deb6c2d854();
2097
+ let { state: state } = $bd013581c0a4b065$export$3cb274deb6c2d854();
2059
2098
  let isDisabled = state.disabledKeys.has(cell.parentKey);
2060
2099
  let { gridCellProps: gridCellProps } = (0, $gyhAV$useTableCell)({
2061
2100
  node: cell,
@@ -2079,8 +2118,10 @@ function $d14697b14e638114$var$TableCheckboxCell({ cell: cell }) {
2079
2118
  UNSAFE_className: (0, $gyhAV$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($bd5d41f647a296c3$exports))), "spectrum-Table-checkbox")
2080
2119
  })));
2081
2120
  }
2082
- function $d14697b14e638114$var$TableCell({ cell: cell }) {
2083
- let { state: state } = $d14697b14e638114$export$3cb274deb6c2d854();
2121
+ function $bd013581c0a4b065$var$TableCell({ cell: cell }) {
2122
+ let { scale: scale } = (0, $gyhAV$useProvider)();
2123
+ let { state: state } = $bd013581c0a4b065$export$3cb274deb6c2d854();
2124
+ let isExpandableTable = "expandedKeys" in state;
2084
2125
  let ref = (0, $gyhAV$useRef)();
2085
2126
  let columnProps = cell.column.props;
2086
2127
  let isDisabled = state.disabledKeys.has(cell.parentKey);
@@ -2088,11 +2129,27 @@ function $d14697b14e638114$var$TableCell({ cell: cell }) {
2088
2129
  node: cell,
2089
2130
  isVirtualized: true
2090
2131
  }, state, ref);
2132
+ let { id: id , ...otherGridCellProps } = gridCellProps;
2133
+ let isFirstRowHeaderCell = state.collection.rowHeaderColumnKeys.keys().next().value === cell.column.key;
2134
+ let isRowExpandable = false;
2135
+ let showExpandCollapseButton = false;
2136
+ let levelOffset = 0;
2137
+ if ("expandedKeys" in state) {
2138
+ var _state_keyMap_get_props_UNSTABLE_childItems, _state_keyMap_get, _state_keyMap_get1, _state_keyMap_get_props, _state_keyMap_get_props_children;
2139
+ isRowExpandable = ((_state_keyMap_get_props_UNSTABLE_childItems = (_state_keyMap_get = state.keyMap.get(cell.parentKey)) === null || _state_keyMap_get === void 0 ? void 0 : _state_keyMap_get.props.UNSTABLE_childItems) === null || _state_keyMap_get_props_UNSTABLE_childItems === void 0 ? void 0 : _state_keyMap_get_props_UNSTABLE_childItems.length) > 0 || ((_state_keyMap_get1 = state.keyMap.get(cell.parentKey)) === null || _state_keyMap_get1 === void 0 ? void 0 : (_state_keyMap_get_props = _state_keyMap_get1.props) === null || _state_keyMap_get_props === void 0 ? void 0 : (_state_keyMap_get_props_children = _state_keyMap_get_props.children) === null || _state_keyMap_get_props_children === void 0 ? void 0 : _state_keyMap_get_props_children.length) > state.userColumnCount;
2140
+ showExpandCollapseButton = isFirstRowHeaderCell && isRowExpandable;
2141
+ // Offset based on level, and add additional offset if there is no expand/collapse button on a row
2142
+ levelOffset = (cell.level - 2) * $bd013581c0a4b065$var$LEVEL_OFFSET_WIDTH[scale] + (!showExpandCollapseButton ? $bd013581c0a4b065$var$LEVEL_OFFSET_WIDTH[scale] * 2 : 0);
2143
+ }
2091
2144
  return /*#__PURE__*/ (0, $gyhAV$react).createElement((0, $gyhAV$FocusRing), {
2092
2145
  focusRingClass: (0, $gyhAV$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($bd5d41f647a296c3$exports))), "focus-ring")
2093
2146
  }, /*#__PURE__*/ (0, $gyhAV$react).createElement("div", {
2094
- ...gridCellProps,
2147
+ ...otherGridCellProps,
2148
+ "aria-labelledby": id,
2095
2149
  ref: ref,
2150
+ style: isExpandableTable && isFirstRowHeaderCell ? {
2151
+ paddingInlineStart: levelOffset
2152
+ } : {},
2096
2153
  className: (0, $gyhAV$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($bd5d41f647a296c3$exports))), "spectrum-Table-cell", {
2097
2154
  "spectrum-Table-cell--divider": columnProps.showDivider && cell.column.nextKey !== null,
2098
2155
  "spectrum-Table-cell--hideHeader": columnProps.hideHeader,
@@ -2100,26 +2157,146 @@ function $d14697b14e638114$var$TableCell({ cell: cell }) {
2100
2157
  }, (0, $gyhAV$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($325bc3d43b25708b$exports))), "react-spectrum-Table-cell", {
2101
2158
  "react-spectrum-Table-cell--alignStart": columnProps.align === "start",
2102
2159
  "react-spectrum-Table-cell--alignCenter": columnProps.align === "center",
2103
- "react-spectrum-Table-cell--alignEnd": columnProps.align === "end"
2160
+ "react-spectrum-Table-cell--alignEnd": columnProps.align === "end",
2161
+ "react-spectrum-Table-cell--hasExpandCollapseButton": showExpandCollapseButton
2104
2162
  }))
2105
- }, /*#__PURE__*/ (0, $gyhAV$react).createElement("span", {
2163
+ }, showExpandCollapseButton && /*#__PURE__*/ (0, $gyhAV$react).createElement($bd013581c0a4b065$var$ExpandableRowChevron, {
2164
+ cell: cell
2165
+ }), /*#__PURE__*/ (0, $gyhAV$react).createElement("span", {
2166
+ id: id,
2106
2167
  className: (0, $gyhAV$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($bd5d41f647a296c3$exports))), "spectrum-Table-cellContents")
2107
2168
  }, cell.rendered)));
2108
2169
  }
2109
- function $d14697b14e638114$var$CenteredWrapper({ children: children }) {
2110
- let { state: state } = $d14697b14e638114$export$3cb274deb6c2d854();
2170
+ function $bd013581c0a4b065$var$ExpandableRowChevron({ cell: cell }) {
2171
+ // TODO: move some/all of the chevron button setup into a separate hook?
2172
+ let { direction: direction } = (0, $gyhAV$useLocale)();
2173
+ let { state: state } = $bd013581c0a4b065$export$3cb274deb6c2d854();
2174
+ let expandButtonRef = (0, $gyhAV$useRef)();
2175
+ let stringFormatter = (0, $gyhAV$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($cc43b2d4f6011c04$exports))));
2176
+ let isExpanded;
2177
+ if ("expandedKeys" in state) isExpanded = state.expandedKeys === "all" || state.expandedKeys.has(cell.parentKey);
2178
+ // Will need to keep the chevron as a button for iOS VO at all times since VO doesn't focus the cell. Also keep as button if cellAction is defined by the user in the future
2179
+ let { buttonProps: buttonProps } = (0, $gyhAV$useButton)({
2180
+ // Desktop and mobile both toggle expansion of a native expandable row on mouse/touch up
2181
+ onPress: ()=>{
2182
+ state.toggleKey(cell.parentKey);
2183
+ if (!(0, $gyhAV$isFocusVisible)()) {
2184
+ state.selectionManager.setFocused(true);
2185
+ state.selectionManager.setFocusedKey(cell.parentKey);
2186
+ }
2187
+ },
2188
+ elementType: "span",
2189
+ "aria-label": isExpanded ? stringFormatter.format("collapse") : stringFormatter.format("expand")
2190
+ }, expandButtonRef);
2191
+ return /*#__PURE__*/ (0, $gyhAV$react).createElement("span", {
2192
+ ...buttonProps,
2193
+ ref: expandButtonRef,
2194
+ // Override tabindex so that grid keyboard nav skips over it. Needs -1 so android talkback can actually "focus" it
2195
+ tabIndex: (0, $gyhAV$isAndroid)() ? -1 : undefined,
2196
+ className: (0, $gyhAV$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($bd5d41f647a296c3$exports))), "spectrum-Table-expandButton", {
2197
+ "is-open": isExpanded
2198
+ })
2199
+ }, direction === "ltr" ? /*#__PURE__*/ (0, $gyhAV$react).createElement((0, $gyhAV$spectrumiconsuiChevronRightMedium), null) : /*#__PURE__*/ (0, $gyhAV$react).createElement((0, $gyhAV$spectrumiconsuiChevronLeftMedium), null));
2200
+ }
2201
+ function $bd013581c0a4b065$var$CenteredWrapper({ children: children }) {
2202
+ let { state: state } = $bd013581c0a4b065$export$3cb274deb6c2d854();
2203
+ let rowProps;
2204
+ if ("expandedKeys" in state) {
2205
+ let topLevelRowCount = [
2206
+ ...state.keyMap.get(state.collection.body.key).childNodes
2207
+ ].length;
2208
+ rowProps = {
2209
+ "aria-level": 1,
2210
+ "aria-posinset": topLevelRowCount + 1,
2211
+ "aria-setsize": topLevelRowCount + 1
2212
+ };
2213
+ } else rowProps = {
2214
+ "aria-rowindex": state.collection.headerRows.length + state.collection.size + 1
2215
+ };
2111
2216
  return /*#__PURE__*/ (0, $gyhAV$react).createElement("div", {
2112
2217
  role: "row",
2113
- "aria-rowindex": state.collection.headerRows.length + state.collection.size + 1,
2218
+ ...rowProps,
2114
2219
  className: (0, $gyhAV$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($325bc3d43b25708b$exports))), "react-spectrum-Table-centeredWrapper")
2115
2220
  }, /*#__PURE__*/ (0, $gyhAV$react).createElement("div", {
2116
2221
  role: "rowheader",
2117
2222
  "aria-colspan": state.collection.columns.length
2118
2223
  }, children));
2119
2224
  }
2225
+ const $bd013581c0a4b065$export$517e02184d273d69 = /*#__PURE__*/ (0, $gyhAV$react).forwardRef($bd013581c0a4b065$var$TableViewBase);
2226
+
2227
+
2228
+
2229
+ function $d14697b14e638114$var$TableView(props, ref) {
2230
+ let { selectionStyle: selectionStyle , dragAndDropHooks: dragAndDropHooks } = props;
2231
+ let [showSelectionCheckboxes, setShowSelectionCheckboxes] = (0, $gyhAV$useState)(selectionStyle !== "highlight");
2232
+ let isTableDraggable = !!(dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDraggableCollectionState);
2233
+ let state = (0, $gyhAV$useTableState)({
2234
+ ...props,
2235
+ showSelectionCheckboxes: showSelectionCheckboxes,
2236
+ showDragButtons: isTableDraggable,
2237
+ selectionBehavior: props.selectionStyle === "highlight" ? "replace" : "toggle"
2238
+ });
2239
+ // If the selection behavior changes in state, we need to update showSelectionCheckboxes here due to the circular dependency...
2240
+ let shouldShowCheckboxes = state.selectionManager.selectionBehavior !== "replace";
2241
+ if (shouldShowCheckboxes !== showSelectionCheckboxes) setShowSelectionCheckboxes(shouldShowCheckboxes);
2242
+ return /*#__PURE__*/ (0, $gyhAV$react).createElement((0, $bd013581c0a4b065$export$517e02184d273d69), {
2243
+ ...props,
2244
+ state: state,
2245
+ ref: ref
2246
+ });
2247
+ }
2248
+ const $d14697b14e638114$export$b3c27e869d856b7 = /*#__PURE__*/ (0, $gyhAV$react).forwardRef($d14697b14e638114$var$TableView);
2249
+
2250
+
2251
+ /*
2252
+ * Copyright 2023 Adobe. All rights reserved.
2253
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
2254
+ * you may not use this file except in compliance with the License. You may obtain a copy
2255
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
2256
+ *
2257
+ * Unless required by applicable law or agreed to in writing, software distributed under
2258
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2259
+ * OF ANY KIND, either express or implied. See the License for the specific language
2260
+ * governing permissions and limitations under the License.
2261
+ */
2262
+
2263
+
2264
+ function $be90f60881eac8aa$var$TreeGridTableView(props, ref) {
2265
+ let { selectionStyle: selectionStyle , dragAndDropHooks: dragAndDropHooks } = props;
2266
+ let [showSelectionCheckboxes, setShowSelectionCheckboxes] = (0, $gyhAV$useState)(selectionStyle !== "highlight");
2267
+ let isTableDraggable = !!(dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDraggableCollectionState);
2268
+ let state = (0, $gyhAV$UNSTABLE_useTreeGridState)({
2269
+ ...props,
2270
+ showSelectionCheckboxes: showSelectionCheckboxes,
2271
+ showDragButtons: isTableDraggable,
2272
+ selectionBehavior: props.selectionStyle === "highlight" ? "replace" : "toggle"
2273
+ });
2274
+ // If the selection behavior changes in state, we need to update showSelectionCheckboxes here due to the circular dependency...
2275
+ let shouldShowCheckboxes = state.selectionManager.selectionBehavior !== "replace";
2276
+ if (shouldShowCheckboxes !== showSelectionCheckboxes) setShowSelectionCheckboxes(shouldShowCheckboxes);
2277
+ return /*#__PURE__*/ (0, $gyhAV$react).createElement((0, $bd013581c0a4b065$export$517e02184d273d69), {
2278
+ ...props,
2279
+ state: state,
2280
+ ref: ref
2281
+ });
2282
+ }
2283
+ const $be90f60881eac8aa$export$5669566ac2c90964 = /*#__PURE__*/ (0, $gyhAV$react).forwardRef($be90f60881eac8aa$var$TreeGridTableView);
2284
+
2285
+
2286
+ function $9f67189e3f884740$var$TableViewWrapper(props, ref) {
2287
+ let { UNSTABLE_allowsExpandableRows: UNSTABLE_allowsExpandableRows , ...otherProps } = props;
2288
+ if ((0, $gyhAV$tableNestedRows)() && UNSTABLE_allowsExpandableRows) return /*#__PURE__*/ (0, $gyhAV$react).createElement((0, $be90f60881eac8aa$export$5669566ac2c90964), {
2289
+ ...otherProps,
2290
+ ref: ref
2291
+ });
2292
+ else return /*#__PURE__*/ (0, $gyhAV$react).createElement((0, $d14697b14e638114$export$b3c27e869d856b7), {
2293
+ ...otherProps,
2294
+ ref: ref
2295
+ });
2296
+ }
2120
2297
  /**
2121
2298
  * Tables are containers for displaying information. They allow users to quickly scan, sort, compare, and take action on large amounts of data.
2122
- */ const $d14697b14e638114$export$b3c27e869d856b7 = /*#__PURE__*/ (0, $gyhAV$react).forwardRef($d14697b14e638114$var$TableView);
2299
+ */ const $9f67189e3f884740$export$b3c27e869d856b7 = /*#__PURE__*/ (0, $gyhAV$react).forwardRef($9f67189e3f884740$var$TableViewWrapper);
2123
2300
 
2124
2301
 
2125
2302
 
@@ -2127,5 +2304,5 @@ function $d14697b14e638114$var$CenteredWrapper({ children: children }) {
2127
2304
  const $e668f3d0f378a712$export$816b5d811295e6bc = (0, $gyhAV$Column);
2128
2305
 
2129
2306
 
2130
- export {$e668f3d0f378a712$export$816b5d811295e6bc as Column, $d14697b14e638114$export$b3c27e869d856b7 as TableView, $e668f3d0f378a712$re_export$TableHeader as TableHeader, $e668f3d0f378a712$re_export$TableBody as TableBody, $e668f3d0f378a712$re_export$Section as Section, $e668f3d0f378a712$re_export$Row as Row, $e668f3d0f378a712$re_export$Cell as Cell};
2307
+ export {$e668f3d0f378a712$export$816b5d811295e6bc as Column, $9f67189e3f884740$export$b3c27e869d856b7 as TableView, $e668f3d0f378a712$re_export$TableHeader as TableHeader, $e668f3d0f378a712$re_export$TableBody as TableBody, $e668f3d0f378a712$re_export$Section as Section, $e668f3d0f378a712$re_export$Row as Row, $e668f3d0f378a712$re_export$Cell as Cell};
2131
2308
  //# sourceMappingURL=module.js.map