@synerise/ds-search 0.8.64 → 0.8.66
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/dist/Elements/SearchButton/SearchButton.types.d.ts +1 -1
- package/dist/Elements/SearchHeader/SearchHeader.types.d.ts +1 -1
- package/dist/Elements/SearchInput/SearchInput.types.d.ts +2 -2
- package/dist/Elements/SearchItems/SearchItems.types.d.ts +2 -3
- package/dist/Search.d.ts +1 -1
- package/dist/Search.js +1 -3
- package/dist/Search.types.d.ts +5 -5
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.8.66](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@0.8.65...@synerise/ds-search@0.8.66) (2023-10-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-search
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.8.65](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@0.8.64...@synerise/ds-search@0.8.65) (2023-09-26)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @synerise/ds-search
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [0.8.64](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@0.8.63...@synerise/ds-search@0.8.64) (2023-09-21)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @synerise/ds-search
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { InputProps } from 'antd/lib/input';
|
|
3
|
-
export
|
|
3
|
+
export type SearchInputProps = {
|
|
4
4
|
alwaysExpanded?: boolean;
|
|
5
5
|
alwaysHighlight?: boolean;
|
|
6
6
|
clearTooltip?: string | React.ReactNode;
|
|
@@ -25,7 +25,7 @@ export declare type SearchInputProps = {
|
|
|
25
25
|
disableInput?: boolean;
|
|
26
26
|
inputProps?: Partial<InputProps>;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type SearchInputState = {
|
|
29
29
|
inputOffset: number;
|
|
30
30
|
isInputOpen: boolean;
|
|
31
31
|
isResultChosen: boolean;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ListProps } from 'react-window';
|
|
3
|
-
|
|
2
|
+
type ListPropsEnhanced = Partial<ListProps> & {
|
|
4
3
|
scrollTop?: number;
|
|
5
4
|
};
|
|
6
|
-
export
|
|
5
|
+
export type SearchItemListProps<T> = {
|
|
7
6
|
data: T[] | undefined;
|
|
8
7
|
highlight?: string;
|
|
9
8
|
itemRender: (item: T) => JSX.Element;
|
package/dist/Search.d.ts
CHANGED
|
@@ -19,5 +19,5 @@ declare class Search extends React.PureComponent<SearchProps<AnyObject, AnyObjec
|
|
|
19
19
|
renderInputWrapper(): React.ReactNode;
|
|
20
20
|
render(): React.ReactElement;
|
|
21
21
|
}
|
|
22
|
-
declare const _default: import("react-onclickoutside").WrapperClass<SearchProps<
|
|
22
|
+
declare const _default: import("react-onclickoutside").WrapperClass<SearchProps<AnyObject, AnyObject>, typeof Search>;
|
|
23
23
|
export default _default;
|
package/dist/Search.js
CHANGED
|
@@ -267,15 +267,13 @@ var Search = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
267
267
|
});
|
|
268
268
|
|
|
269
269
|
if (filterLookupKey && item[filterLookupKey]) {
|
|
270
|
-
onValueChange(item[textLookupConfig.parameters]); //
|
|
271
|
-
// @ts-ignore
|
|
270
|
+
onValueChange(item[textLookupConfig.parameters]); // @ts-ignore
|
|
272
271
|
|
|
273
272
|
onParameterValueChange(item[filterLookupKey], item);
|
|
274
273
|
this.setState({
|
|
275
274
|
isResultChosen: true
|
|
276
275
|
});
|
|
277
276
|
} else {
|
|
278
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
279
277
|
// @ts-ignore
|
|
280
278
|
onParameterValueChange(item[textLookupConfig.parameters], item);
|
|
281
279
|
}
|
package/dist/Search.types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ListProps } from 'react-window';
|
|
3
3
|
import { InputProps } from 'antd/lib/input';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type AnyObject = Record<string, any>;
|
|
5
|
+
export type DataSetProps = {
|
|
6
6
|
itemRender: (item: any) => JSX.Element;
|
|
7
7
|
rowHeight: number;
|
|
8
8
|
title: string;
|
|
@@ -10,12 +10,12 @@ export declare type DataSetProps = {
|
|
|
10
10
|
visibleRows?: number;
|
|
11
11
|
listProps?: Partial<ListProps>;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type SearchLookupConfig = {
|
|
14
14
|
parameters: string;
|
|
15
15
|
recent: string;
|
|
16
16
|
suggestions: string;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type SearchProps<T extends AnyObject, U extends AnyObject> = {
|
|
19
19
|
clearTooltip: string;
|
|
20
20
|
divider?: React.ReactNode;
|
|
21
21
|
dropdownMaxHeight: number;
|
|
@@ -40,7 +40,7 @@ export declare type SearchProps<T extends AnyObject, U extends AnyObject> = {
|
|
|
40
40
|
disableInput?: boolean;
|
|
41
41
|
alwaysExpanded?: boolean;
|
|
42
42
|
};
|
|
43
|
-
export
|
|
43
|
+
export type SearchState<T extends AnyObject> = {
|
|
44
44
|
isInputOpen: boolean;
|
|
45
45
|
label: T | null | undefined;
|
|
46
46
|
filteredParameters: T[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-search",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.66",
|
|
4
4
|
"description": "Search UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
],
|
|
33
33
|
"types": "dist/index.d.ts",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@synerise/ds-button": "^0.18.
|
|
36
|
-
"@synerise/ds-icon": "^0.58.
|
|
37
|
-
"@synerise/ds-menu": "^0.17.
|
|
38
|
-
"@synerise/ds-scrollbar": "^0.6.
|
|
39
|
-
"@synerise/ds-tooltip": "^0.14.
|
|
40
|
-
"@synerise/ds-utils": "^0.24.
|
|
35
|
+
"@synerise/ds-button": "^0.18.3",
|
|
36
|
+
"@synerise/ds-icon": "^0.58.3",
|
|
37
|
+
"@synerise/ds-menu": "^0.17.20",
|
|
38
|
+
"@synerise/ds-scrollbar": "^0.6.8",
|
|
39
|
+
"@synerise/ds-tooltip": "^0.14.5",
|
|
40
|
+
"@synerise/ds-utils": "^0.24.17",
|
|
41
41
|
"react-onclickoutside": "^6.9.0",
|
|
42
42
|
"react-window": "^1.8.5"
|
|
43
43
|
},
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"@testing-library/jest-dom": "5.1.1",
|
|
53
53
|
"@testing-library/react": "10.0.1",
|
|
54
54
|
"@testing-library/user-event": "^10.3.1",
|
|
55
|
-
"@types/react-onclickoutside": "^6.7.
|
|
56
|
-
"@types/react-window": "^1.8.
|
|
55
|
+
"@types/react-onclickoutside": "^6.7.4",
|
|
56
|
+
"@types/react-window": "^1.8.5"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "1c1adf344f447e404a1d6320ad1d3f8486f29f67"
|
|
59
59
|
}
|