@react-spectrum/table 3.10.1-nightly.4028 → 3.10.1-nightly.4038
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 +282 -105
- package/dist/main.css +1 -1
- package/dist/main.js +279 -102
- package/dist/main.js.map +1 -1
- package/dist/module.js +282 -105
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +28 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +32 -31
- package/src/InsertionIndicator.tsx +1 -1
- package/src/Resizer.tsx +1 -1
- package/src/RootDropIndicator.tsx +1 -1
- package/src/TableView.tsx +12 -1418
- package/src/TableViewBase.tsx +1493 -0
- package/src/TableViewWrapper.tsx +101 -0
- package/src/TreeGridTableView.tsx +47 -0
- package/src/index.ts +2 -2
- package/src/table.css +7 -0
package/dist/types.d.ts
CHANGED
|
@@ -36,9 +36,36 @@ export interface SpectrumTableProps<T> extends TableProps<T>, SpectrumSelectionP
|
|
|
36
36
|
onResizeEnd?: (widths: Map<Key, ColumnSize>) => void;
|
|
37
37
|
/**
|
|
38
38
|
* The drag and drop hooks returned by `useDragAndDrop` used to enable drag and drop behavior for the TableView.
|
|
39
|
-
* @version
|
|
39
|
+
* @version beta
|
|
40
40
|
*/
|
|
41
41
|
dragAndDropHooks?: DragAndDropHooks['dragAndDropHooks'];
|
|
42
|
+
/**
|
|
43
|
+
* Whether the TableView should support expandable rows. Requires the feature flag to be enabled first, see https://react-spectrum.adobe.com/react-spectrum/TableView.html#expandable-rows.
|
|
44
|
+
* @version alpha
|
|
45
|
+
* @private
|
|
46
|
+
*/
|
|
47
|
+
UNSTABLE_allowsExpandableRows?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* The currently expanded keys in the collection (controlled). Requires the feature flag to be
|
|
50
|
+
* enabled along with UNSTABLE_allowsExpandableRows, see https://react-spectrum.adobe.com/react-spectrum/TableView.html#expandable-rows.
|
|
51
|
+
* @version alpha
|
|
52
|
+
* @private
|
|
53
|
+
*/
|
|
54
|
+
UNSTABLE_expandedKeys?: 'all' | Iterable<Key>;
|
|
55
|
+
/**
|
|
56
|
+
* The initial expanded keys in the collection (uncontrolled). Requires the feature flag to be
|
|
57
|
+
* enabled along with UNSTABLE_allowsExpandableRows, see https://react-spectrum.adobe.com/react-spectrum/TableView.html#expandable-rows.
|
|
58
|
+
* @version alpha
|
|
59
|
+
* @private
|
|
60
|
+
*/
|
|
61
|
+
UNSTABLE_defaultExpandedKeys?: 'all' | Iterable<Key>;
|
|
62
|
+
/**
|
|
63
|
+
* Handler that is called when items are expanded or collapsed. Requires the feature flag to be
|
|
64
|
+
* enabled along with UNSTABLE_allowsExpandableRows, see https://react-spectrum.adobe.com/react-spectrum/TableView.html#expandable-rows.
|
|
65
|
+
* @version alpha
|
|
66
|
+
* @private
|
|
67
|
+
*/
|
|
68
|
+
UNSTABLE_onExpandedChange?: (keys: Set<Key>) => any;
|
|
42
69
|
}
|
|
43
70
|
/**
|
|
44
71
|
* Tables are containers for displaying information. They allow users to quickly scan, sort, compare, and take action on large amounts of data.
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;
|
|
1
|
+
{"mappings":";;;;AQoBA,oCAAoC,CAAC,CAAE,SAAQ,WAAW,CAAC,CAAC,EAAE,sBAAsB,EAAE,QAAQ,EAAE,iBAAiB,EAAE,UAAU;IAC3H;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;IAC7C;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IACnC,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,MAAM,IAAI,OAAO,CAAC;IACrC,sEAAsE;IACtE,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAC9B;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IACvD;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IAClD;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IACrD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,kBAAkB,CAAC,CAAC;IACxD;;;;OAIG;IACH,6BAA6B,CAAC,EAAE,OAAO,CAAC;IACxC;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;IAC9C;;;;;OAKG;IACH,4BAA4B,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;IACrD;;;;;OAKG;IACH,yBAAyB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC,GAAG,CAAC,KAAK,GAAG,CAAA;CACpD;AAWD;;GAEG;AACH,OAAA,MAAM;UAAoG,OAAO,cAAc,CAAC;MAAM,YAAY,CAAC;AC/EnJ,OAAA,MAAM,8CAAiE,WAAW,CAAC;AAGnF,OAAO,EACL,WAAW,EACX,SAAS,EACT,OAAO,EACP,GAAG,EACH,IAAI,EACL,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EAAC,mBAAmB,EAAE,gBAAgB,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAC,MAAM,oBAAoB,CAAC","sources":["packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/InsertionIndicator.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/Nubbin.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/Resizer.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/RootDropIndicator.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/DragPreview.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/TableViewBase.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/TableView.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/TreeGridTableView.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/TableViewWrapper.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/index.ts","packages/@react-spectrum/table/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {TableView} from './TableViewWrapper';\nimport {Column} from '@react-stately/table';\nimport {SpectrumColumnProps} from '@react-types/table';\n\n// Override TS for Column to support spectrum specific props.\nconst SpectrumColumn = Column as <T>(props: SpectrumColumnProps<T>) => JSX.Element;\nexport {SpectrumColumn as Column};\n\nexport {\n TableHeader,\n TableBody,\n Section,\n Row,\n Cell\n} from '@react-stately/table';\n\nexport type {SpectrumColumnProps, TableHeaderProps, TableBodyProps, RowProps, CellProps} from '@react-types/table';\nexport type {SpectrumTableProps} from './TableViewWrapper';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/table",
|
|
3
|
-
"version": "3.10.1-nightly.
|
|
3
|
+
"version": "3.10.1-nightly.4038+d4613f219",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -36,38 +36,39 @@
|
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@react-aria/button": "3.0.0-nightly.
|
|
40
|
-
"@react-aria/focus": "3.0.0-nightly.
|
|
41
|
-
"@react-aria/grid": "3.8.1-nightly.
|
|
42
|
-
"@react-aria/i18n": "3.0.0-nightly.
|
|
43
|
-
"@react-aria/interactions": "3.0.0-nightly.
|
|
44
|
-
"@react-aria/table": "3.10.1-nightly.
|
|
45
|
-
"@react-aria/utils": "3.0.0-nightly.
|
|
46
|
-
"@react-aria/virtualizer": "3.9.1-nightly.
|
|
47
|
-
"@react-aria/visually-hidden": "3.0.0-nightly.
|
|
48
|
-
"@react-spectrum/button": "3.0.0-nightly.
|
|
49
|
-
"@react-spectrum/checkbox": "3.0.0-nightly.
|
|
50
|
-
"@react-spectrum/dnd": "3.3.1-nightly.
|
|
51
|
-
"@react-spectrum/layout": "3.5.4-nightly.
|
|
52
|
-
"@react-spectrum/menu": "3.12.1-nightly.
|
|
53
|
-
"@react-spectrum/progress": "3.0.0-nightly.
|
|
54
|
-
"@react-spectrum/tooltip": "3.0.0-nightly.
|
|
55
|
-
"@react-spectrum/utils": "3.0.0-nightly.
|
|
56
|
-
"@react-stately/collections": "3.0.0-nightly.
|
|
57
|
-
"@react-stately/
|
|
58
|
-
"@react-stately/
|
|
59
|
-
"@react-stately/
|
|
60
|
-
"@react-stately/
|
|
61
|
-
"@react-
|
|
62
|
-
"@react-types/
|
|
63
|
-
"@react-types/
|
|
64
|
-
"@
|
|
39
|
+
"@react-aria/button": "3.0.0-nightly.2333+d4613f219",
|
|
40
|
+
"@react-aria/focus": "3.0.0-nightly.2333+d4613f219",
|
|
41
|
+
"@react-aria/grid": "3.8.1-nightly.4038+d4613f219",
|
|
42
|
+
"@react-aria/i18n": "3.0.0-nightly.2333+d4613f219",
|
|
43
|
+
"@react-aria/interactions": "3.0.0-nightly.2333+d4613f219",
|
|
44
|
+
"@react-aria/table": "3.10.1-nightly.4038+d4613f219",
|
|
45
|
+
"@react-aria/utils": "3.0.0-nightly.2333+d4613f219",
|
|
46
|
+
"@react-aria/virtualizer": "3.9.1-nightly.4038+d4613f219",
|
|
47
|
+
"@react-aria/visually-hidden": "3.0.0-nightly.2333+d4613f219",
|
|
48
|
+
"@react-spectrum/button": "3.0.0-nightly.2333+d4613f219",
|
|
49
|
+
"@react-spectrum/checkbox": "3.0.0-nightly.2333+d4613f219",
|
|
50
|
+
"@react-spectrum/dnd": "3.3.1-nightly.4038+d4613f219",
|
|
51
|
+
"@react-spectrum/layout": "3.5.4-nightly.4038+d4613f219",
|
|
52
|
+
"@react-spectrum/menu": "3.12.1-nightly.4038+d4613f219",
|
|
53
|
+
"@react-spectrum/progress": "3.0.0-nightly.2333+d4613f219",
|
|
54
|
+
"@react-spectrum/tooltip": "3.0.0-nightly.2333+d4613f219",
|
|
55
|
+
"@react-spectrum/utils": "3.0.0-nightly.2333+d4613f219",
|
|
56
|
+
"@react-stately/collections": "3.0.0-nightly.2333+d4613f219",
|
|
57
|
+
"@react-stately/flags": "3.0.0-nightly.4038+d4613f219",
|
|
58
|
+
"@react-stately/grid": "3.7.1-nightly.4038+d4613f219",
|
|
59
|
+
"@react-stately/layout": "3.12.3-nightly.4038+d4613f219",
|
|
60
|
+
"@react-stately/table": "3.10.1-nightly.4038+d4613f219",
|
|
61
|
+
"@react-stately/virtualizer": "3.6.1-nightly.4038+d4613f219",
|
|
62
|
+
"@react-types/grid": "3.1.9-nightly.4038+d4613f219",
|
|
63
|
+
"@react-types/shared": "3.0.0-nightly.2333+d4613f219",
|
|
64
|
+
"@react-types/table": "3.7.1-nightly.4038+d4613f219",
|
|
65
|
+
"@spectrum-icons/ui": "3.0.0-nightly.2333+d4613f219",
|
|
65
66
|
"@swc/helpers": "^0.5.0"
|
|
66
67
|
},
|
|
67
68
|
"devDependencies": {
|
|
68
|
-
"@adobe/spectrum-css-temp": "3.0.0-nightly.
|
|
69
|
-
"@react-aria/dnd": "3.3.1-nightly.
|
|
70
|
-
"@react-stately/dnd": "3.2.3-nightly.
|
|
69
|
+
"@adobe/spectrum-css-temp": "3.0.0-nightly.2333+d4613f219",
|
|
70
|
+
"@react-aria/dnd": "3.3.1-nightly.4038+d4613f219",
|
|
71
|
+
"@react-stately/dnd": "3.2.3-nightly.4038+d4613f219"
|
|
71
72
|
},
|
|
72
73
|
"peerDependencies": {
|
|
73
74
|
"@react-spectrum/provider": "^3.0.0",
|
|
@@ -77,5 +78,5 @@
|
|
|
77
78
|
"publishConfig": {
|
|
78
79
|
"access": "public"
|
|
79
80
|
},
|
|
80
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "d4613f219d7dc92ee9f2438572a9e92b1534b47c"
|
|
81
82
|
}
|
|
@@ -14,7 +14,7 @@ import {classNames} from '@react-spectrum/utils';
|
|
|
14
14
|
import {FocusableElement, ItemDropTarget} from '@react-types/shared';
|
|
15
15
|
import React, {DOMAttributes, HTMLAttributes, useRef} from 'react';
|
|
16
16
|
import styles from './table.css';
|
|
17
|
-
import {useTableContext} from './
|
|
17
|
+
import {useTableContext} from './TableViewBase';
|
|
18
18
|
import {useVisuallyHidden} from '@react-aria/visually-hidden';
|
|
19
19
|
|
|
20
20
|
interface InsertionIndicatorProps {
|
package/src/Resizer.tsx
CHANGED
|
@@ -15,7 +15,7 @@ import ReactDOM from 'react-dom';
|
|
|
15
15
|
import styles from '@adobe/spectrum-css-temp/components/table/vars.css';
|
|
16
16
|
import {useLocale, useLocalizedStringFormatter} from '@react-aria/i18n';
|
|
17
17
|
import {useTableColumnResize} from '@react-aria/table';
|
|
18
|
-
import {useTableContext, useVirtualizerContext} from './
|
|
18
|
+
import {useTableContext, useVirtualizerContext} from './TableViewBase';
|
|
19
19
|
// @ts-ignore
|
|
20
20
|
import wCursor from 'bundle-text:./cursors/Cur_MoveToLeft_9_9.svg';
|
|
21
21
|
|