react-aria-components 1.11.0 → 1.12.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/dist/Autocomplete.main.js +7 -20
- package/dist/Autocomplete.main.js.map +1 -1
- package/dist/Autocomplete.mjs +8 -20
- package/dist/Autocomplete.module.js +8 -20
- package/dist/Autocomplete.module.js.map +1 -1
- package/dist/Breadcrumbs.main.js +4 -1
- package/dist/Breadcrumbs.main.js.map +1 -1
- package/dist/Breadcrumbs.mjs +5 -2
- package/dist/Breadcrumbs.module.js +5 -2
- package/dist/Breadcrumbs.module.js.map +1 -1
- package/dist/GridList.main.js +96 -15
- package/dist/GridList.main.js.map +1 -1
- package/dist/GridList.mjs +98 -19
- package/dist/GridList.module.js +98 -19
- package/dist/GridList.module.js.map +1 -1
- package/dist/Header.main.js +1 -1
- package/dist/Header.main.js.map +1 -1
- package/dist/Header.mjs +2 -2
- package/dist/Header.module.js +2 -2
- package/dist/Header.module.js.map +1 -1
- package/dist/ListBox.main.js +6 -18
- package/dist/ListBox.main.js.map +1 -1
- package/dist/ListBox.mjs +8 -20
- package/dist/ListBox.module.js +8 -20
- package/dist/ListBox.module.js.map +1 -1
- package/dist/Menu.main.js +29 -15
- package/dist/Menu.main.js.map +1 -1
- package/dist/Menu.mjs +31 -17
- package/dist/Menu.module.js +31 -17
- package/dist/Menu.module.js.map +1 -1
- package/dist/Popover.main.js +7 -11
- package/dist/Popover.main.js.map +1 -1
- package/dist/Popover.mjs +8 -12
- package/dist/Popover.module.js +8 -12
- package/dist/Popover.module.js.map +1 -1
- package/dist/SearchField.main.js +6 -4
- package/dist/SearchField.main.js.map +1 -1
- package/dist/SearchField.mjs +7 -5
- package/dist/SearchField.module.js +7 -5
- package/dist/SearchField.module.js.map +1 -1
- package/dist/Separator.main.js +13 -1
- package/dist/Separator.main.js.map +1 -1
- package/dist/Separator.mjs +15 -3
- package/dist/Separator.module.js +15 -3
- package/dist/Separator.module.js.map +1 -1
- package/dist/Table.main.js +58 -17
- package/dist/Table.main.js.map +1 -1
- package/dist/Table.mjs +60 -19
- package/dist/Table.module.js +60 -19
- package/dist/Table.module.js.map +1 -1
- package/dist/Tabs.main.js +4 -1
- package/dist/Tabs.main.js.map +1 -1
- package/dist/Tabs.mjs +5 -2
- package/dist/Tabs.module.js +5 -2
- package/dist/Tabs.module.js.map +1 -1
- package/dist/TagGroup.main.js +13 -4
- package/dist/TagGroup.main.js.map +1 -1
- package/dist/TagGroup.mjs +15 -6
- package/dist/TagGroup.module.js +15 -6
- package/dist/TagGroup.module.js.map +1 -1
- package/dist/TextField.main.js +7 -5
- package/dist/TextField.main.js.map +1 -1
- package/dist/TextField.mjs +8 -6
- package/dist/TextField.module.js +8 -6
- package/dist/TextField.module.js.map +1 -1
- package/dist/Tooltip.main.js +4 -11
- package/dist/Tooltip.main.js.map +1 -1
- package/dist/Tooltip.mjs +6 -13
- package/dist/Tooltip.module.js +6 -13
- package/dist/Tooltip.module.js.map +1 -1
- package/dist/Tree.main.js +9 -3
- package/dist/Tree.main.js.map +1 -1
- package/dist/Tree.mjs +10 -4
- package/dist/Tree.module.js +10 -4
- package/dist/Tree.module.js.map +1 -1
- package/dist/context.main.js +25 -0
- package/dist/context.main.js.map +1 -0
- package/dist/context.mjs +19 -0
- package/dist/context.module.js +19 -0
- package/dist/context.module.js.map +1 -0
- package/dist/import.mjs +3 -3
- package/dist/main.js +3 -0
- package/dist/main.js.map +1 -1
- package/dist/module.js +3 -3
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +178 -171
- package/dist/types.d.ts.map +1 -1
- package/dist/useDragAndDrop.main.js.map +1 -1
- package/dist/useDragAndDrop.module.js.map +1 -1
- package/package.json +23 -22
- package/src/Autocomplete.tsx +14 -25
- package/src/Breadcrumbs.tsx +6 -2
- package/src/GridList.tsx +89 -21
- package/src/Header.tsx +2 -2
- package/src/ListBox.tsx +12 -15
- package/src/Menu.tsx +37 -17
- package/src/Popover.tsx +11 -11
- package/src/SearchField.tsx +5 -4
- package/src/Separator.tsx +17 -2
- package/src/Table.tsx +65 -22
- package/src/Tabs.tsx +6 -2
- package/src/TagGroup.tsx +15 -6
- package/src/TextField.tsx +8 -7
- package/src/Tooltip.tsx +10 -14
- package/src/Tree.tsx +13 -5
- package/src/context.tsx +34 -0
- package/src/index.ts +2 -2
- package/src/useDragAndDrop.tsx +9 -9
package/dist/Table.mjs
CHANGED
|
@@ -3,10 +3,11 @@ import {CheckboxContext as $4e85f108e88277b8$export$b085522c77523c51} from "./RS
|
|
|
3
3
|
import {CollectionRendererContext as $7135fc7d473fd974$export$4feb769f8ddf26c5, DefaultCollectionRenderer as $7135fc7d473fd974$export$a164736487e3f0ae} from "./Collection.mjs";
|
|
4
4
|
import {DEFAULT_SLOT as $64fa3d84918910a7$export$c62b8e45d58ddad9, Provider as $64fa3d84918910a7$export$2881499e37b75b9a, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from "./utils.mjs";
|
|
5
5
|
import {DragAndDropContext as $612b8eb6cb90e02d$export$d188a835a7bc5783, DropIndicatorContext as $612b8eb6cb90e02d$export$f55761759794cf55, useDndPersistedKeys as $612b8eb6cb90e02d$export$d1e8e3fbb7461f6, useRenderDropIndicator as $612b8eb6cb90e02d$export$971707d8a129a1f7} from "./DragAndDrop.mjs";
|
|
6
|
+
import {FieldInputContext as $8e6cc465cc68f603$export$698f465ec27e93df, SelectableCollectionContext as $8e6cc465cc68f603$export$b0d3ecf7112093a7} from "./context.mjs";
|
|
6
7
|
import $dbSRa$intlStringsmodulejs from "./intlStrings.mjs";
|
|
7
|
-
import {
|
|
8
|
+
import {BaseCollection as $dbSRa$BaseCollection, Collection as $dbSRa$Collection, CollectionBuilder as $dbSRa$CollectionBuilder, CollectionNode as $dbSRa$CollectionNode, createBranchComponent as $dbSRa$createBranchComponent, useCachedChildren as $dbSRa$useCachedChildren, createLeafComponent as $dbSRa$createLeafComponent, FilterableNode as $dbSRa$FilterableNode, LoaderNode as $dbSRa$LoaderNode} from "@react-aria/collections";
|
|
8
9
|
import {buildHeaderRows as $dbSRa$buildHeaderRows} from "@react-stately/table";
|
|
9
|
-
import {useTableColumnResizeState as $dbSRa$useTableColumnResizeState, useMultipleSelectionState as $dbSRa$useMultipleSelectionState, useTableState as $dbSRa$useTableState} from "react-stately";
|
|
10
|
+
import {useTableColumnResizeState as $dbSRa$useTableColumnResizeState, useMultipleSelectionState as $dbSRa$useMultipleSelectionState, useTableState as $dbSRa$useTableState, UNSTABLE_useFilteredTableState as $dbSRa$UNSTABLE_useFilteredTableState} from "react-stately";
|
|
10
11
|
import {useTable as $dbSRa$useTable, ListKeyboardDelegate as $dbSRa$ListKeyboardDelegate, useFocusRing as $dbSRa$useFocusRing, FocusScope as $dbSRa$FocusScope, mergeProps as $dbSRa$mergeProps, useTableRowGroup as $dbSRa$useTableRowGroup, useHover as $dbSRa$useHover, useTableHeaderRow as $dbSRa$useTableHeaderRow, useTableSelectAllCheckbox as $dbSRa$useTableSelectAllCheckbox, useTableColumnHeader as $dbSRa$useTableColumnHeader, useLocalizedStringFormatter as $dbSRa$useLocalizedStringFormatter, useTableColumnResize as $dbSRa$useTableColumnResize, useLocale as $dbSRa$useLocale, useTableRow as $dbSRa$useTableRow, useTableSelectionCheckbox as $dbSRa$useTableSelectionCheckbox, useVisuallyHidden as $dbSRa$useVisuallyHidden, useTableCell as $dbSRa$useTableCell} from "react-aria";
|
|
11
12
|
import {useObjectRef as $dbSRa$useObjectRef, useLayoutEffect as $dbSRa$useLayoutEffect, isScrollable as $dbSRa$isScrollable, useResizeObserver as $dbSRa$useResizeObserver, filterDOMProps as $dbSRa$filterDOMProps, mergeRefs as $dbSRa$mergeRefs, useLoadMoreSentinel as $dbSRa$useLoadMoreSentinel, inertValue as $dbSRa$inertValue} from "@react-aria/utils";
|
|
12
13
|
import $dbSRa$react, {createContext as $dbSRa$createContext, forwardRef as $dbSRa$forwardRef, useRef as $dbSRa$useRef, useState as $dbSRa$useState, useMemo as $dbSRa$useMemo, useContext as $dbSRa$useContext, useEffect as $dbSRa$useEffect, useCallback as $dbSRa$useCallback} from "react";
|
|
@@ -29,6 +30,7 @@ function $parcel$interopDefault(a) {
|
|
|
29
30
|
|
|
30
31
|
|
|
31
32
|
|
|
33
|
+
|
|
32
34
|
class $1910c06f0ca9905e$var$TableCollection extends (0, $dbSRa$BaseCollection) {
|
|
33
35
|
addNode(node) {
|
|
34
36
|
super.addNode(node);
|
|
@@ -135,7 +137,7 @@ class $1910c06f0ca9905e$var$TableCollection extends (0, $dbSRa$BaseCollection) {
|
|
|
135
137
|
return text.join(' ');
|
|
136
138
|
}
|
|
137
139
|
constructor(...args){
|
|
138
|
-
super(...args), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = new Set(), this.head = new
|
|
140
|
+
super(...args), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = new Set(), this.head = new $1910c06f0ca9905e$var$TableHeaderNode(-1), this.body = new $1910c06f0ca9905e$var$TableBodyNode(-2), this.columnsDirty = true;
|
|
139
141
|
}
|
|
140
142
|
}
|
|
141
143
|
const $1910c06f0ca9905e$var$ResizableTableContainerContext = /*#__PURE__*/ (0, $dbSRa$createContext)(null);
|
|
@@ -232,25 +234,32 @@ const $1910c06f0ca9905e$export$54ec01a60f47d33d = /*#__PURE__*/ (0, $dbSRa$forwa
|
|
|
232
234
|
}));
|
|
233
235
|
});
|
|
234
236
|
function $1910c06f0ca9905e$var$TableInner({ props: props, forwardedRef: ref, selectionState: selectionState, collection: collection }) {
|
|
237
|
+
let contextProps;
|
|
238
|
+
[contextProps] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)({}, null, (0, $8e6cc465cc68f603$export$b0d3ecf7112093a7));
|
|
239
|
+
let { filter: filter, ...collectionProps } = contextProps;
|
|
240
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
241
|
+
let { shouldUseVirtualFocus: shouldUseVirtualFocus, disallowTypeAhead: disallowTypeAhead, ...DOMCollectionProps } = collectionProps || {};
|
|
235
242
|
let tableContainerContext = (0, $dbSRa$useContext)($1910c06f0ca9905e$var$ResizableTableContainerContext);
|
|
236
243
|
ref = (0, $dbSRa$useObjectRef)((0, $dbSRa$useMemo)(()=>(0, $dbSRa$mergeRefs)(ref, tableContainerContext === null || tableContainerContext === void 0 ? void 0 : tableContainerContext.tableRef), [
|
|
237
244
|
ref,
|
|
238
245
|
tableContainerContext === null || tableContainerContext === void 0 ? void 0 : tableContainerContext.tableRef
|
|
239
246
|
]));
|
|
240
|
-
let
|
|
247
|
+
let tableState = (0, $dbSRa$useTableState)({
|
|
241
248
|
...props,
|
|
242
249
|
collection: collection,
|
|
243
250
|
children: undefined,
|
|
244
251
|
UNSAFE_selectionState: selectionState
|
|
245
252
|
});
|
|
253
|
+
let filteredState = (0, $dbSRa$UNSTABLE_useFilteredTableState)(tableState, filter);
|
|
246
254
|
let { isVirtualized: isVirtualized, layoutDelegate: layoutDelegate, dropTargetDelegate: ctxDropTargetDelegate, CollectionRoot: CollectionRoot } = (0, $dbSRa$useContext)((0, $7135fc7d473fd974$export$4feb769f8ddf26c5));
|
|
247
255
|
let { dragAndDropHooks: dragAndDropHooks } = props;
|
|
248
256
|
let { gridProps: gridProps } = (0, $dbSRa$useTable)({
|
|
249
257
|
...props,
|
|
258
|
+
...DOMCollectionProps,
|
|
250
259
|
layoutDelegate: layoutDelegate,
|
|
251
260
|
isVirtualized: isVirtualized
|
|
252
|
-
},
|
|
253
|
-
let selectionManager =
|
|
261
|
+
}, filteredState, ref);
|
|
262
|
+
let selectionManager = filteredState.selectionManager;
|
|
254
263
|
let hasDragHooks = !!(dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDraggableCollectionState);
|
|
255
264
|
let hasDropHooks = !!(dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDroppableCollectionState);
|
|
256
265
|
let dragHooksProvided = (0, $dbSRa$useRef)(hasDragHooks);
|
|
@@ -271,7 +280,7 @@ function $1910c06f0ca9905e$var$TableInner({ props: props, forwardedRef: ref, sel
|
|
|
271
280
|
let preview = (0, $dbSRa$useRef)(null);
|
|
272
281
|
if (hasDragHooks && dragAndDropHooks) {
|
|
273
282
|
dragState = dragAndDropHooks.useDraggableCollectionState({
|
|
274
|
-
collection: collection,
|
|
283
|
+
collection: filteredState.collection,
|
|
275
284
|
selectionManager: selectionManager,
|
|
276
285
|
preview: dragAndDropHooks.renderDragPreview ? preview : undefined
|
|
277
286
|
});
|
|
@@ -283,11 +292,11 @@ function $1910c06f0ca9905e$var$TableInner({ props: props, forwardedRef: ref, sel
|
|
|
283
292
|
}
|
|
284
293
|
if (hasDropHooks && dragAndDropHooks) {
|
|
285
294
|
dropState = dragAndDropHooks.useDroppableCollectionState({
|
|
286
|
-
collection: collection,
|
|
295
|
+
collection: filteredState.collection,
|
|
287
296
|
selectionManager: selectionManager
|
|
288
297
|
});
|
|
289
298
|
let keyboardDelegate = new (0, $dbSRa$ListKeyboardDelegate)({
|
|
290
|
-
collection: collection,
|
|
299
|
+
collection: filteredState.collection,
|
|
291
300
|
disabledKeys: selectionManager.disabledKeys,
|
|
292
301
|
disabledBehavior: selectionManager.disabledBehavior,
|
|
293
302
|
ref: ref,
|
|
@@ -311,7 +320,7 @@ function $1910c06f0ca9905e$var$TableInner({ props: props, forwardedRef: ref, sel
|
|
|
311
320
|
isDropTarget: isRootDropTarget,
|
|
312
321
|
isFocused: isFocused,
|
|
313
322
|
isFocusVisible: isFocusVisible,
|
|
314
|
-
state:
|
|
323
|
+
state: filteredState
|
|
315
324
|
}
|
|
316
325
|
});
|
|
317
326
|
let isListDraggable = !!(hasDragHooks && !(dragState === null || dragState === void 0 ? void 0 : dragState.isDisabled));
|
|
@@ -320,7 +329,7 @@ function $1910c06f0ca9905e$var$TableInner({ props: props, forwardedRef: ref, sel
|
|
|
320
329
|
if (tableContainerContext) {
|
|
321
330
|
layoutState = tableContainerContext.useTableColumnResizeState({
|
|
322
331
|
tableWidth: tableContainerContext.tableWidth
|
|
323
|
-
},
|
|
332
|
+
}, filteredState);
|
|
324
333
|
if (!isVirtualized) style = {
|
|
325
334
|
...style,
|
|
326
335
|
tableLayout: 'fixed',
|
|
@@ -336,7 +345,7 @@ function $1910c06f0ca9905e$var$TableInner({ props: props, forwardedRef: ref, sel
|
|
|
336
345
|
values: [
|
|
337
346
|
[
|
|
338
347
|
$1910c06f0ca9905e$export$38de1cb0526c21fb,
|
|
339
|
-
|
|
348
|
+
filteredState
|
|
340
349
|
],
|
|
341
350
|
[
|
|
342
351
|
$1910c06f0ca9905e$export$a2680a798823803c,
|
|
@@ -355,6 +364,14 @@ function $1910c06f0ca9905e$var$TableInner({ props: props, forwardedRef: ref, sel
|
|
|
355
364
|
{
|
|
356
365
|
render: $1910c06f0ca9905e$var$TableDropIndicatorWrapper
|
|
357
366
|
}
|
|
367
|
+
],
|
|
368
|
+
[
|
|
369
|
+
(0, $8e6cc465cc68f603$export$b0d3ecf7112093a7),
|
|
370
|
+
null
|
|
371
|
+
],
|
|
372
|
+
[
|
|
373
|
+
(0, $8e6cc465cc68f603$export$698f465ec27e93df),
|
|
374
|
+
null
|
|
358
375
|
]
|
|
359
376
|
]
|
|
360
377
|
}, /*#__PURE__*/ (0, $dbSRa$react).createElement((0, $dbSRa$FocusScope), null, /*#__PURE__*/ (0, $dbSRa$react).createElement(ElementType, {
|
|
@@ -368,7 +385,7 @@ function $1910c06f0ca9905e$var$TableInner({ props: props, forwardedRef: ref, sel
|
|
|
368
385
|
"data-focused": isFocused || undefined,
|
|
369
386
|
"data-focus-visible": isFocusVisible || undefined
|
|
370
387
|
}, /*#__PURE__*/ (0, $dbSRa$react).createElement(CollectionRoot, {
|
|
371
|
-
collection: collection,
|
|
388
|
+
collection: filteredState.collection,
|
|
372
389
|
scrollRef: (_tableContainerContext_scrollRef = tableContainerContext === null || tableContainerContext === void 0 ? void 0 : tableContainerContext.scrollRef) !== null && _tableContainerContext_scrollRef !== void 0 ? _tableContainerContext_scrollRef : ref,
|
|
373
390
|
persistedKeys: (0, $612b8eb6cb90e02d$export$d1e8e3fbb7461f6)(selectionManager, dragAndDropHooks, dropState)
|
|
374
391
|
}))), dragPreview);
|
|
@@ -381,7 +398,10 @@ const $1910c06f0ca9905e$var$TableOptionsContext = /*#__PURE__*/ (0, $dbSRa$creat
|
|
|
381
398
|
function $1910c06f0ca9905e$export$fddc468cd8cb4db9() {
|
|
382
399
|
return (0, $dbSRa$useContext)($1910c06f0ca9905e$var$TableOptionsContext);
|
|
383
400
|
}
|
|
384
|
-
|
|
401
|
+
class $1910c06f0ca9905e$var$TableHeaderNode extends (0, $dbSRa$CollectionNode) {
|
|
402
|
+
}
|
|
403
|
+
$1910c06f0ca9905e$var$TableHeaderNode.type = 'tableheader';
|
|
404
|
+
const $1910c06f0ca9905e$export$f850895b287ef28e = /*#__PURE__*/ (0, $dbSRa$createBranchComponent)($1910c06f0ca9905e$var$TableHeaderNode, (props, ref)=>{
|
|
385
405
|
let collection = (0, $dbSRa$useContext)($1910c06f0ca9905e$export$38de1cb0526c21fb).collection;
|
|
386
406
|
let headerRows = (0, $dbSRa$useCachedChildren)({
|
|
387
407
|
items: collection.headerRows,
|
|
@@ -452,7 +472,10 @@ function $1910c06f0ca9905e$var$TableHeaderRow({ item: item }) {
|
|
|
452
472
|
parent: item
|
|
453
473
|
})));
|
|
454
474
|
}
|
|
455
|
-
|
|
475
|
+
class $1910c06f0ca9905e$var$TableColumnNode extends (0, $dbSRa$CollectionNode) {
|
|
476
|
+
}
|
|
477
|
+
$1910c06f0ca9905e$var$TableColumnNode.type = 'column';
|
|
478
|
+
const $1910c06f0ca9905e$export$816b5d811295e6bc = /*#__PURE__*/ (0, $dbSRa$createLeafComponent)($1910c06f0ca9905e$var$TableColumnNode, (props, forwardedRef, column)=>{
|
|
456
479
|
var _state_sortDescriptor, _state_sortDescriptor1;
|
|
457
480
|
let ref = (0, $dbSRa$useObjectRef)(forwardedRef);
|
|
458
481
|
let state = (0, $dbSRa$useContext)($1910c06f0ca9905e$export$38de1cb0526c21fb);
|
|
@@ -615,7 +638,10 @@ const $1910c06f0ca9905e$export$ee689e97a7664bfd = /*#__PURE__*/ (0, $dbSRa$forwa
|
|
|
615
638
|
}
|
|
616
639
|
}), document.body));
|
|
617
640
|
});
|
|
618
|
-
|
|
641
|
+
class $1910c06f0ca9905e$var$TableBodyNode extends (0, $dbSRa$FilterableNode) {
|
|
642
|
+
}
|
|
643
|
+
$1910c06f0ca9905e$var$TableBodyNode.type = 'tablebody';
|
|
644
|
+
const $1910c06f0ca9905e$export$76ccd210b9029917 = /*#__PURE__*/ (0, $dbSRa$createBranchComponent)($1910c06f0ca9905e$var$TableBodyNode, (props, ref)=>{
|
|
619
645
|
let state = (0, $dbSRa$useContext)($1910c06f0ca9905e$export$38de1cb0526c21fb);
|
|
620
646
|
let { isVirtualized: isVirtualized } = (0, $dbSRa$useContext)((0, $7135fc7d473fd974$export$4feb769f8ddf26c5));
|
|
621
647
|
let collection = state.collection;
|
|
@@ -679,7 +705,19 @@ const $1910c06f0ca9905e$export$76ccd210b9029917 = /*#__PURE__*/ (0, $dbSRa$creat
|
|
|
679
705
|
renderDropIndicator: (0, $612b8eb6cb90e02d$export$971707d8a129a1f7)(dragAndDropHooks, dropState)
|
|
680
706
|
}), emptyState);
|
|
681
707
|
});
|
|
682
|
-
|
|
708
|
+
class $1910c06f0ca9905e$var$TableRowNode extends (0, $dbSRa$CollectionNode) {
|
|
709
|
+
filter(collection, newCollection, filterFn) {
|
|
710
|
+
let cells = collection.getChildren(this.key);
|
|
711
|
+
for (let cell of cells)if (filterFn(cell.textValue, cell)) {
|
|
712
|
+
let clone = this.clone();
|
|
713
|
+
newCollection.addDescendants(clone, collection);
|
|
714
|
+
return clone;
|
|
715
|
+
}
|
|
716
|
+
return null;
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
$1910c06f0ca9905e$var$TableRowNode.type = 'item';
|
|
720
|
+
const $1910c06f0ca9905e$export$b59bdbef9ce70de2 = /*#__PURE__*/ (0, $dbSRa$createBranchComponent)($1910c06f0ca9905e$var$TableRowNode, (props, forwardedRef, item)=>{
|
|
683
721
|
let ref = (0, $dbSRa$useObjectRef)(forwardedRef);
|
|
684
722
|
let state = (0, $dbSRa$useContext)($1910c06f0ca9905e$export$38de1cb0526c21fb);
|
|
685
723
|
let { dragAndDropHooks: dragAndDropHooks, dragState: dragState, dropState: dropState } = (0, $dbSRa$useContext)((0, $612b8eb6cb90e02d$export$d188a835a7bc5783));
|
|
@@ -820,7 +858,10 @@ const $1910c06f0ca9905e$export$b59bdbef9ce70de2 = /*#__PURE__*/ (0, $dbSRa$creat
|
|
|
820
858
|
idScope: props.id
|
|
821
859
|
}, props.children);
|
|
822
860
|
});
|
|
823
|
-
|
|
861
|
+
class $1910c06f0ca9905e$var$TableCellNode extends (0, $dbSRa$CollectionNode) {
|
|
862
|
+
}
|
|
863
|
+
$1910c06f0ca9905e$var$TableCellNode.type = 'cell';
|
|
864
|
+
const $1910c06f0ca9905e$export$f6f0c3fe4ec306ea = /*#__PURE__*/ (0, $dbSRa$createLeafComponent)($1910c06f0ca9905e$var$TableCellNode, (props, forwardedRef, cell)=>{
|
|
824
865
|
let ref = (0, $dbSRa$useObjectRef)(forwardedRef);
|
|
825
866
|
let state = (0, $dbSRa$useContext)($1910c06f0ca9905e$export$38de1cb0526c21fb);
|
|
826
867
|
let { dragState: dragState } = (0, $dbSRa$useContext)((0, $612b8eb6cb90e02d$export$d188a835a7bc5783));
|
|
@@ -944,7 +985,7 @@ function $1910c06f0ca9905e$var$RootDropIndicator() {
|
|
|
944
985
|
ref: ref
|
|
945
986
|
})));
|
|
946
987
|
}
|
|
947
|
-
const $1910c06f0ca9905e$export$8f5bea0338ed243c = (0, $dbSRa$createLeafComponent)(
|
|
988
|
+
const $1910c06f0ca9905e$export$8f5bea0338ed243c = (0, $dbSRa$createLeafComponent)((0, $dbSRa$LoaderNode), function TableLoadingIndicator(props, ref, item) {
|
|
948
989
|
let state = (0, $dbSRa$useContext)($1910c06f0ca9905e$export$38de1cb0526c21fb);
|
|
949
990
|
let { isVirtualized: isVirtualized } = (0, $dbSRa$useContext)((0, $7135fc7d473fd974$export$4feb769f8ddf26c5));
|
|
950
991
|
let { isLoading: isLoading, onLoadMore: onLoadMore, scrollOffset: scrollOffset, ...otherProps } = props;
|
package/dist/Table.module.js
CHANGED
|
@@ -3,10 +3,11 @@ import {CheckboxContext as $4e85f108e88277b8$export$b085522c77523c51} from "./RS
|
|
|
3
3
|
import {CollectionRendererContext as $7135fc7d473fd974$export$4feb769f8ddf26c5, DefaultCollectionRenderer as $7135fc7d473fd974$export$a164736487e3f0ae} from "./Collection.module.js";
|
|
4
4
|
import {DEFAULT_SLOT as $64fa3d84918910a7$export$c62b8e45d58ddad9, Provider as $64fa3d84918910a7$export$2881499e37b75b9a, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from "./utils.module.js";
|
|
5
5
|
import {DragAndDropContext as $612b8eb6cb90e02d$export$d188a835a7bc5783, DropIndicatorContext as $612b8eb6cb90e02d$export$f55761759794cf55, useDndPersistedKeys as $612b8eb6cb90e02d$export$d1e8e3fbb7461f6, useRenderDropIndicator as $612b8eb6cb90e02d$export$971707d8a129a1f7} from "./DragAndDrop.module.js";
|
|
6
|
+
import {FieldInputContext as $8e6cc465cc68f603$export$698f465ec27e93df, SelectableCollectionContext as $8e6cc465cc68f603$export$b0d3ecf7112093a7} from "./context.module.js";
|
|
6
7
|
import $dbSRa$intlStringsmodulejs from "./intlStrings.module.js";
|
|
7
|
-
import {
|
|
8
|
+
import {BaseCollection as $dbSRa$BaseCollection, Collection as $dbSRa$Collection, CollectionBuilder as $dbSRa$CollectionBuilder, CollectionNode as $dbSRa$CollectionNode, createBranchComponent as $dbSRa$createBranchComponent, useCachedChildren as $dbSRa$useCachedChildren, createLeafComponent as $dbSRa$createLeafComponent, FilterableNode as $dbSRa$FilterableNode, LoaderNode as $dbSRa$LoaderNode} from "@react-aria/collections";
|
|
8
9
|
import {buildHeaderRows as $dbSRa$buildHeaderRows} from "@react-stately/table";
|
|
9
|
-
import {useTableColumnResizeState as $dbSRa$useTableColumnResizeState, useMultipleSelectionState as $dbSRa$useMultipleSelectionState, useTableState as $dbSRa$useTableState} from "react-stately";
|
|
10
|
+
import {useTableColumnResizeState as $dbSRa$useTableColumnResizeState, useMultipleSelectionState as $dbSRa$useMultipleSelectionState, useTableState as $dbSRa$useTableState, UNSTABLE_useFilteredTableState as $dbSRa$UNSTABLE_useFilteredTableState} from "react-stately";
|
|
10
11
|
import {useTable as $dbSRa$useTable, ListKeyboardDelegate as $dbSRa$ListKeyboardDelegate, useFocusRing as $dbSRa$useFocusRing, FocusScope as $dbSRa$FocusScope, mergeProps as $dbSRa$mergeProps, useTableRowGroup as $dbSRa$useTableRowGroup, useHover as $dbSRa$useHover, useTableHeaderRow as $dbSRa$useTableHeaderRow, useTableSelectAllCheckbox as $dbSRa$useTableSelectAllCheckbox, useTableColumnHeader as $dbSRa$useTableColumnHeader, useLocalizedStringFormatter as $dbSRa$useLocalizedStringFormatter, useTableColumnResize as $dbSRa$useTableColumnResize, useLocale as $dbSRa$useLocale, useTableRow as $dbSRa$useTableRow, useTableSelectionCheckbox as $dbSRa$useTableSelectionCheckbox, useVisuallyHidden as $dbSRa$useVisuallyHidden, useTableCell as $dbSRa$useTableCell} from "react-aria";
|
|
11
12
|
import {useObjectRef as $dbSRa$useObjectRef, useLayoutEffect as $dbSRa$useLayoutEffect, isScrollable as $dbSRa$isScrollable, useResizeObserver as $dbSRa$useResizeObserver, filterDOMProps as $dbSRa$filterDOMProps, mergeRefs as $dbSRa$mergeRefs, useLoadMoreSentinel as $dbSRa$useLoadMoreSentinel, inertValue as $dbSRa$inertValue} from "@react-aria/utils";
|
|
12
13
|
import $dbSRa$react, {createContext as $dbSRa$createContext, forwardRef as $dbSRa$forwardRef, useRef as $dbSRa$useRef, useState as $dbSRa$useState, useMemo as $dbSRa$useMemo, useContext as $dbSRa$useContext, useEffect as $dbSRa$useEffect, useCallback as $dbSRa$useCallback} from "react";
|
|
@@ -29,6 +30,7 @@ function $parcel$interopDefault(a) {
|
|
|
29
30
|
|
|
30
31
|
|
|
31
32
|
|
|
33
|
+
|
|
32
34
|
class $1910c06f0ca9905e$var$TableCollection extends (0, $dbSRa$BaseCollection) {
|
|
33
35
|
addNode(node) {
|
|
34
36
|
super.addNode(node);
|
|
@@ -135,7 +137,7 @@ class $1910c06f0ca9905e$var$TableCollection extends (0, $dbSRa$BaseCollection) {
|
|
|
135
137
|
return text.join(' ');
|
|
136
138
|
}
|
|
137
139
|
constructor(...args){
|
|
138
|
-
super(...args), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = new Set(), this.head = new
|
|
140
|
+
super(...args), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = new Set(), this.head = new $1910c06f0ca9905e$var$TableHeaderNode(-1), this.body = new $1910c06f0ca9905e$var$TableBodyNode(-2), this.columnsDirty = true;
|
|
139
141
|
}
|
|
140
142
|
}
|
|
141
143
|
const $1910c06f0ca9905e$var$ResizableTableContainerContext = /*#__PURE__*/ (0, $dbSRa$createContext)(null);
|
|
@@ -232,25 +234,32 @@ const $1910c06f0ca9905e$export$54ec01a60f47d33d = /*#__PURE__*/ (0, $dbSRa$forwa
|
|
|
232
234
|
}));
|
|
233
235
|
});
|
|
234
236
|
function $1910c06f0ca9905e$var$TableInner({ props: props, forwardedRef: ref, selectionState: selectionState, collection: collection }) {
|
|
237
|
+
let contextProps;
|
|
238
|
+
[contextProps] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)({}, null, (0, $8e6cc465cc68f603$export$b0d3ecf7112093a7));
|
|
239
|
+
let { filter: filter, ...collectionProps } = contextProps;
|
|
240
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
241
|
+
let { shouldUseVirtualFocus: shouldUseVirtualFocus, disallowTypeAhead: disallowTypeAhead, ...DOMCollectionProps } = collectionProps || {};
|
|
235
242
|
let tableContainerContext = (0, $dbSRa$useContext)($1910c06f0ca9905e$var$ResizableTableContainerContext);
|
|
236
243
|
ref = (0, $dbSRa$useObjectRef)((0, $dbSRa$useMemo)(()=>(0, $dbSRa$mergeRefs)(ref, tableContainerContext === null || tableContainerContext === void 0 ? void 0 : tableContainerContext.tableRef), [
|
|
237
244
|
ref,
|
|
238
245
|
tableContainerContext === null || tableContainerContext === void 0 ? void 0 : tableContainerContext.tableRef
|
|
239
246
|
]));
|
|
240
|
-
let
|
|
247
|
+
let tableState = (0, $dbSRa$useTableState)({
|
|
241
248
|
...props,
|
|
242
249
|
collection: collection,
|
|
243
250
|
children: undefined,
|
|
244
251
|
UNSAFE_selectionState: selectionState
|
|
245
252
|
});
|
|
253
|
+
let filteredState = (0, $dbSRa$UNSTABLE_useFilteredTableState)(tableState, filter);
|
|
246
254
|
let { isVirtualized: isVirtualized, layoutDelegate: layoutDelegate, dropTargetDelegate: ctxDropTargetDelegate, CollectionRoot: CollectionRoot } = (0, $dbSRa$useContext)((0, $7135fc7d473fd974$export$4feb769f8ddf26c5));
|
|
247
255
|
let { dragAndDropHooks: dragAndDropHooks } = props;
|
|
248
256
|
let { gridProps: gridProps } = (0, $dbSRa$useTable)({
|
|
249
257
|
...props,
|
|
258
|
+
...DOMCollectionProps,
|
|
250
259
|
layoutDelegate: layoutDelegate,
|
|
251
260
|
isVirtualized: isVirtualized
|
|
252
|
-
},
|
|
253
|
-
let selectionManager =
|
|
261
|
+
}, filteredState, ref);
|
|
262
|
+
let selectionManager = filteredState.selectionManager;
|
|
254
263
|
let hasDragHooks = !!(dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDraggableCollectionState);
|
|
255
264
|
let hasDropHooks = !!(dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDroppableCollectionState);
|
|
256
265
|
let dragHooksProvided = (0, $dbSRa$useRef)(hasDragHooks);
|
|
@@ -271,7 +280,7 @@ function $1910c06f0ca9905e$var$TableInner({ props: props, forwardedRef: ref, sel
|
|
|
271
280
|
let preview = (0, $dbSRa$useRef)(null);
|
|
272
281
|
if (hasDragHooks && dragAndDropHooks) {
|
|
273
282
|
dragState = dragAndDropHooks.useDraggableCollectionState({
|
|
274
|
-
collection: collection,
|
|
283
|
+
collection: filteredState.collection,
|
|
275
284
|
selectionManager: selectionManager,
|
|
276
285
|
preview: dragAndDropHooks.renderDragPreview ? preview : undefined
|
|
277
286
|
});
|
|
@@ -283,11 +292,11 @@ function $1910c06f0ca9905e$var$TableInner({ props: props, forwardedRef: ref, sel
|
|
|
283
292
|
}
|
|
284
293
|
if (hasDropHooks && dragAndDropHooks) {
|
|
285
294
|
dropState = dragAndDropHooks.useDroppableCollectionState({
|
|
286
|
-
collection: collection,
|
|
295
|
+
collection: filteredState.collection,
|
|
287
296
|
selectionManager: selectionManager
|
|
288
297
|
});
|
|
289
298
|
let keyboardDelegate = new (0, $dbSRa$ListKeyboardDelegate)({
|
|
290
|
-
collection: collection,
|
|
299
|
+
collection: filteredState.collection,
|
|
291
300
|
disabledKeys: selectionManager.disabledKeys,
|
|
292
301
|
disabledBehavior: selectionManager.disabledBehavior,
|
|
293
302
|
ref: ref,
|
|
@@ -311,7 +320,7 @@ function $1910c06f0ca9905e$var$TableInner({ props: props, forwardedRef: ref, sel
|
|
|
311
320
|
isDropTarget: isRootDropTarget,
|
|
312
321
|
isFocused: isFocused,
|
|
313
322
|
isFocusVisible: isFocusVisible,
|
|
314
|
-
state:
|
|
323
|
+
state: filteredState
|
|
315
324
|
}
|
|
316
325
|
});
|
|
317
326
|
let isListDraggable = !!(hasDragHooks && !(dragState === null || dragState === void 0 ? void 0 : dragState.isDisabled));
|
|
@@ -320,7 +329,7 @@ function $1910c06f0ca9905e$var$TableInner({ props: props, forwardedRef: ref, sel
|
|
|
320
329
|
if (tableContainerContext) {
|
|
321
330
|
layoutState = tableContainerContext.useTableColumnResizeState({
|
|
322
331
|
tableWidth: tableContainerContext.tableWidth
|
|
323
|
-
},
|
|
332
|
+
}, filteredState);
|
|
324
333
|
if (!isVirtualized) style = {
|
|
325
334
|
...style,
|
|
326
335
|
tableLayout: 'fixed',
|
|
@@ -336,7 +345,7 @@ function $1910c06f0ca9905e$var$TableInner({ props: props, forwardedRef: ref, sel
|
|
|
336
345
|
values: [
|
|
337
346
|
[
|
|
338
347
|
$1910c06f0ca9905e$export$38de1cb0526c21fb,
|
|
339
|
-
|
|
348
|
+
filteredState
|
|
340
349
|
],
|
|
341
350
|
[
|
|
342
351
|
$1910c06f0ca9905e$export$a2680a798823803c,
|
|
@@ -355,6 +364,14 @@ function $1910c06f0ca9905e$var$TableInner({ props: props, forwardedRef: ref, sel
|
|
|
355
364
|
{
|
|
356
365
|
render: $1910c06f0ca9905e$var$TableDropIndicatorWrapper
|
|
357
366
|
}
|
|
367
|
+
],
|
|
368
|
+
[
|
|
369
|
+
(0, $8e6cc465cc68f603$export$b0d3ecf7112093a7),
|
|
370
|
+
null
|
|
371
|
+
],
|
|
372
|
+
[
|
|
373
|
+
(0, $8e6cc465cc68f603$export$698f465ec27e93df),
|
|
374
|
+
null
|
|
358
375
|
]
|
|
359
376
|
]
|
|
360
377
|
}, /*#__PURE__*/ (0, $dbSRa$react).createElement((0, $dbSRa$FocusScope), null, /*#__PURE__*/ (0, $dbSRa$react).createElement(ElementType, {
|
|
@@ -368,7 +385,7 @@ function $1910c06f0ca9905e$var$TableInner({ props: props, forwardedRef: ref, sel
|
|
|
368
385
|
"data-focused": isFocused || undefined,
|
|
369
386
|
"data-focus-visible": isFocusVisible || undefined
|
|
370
387
|
}, /*#__PURE__*/ (0, $dbSRa$react).createElement(CollectionRoot, {
|
|
371
|
-
collection: collection,
|
|
388
|
+
collection: filteredState.collection,
|
|
372
389
|
scrollRef: (_tableContainerContext_scrollRef = tableContainerContext === null || tableContainerContext === void 0 ? void 0 : tableContainerContext.scrollRef) !== null && _tableContainerContext_scrollRef !== void 0 ? _tableContainerContext_scrollRef : ref,
|
|
373
390
|
persistedKeys: (0, $612b8eb6cb90e02d$export$d1e8e3fbb7461f6)(selectionManager, dragAndDropHooks, dropState)
|
|
374
391
|
}))), dragPreview);
|
|
@@ -381,7 +398,10 @@ const $1910c06f0ca9905e$var$TableOptionsContext = /*#__PURE__*/ (0, $dbSRa$creat
|
|
|
381
398
|
function $1910c06f0ca9905e$export$fddc468cd8cb4db9() {
|
|
382
399
|
return (0, $dbSRa$useContext)($1910c06f0ca9905e$var$TableOptionsContext);
|
|
383
400
|
}
|
|
384
|
-
|
|
401
|
+
class $1910c06f0ca9905e$var$TableHeaderNode extends (0, $dbSRa$CollectionNode) {
|
|
402
|
+
}
|
|
403
|
+
$1910c06f0ca9905e$var$TableHeaderNode.type = 'tableheader';
|
|
404
|
+
const $1910c06f0ca9905e$export$f850895b287ef28e = /*#__PURE__*/ (0, $dbSRa$createBranchComponent)($1910c06f0ca9905e$var$TableHeaderNode, (props, ref)=>{
|
|
385
405
|
let collection = (0, $dbSRa$useContext)($1910c06f0ca9905e$export$38de1cb0526c21fb).collection;
|
|
386
406
|
let headerRows = (0, $dbSRa$useCachedChildren)({
|
|
387
407
|
items: collection.headerRows,
|
|
@@ -452,7 +472,10 @@ function $1910c06f0ca9905e$var$TableHeaderRow({ item: item }) {
|
|
|
452
472
|
parent: item
|
|
453
473
|
})));
|
|
454
474
|
}
|
|
455
|
-
|
|
475
|
+
class $1910c06f0ca9905e$var$TableColumnNode extends (0, $dbSRa$CollectionNode) {
|
|
476
|
+
}
|
|
477
|
+
$1910c06f0ca9905e$var$TableColumnNode.type = 'column';
|
|
478
|
+
const $1910c06f0ca9905e$export$816b5d811295e6bc = /*#__PURE__*/ (0, $dbSRa$createLeafComponent)($1910c06f0ca9905e$var$TableColumnNode, (props, forwardedRef, column)=>{
|
|
456
479
|
var _state_sortDescriptor, _state_sortDescriptor1;
|
|
457
480
|
let ref = (0, $dbSRa$useObjectRef)(forwardedRef);
|
|
458
481
|
let state = (0, $dbSRa$useContext)($1910c06f0ca9905e$export$38de1cb0526c21fb);
|
|
@@ -615,7 +638,10 @@ const $1910c06f0ca9905e$export$ee689e97a7664bfd = /*#__PURE__*/ (0, $dbSRa$forwa
|
|
|
615
638
|
}
|
|
616
639
|
}), document.body));
|
|
617
640
|
});
|
|
618
|
-
|
|
641
|
+
class $1910c06f0ca9905e$var$TableBodyNode extends (0, $dbSRa$FilterableNode) {
|
|
642
|
+
}
|
|
643
|
+
$1910c06f0ca9905e$var$TableBodyNode.type = 'tablebody';
|
|
644
|
+
const $1910c06f0ca9905e$export$76ccd210b9029917 = /*#__PURE__*/ (0, $dbSRa$createBranchComponent)($1910c06f0ca9905e$var$TableBodyNode, (props, ref)=>{
|
|
619
645
|
let state = (0, $dbSRa$useContext)($1910c06f0ca9905e$export$38de1cb0526c21fb);
|
|
620
646
|
let { isVirtualized: isVirtualized } = (0, $dbSRa$useContext)((0, $7135fc7d473fd974$export$4feb769f8ddf26c5));
|
|
621
647
|
let collection = state.collection;
|
|
@@ -679,7 +705,19 @@ const $1910c06f0ca9905e$export$76ccd210b9029917 = /*#__PURE__*/ (0, $dbSRa$creat
|
|
|
679
705
|
renderDropIndicator: (0, $612b8eb6cb90e02d$export$971707d8a129a1f7)(dragAndDropHooks, dropState)
|
|
680
706
|
}), emptyState);
|
|
681
707
|
});
|
|
682
|
-
|
|
708
|
+
class $1910c06f0ca9905e$var$TableRowNode extends (0, $dbSRa$CollectionNode) {
|
|
709
|
+
filter(collection, newCollection, filterFn) {
|
|
710
|
+
let cells = collection.getChildren(this.key);
|
|
711
|
+
for (let cell of cells)if (filterFn(cell.textValue, cell)) {
|
|
712
|
+
let clone = this.clone();
|
|
713
|
+
newCollection.addDescendants(clone, collection);
|
|
714
|
+
return clone;
|
|
715
|
+
}
|
|
716
|
+
return null;
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
$1910c06f0ca9905e$var$TableRowNode.type = 'item';
|
|
720
|
+
const $1910c06f0ca9905e$export$b59bdbef9ce70de2 = /*#__PURE__*/ (0, $dbSRa$createBranchComponent)($1910c06f0ca9905e$var$TableRowNode, (props, forwardedRef, item)=>{
|
|
683
721
|
let ref = (0, $dbSRa$useObjectRef)(forwardedRef);
|
|
684
722
|
let state = (0, $dbSRa$useContext)($1910c06f0ca9905e$export$38de1cb0526c21fb);
|
|
685
723
|
let { dragAndDropHooks: dragAndDropHooks, dragState: dragState, dropState: dropState } = (0, $dbSRa$useContext)((0, $612b8eb6cb90e02d$export$d188a835a7bc5783));
|
|
@@ -820,7 +858,10 @@ const $1910c06f0ca9905e$export$b59bdbef9ce70de2 = /*#__PURE__*/ (0, $dbSRa$creat
|
|
|
820
858
|
idScope: props.id
|
|
821
859
|
}, props.children);
|
|
822
860
|
});
|
|
823
|
-
|
|
861
|
+
class $1910c06f0ca9905e$var$TableCellNode extends (0, $dbSRa$CollectionNode) {
|
|
862
|
+
}
|
|
863
|
+
$1910c06f0ca9905e$var$TableCellNode.type = 'cell';
|
|
864
|
+
const $1910c06f0ca9905e$export$f6f0c3fe4ec306ea = /*#__PURE__*/ (0, $dbSRa$createLeafComponent)($1910c06f0ca9905e$var$TableCellNode, (props, forwardedRef, cell)=>{
|
|
824
865
|
let ref = (0, $dbSRa$useObjectRef)(forwardedRef);
|
|
825
866
|
let state = (0, $dbSRa$useContext)($1910c06f0ca9905e$export$38de1cb0526c21fb);
|
|
826
867
|
let { dragState: dragState } = (0, $dbSRa$useContext)((0, $612b8eb6cb90e02d$export$d188a835a7bc5783));
|
|
@@ -944,7 +985,7 @@ function $1910c06f0ca9905e$var$RootDropIndicator() {
|
|
|
944
985
|
ref: ref
|
|
945
986
|
})));
|
|
946
987
|
}
|
|
947
|
-
const $1910c06f0ca9905e$export$8f5bea0338ed243c = (0, $dbSRa$createLeafComponent)(
|
|
988
|
+
const $1910c06f0ca9905e$export$8f5bea0338ed243c = (0, $dbSRa$createLeafComponent)((0, $dbSRa$LoaderNode), function TableLoadingIndicator(props, ref, item) {
|
|
948
989
|
let state = (0, $dbSRa$useContext)($1910c06f0ca9905e$export$38de1cb0526c21fb);
|
|
949
990
|
let { isVirtualized: isVirtualized } = (0, $dbSRa$useContext)((0, $7135fc7d473fd974$export$4feb769f8ddf26c5));
|
|
950
991
|
let { isLoading: isLoading, onLoadMore: onLoadMore, scrollOffset: scrollOffset, ...otherProps } = props;
|