@refinitiv-ui/elements 5.10.0 → 5.11.0-alpha.0
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/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/index.js +4 -6
- package/lib/version.js +1 -1
- package/package.json +10 -10
|
@@ -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) {
|
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '5.
|
|
1
|
+
export const VERSION = '5.11.0-alpha.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refinitiv-ui/elements",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.11.0-alpha.0",
|
|
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.
|
|
598
|
-
"@refinitiv-ui/i18n": "^5.
|
|
599
|
-
"@refinitiv-ui/phrasebook": "^5.
|
|
600
|
-
"@refinitiv-ui/solar-theme": "^5.
|
|
601
|
-
"@refinitiv-ui/translate": "^5.
|
|
596
|
+
"@refinitiv-ui/core": "^5.4.0-alpha.0",
|
|
597
|
+
"@refinitiv-ui/halo-theme": "^5.5.0-alpha.0",
|
|
598
|
+
"@refinitiv-ui/i18n": "^5.3.0-alpha.0",
|
|
599
|
+
"@refinitiv-ui/phrasebook": "^5.5.0-alpha.0",
|
|
600
|
+
"@refinitiv-ui/solar-theme": "^5.7.0-alpha.0",
|
|
601
|
+
"@refinitiv-ui/translate": "^5.3.0-alpha.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.
|
|
612
|
-
"@refinitiv-ui/test-helpers": "^5.
|
|
611
|
+
"@refinitiv-ui/demo-block": "^5.2.0-alpha.0",
|
|
612
|
+
"@refinitiv-ui/test-helpers": "^5.2.0-alpha.0",
|
|
613
613
|
"@types/d3-interpolate": "^3.0.1"
|
|
614
614
|
},
|
|
615
615
|
"publishConfig": {
|
|
616
616
|
"access": "public"
|
|
617
617
|
},
|
|
618
|
-
"gitHead": "
|
|
618
|
+
"gitHead": "41ad2a9927526e4beaccc6d519bc16b0c20e5864"
|
|
619
619
|
}
|