@mtes-mct/monitor-ui 13.7.2 → 13.7.4
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 +15 -0
- package/cypress/index.js +9 -7
- package/index.js +6 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## [13.7.3](https://github.com/MTES-MCT/monitor-ui/compare/v13.7.2...v13.7.3) (2024-03-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **cypress:** handle searchable MultiSelect in fill() command ([9a66bb1](https://github.com/MTES-MCT/monitor-ui/commit/9a66bb19b07b482dbab49bdaf7c96d359e7aa1e6))
|
|
7
|
+
* **fields:** the CoordinatesInput now displays the * when isRequired ([e38c209](https://github.com/MTES-MCT/monitor-ui/commit/e38c209f06a221b14a1a9917fe3925048fbea405))
|
|
8
|
+
|
|
9
|
+
## [13.7.2](https://github.com/MTES-MCT/monitor-ui/compare/v13.7.1...v13.7.2) (2024-03-18)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **components:** update Dialog padding ([2cacb4e](https://github.com/MTES-MCT/monitor-ui/commit/2cacb4ed492415971ac61a05f8903b9ad1edc3f2))
|
|
15
|
+
|
|
1
16
|
## [13.7.1](https://github.com/MTES-MCT/monitor-ui/compare/v13.7.0...v13.7.1) (2024-03-15)
|
|
2
17
|
|
|
3
18
|
|
package/cypress/index.js
CHANGED
|
@@ -567,13 +567,15 @@ function pickMultiSelectOptions(fieldElement, values, label, force, delay) {
|
|
|
567
567
|
throwError(`Could not find '.rs-picker-popup' in in field with label "${label}". Did the picker open?`);
|
|
568
568
|
}
|
|
569
569
|
values.forEach((value)=>{
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
570
|
+
// Search for the value if there is a search input
|
|
571
|
+
const maybeSearchInput = fieldElement.querySelector('.rs-picker-search-input > input');
|
|
572
|
+
if (maybeSearchInput) {
|
|
573
|
+
cy.wrap(fieldElement).find('.rs-picker-search-input > input').type(value, {
|
|
574
|
+
delay,
|
|
575
|
+
force
|
|
576
|
+
}).wait(250);
|
|
577
|
+
}
|
|
578
|
+
cy.wrap(rsuitePickerPopupElement).find('[role="option"]').contains(value).first().scrollIntoView().click({
|
|
577
579
|
force
|
|
578
580
|
});
|
|
579
581
|
});
|
package/index.js
CHANGED
|
@@ -64575,12 +64575,13 @@ const StyledFieldset$1 = styled(Fieldset)`
|
|
|
64575
64575
|
&:focus-visible {
|
|
64576
64576
|
outline: 0;
|
|
64577
64577
|
}
|
|
64578
|
-
|
|
64579
|
-
|
|
64578
|
+
}
|
|
64579
|
+
|
|
64580
|
+
${(p)=>p.$isRequired && `
|
|
64581
|
+
legend:after {
|
|
64580
64582
|
content:" *";
|
|
64581
64583
|
color: ${p.theme.color.maximumRed};
|
|
64582
64584
|
}`}
|
|
64583
|
-
}
|
|
64584
64585
|
`;
|
|
64585
64586
|
|
|
64586
64587
|
const useClickOutsideEffect = (zoneRefOrzoneRefs, action, baseContainer)=>{
|
|
@@ -67268,7 +67269,7 @@ readOnly = false, renderMenuItem, style, value }) {
|
|
|
67268
67269
|
name
|
|
67269
67270
|
]);
|
|
67270
67271
|
const selectedRsuiteValue = useMemo(// eslint-disable-next-line no-null/no-null
|
|
67271
|
-
()=>value ? getRsuiteDataItemValueFromOptionValue(value, optionValueKey) : null, [
|
|
67272
|
+
()=>value !== undefined ? getRsuiteDataItemValueFromOptionValue(value, optionValueKey) : null, [
|
|
67272
67273
|
value,
|
|
67273
67274
|
optionValueKey
|
|
67274
67275
|
]);
|
|
@@ -67302,7 +67303,7 @@ readOnly = false, renderMenuItem, style, value }) {
|
|
|
67302
67303
|
onChange: handleChange,
|
|
67303
67304
|
value: selectedRsuiteValue,
|
|
67304
67305
|
children: rsuiteData.map((rsuiteDataItem)=>/*#__PURE__*/ jsx(Radio, {
|
|
67305
|
-
checked:
|
|
67306
|
+
checked: value !== undefined && lodashExports.eq(rsuiteDataItem.optionValue, value),
|
|
67306
67307
|
disabled: !!rsuiteDataItem.isDisabled || disabled,
|
|
67307
67308
|
hasError: hasError,
|
|
67308
67309
|
isLight: isLight,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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": "13.7.
|
|
4
|
+
"version": "13.7.4",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|