@mtes-mct/monitor-ui 13.7.0 → 13.7.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 +7 -0
- package/index.js +2 -1
- package/package.json +1 -1
- package/tables/TableWithSelectableRows/RowCheckbox.d.ts.map +1 -1
- package/utils/getFilteredCollection.d.ts +1 -2
- package/utils/getFilteredCollection.d.ts.map +1 -1
- package/utils/stopMouseEventPropagation.d.ts +1 -1
- package/utils/stopMouseEventPropagation.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [13.7.0](https://github.com/MTES-MCT/monitor-ui/compare/v13.6.0...v13.7.0) (2024-03-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **utils:** add getFilteredCollection() ([47eb5ff](https://github.com/MTES-MCT/monitor-ui/commit/47eb5ff8dc75a0b5c3dfc8ea081a21a0aa16840f))
|
|
7
|
+
|
|
1
8
|
## [13.6.0](https://github.com/MTES-MCT/monitor-ui/compare/v13.5.0...v13.6.0) (2024-03-14)
|
|
2
9
|
|
|
3
10
|
|
package/index.js
CHANGED
|
@@ -75896,7 +75896,8 @@ function RowCheckbox({ className = '', disabled = false, isChecked = false, isIn
|
|
|
75896
75896
|
disabled: disabled,
|
|
75897
75897
|
indeterminate: isIndeterminate,
|
|
75898
75898
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
75899
|
-
onChange: (_, __, event)=>onChange(event)
|
|
75899
|
+
onChange: (_, __, event)=>onChange(event),
|
|
75900
|
+
onClick: stopMouseEventPropagation
|
|
75900
75901
|
});
|
|
75901
75902
|
}
|
|
75902
75903
|
|
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.1",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RowCheckbox.d.ts","sourceRoot":"","sources":["../../../src/tables/TableWithSelectableRows/RowCheckbox.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RowCheckbox.d.ts","sourceRoot":"","sources":["../../../src/tables/TableWithSelectableRows/RowCheckbox.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;CAChE,CAAA;AACD,wBAAgB,WAAW,CAAC,EAC1B,SAAc,EACd,QAAgB,EAChB,SAAiB,EACjB,eAAuB,EACvB,QAA0B,EAC3B,EAAE,gBAAgB,GAAG,SAAS,CAAC,gBAAgB,CAAC,2CAYhD"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { Filter } from '../types/definitions';
|
|
2
|
-
export declare function getFilteredCollection<T>(collection: undefined, filters: Array<Filter<T>>): undefined;
|
|
3
|
-
export declare function getFilteredCollection<T>(collection: T[], filters: Array<Filter<T>>): T[];
|
|
2
|
+
export declare function getFilteredCollection<T>(collection: T[] | undefined, filters: Array<Filter<T>>): T[] | undefined;
|
|
4
3
|
//# sourceMappingURL=getFilteredCollection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFilteredCollection.d.ts","sourceRoot":"","sources":["../../src/utils/getFilteredCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAElD,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"getFilteredCollection.d.ts","sourceRoot":"","sources":["../../src/utils/getFilteredCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAElD,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,SAAS,CAMhH"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { MouseEvent } from 'react';
|
|
2
|
-
export declare function stopMouseEventPropagation(event: MouseEvent<HTMLElement>): void;
|
|
2
|
+
export declare function stopMouseEventPropagation(event: MouseEvent<HTMLElement> | React.SyntheticEvent<Element, Event>): void;
|
|
3
3
|
//# sourceMappingURL=stopMouseEventPropagation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stopMouseEventPropagation.d.ts","sourceRoot":"","sources":["../../src/utils/stopMouseEventPropagation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEvC,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"stopMouseEventPropagation.d.ts","sourceRoot":"","sources":["../../src/utils/stopMouseEventPropagation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEvC,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,QAE9G"}
|