@fluentui/react-table 9.0.0-alpha.3 → 9.0.0-alpha.5
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/CHANGELOG.json +113 -3
- package/CHANGELOG.md +34 -4
- package/dist/index.d.ts +88 -59
- package/lib/Table.js.map +1 -1
- package/lib/TableBody.js.map +1 -1
- package/lib/TableCell.js.map +1 -1
- package/lib/TableCellActions.js.map +1 -1
- package/lib/TableCellLayout.js.map +1 -1
- package/lib/TableCellPrimaryLayout.js.map +1 -1
- package/lib/TableHeader.js.map +1 -1
- package/lib/TableHeaderCell.js.map +1 -1
- package/lib/TableRow.js.map +1 -1
- package/lib/TableSelectionCell.js.map +1 -1
- package/lib/components/Table/Table.js.map +1 -1
- package/lib/components/Table/Table.types.js.map +1 -1
- package/lib/components/Table/index.js.map +1 -1
- package/lib/components/Table/renderTable.js.map +1 -1
- package/lib/components/Table/useTable.js.map +1 -1
- package/lib/components/Table/useTableContextValues.js.map +1 -1
- package/lib/components/Table/useTableStyles.js +26 -5
- package/lib/components/Table/useTableStyles.js.map +1 -1
- package/lib/components/TableBody/TableBody.js.map +1 -1
- package/lib/components/TableBody/TableBody.types.js.map +1 -1
- package/lib/components/TableBody/index.js.map +1 -1
- package/lib/components/TableBody/renderTableBody.js.map +1 -1
- package/lib/components/TableBody/useTableBody.js +2 -1
- package/lib/components/TableBody/useTableBody.js.map +1 -1
- package/lib/components/TableBody/useTableBodyStyles.js +14 -3
- package/lib/components/TableBody/useTableBodyStyles.js.map +1 -1
- package/lib/components/TableCell/TableCell.js.map +1 -1
- package/lib/components/TableCell/TableCell.types.js.map +1 -1
- package/lib/components/TableCell/index.js.map +1 -1
- package/lib/components/TableCell/renderTableCell.js.map +1 -1
- package/lib/components/TableCell/useTableCell.js +2 -1
- package/lib/components/TableCell/useTableCell.js.map +1 -1
- package/lib/components/TableCell/useTableCellStyles.js +29 -4
- package/lib/components/TableCell/useTableCellStyles.js.map +1 -1
- package/lib/components/TableCellActions/TableCellActions.js.map +1 -1
- package/lib/components/TableCellActions/TableCellActions.types.js.map +1 -1
- package/lib/components/TableCellActions/index.js.map +1 -1
- package/lib/components/TableCellActions/renderTableCellActions.js.map +1 -1
- package/lib/components/TableCellActions/useTableCellActions.js.map +1 -1
- package/lib/components/TableCellActions/useTableCellActionsStyles.js +2 -2
- package/lib/components/TableCellActions/useTableCellActionsStyles.js.map +1 -1
- package/lib/components/TableCellLayout/TableCellLayout.js +2 -1
- package/lib/components/TableCellLayout/TableCellLayout.js.map +1 -1
- package/lib/components/TableCellLayout/TableCellLayout.types.js.map +1 -1
- package/lib/components/TableCellLayout/index.js.map +1 -1
- package/lib/components/TableCellLayout/renderTableCellLayout.js +6 -3
- package/lib/components/TableCellLayout/renderTableCellLayout.js.map +1 -1
- package/lib/components/TableCellLayout/useTableCellLayout.js +11 -1
- package/lib/components/TableCellLayout/useTableCellLayout.js.map +1 -1
- package/lib/components/TableCellLayout/useTableCellLayoutContextValues.js +13 -0
- package/lib/components/TableCellLayout/useTableCellLayoutContextValues.js.map +1 -0
- package/lib/components/TableCellLayout/useTableCellLayoutStyles.js.map +1 -1
- package/lib/components/TableHeader/TableHeader.js.map +1 -1
- package/lib/components/TableHeader/TableHeader.types.js.map +1 -1
- package/lib/components/TableHeader/index.js.map +1 -1
- package/lib/components/TableHeader/renderTableHeader.js.map +1 -1
- package/lib/components/TableHeader/useTableHeader.js +2 -1
- package/lib/components/TableHeader/useTableHeader.js.map +1 -1
- package/lib/components/TableHeader/useTableHeaderStyles.js +20 -3
- package/lib/components/TableHeader/useTableHeaderStyles.js.map +1 -1
- package/lib/components/TableHeaderCell/TableHeaderCell.js.map +1 -1
- package/lib/components/TableHeaderCell/TableHeaderCell.types.js.map +1 -1
- package/lib/components/TableHeaderCell/index.js.map +1 -1
- package/lib/components/TableHeaderCell/renderTableHeaderCell.js.map +1 -1
- package/lib/components/TableHeaderCell/useTableHeaderCell.js +2 -1
- package/lib/components/TableHeaderCell/useTableHeaderCell.js.map +1 -1
- package/lib/components/TableHeaderCell/useTableHeaderCellStyles.js +28 -4
- package/lib/components/TableHeaderCell/useTableHeaderCellStyles.js.map +1 -1
- package/lib/components/TableRow/TableRow.js.map +1 -1
- package/lib/components/TableRow/TableRow.types.js.map +1 -1
- package/lib/components/TableRow/index.js.map +1 -1
- package/lib/components/TableRow/renderTableRow.js.map +1 -1
- package/lib/components/TableRow/useTableRow.js +2 -1
- package/lib/components/TableRow/useTableRow.js.map +1 -1
- package/lib/components/TableRow/useTableRowStyles.js +44 -7
- package/lib/components/TableRow/useTableRowStyles.js.map +1 -1
- package/lib/components/TableSelectionCell/TableSelectionCell.js.map +1 -1
- package/lib/components/TableSelectionCell/TableSelectionCell.types.js.map +1 -1
- package/lib/components/TableSelectionCell/index.js.map +1 -1
- package/lib/components/TableSelectionCell/renderTableSelectionCell.js.map +1 -1
- package/lib/components/TableSelectionCell/useTableSelectionCell.js +6 -1
- package/lib/components/TableSelectionCell/useTableSelectionCell.js.map +1 -1
- package/lib/components/TableSelectionCell/useTableSelectionCellStyles.js +31 -5
- package/lib/components/TableSelectionCell/useTableSelectionCellStyles.js.map +1 -1
- package/lib/contexts/tableContext.js.map +1 -1
- package/lib/hooks/index.js +2 -0
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/selectionManager.js.map +1 -1
- package/lib/hooks/types.js.map +1 -1
- package/lib/hooks/useSelection.js +40 -13
- package/lib/hooks/useSelection.js.map +1 -1
- package/lib/hooks/useSort.js +38 -16
- package/lib/hooks/useSort.js.map +1 -1
- package/lib/hooks/useTable.js +22 -77
- package/lib/hooks/useTable.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/navigationModes/cell.js.map +1 -1
- package/lib/navigationModes/composite.js.map +1 -1
- package/lib/navigationModes/index.js.map +1 -1
- package/lib/navigationModes/useNavigationMode.js.map +1 -1
- package/lib-commonjs/Table.js.map +1 -1
- package/lib-commonjs/TableBody.js.map +1 -1
- package/lib-commonjs/TableCell.js.map +1 -1
- package/lib-commonjs/TableCellActions.js.map +1 -1
- package/lib-commonjs/TableCellLayout.js.map +1 -1
- package/lib-commonjs/TableCellPrimaryLayout.js.map +1 -1
- package/lib-commonjs/TableHeader.js.map +1 -1
- package/lib-commonjs/TableHeaderCell.js.map +1 -1
- package/lib-commonjs/TableRow.js.map +1 -1
- package/lib-commonjs/TableSelectionCell.js.map +1 -1
- package/lib-commonjs/components/Table/Table.js.map +1 -1
- package/lib-commonjs/components/Table/index.js.map +1 -1
- package/lib-commonjs/components/Table/renderTable.js.map +1 -1
- package/lib-commonjs/components/Table/useTable.js.map +1 -1
- package/lib-commonjs/components/Table/useTableContextValues.js.map +1 -1
- package/lib-commonjs/components/Table/useTableStyles.js +26 -5
- package/lib-commonjs/components/Table/useTableStyles.js.map +1 -1
- package/lib-commonjs/components/TableBody/TableBody.js.map +1 -1
- package/lib-commonjs/components/TableBody/index.js.map +1 -1
- package/lib-commonjs/components/TableBody/renderTableBody.js.map +1 -1
- package/lib-commonjs/components/TableBody/useTableBody.js +2 -1
- package/lib-commonjs/components/TableBody/useTableBody.js.map +1 -1
- package/lib-commonjs/components/TableBody/useTableBodyStyles.js +14 -3
- package/lib-commonjs/components/TableBody/useTableBodyStyles.js.map +1 -1
- package/lib-commonjs/components/TableCell/TableCell.js.map +1 -1
- package/lib-commonjs/components/TableCell/index.js.map +1 -1
- package/lib-commonjs/components/TableCell/renderTableCell.js.map +1 -1
- package/lib-commonjs/components/TableCell/useTableCell.js +2 -1
- package/lib-commonjs/components/TableCell/useTableCell.js.map +1 -1
- package/lib-commonjs/components/TableCell/useTableCellStyles.js +29 -4
- package/lib-commonjs/components/TableCell/useTableCellStyles.js.map +1 -1
- package/lib-commonjs/components/TableCellActions/TableCellActions.js.map +1 -1
- package/lib-commonjs/components/TableCellActions/index.js.map +1 -1
- package/lib-commonjs/components/TableCellActions/renderTableCellActions.js.map +1 -1
- package/lib-commonjs/components/TableCellActions/useTableCellActions.js.map +1 -1
- package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.js +2 -2
- package/lib-commonjs/components/TableCellActions/useTableCellActionsStyles.js.map +1 -1
- package/lib-commonjs/components/TableCellLayout/TableCellLayout.js +3 -1
- package/lib-commonjs/components/TableCellLayout/TableCellLayout.js.map +1 -1
- package/lib-commonjs/components/TableCellLayout/index.js.map +1 -1
- package/lib-commonjs/components/TableCellLayout/renderTableCellLayout.js +7 -3
- package/lib-commonjs/components/TableCellLayout/renderTableCellLayout.js.map +1 -1
- package/lib-commonjs/components/TableCellLayout/useTableCellLayout.js +13 -2
- package/lib-commonjs/components/TableCellLayout/useTableCellLayout.js.map +1 -1
- package/lib-commonjs/components/TableCellLayout/useTableCellLayoutContextValues.js +23 -0
- package/lib-commonjs/components/TableCellLayout/useTableCellLayoutContextValues.js.map +1 -0
- package/lib-commonjs/components/TableCellLayout/useTableCellLayoutStyles.js.map +1 -1
- package/lib-commonjs/components/TableHeader/TableHeader.js.map +1 -1
- package/lib-commonjs/components/TableHeader/index.js.map +1 -1
- package/lib-commonjs/components/TableHeader/renderTableHeader.js.map +1 -1
- package/lib-commonjs/components/TableHeader/useTableHeader.js +2 -1
- package/lib-commonjs/components/TableHeader/useTableHeader.js.map +1 -1
- package/lib-commonjs/components/TableHeader/useTableHeaderStyles.js +20 -3
- package/lib-commonjs/components/TableHeader/useTableHeaderStyles.js.map +1 -1
- package/lib-commonjs/components/TableHeaderCell/TableHeaderCell.js.map +1 -1
- package/lib-commonjs/components/TableHeaderCell/index.js.map +1 -1
- package/lib-commonjs/components/TableHeaderCell/renderTableHeaderCell.js.map +1 -1
- package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.js +2 -1
- package/lib-commonjs/components/TableHeaderCell/useTableHeaderCell.js.map +1 -1
- package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.js +28 -4
- package/lib-commonjs/components/TableHeaderCell/useTableHeaderCellStyles.js.map +1 -1
- package/lib-commonjs/components/TableRow/TableRow.js.map +1 -1
- package/lib-commonjs/components/TableRow/index.js.map +1 -1
- package/lib-commonjs/components/TableRow/renderTableRow.js.map +1 -1
- package/lib-commonjs/components/TableRow/useTableRow.js +2 -1
- package/lib-commonjs/components/TableRow/useTableRow.js.map +1 -1
- package/lib-commonjs/components/TableRow/useTableRowStyles.js +44 -7
- package/lib-commonjs/components/TableRow/useTableRowStyles.js.map +1 -1
- package/lib-commonjs/components/TableSelectionCell/TableSelectionCell.js.map +1 -1
- package/lib-commonjs/components/TableSelectionCell/index.js.map +1 -1
- package/lib-commonjs/components/TableSelectionCell/renderTableSelectionCell.js.map +1 -1
- package/lib-commonjs/components/TableSelectionCell/useTableSelectionCell.js +7 -1
- package/lib-commonjs/components/TableSelectionCell/useTableSelectionCell.js.map +1 -1
- package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.js +31 -5
- package/lib-commonjs/components/TableSelectionCell/useTableSelectionCellStyles.js.map +1 -1
- package/lib-commonjs/contexts/tableContext.js.map +1 -1
- package/lib-commonjs/hooks/index.js +4 -0
- package/lib-commonjs/hooks/index.js.map +1 -1
- package/lib-commonjs/hooks/selectionManager.js.map +1 -1
- package/lib-commonjs/hooks/useSelection.js +45 -15
- package/lib-commonjs/hooks/useSelection.js.map +1 -1
- package/lib-commonjs/hooks/useSort.js +43 -18
- package/lib-commonjs/hooks/useSort.js.map +1 -1
- package/lib-commonjs/hooks/useTable.js +19 -76
- package/lib-commonjs/hooks/useTable.js.map +1 -1
- package/lib-commonjs/index.js +14 -2
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/navigationModes/cell.js.map +1 -1
- package/lib-commonjs/navigationModes/composite.js.map +1 -1
- package/lib-commonjs/navigationModes/index.js.map +1 -1
- package/lib-commonjs/navigationModes/useNavigationMode.js.map +1 -1
- package/package.json +10 -10
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,117 @@
|
|
|
2
2
|
"name": "@fluentui/react-table",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Thu, 13 Oct 2022 10:59:38 GMT",
|
|
6
|
+
"tag": "@fluentui/react-table_v9.0.0-alpha.5",
|
|
7
|
+
"version": "9.0.0-alpha.5",
|
|
8
|
+
"comments": {
|
|
9
|
+
"prerelease": [
|
|
10
|
+
{
|
|
11
|
+
"author": "olfedias@microsoft.com",
|
|
12
|
+
"package": "@fluentui/react-table",
|
|
13
|
+
"commit": "1a527d440e0497ef8046b3ce240492241e7a04ac",
|
|
14
|
+
"comment": "chore: Update Griffel to latest version"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "lingfangao@hotmail.com",
|
|
18
|
+
"package": "@fluentui/react-table",
|
|
19
|
+
"commit": "33559052b672f787b021bd2fbc9826e88ce2a2de",
|
|
20
|
+
"comment": "BREAKING: refactor `useTable` to be composable"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@fluentui/react-table",
|
|
25
|
+
"comment": "Bump @fluentui/react-aria to v9.2.2",
|
|
26
|
+
"commit": "cd05c21e62ff37812d614330eb70f97fd978c97a"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@fluentui/react-table",
|
|
31
|
+
"comment": "Bump @fluentui/react-avatar to v9.2.1",
|
|
32
|
+
"commit": "cd05c21e62ff37812d614330eb70f97fd978c97a"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "beachball",
|
|
36
|
+
"package": "@fluentui/react-table",
|
|
37
|
+
"comment": "Bump @fluentui/react-checkbox to v9.0.8",
|
|
38
|
+
"commit": "cd05c21e62ff37812d614330eb70f97fd978c97a"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"author": "beachball",
|
|
42
|
+
"package": "@fluentui/react-table",
|
|
43
|
+
"comment": "Bump @fluentui/react-tabster to v9.1.3",
|
|
44
|
+
"commit": "cd05c21e62ff37812d614330eb70f97fd978c97a"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"author": "beachball",
|
|
48
|
+
"package": "@fluentui/react-table",
|
|
49
|
+
"comment": "Bump @fluentui/react-utilities to v9.1.1",
|
|
50
|
+
"commit": "cd05c21e62ff37812d614330eb70f97fd978c97a"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"author": "beachball",
|
|
54
|
+
"package": "@fluentui/react-table",
|
|
55
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.15",
|
|
56
|
+
"commit": "cd05c21e62ff37812d614330eb70f97fd978c97a"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"date": "Mon, 03 Oct 2022 22:24:41 GMT",
|
|
63
|
+
"tag": "@fluentui/react-table_v9.0.0-alpha.4",
|
|
64
|
+
"version": "9.0.0-alpha.4",
|
|
65
|
+
"comments": {
|
|
66
|
+
"prerelease": [
|
|
67
|
+
{
|
|
68
|
+
"author": "lingfangao@hotmail.com",
|
|
69
|
+
"package": "@fluentui/react-table",
|
|
70
|
+
"commit": "0bece748c51ef324f23ddce3e83f0f796bfced5f",
|
|
71
|
+
"comment": "feat: `noNativeElements` renders a flex layout"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"author": "lingfangao@hotmail.com",
|
|
75
|
+
"package": "@fluentui/react-table",
|
|
76
|
+
"commit": "9357de4af136dfb5e5ed37b68318024235aa4ba3",
|
|
77
|
+
"comment": "feat: Use AvatarContext to override avatar size"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"author": "beachball",
|
|
81
|
+
"package": "@fluentui/react-table",
|
|
82
|
+
"comment": "Bump @fluentui/react-aria to v9.2.1",
|
|
83
|
+
"commit": "67a8c98b8d53cd2fa14d668cf639b867b68ad18a"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"author": "beachball",
|
|
87
|
+
"package": "@fluentui/react-table",
|
|
88
|
+
"comment": "Bump @fluentui/react-avatar to v9.2.0",
|
|
89
|
+
"commit": "67a8c98b8d53cd2fa14d668cf639b867b68ad18a"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"author": "beachball",
|
|
93
|
+
"package": "@fluentui/react-table",
|
|
94
|
+
"comment": "Bump @fluentui/react-checkbox to v9.0.7",
|
|
95
|
+
"commit": "67a8c98b8d53cd2fa14d668cf639b867b68ad18a"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"author": "beachball",
|
|
99
|
+
"package": "@fluentui/react-table",
|
|
100
|
+
"comment": "Bump @fluentui/react-tabster to v9.1.2",
|
|
101
|
+
"commit": "67a8c98b8d53cd2fa14d668cf639b867b68ad18a"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"none": [
|
|
105
|
+
{
|
|
106
|
+
"author": "lingfangao@hotmail.com",
|
|
107
|
+
"package": "@fluentui/react-table",
|
|
108
|
+
"commit": "cd88ecf2e2407c308c8364b9167440b9bac171f3",
|
|
109
|
+
"comment": "chore: Migrate react-table to use new build"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"date": "Tue, 20 Sep 2022 20:55:42 GMT",
|
|
6
116
|
"tag": "@fluentui/react-table_v9.0.0-alpha.3",
|
|
7
117
|
"version": "9.0.0-alpha.3",
|
|
8
118
|
"comments": {
|
|
@@ -23,13 +133,13 @@
|
|
|
23
133
|
"author": "beachball",
|
|
24
134
|
"package": "@fluentui/react-table",
|
|
25
135
|
"comment": "Bump @fluentui/react-checkbox to v9.0.6",
|
|
26
|
-
"commit": "
|
|
136
|
+
"commit": "4ceba844c804a2f49b0465389100e7a3dabf116e"
|
|
27
137
|
},
|
|
28
138
|
{
|
|
29
139
|
"author": "beachball",
|
|
30
140
|
"package": "@fluentui/react-table",
|
|
31
141
|
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.14",
|
|
32
|
-
"commit": "
|
|
142
|
+
"commit": "4ceba844c804a2f49b0465389100e7a3dabf116e"
|
|
33
143
|
}
|
|
34
144
|
]
|
|
35
145
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,20 +1,50 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-table
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 13 Oct 2022 10:59:38 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.0.0-alpha.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-table_v9.0.0-alpha.5)
|
|
8
|
+
|
|
9
|
+
Thu, 13 Oct 2022 10:59:38 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-table_v9.0.0-alpha.4..@fluentui/react-table_v9.0.0-alpha.5)
|
|
11
|
+
|
|
12
|
+
### Changes
|
|
13
|
+
|
|
14
|
+
- chore: Update Griffel to latest version ([PR #25075](https://github.com/microsoft/fluentui/pull/25075) by olfedias@microsoft.com)
|
|
15
|
+
- BREAKING: refactor `useTable` to be composable ([PR #24947](https://github.com/microsoft/fluentui/pull/24947) by lingfangao@hotmail.com)
|
|
16
|
+
- Bump @fluentui/react-aria to v9.2.2 ([PR #25181](https://github.com/microsoft/fluentui/pull/25181) by beachball)
|
|
17
|
+
- Bump @fluentui/react-avatar to v9.2.1 ([PR #25181](https://github.com/microsoft/fluentui/pull/25181) by beachball)
|
|
18
|
+
- Bump @fluentui/react-checkbox to v9.0.8 ([PR #25181](https://github.com/microsoft/fluentui/pull/25181) by beachball)
|
|
19
|
+
- Bump @fluentui/react-tabster to v9.1.3 ([PR #25181](https://github.com/microsoft/fluentui/pull/25181) by beachball)
|
|
20
|
+
- Bump @fluentui/react-utilities to v9.1.1 ([PR #25181](https://github.com/microsoft/fluentui/pull/25181) by beachball)
|
|
21
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.15 ([PR #25181](https://github.com/microsoft/fluentui/pull/25181) by beachball)
|
|
22
|
+
|
|
23
|
+
## [9.0.0-alpha.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-table_v9.0.0-alpha.4)
|
|
24
|
+
|
|
25
|
+
Mon, 03 Oct 2022 22:24:41 GMT
|
|
26
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-table_v9.0.0-alpha.3..@fluentui/react-table_v9.0.0-alpha.4)
|
|
27
|
+
|
|
28
|
+
### Changes
|
|
29
|
+
|
|
30
|
+
- feat: `noNativeElements` renders a flex layout ([PR #24913](https://github.com/microsoft/fluentui/pull/24913) by lingfangao@hotmail.com)
|
|
31
|
+
- feat: Use AvatarContext to override avatar size ([PR #24807](https://github.com/microsoft/fluentui/pull/24807) by lingfangao@hotmail.com)
|
|
32
|
+
- Bump @fluentui/react-aria to v9.2.1 ([PR #25055](https://github.com/microsoft/fluentui/pull/25055) by beachball)
|
|
33
|
+
- Bump @fluentui/react-avatar to v9.2.0 ([PR #25055](https://github.com/microsoft/fluentui/pull/25055) by beachball)
|
|
34
|
+
- Bump @fluentui/react-checkbox to v9.0.7 ([PR #25055](https://github.com/microsoft/fluentui/pull/25055) by beachball)
|
|
35
|
+
- Bump @fluentui/react-tabster to v9.1.2 ([PR #25055](https://github.com/microsoft/fluentui/pull/25055) by beachball)
|
|
36
|
+
|
|
7
37
|
## [9.0.0-alpha.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-table_v9.0.0-alpha.3)
|
|
8
38
|
|
|
9
|
-
Tue, 20 Sep 2022 20:
|
|
39
|
+
Tue, 20 Sep 2022 20:55:42 GMT
|
|
10
40
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-table_v9.0.0-alpha.2..@fluentui/react-table_v9.0.0-alpha.3)
|
|
11
41
|
|
|
12
42
|
### Changes
|
|
13
43
|
|
|
14
44
|
- feat: Adds `visible` prop to `TableCellActions` ([PR #24831](https://github.com/microsoft/fluentui/pull/24831) by lingfangao@hotmail.com)
|
|
15
45
|
- fix: `TableCellActions` displays correctly inside `TableHeaderCell` ([PR #24829](https://github.com/microsoft/fluentui/pull/24829) by lingfangao@hotmail.com)
|
|
16
|
-
- Bump @fluentui/react-checkbox to v9.0.6 ([PR #
|
|
17
|
-
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.14 ([PR #
|
|
46
|
+
- Bump @fluentui/react-checkbox to v9.0.6 ([PR #24869](https://github.com/microsoft/fluentui/pull/24869) by beachball)
|
|
47
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.14 ([PR #24869](https://github.com/microsoft/fluentui/pull/24869) by beachball)
|
|
18
48
|
|
|
19
49
|
## [9.0.0-alpha.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-table_v9.0.0-alpha.2)
|
|
20
50
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
|
|
3
3
|
import { ARIAButtonSlotProps } from '@fluentui/react-aria';
|
|
4
|
+
import type { AvatarSizes } from '@fluentui/react-avatar';
|
|
4
5
|
import type { Checkbox } from '@fluentui/react-checkbox';
|
|
5
6
|
import type { CheckboxProps } from '@fluentui/react-checkbox';
|
|
6
7
|
import type { ComponentProps } from '@fluentui/react-utilities';
|
|
@@ -17,12 +18,25 @@ export declare interface ColumnDefinition<TItem> {
|
|
|
17
18
|
|
|
18
19
|
export declare type ColumnId = string | number;
|
|
19
20
|
|
|
20
|
-
declare
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
export declare interface HeadlessTableState<TItem> extends Pick<UseTableOptions<TItem>, 'items' | 'getRowId'> {
|
|
22
|
+
/**
|
|
23
|
+
* The row data for rendering
|
|
24
|
+
* @param rowEnhancer - Enhances the row with extra user data
|
|
25
|
+
*/
|
|
26
|
+
getRows: <TRowState extends RowState<TItem> = RowState<TItem>>(rowEnhancer?: RowEnhancer<TItem, TRowState>) => TRowState[];
|
|
27
|
+
/**
|
|
28
|
+
* State and actions to manage row selection
|
|
29
|
+
*/
|
|
30
|
+
selection: TableSelectionState;
|
|
31
|
+
/**
|
|
32
|
+
* State and actions to manage row sorting
|
|
33
|
+
*/
|
|
34
|
+
sort: TableSortState<TItem>;
|
|
35
|
+
/**
|
|
36
|
+
* Table columns
|
|
37
|
+
*/
|
|
38
|
+
columns: ColumnDefinition<TItem>[];
|
|
39
|
+
}
|
|
26
40
|
|
|
27
41
|
/**
|
|
28
42
|
* Render the final JSX of Table
|
|
@@ -47,7 +61,7 @@ export declare const renderTableCellActions_unstable: (state: TableCellActionsSt
|
|
|
47
61
|
/**
|
|
48
62
|
* Render the final JSX of TableCellLayout
|
|
49
63
|
*/
|
|
50
|
-
export declare const renderTableCellLayout_unstable: (state: TableCellLayoutState) => JSX.Element;
|
|
64
|
+
export declare const renderTableCellLayout_unstable: (state: TableCellLayoutState, contextValues: TableCellLayoutContextValues) => JSX.Element;
|
|
51
65
|
|
|
52
66
|
/**
|
|
53
67
|
* Render the final JSX of TableHeader
|
|
@@ -69,10 +83,7 @@ export declare const renderTableRow_unstable: (state: TableRowState) => JSX.Elem
|
|
|
69
83
|
*/
|
|
70
84
|
export declare const renderTableSelectionCell_unstable: (state: TableSelectionCellState) => JSX.Element;
|
|
71
85
|
|
|
72
|
-
declare type RowEnhancer<TItem, TRowState extends RowState<TItem> = RowState<TItem>> = (row: RowState<TItem
|
|
73
|
-
selection: TableSelectionState;
|
|
74
|
-
sort: TableSortState;
|
|
75
|
-
}) => TRowState;
|
|
86
|
+
declare type RowEnhancer<TItem, TRowState extends RowState<TItem> = RowState<TItem>> = (row: RowState<TItem>) => TRowState;
|
|
76
87
|
|
|
77
88
|
export declare type RowId = string | number;
|
|
78
89
|
|
|
@@ -122,7 +133,7 @@ export declare type TableBodySlots = {
|
|
|
122
133
|
/**
|
|
123
134
|
* State used in rendering TableBody
|
|
124
135
|
*/
|
|
125
|
-
export declare type TableBodyState = ComponentState<TableBodySlots>;
|
|
136
|
+
export declare type TableBodyState = ComponentState<TableBodySlots> & Pick<TableContextValue, 'noNativeElements'>;
|
|
126
137
|
|
|
127
138
|
/**
|
|
128
139
|
* TableCell component - TODO: add more docs
|
|
@@ -167,6 +178,12 @@ export declare const TableCellLayout: ForwardRefComponent<TableCellLayoutProps>;
|
|
|
167
178
|
|
|
168
179
|
export declare const tableCellLayoutClassNames: SlotClassNames<TableCellLayoutSlots>;
|
|
169
180
|
|
|
181
|
+
declare type TableCellLayoutContextValues = {
|
|
182
|
+
avatar: {
|
|
183
|
+
size?: AvatarSizes;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
|
|
170
187
|
/**
|
|
171
188
|
* TableCellLayout Props
|
|
172
189
|
*/
|
|
@@ -197,7 +214,9 @@ export declare type TableCellLayoutSlots = {
|
|
|
197
214
|
/**
|
|
198
215
|
* State used in rendering TableCellLayout
|
|
199
216
|
*/
|
|
200
|
-
export declare type TableCellLayoutState = ComponentState<TableCellLayoutSlots> & Pick<TableCellLayoutProps, 'appearance'
|
|
217
|
+
export declare type TableCellLayoutState = ComponentState<TableCellLayoutSlots> & Pick<TableCellLayoutProps, 'appearance'> & {
|
|
218
|
+
avatarSize: AvatarSizes | undefined;
|
|
219
|
+
};
|
|
201
220
|
|
|
202
221
|
/**
|
|
203
222
|
* TableCell Props
|
|
@@ -211,7 +230,7 @@ export declare type TableCellSlots = {
|
|
|
211
230
|
/**
|
|
212
231
|
* State used in rendering TableCell
|
|
213
232
|
*/
|
|
214
|
-
export declare type TableCellState = ComponentState<TableCellSlots>;
|
|
233
|
+
export declare type TableCellState = ComponentState<TableCellSlots> & Pick<TableContextValue, 'noNativeElements'>;
|
|
215
234
|
|
|
216
235
|
export declare const tableClassName = "fui-Table";
|
|
217
236
|
|
|
@@ -220,8 +239,19 @@ export declare const tableClassNames: SlotClassNames<TableSlots>;
|
|
|
220
239
|
export declare const TableContextProvider: React_2.Provider<TableContextValue | undefined>;
|
|
221
240
|
|
|
222
241
|
export declare type TableContextValue = {
|
|
242
|
+
/**
|
|
243
|
+
* Affects the sizes of all table subcomponents
|
|
244
|
+
* @default medium
|
|
245
|
+
*/
|
|
223
246
|
size: 'small' | 'smaller' | 'medium';
|
|
247
|
+
/**
|
|
248
|
+
* Render all table elements as divs intead of semantic table elements
|
|
249
|
+
* Using divs no longer uses `display: table` layout but `display: flex`
|
|
250
|
+
*/
|
|
224
251
|
noNativeElements: boolean;
|
|
252
|
+
/**
|
|
253
|
+
* Whether the table is sortable
|
|
254
|
+
*/
|
|
225
255
|
sortable: boolean;
|
|
226
256
|
};
|
|
227
257
|
|
|
@@ -262,9 +292,7 @@ export declare type TableHeaderCellSlots = {
|
|
|
262
292
|
/**
|
|
263
293
|
* State used in rendering TableHeaderCell
|
|
264
294
|
*/
|
|
265
|
-
export declare type TableHeaderCellState = ComponentState<TableHeaderCellSlots> &
|
|
266
|
-
sortable: boolean;
|
|
267
|
-
};
|
|
295
|
+
export declare type TableHeaderCellState = ComponentState<TableHeaderCellSlots> & Pick<TableContextValue, 'noNativeElements' | 'sortable'>;
|
|
268
296
|
|
|
269
297
|
export declare const tableHeaderClassName = "fui-TableHeader";
|
|
270
298
|
|
|
@@ -282,7 +310,7 @@ export declare type TableHeaderSlots = {
|
|
|
282
310
|
/**
|
|
283
311
|
* State used in rendering TableHeader
|
|
284
312
|
*/
|
|
285
|
-
export declare type TableHeaderState = ComponentState<TableHeaderSlots>;
|
|
313
|
+
export declare type TableHeaderState = ComponentState<TableHeaderSlots> & Pick<TableContextValue, 'noNativeElements'>;
|
|
286
314
|
|
|
287
315
|
/**
|
|
288
316
|
* Table Props
|
|
@@ -310,9 +338,7 @@ export declare type TableRowSlots = {
|
|
|
310
338
|
/**
|
|
311
339
|
* State used in rendering TableRow
|
|
312
340
|
*/
|
|
313
|
-
export declare type TableRowState = ComponentState<TableRowSlots> &
|
|
314
|
-
size: TableState['size'];
|
|
315
|
-
};
|
|
341
|
+
export declare type TableRowState = ComponentState<TableRowSlots> & Pick<TableContextValue, 'noNativeElements' | 'size'>;
|
|
316
342
|
|
|
317
343
|
/**
|
|
318
344
|
* TableSelectionCell component - TODO: add more docs
|
|
@@ -346,7 +372,7 @@ export declare type TableSelectionCellSlots = {
|
|
|
346
372
|
/**
|
|
347
373
|
* State used in rendering TableSelectionCell
|
|
348
374
|
*/
|
|
349
|
-
export declare type TableSelectionCellState = ComponentState<TableSelectionCellSlots> & Pick<Required<TableSelectionCellProps>, 'type' | 'checked'>;
|
|
375
|
+
export declare type TableSelectionCellState = ComponentState<TableSelectionCellSlots> & Pick<Required<TableSelectionCellProps>, 'type' | 'checked'> & Pick<TableContextValue, 'noNativeElements'>;
|
|
350
376
|
|
|
351
377
|
export declare interface TableSelectionState {
|
|
352
378
|
/**
|
|
@@ -372,7 +398,7 @@ export declare interface TableSelectionState {
|
|
|
372
398
|
/**
|
|
373
399
|
* Collection of row ids corresponding to selected rows
|
|
374
400
|
*/
|
|
375
|
-
selectedRows: RowId
|
|
401
|
+
selectedRows: Set<RowId>;
|
|
376
402
|
/**
|
|
377
403
|
* Whether all rows are selected
|
|
378
404
|
*/
|
|
@@ -391,7 +417,7 @@ export declare type TableSlots = {
|
|
|
391
417
|
root: Slot<'table', 'div'>;
|
|
392
418
|
};
|
|
393
419
|
|
|
394
|
-
export declare interface TableSortState {
|
|
420
|
+
export declare interface TableSortState<TItem> {
|
|
395
421
|
/**
|
|
396
422
|
* Current sort direction
|
|
397
423
|
*/
|
|
@@ -413,6 +439,10 @@ export declare interface TableSortState {
|
|
|
413
439
|
* returns undefined if the column is not sorted
|
|
414
440
|
*/
|
|
415
441
|
getSortDirection: (columnId: ColumnId) => SortDirection | undefined;
|
|
442
|
+
/**
|
|
443
|
+
* Sorts rows and returns a **shallow** copy of original items
|
|
444
|
+
*/
|
|
445
|
+
sort: (rows: RowState<TItem>[]) => RowState<TItem>[];
|
|
416
446
|
}
|
|
417
447
|
|
|
418
448
|
/**
|
|
@@ -420,22 +450,47 @@ export declare interface TableSortState {
|
|
|
420
450
|
*/
|
|
421
451
|
export declare type TableState = ComponentState<TableSlots> & Pick<Required<TableProps>, 'size' | 'noNativeElements'> & TableContextValue;
|
|
422
452
|
|
|
423
|
-
declare
|
|
453
|
+
export declare type TableStatePlugin = <TItem>(tableState: HeadlessTableState<TItem>) => HeadlessTableState<TItem>;
|
|
454
|
+
|
|
455
|
+
export declare function useSelection<TItem>(options: UseSelectionOptions): (tableState: HeadlessTableState<TItem>) => HeadlessTableState<TItem>;
|
|
456
|
+
|
|
457
|
+
declare interface UseSelectionOptions {
|
|
424
458
|
/**
|
|
425
|
-
*
|
|
459
|
+
* Can be multi or single select
|
|
426
460
|
*/
|
|
427
|
-
|
|
461
|
+
selectionMode: SelectionMode_2;
|
|
428
462
|
/**
|
|
429
|
-
*
|
|
463
|
+
* Used in uncontrolled mode to set initial selected rows on mount
|
|
430
464
|
*/
|
|
431
|
-
|
|
465
|
+
defaultSelectedItems?: Set<RowId>;
|
|
432
466
|
/**
|
|
433
|
-
*
|
|
467
|
+
* Used to control row selection
|
|
434
468
|
*/
|
|
435
|
-
|
|
469
|
+
selectedItems?: Set<RowId>;
|
|
470
|
+
/**
|
|
471
|
+
* Called when selection changes
|
|
472
|
+
*/
|
|
473
|
+
onSelectionChange?: (selectedItems: Set<RowId>) => void;
|
|
436
474
|
}
|
|
437
475
|
|
|
438
|
-
export declare function
|
|
476
|
+
export declare function useSort<TItem>(options: UseSortOptions): (tableState: HeadlessTableState<TItem>) => HeadlessTableState<TItem>;
|
|
477
|
+
|
|
478
|
+
declare interface UseSortOptions {
|
|
479
|
+
/**
|
|
480
|
+
* Used to control sorting
|
|
481
|
+
*/
|
|
482
|
+
sortState?: SortState;
|
|
483
|
+
/**
|
|
484
|
+
* Used in uncontrolled mode to set initial sort column and direction on mount
|
|
485
|
+
*/
|
|
486
|
+
defaultSortState?: SortState;
|
|
487
|
+
/**
|
|
488
|
+
* Called when sort changes
|
|
489
|
+
*/
|
|
490
|
+
onSortChange?: (state: SortState) => void;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
export declare function useTable<TItem>(options: UseTableOptions<TItem>, plugins?: TableStatePlugin[]): HeadlessTableState<TItem>;
|
|
439
494
|
|
|
440
495
|
/**
|
|
441
496
|
* Create the state required to render Table.
|
|
@@ -546,36 +601,10 @@ export declare const useTableHeaderCellStyles_unstable: (state: TableHeaderCellS
|
|
|
546
601
|
*/
|
|
547
602
|
export declare const useTableHeaderStyles_unstable: (state: TableHeaderState) => TableHeaderState;
|
|
548
603
|
|
|
549
|
-
export declare interface UseTableOptions<TItem
|
|
604
|
+
export declare interface UseTableOptions<TItem> {
|
|
550
605
|
columns: ColumnDefinition<TItem>[];
|
|
551
606
|
items: TItem[];
|
|
552
|
-
selectionMode?: SelectionMode_2;
|
|
553
|
-
/**
|
|
554
|
-
* Used in uncontrolled mode to set initial selected rows on mount
|
|
555
|
-
*/
|
|
556
|
-
defaultSelectedRows?: Set<RowId>;
|
|
557
|
-
/**
|
|
558
|
-
* Used to control row selection
|
|
559
|
-
*/
|
|
560
|
-
selectedRows?: Set<RowId>;
|
|
561
|
-
/**
|
|
562
|
-
* Called when selection changes
|
|
563
|
-
*/
|
|
564
|
-
onSelectionChange?: OnSelectionChangeCallback;
|
|
565
|
-
/**
|
|
566
|
-
* Used to control sorting
|
|
567
|
-
*/
|
|
568
|
-
sortState?: SortState;
|
|
569
|
-
/**
|
|
570
|
-
* Used in uncontrolled mode to set initial sort column and direction on mount
|
|
571
|
-
*/
|
|
572
|
-
defaultSortState?: SortState;
|
|
573
|
-
/**
|
|
574
|
-
* Called when sort changes
|
|
575
|
-
*/
|
|
576
|
-
onSortChange?: OnSortChangeCallback;
|
|
577
607
|
getRowId?: (item: TItem) => RowId;
|
|
578
|
-
rowEnhancer?: RowEnhancer<TItem, TRowState>;
|
|
579
608
|
}
|
|
580
609
|
|
|
581
610
|
/**
|
package/lib/Table.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.js","sourceRoot":"../src/","sources":["Table.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC","sourcesContent":["export * from './components/Table/index';\n"]}
|
|
1
|
+
{"version":3,"file":"Table.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/Table.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC","sourcesContent":["export * from './components/Table/index';\n"]}
|
package/lib/TableBody.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableBody.js","sourceRoot":"../src/","sources":["TableBody.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC","sourcesContent":["export * from './components/TableBody/index';\n"]}
|
|
1
|
+
{"version":3,"file":"TableBody.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/TableBody.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC","sourcesContent":["export * from './components/TableBody/index';\n"]}
|
package/lib/TableCell.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.js","sourceRoot":"../src/","sources":["TableCell.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC","sourcesContent":["export * from './components/TableCell/index';\n"]}
|
|
1
|
+
{"version":3,"file":"TableCell.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/TableCell.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC","sourcesContent":["export * from './components/TableCell/index';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCellActions.js","sourceRoot":"../src/","sources":["TableCellActions.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC","sourcesContent":["export * from './components/TableCellActions/index';\n"]}
|
|
1
|
+
{"version":3,"file":"TableCellActions.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/TableCellActions.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC","sourcesContent":["export * from './components/TableCellActions/index';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCellLayout.js","sourceRoot":"../src/","sources":["TableCellLayout.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC","sourcesContent":["export * from './components/TableCellLayout/index';\n"]}
|
|
1
|
+
{"version":3,"file":"TableCellLayout.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/TableCellLayout.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC","sourcesContent":["export * from './components/TableCellLayout/index';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCellPrimaryLayout.js","sourceRoot":"../src/","sources":["TableCellPrimaryLayout.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC","sourcesContent":["export * from './components/TableCellLayout/index';\n"]}
|
|
1
|
+
{"version":3,"file":"TableCellPrimaryLayout.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/TableCellPrimaryLayout.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC","sourcesContent":["export * from './components/TableCellLayout/index';\n"]}
|
package/lib/TableHeader.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableHeader.js","sourceRoot":"../src/","sources":["TableHeader.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC","sourcesContent":["export * from './components/TableHeader/index';\n"]}
|
|
1
|
+
{"version":3,"file":"TableHeader.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/TableHeader.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC","sourcesContent":["export * from './components/TableHeader/index';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableHeaderCell.js","sourceRoot":"../src/","sources":["TableHeaderCell.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC","sourcesContent":["export * from './components/TableHeaderCell/index';\n"]}
|
|
1
|
+
{"version":3,"file":"TableHeaderCell.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/TableHeaderCell.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC","sourcesContent":["export * from './components/TableHeaderCell/index';\n"]}
|
package/lib/TableRow.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableRow.js","sourceRoot":"../src/","sources":["TableRow.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC","sourcesContent":["export * from './components/TableRow/index';\n"]}
|
|
1
|
+
{"version":3,"file":"TableRow.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/TableRow.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC","sourcesContent":["export * from './components/TableRow/index';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableSelectionCell.js","sourceRoot":"../src/","sources":["TableSelectionCell.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC","sourcesContent":["export * from './components/TableSelectionCell/index';\n"]}
|
|
1
|
+
{"version":3,"file":"TableSelectionCell.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/TableSelectionCell.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC","sourcesContent":["export * from './components/TableSelectionCell/index';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,iBAAT,QAAkC,YAAlC;AACA,SAAS,oBAAT,QAAqC,eAArC;AACA,SAAS,uBAAT,QAAwC,kBAAxC;AAGA,SAAS,8BAAT,QAA+C,yBAA/C;AAEA;;AAEG;;AACH,OAAO,MAAM,KAAK,gBAAoC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EACpF,MAAM,KAAK,GAAG,iBAAiB,CAAC,KAAD,EAAQ,GAAR,CAA/B;EAEA,uBAAuB,CAAC,KAAD,CAAvB;EACA,OAAO,oBAAoB,CAAC,KAAD,EAAQ,8BAA8B,CAAC,KAAD,CAAtC,CAA3B;AACD,CALqD,CAA/C;AAOP,KAAK,CAAC,WAAN,GAAoB,OAApB","sourcesContent":["import * as React from 'react';\nimport { useTable_unstable } from './useTable';\nimport { renderTable_unstable } from './renderTable';\nimport { useTableStyles_unstable } from './useTableStyles';\nimport type { TableProps } from './Table.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useTableContextValues_unstable } from './useTableContextValues';\n\n/**\n * Table component - TODO: add more docs\n */\nexport const Table: ForwardRefComponent<TableProps> = React.forwardRef((props, ref) => {\n const state = useTable_unstable(props, ref);\n\n useTableStyles_unstable(state);\n return renderTable_unstable(state, useTableContextValues_unstable(state));\n});\n\nTable.displayName = 'Table';\n"],"sourceRoot":"../src/"}
|
|
1
|
+
{"version":3,"sources":["packages/react-components/react-table/src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,iBAAT,QAAkC,YAAlC;AACA,SAAS,oBAAT,QAAqC,eAArC;AACA,SAAS,uBAAT,QAAwC,kBAAxC;AAGA,SAAS,8BAAT,QAA+C,yBAA/C;AAEA;;AAEG;;AACH,OAAO,MAAM,KAAK,gBAAoC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EACpF,MAAM,KAAK,GAAG,iBAAiB,CAAC,KAAD,EAAQ,GAAR,CAA/B;EAEA,uBAAuB,CAAC,KAAD,CAAvB;EACA,OAAO,oBAAoB,CAAC,KAAD,EAAQ,8BAA8B,CAAC,KAAD,CAAtC,CAA3B;AACD,CALqD,CAA/C;AAOP,KAAK,CAAC,WAAN,GAAoB,OAApB","sourcesContent":["import * as React from 'react';\nimport { useTable_unstable } from './useTable';\nimport { renderTable_unstable } from './renderTable';\nimport { useTableStyles_unstable } from './useTableStyles';\nimport type { TableProps } from './Table.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useTableContextValues_unstable } from './useTableContextValues';\n\n/**\n * Table component - TODO: add more docs\n */\nexport const Table: ForwardRefComponent<TableProps> = React.forwardRef((props, ref) => {\n const state = useTable_unstable(props, ref);\n\n useTableStyles_unstable(state);\n return renderTable_unstable(state, useTableContextValues_unstable(state));\n});\n\nTable.displayName = 'Table';\n"],"sourceRoot":"../src/"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.types.js","sourceRoot":"../src/","sources":["components/Table/Table.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type TableSlots = {\n root: Slot<'table', 'div'>;\n};\n\nexport type TableContextValue = {\n size: 'small' | 'smaller' | 'medium';\n\n noNativeElements: boolean;\n\n sortable: boolean;\n};\n\nexport type SortDirection = 'ascending' | 'descending';\n\nexport type TableContextValues = {\n table: TableContextValue;\n};\n\n/**\n * Table Props\n */\nexport type TableProps = ComponentProps<TableSlots> & Partial<TableContextValue>;\n\n/**\n * State used in rendering Table\n */\nexport type TableState = ComponentState<TableSlots> &\n Pick<Required<TableProps>, 'size' | 'noNativeElements'> &\n TableContextValue;\n"]}
|
|
1
|
+
{"version":3,"file":"Table.types.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/Table/Table.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type TableSlots = {\n root: Slot<'table', 'div'>;\n};\n\nexport type TableContextValue = {\n /**\n * Affects the sizes of all table subcomponents\n * @default medium\n */\n size: 'small' | 'smaller' | 'medium';\n\n /**\n * Render all table elements as divs intead of semantic table elements\n * Using divs no longer uses `display: table` layout but `display: flex`\n */\n noNativeElements: boolean;\n\n /**\n * Whether the table is sortable\n */\n sortable: boolean;\n};\n\nexport type SortDirection = 'ascending' | 'descending';\n\nexport type TableContextValues = {\n table: TableContextValue;\n};\n\n/**\n * Table Props\n */\nexport type TableProps = ComponentProps<TableSlots> & Partial<TableContextValue>;\n\n/**\n * State used in rendering Table\n */\nexport type TableState = ComponentState<TableSlots> &\n Pick<Required<TableProps>, 'size' | 'noNativeElements'> &\n TableContextValue;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/Table/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './Table';\nexport * from './Table.types';\nexport * from './renderTable';\nexport * from './useTable';\nexport * from './useTableStyles';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["packages/react-components/react-table/src/components/Table/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './Table';\nexport * from './Table.types';\nexport * from './renderTable';\nexport * from './useTable';\nexport * from './useTableStyles';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["components/Table/renderTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAEA,SAAS,oBAAT,QAAqC,6BAArC;AAEA;;AAEG;;AACH,OAAO,MAAM,oBAAoB,GAAG,CAAC,KAAD,EAAoB,aAApB,KAAyD;EAC3F,MAAM;IAAE,KAAF;IAAS;EAAT,IAAuB,QAAQ,CAAa,KAAb,CAArC;EAEA,oBACE,KAAA,CAAA,aAAA,CAAC,oBAAD,EAAqB;IAAC,KAAK,EAAE,aAAa,CAAC;EAAtB,CAArB,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;EAAf,CAAX,CADF,CADF;AAKD,CARM","sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { TableState, TableSlots, TableContextValues } from './Table.types';\nimport { TableContextProvider } from '../../contexts/tableContext';\n\n/**\n * Render the final JSX of Table\n */\nexport const renderTable_unstable = (state: TableState, contextValues: TableContextValues) => {\n const { slots, slotProps } = getSlots<TableSlots>(state);\n\n return (\n <TableContextProvider value={contextValues.table}>\n <slots.root {...slotProps.root} />\n </TableContextProvider>\n );\n};\n"],"sourceRoot":"../src/"}
|
|
1
|
+
{"version":3,"sources":["packages/react-components/react-table/src/components/Table/renderTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAEA,SAAS,oBAAT,QAAqC,6BAArC;AAEA;;AAEG;;AACH,OAAO,MAAM,oBAAoB,GAAG,CAAC,KAAD,EAAoB,aAApB,KAAyD;EAC3F,MAAM;IAAE,KAAF;IAAS;EAAT,IAAuB,QAAQ,CAAa,KAAb,CAArC;EAEA,oBACE,KAAA,CAAA,aAAA,CAAC,oBAAD,EAAqB;IAAC,KAAK,EAAE,aAAa,CAAC;EAAtB,CAArB,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;EAAf,CAAX,CADF,CADF;AAKD,CARM","sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { TableState, TableSlots, TableContextValues } from './Table.types';\nimport { TableContextProvider } from '../../contexts/tableContext';\n\n/**\n * Render the final JSX of Table\n */\nexport const renderTable_unstable = (state: TableState, contextValues: TableContextValues) => {\n const { slots, slotProps } = getSlots<TableSlots>(state);\n\n return (\n <TableContextProvider value={contextValues.table}>\n <slots.root {...slotProps.root} />\n </TableContextProvider>\n );\n};\n"],"sourceRoot":"../src/"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["components/Table/useTable.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,QAAsC,2BAAtC;AAGA;;;;;;;;AAQG;;AACH,OAAO,MAAM,iBAAiB,GAAG,CAAC,KAAD,EAAoB,GAApB,KAA+D;;;EAC9F,MAAM,aAAa,GAAG,CAAA,CAAA,EAAA,GAAA,KAAK,CAAC,EAAN,MAAQ,IAAR,IAAQ,EAAA,KAAA,KAAA,CAAR,GAAQ,EAAR,GAAY,KAAK,CAAC,gBAAlB,IAAqC,KAArC,GAA6C,OAAnE;EAEA,OAAO;IACL,UAAU,EAAE;MACV,IAAI,EAAE;IADI,CADP;IAIL,IAAI,EAAE,qBAAqB,CAAC,aAAD,EAAgB;MACzC,GADyC;MAEzC,IAAI,EAAE,aAAa,KAAK,KAAlB,GAA0B,OAA1B,GAAoC,SAFD;MAGzC,GAAG;IAHsC,CAAhB,CAJtB;IASL,IAAI,EAAE,CAAA,EAAA,GAAA,KAAK,CAAC,IAAN,MAAU,IAAV,IAAU,EAAA,KAAA,KAAA,CAAV,GAAU,EAAV,GAAc,QATf;IAUL,gBAAgB,EAAE,CAAA,EAAA,GAAA,KAAK,CAAC,gBAAN,MAAsB,IAAtB,IAAsB,EAAA,KAAA,KAAA,CAAtB,GAAsB,EAAtB,GAA0B,KAVvC;IAWL,QAAQ,EAAE,CAAA,EAAA,GAAA,KAAK,CAAC,QAAN,MAAc,IAAd,IAAc,EAAA,KAAA,KAAA,CAAd,GAAc,EAAd,GAAkB;EAXvB,CAAP;AAaD,CAhBM","sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { TableProps, TableState } from './Table.types';\n\n/**\n * Create the state required to render Table.\n *\n * The returned state can be modified with hooks such as useTableStyles_unstable,\n * before being passed to renderTable_unstable.\n *\n * @param props - props from this instance of Table\n * @param ref - reference to root HTMLElement of Table\n */\nexport const useTable_unstable = (props: TableProps, ref: React.Ref<HTMLElement>): TableState => {\n const rootComponent = props.as ?? props.noNativeElements ? 'div' : 'table';\n\n return {\n components: {\n root: rootComponent,\n },\n root: getNativeElementProps(rootComponent, {\n ref,\n role: rootComponent === 'div' ? 'table' : undefined,\n ...props,\n }),\n size: props.size ?? 'medium',\n noNativeElements: props.noNativeElements ?? false,\n sortable: props.sortable ?? false,\n };\n};\n"],"sourceRoot":"../src/"}
|
|
1
|
+
{"version":3,"sources":["packages/react-components/react-table/src/components/Table/useTable.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,QAAsC,2BAAtC;AAGA;;;;;;;;AAQG;;AACH,OAAO,MAAM,iBAAiB,GAAG,CAAC,KAAD,EAAoB,GAApB,KAA+D;;;EAC9F,MAAM,aAAa,GAAG,CAAA,CAAA,EAAA,GAAA,KAAK,CAAC,EAAN,MAAQ,IAAR,IAAQ,EAAA,KAAA,KAAA,CAAR,GAAQ,EAAR,GAAY,KAAK,CAAC,gBAAlB,IAAqC,KAArC,GAA6C,OAAnE;EAEA,OAAO;IACL,UAAU,EAAE;MACV,IAAI,EAAE;IADI,CADP;IAIL,IAAI,EAAE,qBAAqB,CAAC,aAAD,EAAgB;MACzC,GADyC;MAEzC,IAAI,EAAE,aAAa,KAAK,KAAlB,GAA0B,OAA1B,GAAoC,SAFD;MAGzC,GAAG;IAHsC,CAAhB,CAJtB;IASL,IAAI,EAAE,CAAA,EAAA,GAAA,KAAK,CAAC,IAAN,MAAU,IAAV,IAAU,EAAA,KAAA,KAAA,CAAV,GAAU,EAAV,GAAc,QATf;IAUL,gBAAgB,EAAE,CAAA,EAAA,GAAA,KAAK,CAAC,gBAAN,MAAsB,IAAtB,IAAsB,EAAA,KAAA,KAAA,CAAtB,GAAsB,EAAtB,GAA0B,KAVvC;IAWL,QAAQ,EAAE,CAAA,EAAA,GAAA,KAAK,CAAC,QAAN,MAAc,IAAd,IAAc,EAAA,KAAA,KAAA,CAAd,GAAc,EAAd,GAAkB;EAXvB,CAAP;AAaD,CAhBM","sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { TableProps, TableState } from './Table.types';\n\n/**\n * Create the state required to render Table.\n *\n * The returned state can be modified with hooks such as useTableStyles_unstable,\n * before being passed to renderTable_unstable.\n *\n * @param props - props from this instance of Table\n * @param ref - reference to root HTMLElement of Table\n */\nexport const useTable_unstable = (props: TableProps, ref: React.Ref<HTMLElement>): TableState => {\n const rootComponent = props.as ?? props.noNativeElements ? 'div' : 'table';\n\n return {\n components: {\n root: rootComponent,\n },\n root: getNativeElementProps(rootComponent, {\n ref,\n role: rootComponent === 'div' ? 'table' : undefined,\n ...props,\n }),\n size: props.size ?? 'medium',\n noNativeElements: props.noNativeElements ?? false,\n sortable: props.sortable ?? false,\n };\n};\n"],"sourceRoot":"../src/"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["components/Table/useTableContextValues.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAGA,OAAM,SAAU,8BAAV,CAAyC,KAAzC,EAA0D;EAC9D,MAAM;IAAE,IAAF;IAAQ,gBAAR;IAA0B;EAA1B,IAAuC,KAA7C;EAEA,MAAM,YAAY,GAAG,KAAK,CAAC,OAAN,CACnB,OAAO;IACL,gBADK;IAEL,IAFK;IAGL;EAHK,CAAP,CADmB,EAMnB,CAAC,gBAAD,EAAmB,IAAnB,EAAyB,QAAzB,CANmB,CAArB;EASA,OAAO;IACL,KAAK,EAAE;EADF,CAAP;AAGD","sourcesContent":["import * as React from 'react';\nimport { TableContextValues, TableState } from './Table.types';\n\nexport function useTableContextValues_unstable(state: TableState): TableContextValues {\n const { size, noNativeElements, sortable } = state;\n\n const tableContext = React.useMemo(\n () => ({\n noNativeElements,\n size,\n sortable,\n }),\n [noNativeElements, size, sortable],\n );\n\n return {\n table: tableContext,\n };\n}\n"],"sourceRoot":"../src/"}
|
|
1
|
+
{"version":3,"sources":["packages/react-components/react-table/src/components/Table/useTableContextValues.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAGA,OAAM,SAAU,8BAAV,CAAyC,KAAzC,EAA0D;EAC9D,MAAM;IAAE,IAAF;IAAQ,gBAAR;IAA0B;EAA1B,IAAuC,KAA7C;EAEA,MAAM,YAAY,GAAG,KAAK,CAAC,OAAN,CACnB,OAAO;IACL,gBADK;IAEL,IAFK;IAGL;EAHK,CAAP,CADmB,EAMnB,CAAC,gBAAD,EAAmB,IAAnB,EAAyB,QAAzB,CANmB,CAArB;EASA,OAAO;IACL,KAAK,EAAE;EADF,CAAP;AAGD","sourcesContent":["import * as React from 'react';\nimport { TableContextValues, TableState } from './Table.types';\n\nexport function useTableContextValues_unstable(state: TableState): TableContextValues {\n const { size, noNativeElements, sortable } = state;\n\n const tableContext = React.useMemo(\n () => ({\n noNativeElements,\n size,\n sortable,\n }),\n [noNativeElements, size, sortable],\n );\n\n return {\n table: tableContext,\n };\n}\n"],"sourceRoot":"../src/"}
|
|
@@ -4,20 +4,37 @@ export const tableClassName = 'fui-Table';
|
|
|
4
4
|
export const tableClassNames = {
|
|
5
5
|
root: 'fui-Table'
|
|
6
6
|
};
|
|
7
|
+
|
|
8
|
+
const useTableLayoutStyles = /*#__PURE__*/__styles({
|
|
9
|
+
"root": {
|
|
10
|
+
"mc9l5x": "f1w4nmp0",
|
|
11
|
+
"ha4doy": "fmrv4ls",
|
|
12
|
+
"a9b677": "fly5x3f",
|
|
13
|
+
"B73mfa3": "f14m3nip"
|
|
14
|
+
}
|
|
15
|
+
}, {
|
|
16
|
+
"d": [".f1w4nmp0{display:table;}", ".fmrv4ls{vertical-align:middle;}", ".fly5x3f{width:100%;}", ".f14m3nip{table-layout:fixed;}"]
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
const useFlexLayoutStyles = /*#__PURE__*/__styles({
|
|
20
|
+
"root": {
|
|
21
|
+
"mc9l5x": "ftgm304"
|
|
22
|
+
}
|
|
23
|
+
}, {
|
|
24
|
+
"d": [".ftgm304{display:block;}"]
|
|
25
|
+
});
|
|
7
26
|
/**
|
|
8
27
|
* Styles for the root slot
|
|
9
28
|
*/
|
|
10
29
|
|
|
30
|
+
|
|
11
31
|
const useStyles = /*#__PURE__*/__styles({
|
|
12
32
|
"root": {
|
|
13
|
-
"ha4doy": "fmrv4ls",
|
|
14
33
|
"po53p8": "fgkb47j",
|
|
15
|
-
"a9b677": "fly5x3f",
|
|
16
|
-
"mc9l5x": "f1w4nmp0",
|
|
17
34
|
"De3pzq": "fxugw4r"
|
|
18
35
|
}
|
|
19
36
|
}, {
|
|
20
|
-
"d": [".
|
|
37
|
+
"d": [".fgkb47j{border-collapse:collapse;}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}"]
|
|
21
38
|
});
|
|
22
39
|
/**
|
|
23
40
|
* Apply styling to the Table slots based on the state
|
|
@@ -26,7 +43,11 @@ const useStyles = /*#__PURE__*/__styles({
|
|
|
26
43
|
|
|
27
44
|
export const useTableStyles_unstable = state => {
|
|
28
45
|
const styles = useStyles();
|
|
29
|
-
|
|
46
|
+
const layoutStyles = {
|
|
47
|
+
table: useTableLayoutStyles(),
|
|
48
|
+
flex: useFlexLayoutStyles()
|
|
49
|
+
};
|
|
50
|
+
state.root.className = mergeClasses(tableClassName, styles.root, state.noNativeElements ? layoutStyles.flex.root : layoutStyles.table.root, state.root.className);
|
|
30
51
|
return state;
|
|
31
52
|
};
|
|
32
53
|
//# sourceMappingURL=useTableStyles.js.map
|