@mtes-mct/monitor-ui 24.56.1 → 24.57.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 +21 -0
- package/fields/CheckTreePicker/index.d.ts +3 -2
- package/fields/CheckTreePicker/index.d.ts.map +1 -1
- package/fields/CheckTreePicker/utils.d.ts +2 -1
- package/fields/CheckTreePicker/utils.d.ts.map +1 -1
- package/index.js +3884 -3830
- package/package.json +1 -1
- package/stats.html +1 -1
- package/utils/coordinates.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## [24.57.0](https://github.com/MTES-MCT/monitor-ui/compare/v24.56.1...v24.57.0) (2026-07-29)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* **fields:** add withAllChildrenInResults prop to display all children even if not march with search query ([4d74485](https://github.com/MTES-MCT/monitor-ui/commit/4d744853c8abaf67ce19f1d3655daa0e74d53335))
|
|
6
|
+
* **fields:** update CheckTreePicker to display all children when one match with search query ([1cd69c5](https://github.com/MTES-MCT/monitor-ui/commit/1cd69c5686f7038bccd42a3cb663099ad2635f93))
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **fields:** fix CheTreePicker with large dataset when withAllChildrenInResults is true ([24dea47](https://github.com/MTES-MCT/monitor-ui/commit/24dea47616861e18d077c4a7732193c0f4a8196a))
|
|
11
|
+
* **fields:** rename prop "isMultiSelect" to "canSelectMultipleParents" ([9092287](https://github.com/MTES-MCT/monitor-ui/commit/909228728f47524d0b8b8a909b31d0b1187de56f))
|
|
12
|
+
|
|
13
|
+
## [24.56.1](https://github.com/MTES-MCT/monitor-ui/compare/v24.56.0...v24.56.1) (2026-07-27)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **fields:** show full label on hover for truncated CheckTreePicker items ([32d4b06](https://github.com/MTES-MCT/monitor-ui/commit/32d4b062241ffbe2ee1947de17595895b9fbed2f))
|
|
18
|
+
* **fields:** stop expand-icon overlay from blocking row title tooltip ([e3535cf](https://github.com/MTES-MCT/monitor-ui/commit/e3535cf4e320e2656a5362f5c4a0ca4310c428fb))
|
|
19
|
+
* **libs:** avoid O(n²) fuse search in CustomSearch tree filtering ([e99201f](https://github.com/MTES-MCT/monitor-ui/commit/e99201f4912a0ae65c0af2ee76ece687c245707b))
|
|
20
|
+
* **libs:** remove constraint on unused react-router-dom ([cac84b6](https://github.com/MTES-MCT/monitor-ui/commit/cac84b64e98be14cccce1f0d3ce7e42b964f72ce))
|
|
21
|
+
|
|
1
22
|
## [24.56.0](https://github.com/MTES-MCT/monitor-ui/compare/v24.55.6...v24.56.0) (2026-07-13)
|
|
2
23
|
|
|
3
24
|
### Features
|
|
@@ -4,6 +4,7 @@ import { type CheckTreePickerProps as RsuiteCheckTreePickerProps } from 'rsuite'
|
|
|
4
4
|
import type { TreeOption } from './types';
|
|
5
5
|
import type { Promisable } from 'type-fest';
|
|
6
6
|
export type CheckTreePickerProps = Omit<RsuiteCheckTreePickerProps, 'as' | 'container' | 'data' | 'defaultValue' | 'id' | 'onChange' | 'renderMenuItem' | 'value'> & {
|
|
7
|
+
canSelectMultipleParents?: boolean;
|
|
7
8
|
customSearch?: CustomSearch;
|
|
8
9
|
customSearchMinQueryLength?: number;
|
|
9
10
|
error?: string | undefined;
|
|
@@ -11,7 +12,6 @@ export type CheckTreePickerProps = Omit<RsuiteCheckTreePickerProps, 'as' | 'cont
|
|
|
11
12
|
isLabelHidden?: boolean | undefined;
|
|
12
13
|
isLazyLoading?: boolean;
|
|
13
14
|
isLight?: boolean | undefined;
|
|
14
|
-
isMultiSelect?: boolean;
|
|
15
15
|
isRequired?: boolean | undefined;
|
|
16
16
|
isSelect?: boolean | undefined;
|
|
17
17
|
isTransparent?: boolean | undefined;
|
|
@@ -26,6 +26,7 @@ export type CheckTreePickerProps = Omit<RsuiteCheckTreePickerProps, 'as' | 'cont
|
|
|
26
26
|
renderedValue?: string;
|
|
27
27
|
shouldShowLabels?: boolean;
|
|
28
28
|
value?: TreeOption[] | undefined;
|
|
29
|
+
withAllChildrenInResults?: boolean;
|
|
29
30
|
};
|
|
30
|
-
export declare function CheckTreePicker({ childrenKey, className, customSearch, customSearchMinQueryLength, disabled, error, isErrorMessageHidden, isLabelHidden, isLazyLoading, isLight,
|
|
31
|
+
export declare function CheckTreePicker({ canSelectMultipleParents, childrenKey, className, customSearch, customSearchMinQueryLength, disabled, error, isErrorMessageHidden, isLabelHidden, isLazyLoading, isLight, isRequired, isSelect, isTransparent, isUndefinedWhenDisabled, label, labelKey, onChange, onSearch, options, popupWidth, readOnly, renderedChildrenValue, renderedValue, shouldShowLabels, style, value, valueKey, withAllChildrenInResults, ...originalProps }: CheckTreePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
31
32
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/CheckTreePicker/index.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAKjD,OAAc,EAEZ,KAAK,cAAc,EAOpB,MAAM,OAAO,CAAA;AACd,OAAO,EAGL,KAAK,oBAAoB,IAAI,0BAA0B,EACxD,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/CheckTreePicker/index.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAKjD,OAAc,EAEZ,KAAK,cAAc,EAOpB,MAAM,OAAO,CAAA;AACd,OAAO,EAGL,KAAK,oBAAoB,IAAI,0BAA0B,EACxD,MAAM,QAAQ,CAAA;AAoBf,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC,OAAO,KAAK,EAAE,U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B,KAAK,CAAC,EAAE,UAAU,EAAE,GAAG,SAAS,CAAA;IAChC,wBAAwB,CAAC,EAAE,OAAO,CAAA;CACnC,CAAA;AAED,wBAAgB,eAAe,CAAC,EAC9B,wBAA+B,EAC/B,WAAwB,EACxB,SAAS,EACT,YAAY,EACZ,0BAA8B,EAC9B,QAAgB,EAChB,KAAK,EACL,oBAA4B,EAC5B,aAAqB,EACrB,aAAqB,EACrB,OAAe,EACf,UAAkB,EAClB,QAAgB,EAChB,aAAqB,EACrB,uBAA+B,EAC/B,KAAK,EACL,QAAkB,EAClB,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,UAAU,EACV,QAAgB,EAChB,qBAAyC,EACzC,aAA4B,EAC5B,gBAAuB,EACvB,KAAK,EACL,KAAK,EACL,QAAkB,EAClB,wBAAgC,EAChC,GAAG,aAAa,EACjB,EAAE,oBAAoB,2CA6YtB"}
|
|
@@ -4,10 +4,11 @@ export declare function getOptionsWithLazyChildren(options: TreeOption[], expand
|
|
|
4
4
|
export declare function generateUniqueIds(options: TreeOption[], childrenKey?: string, valueKey?: string | number, labelKey?: string): TreeOption[];
|
|
5
5
|
export declare function fromRsuiteValue(selectedValues: ValueType, allOptions: TreeOption[], isConvertingOriginalValues?: boolean, childrenKey?: string, valueKey?: string | number, labelKey?: string): TreeOption[] | undefined;
|
|
6
6
|
export declare function deepCloneExtensible<T>(obj: T): T;
|
|
7
|
+
export declare function getSearchResultsTree(matchedValues: ValueType | undefined, options: TreeOption[], childrenKey?: string, valueKey?: string, labelKey?: string): TreeOption[];
|
|
7
8
|
export declare function getTreeOptionsBySelectedValues(selectedValues: ValueType | undefined, options: TreeOption[], isConvertingOriginalValues?: boolean, childrenKey?: string, valueKey?: string | number, labelKey?: string): TreeOption[];
|
|
8
9
|
export declare function getParentRsuiteValue(options: TreeOption[] | undefined, valueKey?: string, childrenKey?: string): ValueType;
|
|
9
10
|
export declare function toRsuiteValue(uiValues: TreeOption[] | undefined, optionsWithIds?: TreeOption[], childrenKey?: string, valueKey?: string): ValueType | undefined;
|
|
10
|
-
export declare function computeDisabledValues(
|
|
11
|
+
export declare function computeDisabledValues(canSelectMultipleParents: boolean, value: ValueType | undefined, options: TreeOption[], childrenKey?: string, valueKey?: string, labelKey?: string): (string | number)[];
|
|
11
12
|
export declare function flattenAllDescendants(nodes: TreeOption[], childrenKey?: string): TreeOption[];
|
|
12
13
|
export declare function getOptionsToDisplay(allOptions: TreeOption[], selectedOptions: TreeOption[], childrenKey?: string, valueKey?: string): TreeOption[];
|
|
13
14
|
export declare function hasThreeLevels(options: TreeOption[], childrenKey?: string): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/fields/CheckTreePicker/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAE3D,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,UAAU,EAAE,EACrB,cAAc,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EACpC,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,GACf,UAAU,EAAE,CAsBd;AAaD,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,UAAU,EAAE,EACrB,WAAW,GAAE,MAAmB,EAChC,QAAQ,GAAE,MAAM,GAAG,MAAgB,EACnC,QAAQ,GAAE,MAAgB,GACzB,UAAU,EAAE,CAsBd;AAED,wBAAgB,eAAe,CAC7B,cAAc,EAAE,SAAS,EACzB,UAAU,EAAE,UAAU,EAAE,EACxB,0BAA0B,GAAE,OAAe,EAC3C,WAAW,GAAE,MAAmB,EAChC,QAAQ,GAAE,MAAM,GAAG,MAAgB,EACnC,QAAQ,GAAE,MAAgB,GACzB,UAAU,EAAE,GAAG,SAAS,CAW1B;AAED,wBAAgB,mBAAmB,C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