@patternfly/react-table 4.60.2 → 4.60.6

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 CHANGED
@@ -3,6 +3,44 @@
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
+ ## 4.60.6 (2022-01-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **TextInputGroup:** address various issues ([#6774](https://github.com/patternfly/patternfly-react/issues/6774)) ([010058a](https://github.com/patternfly/patternfly-react/commit/010058acc7115fb76a35fe06634083ada62cece0))
12
+
13
+
14
+
15
+
16
+
17
+ ## 4.60.5 (2022-01-20)
18
+
19
+ **Note:** Version bump only for package @patternfly/react-table
20
+
21
+
22
+
23
+
24
+
25
+ ## 4.60.4 (2022-01-19)
26
+
27
+ **Note:** Version bump only for package @patternfly/react-table
28
+
29
+
30
+
31
+
32
+
33
+ ## 4.60.3 (2022-01-19)
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * **examples:** amend row index in tree table examples ([#6830](https://github.com/patternfly/patternfly-react/issues/6830)) ([e676fb1](https://github.com/patternfly/patternfly-react/commit/e676fb1171618e957a4564af31c15ca6e3800507)), closes [#6719](https://github.com/patternfly/patternfly-react/issues/6719)
39
+
40
+
41
+
42
+
43
+
6
44
  ## 4.60.2 (2022-01-19)
7
45
 
8
46
  **Note:** Version bump only for package @patternfly/react-table
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-table",
3
- "version": "4.60.2",
3
+ "version": "4.60.6",
4
4
  "description": "This library provides a set of React table components for use with the PatternFly 4",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -31,10 +31,10 @@
31
31
  "clean": "rimraf dist"
32
32
  },
33
33
  "dependencies": {
34
- "@patternfly/react-core": "^4.191.2",
35
- "@patternfly/react-icons": "^4.42.2",
36
- "@patternfly/react-styles": "^4.41.2",
37
- "@patternfly/react-tokens": "^4.43.2",
34
+ "@patternfly/react-core": "^4.191.6",
35
+ "@patternfly/react-icons": "^4.42.6",
36
+ "@patternfly/react-styles": "^4.41.6",
37
+ "@patternfly/react-tokens": "^4.43.6",
38
38
  "lodash": "^4.17.19",
39
39
  "tslib": "^2.0.0"
40
40
  },
@@ -46,5 +46,5 @@
46
46
  "react": "^16.8.0 || ^17.0.0",
47
47
  "react-dom": "^16.8.0 || ^17.0.0"
48
48
  },
49
- "gitHead": "346e73d12c36bf0c75c1208656efc85b4ceaac9a"
49
+ "gitHead": "ce80b69350209b17f274f222e03278a3d09c021f"
50
50
  }
@@ -137,6 +137,12 @@ export const LegacyTableTree: React.FunctionComponent = () => {
137
137
  icon = isExpanded ? <FolderOpenIcon aria-hidden /> : <FolderIcon aria-hidden />;
138
138
  }
139
139
  flattenedNodes.push(node);
140
+
141
+ const childRows =
142
+ node.children && node.children.length
143
+ ? buildRows(node.children, level + 1, 1, rowIndex + 1, !isExpanded || isHidden)
144
+ : [];
145
+
140
146
  return [
141
147
  {
142
148
  cells: [node.name, node.branches, node.pullRequests, node.workspaces],
@@ -151,16 +157,8 @@ export const LegacyTableTree: React.FunctionComponent = () => {
151
157
  icon
152
158
  }
153
159
  },
154
- ...(node.children && node.children.length
155
- ? buildRows(node.children, level + 1, 1, rowIndex + 1, !isExpanded || isHidden)
156
- : []),
157
- ...buildRows(
158
- remainingNodes,
159
- level,
160
- posinset + 1,
161
- rowIndex + 1 + ((node.children && node.children.length) || 0),
162
- isHidden
163
- )
160
+ ...childRows,
161
+ ...buildRows(remainingNodes, level, posinset + 1, rowIndex + 1 + childRows.length, isHidden)
164
162
  ];
165
163
  };
166
164
 
@@ -163,6 +163,11 @@ export const ComposableTableTree: React.FunctionComponent = () => {
163
163
  }
164
164
  };
165
165
 
166
+ const childRows =
167
+ node.children && node.children.length
168
+ ? renderRows(node.children, level + 1, 1, rowIndex + 1, !isExpanded || isHidden)
169
+ : [];
170
+
166
171
  return [
167
172
  <TreeRowWrapper key={node.name} row={{ props: treeRow.props }}>
168
173
  <Td dataLabel={columnNames.name} treeRow={treeRow}>
@@ -172,16 +177,8 @@ export const ComposableTableTree: React.FunctionComponent = () => {
172
177
  <Td dataLabel={columnNames.prs}>{node.pullRequests}</Td>
173
178
  <Td dataLabel={columnNames.workspaces}>{node.workspaces}</Td>
174
179
  </TreeRowWrapper>,
175
- ...(node.children && node.children.length
176
- ? renderRows(node.children, level + 1, 1, rowIndex + 1, !isExpanded || isHidden)
177
- : []),
178
- ...renderRows(
179
- remainingNodes,
180
- level,
181
- posinset + 1,
182
- rowIndex + 1 + ((node.children && node.children.length) || 0),
183
- isHidden
184
- )
180
+ ...childRows,
181
+ ...renderRows(remainingNodes, level, posinset + 1, rowIndex + 1 + childRows.length, isHidden)
185
182
  ];
186
183
  };
187
184