@mtes-mct/monitor-ui 8.5.0 → 8.6.0
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/package.json +1 -1
- package/src/index.d.ts +1 -1
- package/src/types.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [8.5.0](https://github.com/MTES-MCT/monitor-ui/compare/v8.4.0...v8.5.0) (2023-08-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add internal Native types ([41f0329](https://github.com/MTES-MCT/monitor-ui/commit/41f03299a08b32e12ffefaf55c5f1331a5ac08f3))
|
|
7
|
+
* **types:** add public type UndefineExceptArrays ([931edc8](https://github.com/MTES-MCT/monitor-ui/commit/931edc814a333be0333e8ccc2a6ef59e95ff43a7))
|
|
8
|
+
* **utils:** add getOptionsFromIdAndName() ([e9b8865](https://github.com/MTES-MCT/monitor-ui/commit/e9b8865243215b66e9ae8cdd067f55d7fa0ad60a))
|
|
9
|
+
* **utils:** add getOptionsFromLabelledEnum() ([c4b185e](https://github.com/MTES-MCT/monitor-ui/commit/c4b185e5f7ada189d5a101ec29feda6e31aeb86b))
|
|
10
|
+
* **utils:** add isArray() ([7d9bd10](https://github.com/MTES-MCT/monitor-ui/commit/7d9bd10b66908949fa4b65794597cb23653a1ba9))
|
|
11
|
+
* **utils:** add isDefined() ([0e49bc9](https://github.com/MTES-MCT/monitor-ui/commit/0e49bc9b9a7663dff61cc9dc0ab64abace81e60c))
|
|
12
|
+
* **utils:** add isObject() ([9e1595a](https://github.com/MTES-MCT/monitor-ui/commit/9e1595a330ff3f3f7afb4af9cabdea592558434b))
|
|
13
|
+
* **utils:** add nullify() ([9d21221](https://github.com/MTES-MCT/monitor-ui/commit/9d21221d126e1d27e5aa56b038ebae24766175f2))
|
|
14
|
+
* **utils:** add undefine() ([2fbfcf4](https://github.com/MTES-MCT/monitor-ui/commit/2fbfcf4064822efbbf6aca5a386ff3f4e3c2c1a6))
|
|
15
|
+
|
|
1
16
|
# [8.4.0](https://github.com/MTES-MCT/monitor-ui/compare/v8.3.0...v8.4.0) (2023-08-17)
|
|
2
17
|
|
|
3
18
|
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ export { nullify } from './utils/nullify';
|
|
|
78
78
|
export { stopMouseEventPropagation } from './utils/stopMouseEventPropagation';
|
|
79
79
|
export { undefine } from './utils/undefine';
|
|
80
80
|
export type { PartialTheme, Theme } from './theme';
|
|
81
|
-
export type { Coordinates, DateAsStringRange, DateRange, Defined, IconProps, Option, OptionValueType, Undefine, UndefineExceptArrays } from './types';
|
|
81
|
+
export type { Coordinates, DateAsStringRange, DateRange, Defined, Filter, IconProps, Option, OptionValueType, Undefine, UndefineExceptArrays } from './types';
|
|
82
82
|
export type { DialogProps } from './components/Dialog';
|
|
83
83
|
export type { DropdownProps, DropdownItemProps } from './components/Dropdown';
|
|
84
84
|
export type { NewWindowProps } from './components/NewWindow';
|
package/src/types.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export type Option<OptionValue extends OptionValueType = string> = Omit<ItemData
|
|
|
13
13
|
value: OptionValue;
|
|
14
14
|
};
|
|
15
15
|
export type OptionValueType = boolean | number | string | Record<string, any>;
|
|
16
|
+
export type Filter<T> = (collection: T[]) => T[];
|
|
16
17
|
export type Defined<T> = T extends undefined ? never : T;
|
|
17
18
|
/**
|
|
18
19
|
* Mark all the prop types of an interface/type as `prop: <non_undefined_type>`.
|