@trackunit/filters-asset-filter-definitions 0.0.569 → 0.0.571

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 CHANGED
@@ -2694,7 +2694,7 @@ const SearchFilterInline = ({ filterBarActions, filterState, filterDefinition, l
2694
2694
  if (e.key === "Enter") {
2695
2695
  apply({ value: searchString });
2696
2696
  }
2697
- }, 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", id: "free-text-search-filter-inline", label: option, onClick: () => {
2697
+ }, 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: () => {
2698
2698
  apply({ value: option, wasPreviousSearch: true });
2699
2699
  setRecentSearches(prev => {
2700
2700
  const noDuplicatesRecent = prev.filter(recentSearch => recentSearch !== option);
@@ -2702,7 +2702,7 @@ const SearchFilterInline = ({ filterBarActions, filterState, filterDefinition, l
2702
2702
  return [option, ...cappedLengthRecent];
2703
2703
  });
2704
2704
  setSearchString(option);
2705
- }, selected: option === filterValue, size: "small", suffix: jsxRuntime.jsx(ClearItemButton, { onClear: e => {
2705
+ }, selected: option === filterValue, suffix: jsxRuntime.jsx(ClearItemButton, { onClear: e => {
2706
2706
  e.stopPropagation();
2707
2707
  setRecentSearches(prev => prev.filter(r => r !== option));
2708
2708
  } }) }, `${option}-${index}`))) }) }), jsxRuntime.jsx(RecentSearchesFooter, { count: recentSearches.length, onClearAll: () => setRecentSearches([]) })] })) : (jsxRuntime.jsx("p", { className: "py-2 text-center text-sm text-gray-400", children: t("filters.shared.noHistory") })) }) }) })] }));
package/index.esm.js CHANGED
@@ -2692,7 +2692,7 @@ const SearchFilterInline = ({ filterBarActions, filterState, filterDefinition, l
2692
2692
  if (e.key === "Enter") {
2693
2693
  apply({ value: searchString });
2694
2694
  }
2695
- }, 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", id: "free-text-search-filter-inline", label: option, onClick: () => {
2695
+ }, 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: () => {
2696
2696
  apply({ value: option, wasPreviousSearch: true });
2697
2697
  setRecentSearches(prev => {
2698
2698
  const noDuplicatesRecent = prev.filter(recentSearch => recentSearch !== option);
@@ -2700,7 +2700,7 @@ const SearchFilterInline = ({ filterBarActions, filterState, filterDefinition, l
2700
2700
  return [option, ...cappedLengthRecent];
2701
2701
  });
2702
2702
  setSearchString(option);
2703
- }, selected: option === filterValue, size: "small", suffix: jsx(ClearItemButton, { onClear: e => {
2703
+ }, selected: option === filterValue, suffix: jsx(ClearItemButton, { onClear: e => {
2704
2704
  e.stopPropagation();
2705
2705
  setRecentSearches(prev => prev.filter(r => r !== option));
2706
2706
  } }) }, `${option}-${index}`))) }) }), jsx(RecentSearchesFooter, { count: recentSearches.length, onClearAll: () => setRecentSearches([]) })] })) : (jsx("p", { className: "py-2 text-center text-sm text-gray-400", children: t("filters.shared.noHistory") })) }) }) })] }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/filters-asset-filter-definitions",
3
- "version": "0.0.569",
3
+ "version": "0.0.571",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {