@refinitiv-ui/elements 5.10.0 → 5.10.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 +14 -0
- package/lib/checkbox/index.js +0 -1
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/index.js +4 -6
- package/lib/radio-button/index.js +4 -1
- package/lib/version.js +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
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
|
+
## [5.10.1](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@5.10.0...@refinitiv-ui/elements@5.10.1) (2022-01-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **checkbox:** `Enter` key should not check or uncheck checkbox ([ee61255](https://github.com/Refinitiv/refinitiv-ui/commit/ee6125513ab670495ef7b87580fa97ea386c840a))
|
|
12
|
+
* **pagination:** handle case when user input number with string ([#142](https://github.com/Refinitiv/refinitiv-ui/issues/142)) ([975f999](https://github.com/Refinitiv/refinitiv-ui/commit/975f9998bc1cf4b5326b567023984d8a893e6983))
|
|
13
|
+
* **radio-button:** `Enter` key should not check or uncheck radio-button ([145f7bf](https://github.com/Refinitiv/refinitiv-ui/commit/145f7bfc15fe72e95d0719eaa6d691f09fd8a03c))
|
|
14
|
+
* **radio-button:** add IE11 arrow keys navigation support ([#158](https://github.com/Refinitiv/refinitiv-ui/issues/158)) ([6389d00](https://github.com/Refinitiv/refinitiv-ui/commit/6389d006a07cdc5ed04ae77748f12726b7da48e1))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
6
20
|
# [5.10.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@5.9.1...@refinitiv-ui/elements@5.10.0) (2021-12-21)
|
|
7
21
|
|
|
8
22
|
|
package/lib/checkbox/index.js
CHANGED
|
@@ -164,7 +164,7 @@ export declare class Pagination extends BasicElement {
|
|
|
164
164
|
*/
|
|
165
165
|
protected updated(changedProperties: PropertyValues): void;
|
|
166
166
|
/**
|
|
167
|
-
* Validate
|
|
167
|
+
* Validate page value which returns true when value is valid
|
|
168
168
|
* @param value value
|
|
169
169
|
* @param warning show warning message when value is invalid
|
|
170
170
|
* @param propName property name to show in warning message
|
package/lib/pagination/index.js
CHANGED
|
@@ -295,7 +295,7 @@ let Pagination = class Pagination extends BasicElement {
|
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
/**
|
|
298
|
-
* Validate
|
|
298
|
+
* Validate page value which returns true when value is valid
|
|
299
299
|
* @param value value
|
|
300
300
|
* @param warning show warning message when value is invalid
|
|
301
301
|
* @param propName property name to show in warning message
|
|
@@ -362,15 +362,13 @@ let Pagination = class Pagination extends BasicElement {
|
|
|
362
362
|
let newValue = parseInt(this.input.value, 10);
|
|
363
363
|
// Reset input and boundary value into supported range.
|
|
364
364
|
if (this.validatePage(this.input.value)) {
|
|
365
|
-
if (newValue
|
|
366
|
-
newValue = 1;
|
|
367
|
-
}
|
|
368
|
-
else if (newValue > this.internalMax) {
|
|
365
|
+
if (newValue > this.internalMax) {
|
|
369
366
|
newValue = this.internalMax;
|
|
370
367
|
}
|
|
371
368
|
this.value = newValue.toString();
|
|
372
369
|
}
|
|
373
|
-
|
|
370
|
+
// When input value is invalid in case less than support range (value<1), then reset value = '1'.
|
|
371
|
+
else if (!isNaN(newValue) && newValue < 1) {
|
|
374
372
|
this.value = '1';
|
|
375
373
|
}
|
|
376
374
|
if (this.value !== oldValue) {
|
|
@@ -167,7 +167,6 @@ let RadioButton = class RadioButton extends ControlElement {
|
|
|
167
167
|
return;
|
|
168
168
|
}
|
|
169
169
|
switch (event.key) {
|
|
170
|
-
case 'Enter':
|
|
171
170
|
case ' ':
|
|
172
171
|
case 'Spacebar':
|
|
173
172
|
if (this.readonly) {
|
|
@@ -175,10 +174,14 @@ let RadioButton = class RadioButton extends ControlElement {
|
|
|
175
174
|
}
|
|
176
175
|
this.handleChangeChecked();
|
|
177
176
|
break;
|
|
177
|
+
case 'Right':
|
|
178
|
+
case 'Down':
|
|
178
179
|
case 'ArrowRight':
|
|
179
180
|
case 'ArrowDown':
|
|
180
181
|
this.navigateToSibling('next');
|
|
181
182
|
break;
|
|
183
|
+
case 'Left':
|
|
184
|
+
case 'Up':
|
|
182
185
|
case 'ArrowLeft':
|
|
183
186
|
case 'ArrowUp':
|
|
184
187
|
this.navigateToSibling('previous');
|
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '5.10.
|
|
1
|
+
export const VERSION = '5.10.1';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refinitiv-ui/elements",
|
|
3
|
-
"version": "5.10.
|
|
3
|
+
"version": "5.10.1",
|
|
4
4
|
"description": "Element Framework Elements",
|
|
5
5
|
"author": "Refinitiv",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -593,12 +593,12 @@
|
|
|
593
593
|
},
|
|
594
594
|
"dependencies": {
|
|
595
595
|
"@refinitiv-ui/browser-sparkline": "1.1.7",
|
|
596
|
-
"@refinitiv-ui/core": "^5.
|
|
597
|
-
"@refinitiv-ui/halo-theme": "^5.4.
|
|
598
|
-
"@refinitiv-ui/i18n": "^5.2.
|
|
599
|
-
"@refinitiv-ui/phrasebook": "^5.4.
|
|
600
|
-
"@refinitiv-ui/solar-theme": "^5.6.
|
|
601
|
-
"@refinitiv-ui/translate": "^5.
|
|
596
|
+
"@refinitiv-ui/core": "^5.4.0",
|
|
597
|
+
"@refinitiv-ui/halo-theme": "^5.4.2",
|
|
598
|
+
"@refinitiv-ui/i18n": "^5.2.6",
|
|
599
|
+
"@refinitiv-ui/phrasebook": "^5.4.1",
|
|
600
|
+
"@refinitiv-ui/solar-theme": "^5.6.2",
|
|
601
|
+
"@refinitiv-ui/translate": "^5.3.0",
|
|
602
602
|
"@refinitiv-ui/utils": "^5.1.1",
|
|
603
603
|
"@types/chart.js": "^2.9.31",
|
|
604
604
|
"chart.js": "~2.9.4",
|
|
@@ -608,12 +608,12 @@
|
|
|
608
608
|
"tslib": "^2.3.1"
|
|
609
609
|
},
|
|
610
610
|
"devDependencies": {
|
|
611
|
-
"@refinitiv-ui/demo-block": "^5.1.
|
|
612
|
-
"@refinitiv-ui/test-helpers": "^5.1.
|
|
611
|
+
"@refinitiv-ui/demo-block": "^5.1.6",
|
|
612
|
+
"@refinitiv-ui/test-helpers": "^5.1.2",
|
|
613
613
|
"@types/d3-interpolate": "^3.0.1"
|
|
614
614
|
},
|
|
615
615
|
"publishConfig": {
|
|
616
616
|
"access": "public"
|
|
617
617
|
},
|
|
618
|
-
"gitHead": "
|
|
618
|
+
"gitHead": "8dc11b6a77f486a0f3bc8729a5f43a9118b34a43"
|
|
619
619
|
}
|