@instructure/ui-table 10.6.2-snapshot-5 → 10.6.2-snapshot-7
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +5 -2
- package/es/Table/Head/index.js +7 -6
- package/lib/Table/Head/index.js +7 -6
- package/package.json +17 -17
- package/src/Table/Head/index.tsx +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
@@ -3,9 +3,12 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
-
## [10.6.2-snapshot-
|
6
|
+
## [10.6.2-snapshot-7](https://github.com/instructure/instructure-ui/compare/v10.6.1...v10.6.2-snapshot-7) (2024-12-02)
|
7
7
|
|
8
|
-
|
8
|
+
|
9
|
+
### Features
|
10
|
+
|
11
|
+
* **ui-number-input:** add back options for string input ([ce86cdb](https://github.com/instructure/instructure-ui/commit/ce86cdb91e016878edfeda3260f55bc7fd1db2e3))
|
9
12
|
|
10
13
|
|
11
14
|
|
package/es/Table/Head/index.js
CHANGED
@@ -54,7 +54,8 @@ let Head = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class
|
|
54
54
|
let sortable = false;
|
55
55
|
if (firstRow && firstRow.props && firstRow.props.children) {
|
56
56
|
Children.forEach(firstRow.props.children, grandchild => {
|
57
|
-
|
57
|
+
var _grandchild$props;
|
58
|
+
if (grandchild !== null && grandchild !== void 0 && (_grandchild$props = grandchild.props) !== null && _grandchild$props !== void 0 && _grandchild$props.onRequestSort) {
|
58
59
|
sortable = true;
|
59
60
|
return;
|
60
61
|
}
|
@@ -97,11 +98,11 @@ let Head = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class
|
|
97
98
|
Children.forEach(firstRow.props.children, grandchild => {
|
98
99
|
count += 1;
|
99
100
|
if (!grandchild.props) return;
|
100
|
-
const _grandchild$
|
101
|
-
id = _grandchild$
|
102
|
-
stackedSortByLabel = _grandchild$
|
103
|
-
sortDirection = _grandchild$
|
104
|
-
onRequestSort = _grandchild$
|
101
|
+
const _grandchild$props2 = grandchild.props,
|
102
|
+
id = _grandchild$props2.id,
|
103
|
+
stackedSortByLabel = _grandchild$props2.stackedSortByLabel,
|
104
|
+
sortDirection = _grandchild$props2.sortDirection,
|
105
|
+
onRequestSort = _grandchild$props2.onRequestSort;
|
105
106
|
if (id && onRequestSort) {
|
106
107
|
const label = stackedSortByLabel || id;
|
107
108
|
options.push({
|
package/lib/Table/Head/index.js
CHANGED
@@ -60,7 +60,8 @@ let Head = exports.Head = (_dec = (0, _emotion.withStyle)(_styles.default, _them
|
|
60
60
|
let sortable = false;
|
61
61
|
if (firstRow && firstRow.props && firstRow.props.children) {
|
62
62
|
_react.Children.forEach(firstRow.props.children, grandchild => {
|
63
|
-
|
63
|
+
var _grandchild$props;
|
64
|
+
if (grandchild !== null && grandchild !== void 0 && (_grandchild$props = grandchild.props) !== null && _grandchild$props !== void 0 && _grandchild$props.onRequestSort) {
|
64
65
|
sortable = true;
|
65
66
|
return;
|
66
67
|
}
|
@@ -103,11 +104,11 @@ let Head = exports.Head = (_dec = (0, _emotion.withStyle)(_styles.default, _them
|
|
103
104
|
_react.Children.forEach(firstRow.props.children, grandchild => {
|
104
105
|
count += 1;
|
105
106
|
if (!grandchild.props) return;
|
106
|
-
const _grandchild$
|
107
|
-
id = _grandchild$
|
108
|
-
stackedSortByLabel = _grandchild$
|
109
|
-
sortDirection = _grandchild$
|
110
|
-
onRequestSort = _grandchild$
|
107
|
+
const _grandchild$props2 = grandchild.props,
|
108
|
+
id = _grandchild$props2.id,
|
109
|
+
stackedSortByLabel = _grandchild$props2.stackedSortByLabel,
|
110
|
+
sortDirection = _grandchild$props2.sortDirection,
|
111
|
+
onRequestSort = _grandchild$props2.onRequestSort;
|
111
112
|
if (id && onRequestSort) {
|
112
113
|
const label = stackedSortByLabel || id;
|
113
114
|
options.push({
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@instructure/ui-table",
|
3
|
-
"version": "10.6.2-snapshot-
|
3
|
+
"version": "10.6.2-snapshot-7",
|
4
4
|
"description": "A styled HTML table component",
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
6
6
|
"module": "./es/index.js",
|
@@ -23,11 +23,11 @@
|
|
23
23
|
},
|
24
24
|
"license": "MIT",
|
25
25
|
"devDependencies": {
|
26
|
-
"@instructure/ui-axe-check": "10.6.2-snapshot-
|
27
|
-
"@instructure/ui-babel-preset": "10.6.2-snapshot-
|
28
|
-
"@instructure/ui-color-utils": "10.6.2-snapshot-
|
29
|
-
"@instructure/ui-test-utils": "10.6.2-snapshot-
|
30
|
-
"@instructure/ui-themes": "10.6.2-snapshot-
|
26
|
+
"@instructure/ui-axe-check": "10.6.2-snapshot-7",
|
27
|
+
"@instructure/ui-babel-preset": "10.6.2-snapshot-7",
|
28
|
+
"@instructure/ui-color-utils": "10.6.2-snapshot-7",
|
29
|
+
"@instructure/ui-test-utils": "10.6.2-snapshot-7",
|
30
|
+
"@instructure/ui-themes": "10.6.2-snapshot-7",
|
31
31
|
"@testing-library/jest-dom": "^6.4.6",
|
32
32
|
"@testing-library/react": "^16.0.1",
|
33
33
|
"@testing-library/user-event": "^14.5.2",
|
@@ -35,17 +35,17 @@
|
|
35
35
|
},
|
36
36
|
"dependencies": {
|
37
37
|
"@babel/runtime": "^7.25.6",
|
38
|
-
"@instructure/console": "10.6.2-snapshot-
|
39
|
-
"@instructure/emotion": "10.6.2-snapshot-
|
40
|
-
"@instructure/shared-types": "10.6.2-snapshot-
|
41
|
-
"@instructure/ui-a11y-content": "10.6.2-snapshot-
|
42
|
-
"@instructure/ui-icons": "10.6.2-snapshot-
|
43
|
-
"@instructure/ui-prop-types": "10.6.2-snapshot-
|
44
|
-
"@instructure/ui-react-utils": "10.6.2-snapshot-
|
45
|
-
"@instructure/ui-simple-select": "10.6.2-snapshot-
|
46
|
-
"@instructure/ui-testable": "10.6.2-snapshot-
|
47
|
-
"@instructure/ui-utils": "10.6.2-snapshot-
|
48
|
-
"@instructure/ui-view": "10.6.2-snapshot-
|
38
|
+
"@instructure/console": "10.6.2-snapshot-7",
|
39
|
+
"@instructure/emotion": "10.6.2-snapshot-7",
|
40
|
+
"@instructure/shared-types": "10.6.2-snapshot-7",
|
41
|
+
"@instructure/ui-a11y-content": "10.6.2-snapshot-7",
|
42
|
+
"@instructure/ui-icons": "10.6.2-snapshot-7",
|
43
|
+
"@instructure/ui-prop-types": "10.6.2-snapshot-7",
|
44
|
+
"@instructure/ui-react-utils": "10.6.2-snapshot-7",
|
45
|
+
"@instructure/ui-simple-select": "10.6.2-snapshot-7",
|
46
|
+
"@instructure/ui-testable": "10.6.2-snapshot-7",
|
47
|
+
"@instructure/ui-utils": "10.6.2-snapshot-7",
|
48
|
+
"@instructure/ui-view": "10.6.2-snapshot-7",
|
49
49
|
"prop-types": "^15.8.1"
|
50
50
|
},
|
51
51
|
"peerDependencies": {
|
package/src/Table/Head/index.tsx
CHANGED
@@ -68,7 +68,7 @@ class Head extends Component<TableHeadProps> {
|
|
68
68
|
let sortable = false
|
69
69
|
if (firstRow && firstRow.props && firstRow.props.children) {
|
70
70
|
Children.forEach(firstRow.props.children, (grandchild) => {
|
71
|
-
if (grandchild
|
71
|
+
if (grandchild?.props?.onRequestSort) {
|
72
72
|
sortable = true
|
73
73
|
return
|
74
74
|
}
|