@trackunit/filters-asset-filter-definitions 1.0.22 → 1.0.26
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 +7 -0
- package/index.esm.js +7 -0
- package/package.json +17 -17
package/index.cjs.js
CHANGED
|
@@ -2712,6 +2712,13 @@ const SearchFilterInline = ({ filterBarActions, filterState, filterDefinition, l
|
|
|
2712
2712
|
}, onClear: () => setSearchString(""), onKeyDown: e => {
|
|
2713
2713
|
if (e.key === "Enter") {
|
|
2714
2714
|
apply({ value: searchString });
|
|
2715
|
+
e.preventDefault();
|
|
2716
|
+
}
|
|
2717
|
+
},
|
|
2718
|
+
// Prevents submitting forms when pressing "Enter" in the input element
|
|
2719
|
+
onKeyUp: e => {
|
|
2720
|
+
if (e.key === "Enter") {
|
|
2721
|
+
e.preventDefault();
|
|
2715
2722
|
}
|
|
2716
2723
|
}, ref: searchElementRef, value: searchString }) }), jsxRuntime.jsx(reactComponents.PopoverContent, { children: jsxRuntime.jsx("div", { style: { minWidth: geometry.width }, children: jsxRuntime.jsx(reactComponents.MenuList, { className: "overflow-hidden", children: recentSearches.length > 0 ? (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(reactFilterComponents.FilterBody, { className: "max-w-none p-1", limitSize: true, children: jsxRuntime.jsx("ul", { className: "grid h-full gap-0.5", children: recentSearches.map((option, index) => (jsxRuntime.jsx(reactComponents.MenuItem, { className: "max-h-fit overflow-hidden py-1", id: "free-text-search-filter-inline", label: option, onClick: () => {
|
|
2717
2724
|
apply({ value: option, wasPreviousSearch: true });
|
package/index.esm.js
CHANGED
|
@@ -2710,6 +2710,13 @@ const SearchFilterInline = ({ filterBarActions, filterState, filterDefinition, l
|
|
|
2710
2710
|
}, onClear: () => setSearchString(""), onKeyDown: e => {
|
|
2711
2711
|
if (e.key === "Enter") {
|
|
2712
2712
|
apply({ value: searchString });
|
|
2713
|
+
e.preventDefault();
|
|
2714
|
+
}
|
|
2715
|
+
},
|
|
2716
|
+
// Prevents submitting forms when pressing "Enter" in the input element
|
|
2717
|
+
onKeyUp: e => {
|
|
2718
|
+
if (e.key === "Enter") {
|
|
2719
|
+
e.preventDefault();
|
|
2713
2720
|
}
|
|
2714
2721
|
}, ref: searchElementRef, value: searchString }) }), jsx(PopoverContent, { children: jsx("div", { style: { minWidth: geometry.width }, children: jsx(MenuList, { className: "overflow-hidden", children: recentSearches.length > 0 ? (jsxs("div", { children: [jsx(FilterBody, { className: "max-w-none p-1", limitSize: true, children: jsx("ul", { className: "grid h-full gap-0.5", children: recentSearches.map((option, index) => (jsx(MenuItem, { className: "max-h-fit overflow-hidden py-1", id: "free-text-search-filter-inline", label: option, onClick: () => {
|
|
2715
2722
|
apply({ value: option, wasPreviousSearch: true });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/filters-asset-filter-definitions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.26",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -17,22 +17,22 @@
|
|
|
17
17
|
"@tanstack/react-router": "1.47.1",
|
|
18
18
|
"string-ts": "^2.0.0",
|
|
19
19
|
"tailwind-merge": "^2.0.0",
|
|
20
|
-
"@trackunit/iris-app-build-utilities": "^1.0.
|
|
21
|
-
"@trackunit/filters-filter-bar": "^1.0.
|
|
22
|
-
"@trackunit/react-core-hooks": "^1.0.
|
|
23
|
-
"@trackunit/react-filter-components": "^1.0.
|
|
24
|
-
"@trackunit/react-form-components": "^1.0.
|
|
25
|
-
"@trackunit/filters-graphql-hook": "^1.0.
|
|
26
|
-
"@trackunit/utilization-indicator": "^1.0.
|
|
27
|
-
"@trackunit/geo-json-utils": "^1.0.
|
|
28
|
-
"@trackunit/react-components": "^1.1.
|
|
29
|
-
"@trackunit/shared-utils": "^1.
|
|
30
|
-
"@trackunit/translations-machine-type": "^1.0.
|
|
31
|
-
"@trackunit/criticality-indicator": "^1.0.
|
|
32
|
-
"@trackunit/iris-app-api": "^1.0.
|
|
33
|
-
"@trackunit/react-core-contexts-test": "^1.0.
|
|
34
|
-
"@trackunit/react-core-contexts-api": "^1.0.
|
|
35
|
-
"@trackunit/i18n-library-translation": "^1.0.
|
|
20
|
+
"@trackunit/iris-app-build-utilities": "^1.0.8",
|
|
21
|
+
"@trackunit/filters-filter-bar": "^1.0.25",
|
|
22
|
+
"@trackunit/react-core-hooks": "^1.0.7",
|
|
23
|
+
"@trackunit/react-filter-components": "^1.0.25",
|
|
24
|
+
"@trackunit/react-form-components": "^1.0.23",
|
|
25
|
+
"@trackunit/filters-graphql-hook": "^1.0.25",
|
|
26
|
+
"@trackunit/utilization-indicator": "^1.0.23",
|
|
27
|
+
"@trackunit/geo-json-utils": "^1.0.3",
|
|
28
|
+
"@trackunit/react-components": "^1.1.5",
|
|
29
|
+
"@trackunit/shared-utils": "^1.1.1",
|
|
30
|
+
"@trackunit/translations-machine-type": "^1.0.11",
|
|
31
|
+
"@trackunit/criticality-indicator": "^1.0.22",
|
|
32
|
+
"@trackunit/iris-app-api": "^1.0.6",
|
|
33
|
+
"@trackunit/react-core-contexts-test": "^1.0.7",
|
|
34
|
+
"@trackunit/react-core-contexts-api": "^1.0.7",
|
|
35
|
+
"@trackunit/i18n-library-translation": "^1.0.11"
|
|
36
36
|
},
|
|
37
37
|
"module": "./index.esm.js",
|
|
38
38
|
"main": "./index.cjs.js",
|