@atlaskit/dynamic-table 14.11.10 → 14.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/CHANGELOG.md +12 -0
- package/dist/cjs/components/stateless.js +1 -1
- package/dist/cjs/styled/table-head.js +18 -17
- package/dist/es2019/components/stateless.js +1 -1
- package/dist/es2019/styled/table-head.js +18 -17
- package/dist/esm/components/stateless.js +1 -1
- package/dist/esm/styled/table-head.js +18 -17
- package/dist/types/index.d.ts +1 -0
- package/dist/types-ts4.5/index.d.ts +1 -0
- package/package.json +3 -4
- package/tmp/api-report-tmp.d.ts +0 -215
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/dynamic-table
|
|
2
2
|
|
|
3
|
+
## 14.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#64300](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/64300) [`9897d788b9ea`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9897d788b9ea) - Export prop types
|
|
8
|
+
|
|
9
|
+
## 14.11.11
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#58292](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58292) [`0dc821f0ecba`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0dc821f0ecba) - [ux] Use `td` over `th` when a table head cell has no content.
|
|
14
|
+
|
|
3
15
|
## 14.11.10
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -29,7 +29,7 @@ var _tableHead = _interopRequireDefault(require("./table-head"));
|
|
|
29
29
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
30
30
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
31
31
|
var packageName = "@atlaskit/dynamic-table";
|
|
32
|
-
var packageVersion = "14.
|
|
32
|
+
var packageVersion = "14.12.0";
|
|
33
33
|
function toggleSortOrder(currentSortOrder) {
|
|
34
34
|
switch (currentSortOrder) {
|
|
35
35
|
case _constants.DESC:
|
|
@@ -25,7 +25,7 @@ var rankingStyles = (0, _react2.css)({
|
|
|
25
25
|
display: 'block'
|
|
26
26
|
});
|
|
27
27
|
var headStyles = (0, _react2.css)({
|
|
28
|
-
|
|
28
|
+
borderBlockEnd: "none"
|
|
29
29
|
});
|
|
30
30
|
var Head = exports.Head = function Head(_ref) {
|
|
31
31
|
var isRanking = _ref.isRanking,
|
|
@@ -73,20 +73,17 @@ var baseStyles = (0, _react2.css)({
|
|
|
73
73
|
width: 0,
|
|
74
74
|
height: 0,
|
|
75
75
|
position: 'absolute',
|
|
76
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
77
|
-
right: "var(--ds-space-negative-100, -8px)",
|
|
78
76
|
border: '3px solid transparent',
|
|
79
|
-
content: '""'
|
|
77
|
+
content: '""',
|
|
78
|
+
insetInlineEnd: "var(--ds-space-negative-100, -8px)"
|
|
80
79
|
},
|
|
81
80
|
'&::before': {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
borderBottom: "3px solid ".concat(_theme.arrow.defaultColor)
|
|
81
|
+
borderBlockEnd: "3px solid ".concat(_theme.arrow.defaultColor),
|
|
82
|
+
insetBlockEnd: "var(--ds-space-100, 8px)"
|
|
85
83
|
},
|
|
86
84
|
'&::after': {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
borderTop: "3px solid ".concat(_theme.arrow.defaultColor)
|
|
85
|
+
borderBlockStart: "3px solid ".concat(_theme.arrow.defaultColor),
|
|
86
|
+
insetBlockEnd: 0
|
|
90
87
|
}
|
|
91
88
|
},
|
|
92
89
|
'@media (forced-colors: active)': {
|
|
@@ -95,10 +92,10 @@ var baseStyles = (0, _react2.css)({
|
|
|
95
92
|
border: "3px solid ".concat(_theme.MSThemeColors.Background)
|
|
96
93
|
},
|
|
97
94
|
'&::before': {
|
|
98
|
-
|
|
95
|
+
borderBlockEnd: "3px solid ".concat(_theme.MSThemeColors.Text)
|
|
99
96
|
},
|
|
100
97
|
'&::after': {
|
|
101
|
-
|
|
98
|
+
borderBlockStart: "3px solid ".concat(_theme.MSThemeColors.Text)
|
|
102
99
|
}
|
|
103
100
|
}
|
|
104
101
|
}
|
|
@@ -106,13 +103,13 @@ var baseStyles = (0, _react2.css)({
|
|
|
106
103
|
var ascendingStyles = (0, _react2.css)({
|
|
107
104
|
'& > button': {
|
|
108
105
|
'&::before': {
|
|
109
|
-
|
|
106
|
+
borderBlockEnd: "3px solid ".concat(_theme.arrow.selectedColor)
|
|
110
107
|
}
|
|
111
108
|
},
|
|
112
109
|
'@media (forced-colors: active)': {
|
|
113
110
|
'& > button': {
|
|
114
111
|
'&::before': {
|
|
115
|
-
|
|
112
|
+
borderBlockEnd: "3px solid ".concat(_theme.MSThemeColors.SelectedBackground)
|
|
116
113
|
}
|
|
117
114
|
}
|
|
118
115
|
}
|
|
@@ -120,13 +117,13 @@ var ascendingStyles = (0, _react2.css)({
|
|
|
120
117
|
var descendingStyles = (0, _react2.css)({
|
|
121
118
|
'& > button': {
|
|
122
119
|
'&::after': {
|
|
123
|
-
|
|
120
|
+
borderBlockStart: "3px solid ".concat(_theme.arrow.selectedColor)
|
|
124
121
|
}
|
|
125
122
|
},
|
|
126
123
|
'@media (forced-colors: active)': {
|
|
127
124
|
'& > button': {
|
|
128
125
|
'&::after': {
|
|
129
|
-
|
|
126
|
+
borderBlockStart: "3px solid ".concat(_theme.MSThemeColors.SelectedBackground)
|
|
130
127
|
}
|
|
131
128
|
}
|
|
132
129
|
}
|
|
@@ -154,7 +151,11 @@ var HeadCell = exports.HeadCell = /*#__PURE__*/(0, _react.forwardRef)(function (
|
|
|
154
151
|
return 'descending';
|
|
155
152
|
}
|
|
156
153
|
};
|
|
157
|
-
|
|
154
|
+
|
|
155
|
+
// If there is no content in the cell, it should be rendered as an empty `td`, not a `th`.
|
|
156
|
+
// https://dequeuniversity.com/rules/axe/4.7/empty-table-header
|
|
157
|
+
var Component = children ? 'th' : 'td';
|
|
158
|
+
return (0, _react2.jsx)(Component, (0, _extends2.default)({
|
|
158
159
|
"aria-sort": getFormattedSortOrder(),
|
|
159
160
|
style: mergedStyles,
|
|
160
161
|
css: [headCellStyles, onClick && onClickStyles, _constants2.truncationWidthStyles, isFixedSize && shouldTruncate && _constants2.fixedSizeTruncateStyles, isFixedSize && _constants2.overflowTruncateStyles, isSortable && baseStyles, isASC && ascendingStyles, isDESC && descendingStyles],
|
|
@@ -14,7 +14,7 @@ import ManagedPagination from './managed-pagination';
|
|
|
14
14
|
import RankableTableBody from './rankable/body';
|
|
15
15
|
import TableHead from './table-head';
|
|
16
16
|
const packageName = "@atlaskit/dynamic-table";
|
|
17
|
-
const packageVersion = "14.
|
|
17
|
+
const packageVersion = "14.12.0";
|
|
18
18
|
function toggleSortOrder(currentSortOrder) {
|
|
19
19
|
switch (currentSortOrder) {
|
|
20
20
|
case DESC:
|
|
@@ -12,7 +12,7 @@ const rankingStyles = css({
|
|
|
12
12
|
display: 'block'
|
|
13
13
|
});
|
|
14
14
|
const headStyles = css({
|
|
15
|
-
|
|
15
|
+
borderBlockEnd: `none`
|
|
16
16
|
});
|
|
17
17
|
export const Head = ({
|
|
18
18
|
isRanking,
|
|
@@ -61,20 +61,17 @@ const baseStyles = css({
|
|
|
61
61
|
width: 0,
|
|
62
62
|
height: 0,
|
|
63
63
|
position: 'absolute',
|
|
64
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
65
|
-
right: "var(--ds-space-negative-100, -8px)",
|
|
66
64
|
border: '3px solid transparent',
|
|
67
|
-
content: '""'
|
|
65
|
+
content: '""',
|
|
66
|
+
insetInlineEnd: "var(--ds-space-negative-100, -8px)"
|
|
68
67
|
},
|
|
69
68
|
'&::before': {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
borderBottom: `3px solid ${arrow.defaultColor}`
|
|
69
|
+
borderBlockEnd: `3px solid ${arrow.defaultColor}`,
|
|
70
|
+
insetBlockEnd: "var(--ds-space-100, 8px)"
|
|
73
71
|
},
|
|
74
72
|
'&::after': {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
borderTop: `3px solid ${arrow.defaultColor}`
|
|
73
|
+
borderBlockStart: `3px solid ${arrow.defaultColor}`,
|
|
74
|
+
insetBlockEnd: 0
|
|
78
75
|
}
|
|
79
76
|
},
|
|
80
77
|
'@media (forced-colors: active)': {
|
|
@@ -83,10 +80,10 @@ const baseStyles = css({
|
|
|
83
80
|
border: `3px solid ${MSThemeColors.Background}`
|
|
84
81
|
},
|
|
85
82
|
'&::before': {
|
|
86
|
-
|
|
83
|
+
borderBlockEnd: `3px solid ${MSThemeColors.Text}`
|
|
87
84
|
},
|
|
88
85
|
'&::after': {
|
|
89
|
-
|
|
86
|
+
borderBlockStart: `3px solid ${MSThemeColors.Text}`
|
|
90
87
|
}
|
|
91
88
|
}
|
|
92
89
|
}
|
|
@@ -94,13 +91,13 @@ const baseStyles = css({
|
|
|
94
91
|
const ascendingStyles = css({
|
|
95
92
|
'& > button': {
|
|
96
93
|
'&::before': {
|
|
97
|
-
|
|
94
|
+
borderBlockEnd: `3px solid ${arrow.selectedColor}`
|
|
98
95
|
}
|
|
99
96
|
},
|
|
100
97
|
'@media (forced-colors: active)': {
|
|
101
98
|
'& > button': {
|
|
102
99
|
'&::before': {
|
|
103
|
-
|
|
100
|
+
borderBlockEnd: `3px solid ${MSThemeColors.SelectedBackground}`
|
|
104
101
|
}
|
|
105
102
|
}
|
|
106
103
|
}
|
|
@@ -108,13 +105,13 @@ const ascendingStyles = css({
|
|
|
108
105
|
const descendingStyles = css({
|
|
109
106
|
'& > button': {
|
|
110
107
|
'&::after': {
|
|
111
|
-
|
|
108
|
+
borderBlockStart: `3px solid ${arrow.selectedColor}`
|
|
112
109
|
}
|
|
113
110
|
},
|
|
114
111
|
'@media (forced-colors: active)': {
|
|
115
112
|
'& > button': {
|
|
116
113
|
'&::after': {
|
|
117
|
-
|
|
114
|
+
borderBlockStart: `3px solid ${MSThemeColors.SelectedBackground}`
|
|
118
115
|
}
|
|
119
116
|
}
|
|
120
117
|
}
|
|
@@ -147,7 +144,11 @@ export const HeadCell = /*#__PURE__*/forwardRef(({
|
|
|
147
144
|
return 'descending';
|
|
148
145
|
}
|
|
149
146
|
};
|
|
150
|
-
|
|
147
|
+
|
|
148
|
+
// If there is no content in the cell, it should be rendered as an empty `td`, not a `th`.
|
|
149
|
+
// https://dequeuniversity.com/rules/axe/4.7/empty-table-header
|
|
150
|
+
const Component = children ? 'th' : 'td';
|
|
151
|
+
return jsx(Component, _extends({
|
|
151
152
|
"aria-sort": getFormattedSortOrder(),
|
|
152
153
|
style: mergedStyles,
|
|
153
154
|
css: [headCellStyles, onClick && onClickStyles, truncationWidthStyles, isFixedSize && shouldTruncate && fixedSizeTruncateStyles, isFixedSize && overflowTruncateStyles, isSortable && baseStyles, isASC && ascendingStyles, isDESC && descendingStyles],
|
|
@@ -22,7 +22,7 @@ import ManagedPagination from './managed-pagination';
|
|
|
22
22
|
import RankableTableBody from './rankable/body';
|
|
23
23
|
import TableHead from './table-head';
|
|
24
24
|
var packageName = "@atlaskit/dynamic-table";
|
|
25
|
-
var packageVersion = "14.
|
|
25
|
+
var packageVersion = "14.12.0";
|
|
26
26
|
function toggleSortOrder(currentSortOrder) {
|
|
27
27
|
switch (currentSortOrder) {
|
|
28
28
|
case DESC:
|
|
@@ -18,7 +18,7 @@ var rankingStyles = css({
|
|
|
18
18
|
display: 'block'
|
|
19
19
|
});
|
|
20
20
|
var headStyles = css({
|
|
21
|
-
|
|
21
|
+
borderBlockEnd: "none"
|
|
22
22
|
});
|
|
23
23
|
export var Head = function Head(_ref) {
|
|
24
24
|
var isRanking = _ref.isRanking,
|
|
@@ -66,20 +66,17 @@ var baseStyles = css({
|
|
|
66
66
|
width: 0,
|
|
67
67
|
height: 0,
|
|
68
68
|
position: 'absolute',
|
|
69
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
70
|
-
right: "var(--ds-space-negative-100, -8px)",
|
|
71
69
|
border: '3px solid transparent',
|
|
72
|
-
content: '""'
|
|
70
|
+
content: '""',
|
|
71
|
+
insetInlineEnd: "var(--ds-space-negative-100, -8px)"
|
|
73
72
|
},
|
|
74
73
|
'&::before': {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
borderBottom: "3px solid ".concat(arrow.defaultColor)
|
|
74
|
+
borderBlockEnd: "3px solid ".concat(arrow.defaultColor),
|
|
75
|
+
insetBlockEnd: "var(--ds-space-100, 8px)"
|
|
78
76
|
},
|
|
79
77
|
'&::after': {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
borderTop: "3px solid ".concat(arrow.defaultColor)
|
|
78
|
+
borderBlockStart: "3px solid ".concat(arrow.defaultColor),
|
|
79
|
+
insetBlockEnd: 0
|
|
83
80
|
}
|
|
84
81
|
},
|
|
85
82
|
'@media (forced-colors: active)': {
|
|
@@ -88,10 +85,10 @@ var baseStyles = css({
|
|
|
88
85
|
border: "3px solid ".concat(MSThemeColors.Background)
|
|
89
86
|
},
|
|
90
87
|
'&::before': {
|
|
91
|
-
|
|
88
|
+
borderBlockEnd: "3px solid ".concat(MSThemeColors.Text)
|
|
92
89
|
},
|
|
93
90
|
'&::after': {
|
|
94
|
-
|
|
91
|
+
borderBlockStart: "3px solid ".concat(MSThemeColors.Text)
|
|
95
92
|
}
|
|
96
93
|
}
|
|
97
94
|
}
|
|
@@ -99,13 +96,13 @@ var baseStyles = css({
|
|
|
99
96
|
var ascendingStyles = css({
|
|
100
97
|
'& > button': {
|
|
101
98
|
'&::before': {
|
|
102
|
-
|
|
99
|
+
borderBlockEnd: "3px solid ".concat(arrow.selectedColor)
|
|
103
100
|
}
|
|
104
101
|
},
|
|
105
102
|
'@media (forced-colors: active)': {
|
|
106
103
|
'& > button': {
|
|
107
104
|
'&::before': {
|
|
108
|
-
|
|
105
|
+
borderBlockEnd: "3px solid ".concat(MSThemeColors.SelectedBackground)
|
|
109
106
|
}
|
|
110
107
|
}
|
|
111
108
|
}
|
|
@@ -113,13 +110,13 @@ var ascendingStyles = css({
|
|
|
113
110
|
var descendingStyles = css({
|
|
114
111
|
'& > button': {
|
|
115
112
|
'&::after': {
|
|
116
|
-
|
|
113
|
+
borderBlockStart: "3px solid ".concat(arrow.selectedColor)
|
|
117
114
|
}
|
|
118
115
|
},
|
|
119
116
|
'@media (forced-colors: active)': {
|
|
120
117
|
'& > button': {
|
|
121
118
|
'&::after': {
|
|
122
|
-
|
|
119
|
+
borderBlockStart: "3px solid ".concat(MSThemeColors.SelectedBackground)
|
|
123
120
|
}
|
|
124
121
|
}
|
|
125
122
|
}
|
|
@@ -147,7 +144,11 @@ export var HeadCell = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
147
144
|
return 'descending';
|
|
148
145
|
}
|
|
149
146
|
};
|
|
150
|
-
|
|
147
|
+
|
|
148
|
+
// If there is no content in the cell, it should be rendered as an empty `td`, not a `th`.
|
|
149
|
+
// https://dequeuniversity.com/rules/axe/4.7/empty-table-header
|
|
150
|
+
var Component = children ? 'th' : 'td';
|
|
151
|
+
return jsx(Component, _extends({
|
|
151
152
|
"aria-sort": getFormattedSortOrder(),
|
|
152
153
|
style: mergedStyles,
|
|
153
154
|
css: [headCellStyles, onClick && onClickStyles, truncationWidthStyles, isFixedSize && shouldTruncate && fixedSizeTruncateStyles, isFixedSize && overflowTruncateStyles, isSortable && baseStyles, isASC && ascendingStyles, isDESC && descendingStyles],
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/dynamic-table",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.12.0",
|
|
4
4
|
"description": "A dynamic table displays rows of data with built-in pagination, sorting, and re-ordering functionality.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/pagination": "^14.4.0",
|
|
42
42
|
"@atlaskit/spinner": "^16.0.0",
|
|
43
43
|
"@atlaskit/theme": "^12.6.0",
|
|
44
|
-
"@atlaskit/tokens": "^1.
|
|
44
|
+
"@atlaskit/tokens": "^1.33.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
46
46
|
"@emotion/react": "^11.7.1",
|
|
47
47
|
"react-beautiful-dnd": "^12.1.1"
|
|
@@ -55,7 +55,6 @@
|
|
|
55
55
|
"@af/integration-testing": "*",
|
|
56
56
|
"@atlaskit/ssr": "*",
|
|
57
57
|
"@atlaskit/visual-regression": "*",
|
|
58
|
-
"@atlaskit/webdriver-runner": "*",
|
|
59
58
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
60
59
|
"@emotion/styled": "^11.0.0",
|
|
61
60
|
"@testing-library/react": "^12.1.5",
|
|
@@ -81,4 +80,4 @@
|
|
|
81
80
|
}
|
|
82
81
|
},
|
|
83
82
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
84
|
-
}
|
|
83
|
+
}
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/dynamic-table"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
import noop from '@atlaskit/ds-lib/noop';
|
|
8
|
-
import { default as React_2 } from 'react';
|
|
9
|
-
import { Ref } from 'react';
|
|
10
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
11
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
12
|
-
import { WithContextProps } from '@atlaskit/analytics-next';
|
|
13
|
-
|
|
14
|
-
// @public
|
|
15
|
-
class DynamicTable extends React_2.Component<StatefulProps, State> {
|
|
16
|
-
// (undocumented)
|
|
17
|
-
static defaultProps: {
|
|
18
|
-
defaultPage: number;
|
|
19
|
-
isLoading: boolean;
|
|
20
|
-
isFixedSize: boolean;
|
|
21
|
-
isRankable: boolean;
|
|
22
|
-
onSetPage: typeof noop;
|
|
23
|
-
onSort: typeof noop;
|
|
24
|
-
rowsPerPage: number;
|
|
25
|
-
};
|
|
26
|
-
// (undocumented)
|
|
27
|
-
onRankEndHandler: (params: RankEnd) => void;
|
|
28
|
-
// (undocumented)
|
|
29
|
-
onRankEndIfExistsHandler: (params: RankEnd) => void;
|
|
30
|
-
// (undocumented)
|
|
31
|
-
onSetPageHandler: (page: number, analyticsEvent?: UIAnalyticsEvent) => void;
|
|
32
|
-
// (undocumented)
|
|
33
|
-
onSortHandler: ({ key, item, sortOrder }: any, analyticsEvent?: UIAnalyticsEvent) => void;
|
|
34
|
-
// (undocumented)
|
|
35
|
-
render(): JSX.Element;
|
|
36
|
-
// (undocumented)
|
|
37
|
-
state: {
|
|
38
|
-
page: number | undefined;
|
|
39
|
-
sortKey: string | undefined;
|
|
40
|
-
sortOrder: SortOrderType | undefined;
|
|
41
|
-
rows: RowType[] | undefined;
|
|
42
|
-
};
|
|
43
|
-
// (undocumented)
|
|
44
|
-
UNSAFE_componentWillReceiveProps(newProps: StatefulProps): void;
|
|
45
|
-
}
|
|
46
|
-
export default DynamicTable;
|
|
47
|
-
|
|
48
|
-
// @public (undocumented)
|
|
49
|
-
export const DynamicTableStateless: React_2.ForwardRefExoticComponent<Pick<Pick<Omit<StatelessProps, keyof WithAnalyticsEventsProps>, "caption" | "emptyView" | "head" | "highlightedRowIndex" | "label" | "loadingSpinnerSize" | "onPageRowsUpdate" | "rows" | "sortKey" | "sortOrder" | "testId" | "totalRows"> & Partial<Pick<Omit<StatelessProps, keyof WithAnalyticsEventsProps>, "isFixedSize" | "isLoading" | "isRankable" | "isRankingDisabled" | "onRankEnd" | "onRankStart" | "onSetPage" | "onSort" | "page" | "paginationi18n" | "rowsPerPage">> & Partial<Pick<{
|
|
50
|
-
isLoading: boolean;
|
|
51
|
-
isFixedSize: boolean;
|
|
52
|
-
rowsPerPage: number;
|
|
53
|
-
onSetPage: typeof noop;
|
|
54
|
-
onSort: typeof noop;
|
|
55
|
-
page: number;
|
|
56
|
-
isRankable: boolean;
|
|
57
|
-
isRankingDisabled: boolean;
|
|
58
|
-
onRankStart: typeof noop;
|
|
59
|
-
onRankEnd: typeof noop;
|
|
60
|
-
paginationi18n: {
|
|
61
|
-
prev: string;
|
|
62
|
-
next: string;
|
|
63
|
-
label: string;
|
|
64
|
-
pageLabel: string;
|
|
65
|
-
};
|
|
66
|
-
}, never>> & React_2.RefAttributes<any> & WithContextProps, "analyticsContext" | "caption" | "emptyView" | "head" | "highlightedRowIndex" | "isFixedSize" | "isLoading" | "isRankable" | "isRankingDisabled" | "key" | "label" | "loadingSpinnerSize" | "onPageRowsUpdate" | "onRankEnd" | "onRankStart" | "onSetPage" | "onSort" | "page" | "paginationi18n" | "rows" | "rowsPerPage" | "sortKey" | "sortOrder" | "testId" | "totalRows"> & React_2.RefAttributes<any>>;
|
|
67
|
-
|
|
68
|
-
// @public (undocumented)
|
|
69
|
-
interface HeadCellType extends RowCellType {
|
|
70
|
-
isSortable?: boolean;
|
|
71
|
-
shouldTruncate?: boolean;
|
|
72
|
-
width?: number;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// @public (undocumented)
|
|
76
|
-
interface HeadType {
|
|
77
|
-
// (undocumented)
|
|
78
|
-
cells: Array<HeadCellType>;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// @public (undocumented)
|
|
82
|
-
interface I18nShape {
|
|
83
|
-
label: string;
|
|
84
|
-
next: string;
|
|
85
|
-
pageLabel?: string;
|
|
86
|
-
prev: string;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
// @public (undocumented)
|
|
90
|
-
type LoadingSpinnerSizeType = 'large' | 'small';
|
|
91
|
-
|
|
92
|
-
// @public (undocumented)
|
|
93
|
-
interface RankEnd {
|
|
94
|
-
// (undocumented)
|
|
95
|
-
destination?: RankEndLocation;
|
|
96
|
-
// (undocumented)
|
|
97
|
-
sourceIndex: number;
|
|
98
|
-
// (undocumented)
|
|
99
|
-
sourceKey: string;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// @public (undocumented)
|
|
103
|
-
interface RankEndLocation {
|
|
104
|
-
// (undocumented)
|
|
105
|
-
afterKey?: string;
|
|
106
|
-
// (undocumented)
|
|
107
|
-
beforeKey?: string;
|
|
108
|
-
// (undocumented)
|
|
109
|
-
index: number;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
// @public (undocumented)
|
|
113
|
-
interface RankStart {
|
|
114
|
-
// (undocumented)
|
|
115
|
-
index: number;
|
|
116
|
-
// (undocumented)
|
|
117
|
-
key: string;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// @public (undocumented)
|
|
121
|
-
interface RowCellType {
|
|
122
|
-
colSpan?: number;
|
|
123
|
-
content?: React_2.ReactNode | string;
|
|
124
|
-
key?: number | string;
|
|
125
|
-
testId?: string;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
// @public (undocumented)
|
|
129
|
-
interface RowType extends React_2.ComponentPropsWithoutRef<'tr'> {
|
|
130
|
-
// (undocumented)
|
|
131
|
-
cells: Array<RowCellType>;
|
|
132
|
-
isHighlighted?: boolean;
|
|
133
|
-
// (undocumented)
|
|
134
|
-
key?: string;
|
|
135
|
-
onClick?: React_2.MouseEventHandler;
|
|
136
|
-
onKeyPress?: React_2.KeyboardEventHandler;
|
|
137
|
-
// (undocumented)
|
|
138
|
-
ref?: Ref<HTMLTableRowElement>;
|
|
139
|
-
testId?: string;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
// @public
|
|
143
|
-
type SortOrderType = 'ASC' | 'DESC';
|
|
144
|
-
|
|
145
|
-
// @public (undocumented)
|
|
146
|
-
interface State {
|
|
147
|
-
// (undocumented)
|
|
148
|
-
page?: number;
|
|
149
|
-
// (undocumented)
|
|
150
|
-
rows?: RowType[];
|
|
151
|
-
// (undocumented)
|
|
152
|
-
sortKey?: string;
|
|
153
|
-
// (undocumented)
|
|
154
|
-
sortOrder?: SortOrderType;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
// @public (undocumented)
|
|
158
|
-
interface StatefulProps extends WithAnalyticsEventsProps {
|
|
159
|
-
caption?: React_2.ReactNode;
|
|
160
|
-
defaultPage?: number;
|
|
161
|
-
defaultSortKey?: string;
|
|
162
|
-
defaultSortOrder?: SortOrderType;
|
|
163
|
-
emptyView?: React_2.ReactElement<any>;
|
|
164
|
-
head?: HeadType;
|
|
165
|
-
highlightedRowIndex?: number | number[];
|
|
166
|
-
isFixedSize?: boolean;
|
|
167
|
-
isLoading?: boolean;
|
|
168
|
-
isRankable?: boolean;
|
|
169
|
-
isRankingDisabled?: boolean;
|
|
170
|
-
label?: string;
|
|
171
|
-
loadingSpinnerSize?: LoadingSpinnerSizeType;
|
|
172
|
-
onPageRowsUpdate?: (pageRows: Array<RowType>) => void;
|
|
173
|
-
onRankEnd?: (rankEnd: RankEnd) => void;
|
|
174
|
-
onRankStart?: (rankStart: RankStart) => void;
|
|
175
|
-
onSetPage?: (page: number, UIAnalyticsEvent?: UIAnalyticsEvent) => void;
|
|
176
|
-
onSort?: (data: any, UIAnalyticsEvent?: UIAnalyticsEvent) => void;
|
|
177
|
-
page?: number;
|
|
178
|
-
paginationi18n?: I18nShape;
|
|
179
|
-
rows?: Array<RowType>;
|
|
180
|
-
rowsPerPage?: number;
|
|
181
|
-
sortKey?: string;
|
|
182
|
-
sortOrder?: SortOrderType;
|
|
183
|
-
testId?: string;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
// @public (undocumented)
|
|
187
|
-
interface StatelessProps extends WithAnalyticsEventsProps {
|
|
188
|
-
caption?: React_2.ReactNode;
|
|
189
|
-
emptyView?: React_2.ReactElement<any>;
|
|
190
|
-
head?: HeadType;
|
|
191
|
-
highlightedRowIndex?: number | number[];
|
|
192
|
-
isFixedSize?: boolean;
|
|
193
|
-
isLoading?: boolean;
|
|
194
|
-
isRankable?: boolean;
|
|
195
|
-
isRankingDisabled?: boolean;
|
|
196
|
-
label?: string;
|
|
197
|
-
loadingSpinnerSize?: LoadingSpinnerSizeType;
|
|
198
|
-
onPageRowsUpdate?: (pageRows: Array<RowType>) => void;
|
|
199
|
-
onRankEnd?: (rankEnd: RankEnd, uiAnalyticsEvent?: UIAnalyticsEvent) => void;
|
|
200
|
-
onRankStart?: (rankStart: RankStart) => void;
|
|
201
|
-
onSetPage?: (page: number, UIAnalyticsEvent?: UIAnalyticsEvent) => void;
|
|
202
|
-
onSort?: (data: any, UIAnalyticsEvent?: UIAnalyticsEvent) => void;
|
|
203
|
-
page?: number;
|
|
204
|
-
paginationi18n?: I18nShape;
|
|
205
|
-
rows?: Array<RowType>;
|
|
206
|
-
rowsPerPage?: number;
|
|
207
|
-
sortKey?: string;
|
|
208
|
-
sortOrder?: SortOrderType;
|
|
209
|
-
testId?: string;
|
|
210
|
-
totalRows?: number;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
// (No @packageDocumentation comment for this package)
|
|
214
|
-
|
|
215
|
-
```
|