@refinitiv-ui/elements 6.5.2 → 6.5.3
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 +12 -0
- package/lib/number-field/index.js +1 -1
- package/lib/tree/index.d.ts +1 -0
- package/lib/tree/index.js +1 -0
- package/lib/version.js +1 -1
- package/package.json +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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
|
+
## [6.5.3](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.5.2...@refinitiv-ui/elements@6.5.3) (2022-12-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **number-field:** fix step error when becomes 6 decimal points ([#550](https://github.com/Refinitiv/refinitiv-ui/issues/550)) ([bf4079c](https://github.com/Refinitiv/refinitiv-ui/commit/bf4079cecb5fdf4deb88513b0629509fc97f1596))
|
|
12
|
+
* **tree:** export class TreeManager ([#552](https://github.com/Refinitiv/refinitiv-ui/issues/552)) ([ca2cc94](https://github.com/Refinitiv/refinitiv-ui/commit/ca2cc948c1eae13e3cf89f8db16df01fe627a965))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## [6.5.2](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.5.1...@refinitiv-ui/elements@6.5.2) (2022-12-01)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @refinitiv-ui/elements
|
|
@@ -194,7 +194,7 @@ let NumberField = class NumberField extends FormFieldElement {
|
|
|
194
194
|
if (Math.floor(value) === value || isNaN(value) || !isFinite(value)) {
|
|
195
195
|
return 0;
|
|
196
196
|
}
|
|
197
|
-
return
|
|
197
|
+
return new Intl.NumberFormat('en', { minimumSignificantDigits: 1 }).format(value).split('.')[1].length || 0;
|
|
198
198
|
}
|
|
199
199
|
/**
|
|
200
200
|
* Get number of decimals based on step base and allowed value step
|
package/lib/tree/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './elements/tree.js';
|
|
2
2
|
export * from './elements/tree-item.js';
|
|
3
3
|
export { TreeRenderer } from './helpers/renderer.js';
|
|
4
|
+
export { TreeManager, TreeManagerMode, CheckedState } from './managers/tree-manager.js';
|
|
4
5
|
import type { TreeData, TreeDataItem } from './helpers/types';
|
|
5
6
|
export type { TreeData, TreeDataItem };
|
package/lib/tree/index.js
CHANGED
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '6.5.
|
|
1
|
+
export const VERSION = '6.5.3';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refinitiv-ui/elements",
|
|
3
|
-
"version": "6.5.
|
|
3
|
+
"version": "6.5.3",
|
|
4
4
|
"description": "Element Framework Elements",
|
|
5
5
|
"author": "LSEG",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
"url": "git@github.com:Refinitiv/refinitiv-ui.git",
|
|
14
14
|
"directory": "packages/elements"
|
|
15
15
|
},
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=16.11.0",
|
|
18
|
+
"npm": ">=8.0.0"
|
|
19
|
+
},
|
|
16
20
|
"typesVersions": {
|
|
17
21
|
"*": {
|
|
18
22
|
"*": [
|
|
@@ -362,5 +366,5 @@
|
|
|
362
366
|
"publishConfig": {
|
|
363
367
|
"access": "public"
|
|
364
368
|
},
|
|
365
|
-
"gitHead": "
|
|
369
|
+
"gitHead": "69cae4d19528ee13a6d53f0703b75134f52c0524"
|
|
366
370
|
}
|