@refinitiv-ui/elements 7.6.0 → 7.6.1
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 +7 -0
- package/lib/list/elements/list.js +8 -0
- package/lib/tree/elements/tree.js +4 -0
- package/lib/version.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
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
|
+
## [7.6.1](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@7.6.0...@refinitiv-ui/elements@7.6.1) (2023-10-02)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **list, tree:** stateless list and tree should have `aria-readonly`="true" ([#971](https://github.com/Refinitiv/refinitiv-ui/issues/971)) ([6856c0f](https://github.com/Refinitiv/refinitiv-ui/commit/6856c0fdff5e7165f8c07e99865ebfdc7f190558))
|
|
11
|
+
- **tree:** parent label can't expand/collapse in stateless mode ([#967](https://github.com/Refinitiv/refinitiv-ui/issues/967)) ([74f9877](https://github.com/Refinitiv/refinitiv-ui/commit/74f9877b8643e49059f4e35a141b4a892f17cd86))
|
|
12
|
+
|
|
6
13
|
# [7.6.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@7.5.0...@refinitiv-ui/elements@7.6.0) (2023-09-25)
|
|
7
14
|
|
|
8
15
|
### Bug Fixes
|
|
@@ -572,6 +572,14 @@ let List = class List extends ControlElement {
|
|
|
572
572
|
this.renderTimestamp.clear(); // force render of all items
|
|
573
573
|
this.setAttribute('aria-multiselectable', this.multiple ? 'true' : 'false');
|
|
574
574
|
}
|
|
575
|
+
if (changeProperties.has('stateless')) {
|
|
576
|
+
if (this.stateless) {
|
|
577
|
+
this.setAttribute('aria-readonly', 'true');
|
|
578
|
+
}
|
|
579
|
+
else {
|
|
580
|
+
this.removeAttribute('aria-readonly');
|
|
581
|
+
}
|
|
582
|
+
}
|
|
575
583
|
}
|
|
576
584
|
/**
|
|
577
585
|
* A `CSSResultGroup` that will be used
|
|
@@ -96,6 +96,10 @@ let Tree = class Tree extends List {
|
|
|
96
96
|
selectItem(item) {
|
|
97
97
|
// Stateless tree
|
|
98
98
|
if (this.stateless) {
|
|
99
|
+
// Single selection - expand/collapse group (parent)
|
|
100
|
+
if (!this.multiple && this.manager.isItemParent(item)) {
|
|
101
|
+
this.toggleExpandedState(item);
|
|
102
|
+
}
|
|
99
103
|
return false;
|
|
100
104
|
}
|
|
101
105
|
// Multiple selection
|
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '7.6.
|
|
1
|
+
export const VERSION = '7.6.1';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refinitiv-ui/elements",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.1",
|
|
4
4
|
"description": "Element Framework Elements",
|
|
5
5
|
"author": "LSEG",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -352,7 +352,7 @@
|
|
|
352
352
|
},
|
|
353
353
|
"devDependencies": {
|
|
354
354
|
"@refinitiv-ui/core": "^7.2.0",
|
|
355
|
-
"@refinitiv-ui/demo-block": "^7.0.
|
|
355
|
+
"@refinitiv-ui/demo-block": "^7.0.7",
|
|
356
356
|
"@refinitiv-ui/i18n": "^7.0.4",
|
|
357
357
|
"@refinitiv-ui/phrasebook": "^7.0.4",
|
|
358
358
|
"@refinitiv-ui/test-helpers": "^7.0.4",
|
|
@@ -371,5 +371,5 @@
|
|
|
371
371
|
"publishConfig": {
|
|
372
372
|
"access": "public"
|
|
373
373
|
},
|
|
374
|
-
"gitHead": "
|
|
374
|
+
"gitHead": "788e08bbba04ae54501cee9cf19251e1a44b18fb"
|
|
375
375
|
}
|