@mtes-mct/monitor-ui 6.3.1 → 6.3.3
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 +16 -0
- package/fields/MultiSelect.d.ts +3 -1
- package/fields/Select.d.ts +3 -1
- package/index.js +1152 -81
- package/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## [6.3.2](https://github.com/MTES-MCT/monitor-ui/compare/v6.3.1...v6.3.2) (2023-05-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **libs:** make CustomSearch fully functional ([931dda0](https://github.com/MTES-MCT/monitor-ui/commit/931dda03e79ba3710d9ae0d14a45305e0c57b819))
|
|
7
|
+
|
|
8
|
+
## [6.3.1](https://github.com/MTES-MCT/monitor-ui/compare/v6.3.0...v6.3.1) (2023-05-24)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **fields:** force searchable when using customSearch prop in MultiSelect ([1c195cb](https://github.com/MTES-MCT/monitor-ui/commit/1c195cbe7514e24d3fff4e4af91b310f47a20ec8))
|
|
14
|
+
* **fields:** link unreachable customSearch case in Select & MultiSelect ([d821901](https://github.com/MTES-MCT/monitor-ui/commit/d82190185bdfaae2e8322fae7dfc847214d645c8))
|
|
15
|
+
* **libs:** trim query param in find() method ([3a7dd9d](https://github.com/MTES-MCT/monitor-ui/commit/3a7dd9d84f3782b5fa1fc8c76711015975245777))
|
|
16
|
+
|
|
1
17
|
# [6.3.0](https://github.com/MTES-MCT/monitor-ui/compare/v6.2.2...v6.3.0) (2023-05-24)
|
|
2
18
|
|
|
3
19
|
|
package/fields/MultiSelect.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export type MultiSelectProps<OptionValue extends OptionValueType = string> = Omi
|
|
|
6
6
|
/** Used to pass something else than `window.document` as a base container to attach global events listeners. */
|
|
7
7
|
baseContainer?: Document | HTMLDivElement | null | undefined;
|
|
8
8
|
customSearch?: CustomSearch<Option<OptionValue>> | undefined;
|
|
9
|
+
/** Minimum search query length required to trigger custom search filtering. */
|
|
10
|
+
customSearchMinQueryLength?: number | undefined;
|
|
9
11
|
error?: string | undefined;
|
|
10
12
|
isErrorMessageHidden?: boolean | undefined;
|
|
11
13
|
isLabelHidden?: boolean | undefined;
|
|
@@ -18,4 +20,4 @@ export type MultiSelectProps<OptionValue extends OptionValueType = string> = Omi
|
|
|
18
20
|
options: Option<OptionValue>[];
|
|
19
21
|
value?: OptionValue[] | undefined;
|
|
20
22
|
};
|
|
21
|
-
export declare function MultiSelect<OptionValue extends OptionValueType = string>({ baseContainer, customSearch, disabled, error, isErrorMessageHidden, isLabelHidden, isLight, isUndefinedWhenDisabled, label, onChange, options, optionValueKey, searchable, value, ...originalProps }: MultiSelectProps<OptionValue>): JSX.Element;
|
|
23
|
+
export declare function MultiSelect<OptionValue extends OptionValueType = string>({ baseContainer, customSearch, customSearchMinQueryLength, disabled, error, isErrorMessageHidden, isLabelHidden, isLight, isUndefinedWhenDisabled, label, onChange, options, optionValueKey, searchable, value, ...originalProps }: MultiSelectProps<OptionValue>): JSX.Element;
|
package/fields/Select.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export type SelectProps<OptionValue extends OptionValueType = string> = Omit<Sel
|
|
|
6
6
|
/** Used to pass something else than `window.document` as a base container to attach global events listeners. */
|
|
7
7
|
baseContainer?: Document | HTMLDivElement | null | undefined;
|
|
8
8
|
customSearch?: CustomSearch<Option<OptionValue>> | undefined;
|
|
9
|
+
/** Minimum search query length required to trigger custom search filtering. */
|
|
10
|
+
customSearchMinQueryLength?: number | undefined;
|
|
9
11
|
error?: string | undefined;
|
|
10
12
|
isCleanable?: boolean | undefined;
|
|
11
13
|
isErrorMessageHidden?: boolean | undefined;
|
|
@@ -19,4 +21,4 @@ export type SelectProps<OptionValue extends OptionValueType = string> = Omit<Sel
|
|
|
19
21
|
options: Option<OptionValue>[];
|
|
20
22
|
value?: OptionValue | undefined;
|
|
21
23
|
};
|
|
22
|
-
export declare function Select<OptionValue extends OptionValueType = string>({ baseContainer, customSearch, disabled, error, isCleanable, isErrorMessageHidden, isLabelHidden, isLight, isUndefinedWhenDisabled, label, onChange, options, optionValueKey, searchable, value, ...originalProps }: SelectProps<OptionValue>): JSX.Element;
|
|
24
|
+
export declare function Select<OptionValue extends OptionValueType = string>({ baseContainer, customSearch, customSearchMinQueryLength, disabled, error, isCleanable, isErrorMessageHidden, isLabelHidden, isLight, isUndefinedWhenDisabled, label, onChange, options, optionValueKey, searchable, value, ...originalProps }: SelectProps<OptionValue>): JSX.Element;
|