@mtes-mct/monitor-ui 21.2.0 → 21.2.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 +12 -0
- package/index.js +4 -3
- package/package.json +4 -4
- package/utils/getOptionsFromLabelledEnum.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [21.2.0](https://github.com/MTES-MCT/monitor-ui/compare/v21.1.1...v21.2.0) (2024-08-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **icons:** new icon for lists ([d5a6b3c](https://github.com/MTES-MCT/monitor-ui/commit/d5a6b3ce8108ae1c7841ccfe4b167621c72670d5))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Buid System & Dependencies
|
|
10
|
+
|
|
11
|
+
* **dev-deps:** bump the all-non-major-dependencies group ([7899982](https://github.com/MTES-MCT/monitor-ui/commit/78999826f6d74020d6e7aa544925c2d75405342e))
|
|
12
|
+
|
|
1
13
|
## [21.1.1](https://github.com/MTES-MCT/monitor-ui/compare/v21.1.0...v21.1.1) (2024-08-20)
|
|
2
14
|
|
|
3
15
|
|
package/index.js
CHANGED
|
@@ -74052,15 +74052,16 @@ function getOptionsFromIdAndName(collection) {
|
|
|
74052
74052
|
}));
|
|
74053
74053
|
}
|
|
74054
74054
|
|
|
74055
|
+
const byFrenchNaturalOrder = (a, b)=>a.label.localeCompare(b.label, 'fr', {
|
|
74056
|
+
sensitivity: 'base'
|
|
74057
|
+
});
|
|
74055
74058
|
function getOptionsFromLabelledEnum(labelledEnum, mustSort = false) {
|
|
74056
74059
|
const formattedOptions = Object.entries(labelledEnum).map(([value, label])=>({
|
|
74057
74060
|
label,
|
|
74058
74061
|
value
|
|
74059
74062
|
}));
|
|
74060
74063
|
if (mustSort) {
|
|
74061
|
-
return
|
|
74062
|
-
'label'
|
|
74063
|
-
], formattedOptions);
|
|
74064
|
+
return formattedOptions.sort(byFrenchNaturalOrder);
|
|
74064
74065
|
}
|
|
74065
74066
|
return formattedOptions;
|
|
74066
74067
|
}
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mtes-mct/monitor-ui",
|
|
3
3
|
"description": "Common React components, hooks, utilities and CSS stylesheets for MonitorFish, MonitorEnv and RapportNav.",
|
|
4
|
-
"version": "21.2.
|
|
4
|
+
"version": "21.2.1",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=20"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@babel/runtime": "7.25.
|
|
12
|
-
"@tanstack/react-table": "8.20.
|
|
11
|
+
"@babel/runtime": "7.25.4",
|
|
12
|
+
"@tanstack/react-table": "8.20.5",
|
|
13
13
|
"@tanstack/react-virtual": "beta",
|
|
14
14
|
"prop-types": "15.8.1",
|
|
15
|
-
"tslib": "2.
|
|
15
|
+
"tslib": "2.7.0"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"@sentry/react": "^7.0.0 || ^8.0.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getOptionsFromLabelledEnum.d.ts","sourceRoot":"","sources":["../../src/utils/getOptionsFromLabelledEnum.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getOptionsFromLabelledEnum.d.ts","sourceRoot":"","sources":["../../src/utils/getOptionsFromLabelledEnum.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAIlD,wBAAgB,0BAA0B,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAClG,YAAY,EAAE,CAAC,EACf,QAAQ,GAAE,OAAe,GACxB,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAWnB"}
|