@trackunit/filters-asset-filter-definitions 1.11.73 → 1.11.76
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/index.cjs.js +3 -3
- package/index.esm.js +3 -3
- package/package.json +18 -18
- package/src/defaultFilters/defaults/SearchFilter.d.ts +1 -1
package/index.cjs.js
CHANGED
|
@@ -3851,7 +3851,7 @@ const MAX_RECENT_SEARCHES = 20;
|
|
|
3851
3851
|
/**
|
|
3852
3852
|
*
|
|
3853
3853
|
*/
|
|
3854
|
-
const SearchFilterInline = ({ filterBarActions, filterState, filterDefinition, localStorageKey, className, dataTestId, }) => {
|
|
3854
|
+
const SearchFilterInline = ({ filterBarActions, filterState, filterDefinition, localStorageKey, className, "data-testid": dataTestId, }) => {
|
|
3855
3855
|
const { logEvent } = reactCoreHooks.useAnalytics(filtersFilterBar.FilterEvents);
|
|
3856
3856
|
const [t] = useTranslation();
|
|
3857
3857
|
const { geometry, ref: searchElementRef } = reactComponents.useMeasure();
|
|
@@ -3898,11 +3898,11 @@ const SearchFilterInline = ({ filterBarActions, filterState, filterDefinition, l
|
|
|
3898
3898
|
});
|
|
3899
3899
|
filterDefinition?.filterKey && filterBarActions.setStringValue(filterDefinition.filterKey, value);
|
|
3900
3900
|
}, [filterDefinition?.filterKey, filterBarActions, logEvent, setRecentSearches]);
|
|
3901
|
-
return (jsxRuntime.jsxs(reactComponents.Popover, { activation: defaultActivation => ({ ...defaultActivation, keyboardHandlers: false }),
|
|
3901
|
+
return (jsxRuntime.jsxs(reactComponents.Popover, { activation: defaultActivation => ({ ...defaultActivation, keyboardHandlers: false }), "data-testid": dataTestId ? `${dataTestId}-popover` : undefined, placement: "bottom-start", children: [jsxRuntime.jsx(reactComponents.PopoverTrigger, { children: jsxRuntime.jsx("div", { className: "flex-grow", "data-testid": "filters-menu-search-field-container", children: jsxRuntime.jsx(reactFormComponents.Search
|
|
3902
3902
|
//TODO: [Buss] remove height restriction once baseinput sizes matches buttons
|
|
3903
3903
|
, {
|
|
3904
3904
|
//TODO: [Buss] remove height restriction once baseinput sizes matches buttons
|
|
3905
|
-
className: tailwindMerge.twMerge(className, "h-7 min-w-32 max-w-none shrink grow basis-32"),
|
|
3905
|
+
className: tailwindMerge.twMerge(className, "h-7 min-w-32 max-w-none shrink grow basis-32"), "data-testid": "filterbar-search", fieldSize: "small", onChange: e => {
|
|
3906
3906
|
const parsedValue = zod.z.string().safeParse(e.target.value);
|
|
3907
3907
|
parsedValue.success ? setSearchString(parsedValue.data) : setSearchString("");
|
|
3908
3908
|
}, onClear: () => setSearchString(""), onKeyDown: e => {
|
package/index.esm.js
CHANGED
|
@@ -3849,7 +3849,7 @@ const MAX_RECENT_SEARCHES = 20;
|
|
|
3849
3849
|
/**
|
|
3850
3850
|
*
|
|
3851
3851
|
*/
|
|
3852
|
-
const SearchFilterInline = ({ filterBarActions, filterState, filterDefinition, localStorageKey, className, dataTestId, }) => {
|
|
3852
|
+
const SearchFilterInline = ({ filterBarActions, filterState, filterDefinition, localStorageKey, className, "data-testid": dataTestId, }) => {
|
|
3853
3853
|
const { logEvent } = useAnalytics(FilterEvents);
|
|
3854
3854
|
const [t] = useTranslation();
|
|
3855
3855
|
const { geometry, ref: searchElementRef } = useMeasure();
|
|
@@ -3896,11 +3896,11 @@ const SearchFilterInline = ({ filterBarActions, filterState, filterDefinition, l
|
|
|
3896
3896
|
});
|
|
3897
3897
|
filterDefinition?.filterKey && filterBarActions.setStringValue(filterDefinition.filterKey, value);
|
|
3898
3898
|
}, [filterDefinition?.filterKey, filterBarActions, logEvent, setRecentSearches]);
|
|
3899
|
-
return (jsxs(Popover, { activation: defaultActivation => ({ ...defaultActivation, keyboardHandlers: false }),
|
|
3899
|
+
return (jsxs(Popover, { activation: defaultActivation => ({ ...defaultActivation, keyboardHandlers: false }), "data-testid": dataTestId ? `${dataTestId}-popover` : undefined, placement: "bottom-start", children: [jsx(PopoverTrigger, { children: jsx("div", { className: "flex-grow", "data-testid": "filters-menu-search-field-container", children: jsx(Search
|
|
3900
3900
|
//TODO: [Buss] remove height restriction once baseinput sizes matches buttons
|
|
3901
3901
|
, {
|
|
3902
3902
|
//TODO: [Buss] remove height restriction once baseinput sizes matches buttons
|
|
3903
|
-
className: twMerge(className, "h-7 min-w-32 max-w-none shrink grow basis-32"),
|
|
3903
|
+
className: twMerge(className, "h-7 min-w-32 max-w-none shrink grow basis-32"), "data-testid": "filterbar-search", fieldSize: "small", onChange: e => {
|
|
3904
3904
|
const parsedValue = z.string().safeParse(e.target.value);
|
|
3905
3905
|
parsedValue.success ? setSearchString(parsedValue.data) : setSearchString("");
|
|
3906
3906
|
}, onClear: () => setSearchString(""), onKeyDown: e => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/filters-asset-filter-definitions",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.76",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -15,23 +15,23 @@
|
|
|
15
15
|
"zod": "^3.23.8",
|
|
16
16
|
"string-ts": "^2.0.0",
|
|
17
17
|
"tailwind-merge": "^2.0.0",
|
|
18
|
-
"@trackunit/iris-app-build-utilities": "1.7.
|
|
19
|
-
"@trackunit/filters-filter-bar": "1.8.
|
|
20
|
-
"@trackunit/react-core-hooks": "1.7.
|
|
21
|
-
"@trackunit/react-filter-components": "1.7.
|
|
22
|
-
"@trackunit/react-form-components": "1.8.
|
|
23
|
-
"@trackunit/filters-graphql-hook": "1.11.
|
|
24
|
-
"@trackunit/utilization-indicator": "1.7.
|
|
25
|
-
"@trackunit/geo-json-utils": "1.7.
|
|
26
|
-
"@trackunit/react-components": "1.10.
|
|
27
|
-
"@trackunit/shared-utils": "1.9.
|
|
28
|
-
"@trackunit/translations-machine-type": "1.7.
|
|
29
|
-
"@trackunit/criticality-indicator": "1.7.
|
|
30
|
-
"@trackunit/iris-app-api": "1.9.
|
|
31
|
-
"@trackunit/react-core-contexts-test": "1.7.
|
|
32
|
-
"@trackunit/i18n-library-translation": "1.7.
|
|
33
|
-
"@trackunit/iris-app-runtime-core-api": "1.7.
|
|
34
|
-
"@trackunit/react-graphql-hooks": "1.7.
|
|
18
|
+
"@trackunit/iris-app-build-utilities": "1.7.80",
|
|
19
|
+
"@trackunit/filters-filter-bar": "1.8.127",
|
|
20
|
+
"@trackunit/react-core-hooks": "1.7.90",
|
|
21
|
+
"@trackunit/react-filter-components": "1.7.121",
|
|
22
|
+
"@trackunit/react-form-components": "1.8.118",
|
|
23
|
+
"@trackunit/filters-graphql-hook": "1.11.70",
|
|
24
|
+
"@trackunit/utilization-indicator": "1.7.112",
|
|
25
|
+
"@trackunit/geo-json-utils": "1.7.77",
|
|
26
|
+
"@trackunit/react-components": "1.10.51",
|
|
27
|
+
"@trackunit/shared-utils": "1.9.77",
|
|
28
|
+
"@trackunit/translations-machine-type": "1.7.105",
|
|
29
|
+
"@trackunit/criticality-indicator": "1.7.112",
|
|
30
|
+
"@trackunit/iris-app-api": "1.9.15",
|
|
31
|
+
"@trackunit/react-core-contexts-test": "1.7.90",
|
|
32
|
+
"@trackunit/i18n-library-translation": "1.7.94",
|
|
33
|
+
"@trackunit/iris-app-runtime-core-api": "1.7.86",
|
|
34
|
+
"@trackunit/react-graphql-hooks": "1.7.113"
|
|
35
35
|
},
|
|
36
36
|
"module": "./index.esm.js",
|
|
37
37
|
"main": "./index.cjs.js",
|
|
@@ -24,7 +24,7 @@ export interface SearchFilterProps<TFilterState extends FilterBarDefinition> ext
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
|
-
export declare const SearchFilterInline: <TFilterState extends FilterBarDefinition>({ filterBarActions, filterState, filterDefinition, localStorageKey, className, dataTestId, }: SearchFilterProps<TFilterState>) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare const SearchFilterInline: <TFilterState extends FilterBarDefinition>({ filterBarActions, filterState, filterDefinition, localStorageKey, className, "data-testid": dataTestId, }: SearchFilterProps<TFilterState>) => import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
/**
|
|
29
29
|
* Search filter definition
|
|
30
30
|
*
|