@itwin/itwinui-react 3.13.0 → 3.13.2
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 +25 -8
- package/DEV-cjs/core/Table/Table.js +1 -8
- package/DEV-cjs/core/Table/columns/selectionColumn.js +1 -1
- package/DEV-cjs/styles.js +1 -1
- package/DEV-esm/core/Table/Table.js +1 -8
- package/DEV-esm/core/Table/columns/selectionColumn.js +1 -1
- package/DEV-esm/styles.js +1 -1
- package/cjs/core/Table/Table.js +2 -9
- package/cjs/core/Table/columns/selectionColumn.js +1 -1
- package/cjs/styles.js +1 -1
- package/esm/core/Table/Table.js +2 -9
- package/esm/core/Table/columns/selectionColumn.js +1 -1
- package/esm/styles.js +1 -1
- package/package.json +1 -1
- package/styles.css +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.13.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2143](https://github.com/iTwin/iTwinUI/pull/2143): Added `border-radius` to the `Table` component so that the border radius is correctly applied to the `Table`'s corners.
|
|
8
|
+
- [#2161](https://github.com/iTwin/iTwinUI/pull/2161): Fixed issue where `emptyTableContent` would not appear on virutalized `Table` components.
|
|
9
|
+
|
|
10
|
+
## 3.13.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#2147](https://github.com/iTwin/iTwinUI/pull/2147): Fixed a CSS issue in `ExpandableBlock` where its content wouldn't stay constrained by the width of the parent.
|
|
15
|
+
- [#2148](https://github.com/iTwin/iTwinUI/pull/2148): Fixed regression where the value of the `toggleRowSelected` action for the `Table` would be undefined when `selectSubRows` was set to `false`.
|
|
16
|
+
|
|
3
17
|
## 3.13.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
6
20
|
|
|
7
21
|
- [#2106](https://github.com/iTwin/iTwinUI/pull/2106): All internal CSS class prefixes have been changed to prevent style conflicts across minor versions.
|
|
22
|
+
|
|
8
23
|
- While this is _not_ considered a breaking change according to our [support policy](https://github.com/iTwin/iTwinUI/wiki/Support-policy), this change might affect you if you ignore our pleas to not rely on these internal class names. The recommendation is to pass your own custom `className` through props.
|
|
9
24
|
|
|
10
25
|
- [#2131](https://github.com/iTwin/iTwinUI/pull/2131): Development-only warnings will now be properly excluded from the production build. This is done using a separate `"development"` entrypoint listed in `package.json#exports`.
|
|
@@ -12,20 +27,22 @@
|
|
|
12
27
|
- [#2135](https://github.com/iTwin/iTwinUI/pull/2135): Changed the column manager from a `DropdownMenu` to a `Popover` to fix invalid markup and accessibility issues.
|
|
13
28
|
|
|
14
29
|
- Added dependency on `@tanstack/react-virtual` to replace the custom virtual-scroll implementation. This affects the `enableVirtualization` prop in `ComboBox`, `Table`, and `Tree`.
|
|
30
|
+
|
|
15
31
|
- [#2061](https://github.com/iTwin/iTwinUI/pull/2061): Virtualized `ComboBox` now correctly supports dynamic sizing, e.g. when options both with and without `subLabel` are present.
|
|
16
32
|
- [#2092](https://github.com/iTwin/iTwinUI/pull/2092): Virtualized `Table` has been improved so that scrolling no longer jumps when rows are scrolled past.
|
|
17
33
|
- [#2139](https://github.com/iTwin/iTwinUI/pull/2139): Virtualized `Tree` no longer requires a wrapping scrollable element, since the tree itself is scrollable now.
|
|
18
34
|
<details>
|
|
19
35
|
<summary>Diff</summary>
|
|
20
36
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
37
|
+
```diff
|
|
38
|
+
- <div style={{overflow: 'auto', height: 'min(400px, 90vh)'}}>
|
|
39
|
+
<Tree
|
|
40
|
+
enableVirtualization
|
|
41
|
+
+ style={{height: 'min(400px, 90vh)'}}
|
|
42
|
+
/>
|
|
43
|
+
- </div>
|
|
44
|
+
```
|
|
45
|
+
|
|
29
46
|
</details>
|
|
30
47
|
|
|
31
48
|
### Patch Changes
|
|
@@ -500,14 +500,7 @@ const Table = (props)=>{
|
|
|
500
500
|
}),
|
|
501
501
|
tabIndex: -1,
|
|
502
502
|
"aria-multiselectable": isSelectable && 'multi' === selectionMode || void 0
|
|
503
|
-
}, _react.createElement(_index.ShadowRoot, {
|
|
504
|
-
css: `
|
|
505
|
-
div,
|
|
506
|
-
slot {
|
|
507
|
-
border-radius: inherit;
|
|
508
|
-
}
|
|
509
|
-
`
|
|
510
|
-
}, enableVirtualization ? _react.createElement("div", {
|
|
503
|
+
}, _react.createElement(_index.ShadowRoot, null, enableVirtualization && 0 !== data.length ? _react.createElement("div", {
|
|
511
504
|
style: {
|
|
512
505
|
minBlockSize: virtualizer.getTotalSize(),
|
|
513
506
|
minInlineSize: '100%',
|
|
@@ -56,7 +56,7 @@ const SelectionColumn = (props = {})=>{
|
|
|
56
56
|
onClick: (e)=>e.stopPropagation(),
|
|
57
57
|
onChange: ()=>{
|
|
58
58
|
if (row.subRows.length > 0 && selectSubRows) row.toggleRowSelected(!row.subRows.every((subRow)=>subRow.isSelected || isDisabled?.(subRow.original)));
|
|
59
|
-
else row.toggleRowSelected();
|
|
59
|
+
else row.toggleRowSelected(!row.isSelected);
|
|
60
60
|
}
|
|
61
61
|
}),
|
|
62
62
|
cellRenderer: (props)=>_react.createElement(_index.DefaultCell, {
|
package/DEV-cjs/styles.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="3.13.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="3.13.2";const u=new Proxy({},{get(t,i){if(typeof i=="string"&&i.startsWith("iui-"))return i.replace("iui-",`_iui${e.replace(/\./g,"")}-`)},has(t,i){return typeof i=="string"&&i.startsWith("iui-")}});exports.styles=u;exports.version=e;
|
|
@@ -480,14 +480,7 @@ export const Table = (props)=>{
|
|
|
480
480
|
}),
|
|
481
481
|
tabIndex: -1,
|
|
482
482
|
"aria-multiselectable": isSelectable && 'multi' === selectionMode || void 0
|
|
483
|
-
}, React.createElement(ShadowRoot, {
|
|
484
|
-
css: `
|
|
485
|
-
div,
|
|
486
|
-
slot {
|
|
487
|
-
border-radius: inherit;
|
|
488
|
-
}
|
|
489
|
-
`
|
|
490
|
-
}, enableVirtualization ? React.createElement("div", {
|
|
483
|
+
}, React.createElement(ShadowRoot, null, enableVirtualization && 0 !== data.length ? React.createElement("div", {
|
|
491
484
|
style: {
|
|
492
485
|
minBlockSize: virtualizer.getTotalSize(),
|
|
493
486
|
minInlineSize: '100%',
|
|
@@ -37,7 +37,7 @@ export const SelectionColumn = (props = {})=>{
|
|
|
37
37
|
onClick: (e)=>e.stopPropagation(),
|
|
38
38
|
onChange: ()=>{
|
|
39
39
|
if (row.subRows.length > 0 && selectSubRows) row.toggleRowSelected(!row.subRows.every((subRow)=>subRow.isSelected || isDisabled?.(subRow.original)));
|
|
40
|
-
else row.toggleRowSelected();
|
|
40
|
+
else row.toggleRowSelected(!row.isSelected);
|
|
41
41
|
}
|
|
42
42
|
}),
|
|
43
43
|
cellRenderer: (props)=>React.createElement(DefaultCell, {
|
package/DEV-esm/styles.js
CHANGED
package/cjs/core/Table/Table.js
CHANGED
|
@@ -760,15 +760,8 @@ const Table = (props) => {
|
|
|
760
760
|
},
|
|
761
761
|
_react.createElement(
|
|
762
762
|
_index.ShadowRoot,
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
div,
|
|
766
|
-
slot {
|
|
767
|
-
border-radius: inherit;
|
|
768
|
-
}
|
|
769
|
-
`,
|
|
770
|
-
},
|
|
771
|
-
enableVirtualization
|
|
763
|
+
null,
|
|
764
|
+
enableVirtualization && 0 !== data.length
|
|
772
765
|
? _react.createElement(
|
|
773
766
|
'div',
|
|
774
767
|
{
|
package/cjs/styles.js
CHANGED
package/esm/core/Table/Table.js
CHANGED
|
@@ -772,15 +772,8 @@ export const Table = (props) => {
|
|
|
772
772
|
},
|
|
773
773
|
React.createElement(
|
|
774
774
|
ShadowRoot,
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
div,
|
|
778
|
-
slot {
|
|
779
|
-
border-radius: inherit;
|
|
780
|
-
}
|
|
781
|
-
`,
|
|
782
|
-
},
|
|
783
|
-
enableVirtualization
|
|
775
|
+
null,
|
|
776
|
+
enableVirtualization && 0 !== data.length
|
|
784
777
|
? React.createElement(
|
|
785
778
|
'div',
|
|
786
779
|
{
|
package/esm/styles.js
CHANGED