@trackunit/filters-filter-bar 1.14.33 → 1.14.34

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
@@ -942,7 +942,7 @@ const FiltersMenuContent = ({ filterBarConfig, setShowCustomFilters, setSearchTe
942
942
  ? searchResultsGrouped
943
943
  : showCustomFilters
944
944
  ? filtersToShowGrouped
945
- : removeCustomFieldsGroup(filtersToShowGrouped) }), hasCustomFields && !showCustomFilters && !searchText ? (jsxRuntime.jsx(CustomFieldsHiddenGroup, { appliedCustomFields: appliedCustomFields, filterBarConfig: filterBarConfig, onShow: () => {
945
+ : removeCustomFieldsGroup(filtersToShowGrouped) }), hasCustomFields && !showCustomFilters && !searchText ? (jsxRuntime.jsx(CustomFieldsHiddenGroup, { appliedCustomFields: appliedCustomFields, filterBarConfig: filterBarConfig, onClickShow: () => {
946
946
  setShowCustomFilters(true);
947
947
  } })) : null] })] }));
948
948
  };
@@ -968,9 +968,9 @@ const FiltersAppliedCountLabel = ({ filterBarConfig, }) => {
968
968
  return jsxRuntime.jsx(jsxRuntime.Fragment, { children: t("filtersMenu.appliedFiltersLabel.plural", { count: appliedValuesCount }) });
969
969
  }
970
970
  };
971
- const CustomFieldsHiddenGroup = ({ appliedCustomFields, filterBarConfig, onShow, }) => {
971
+ const CustomFieldsHiddenGroup = ({ appliedCustomFields, filterBarConfig, onClickShow, }) => {
972
972
  const [t] = useTranslation();
973
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Separator, {}), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(reactComponents.Button, { "aria-controls": "filters-list", className: "text-primary-600 w-full justify-between px-3", onClick: onShow, prefix: jsxRuntime.jsx(reactComponents.Text, { className: "text-neutral-400", size: "small", uppercase: true, weight: "bold", children: t("filtersBar.groups.CUSTOM_FIELDS") }), size: "small", variant: "ghost-neutral", children: t("filtersBar.showAll") }), appliedCustomFields.length > 0 ? (jsxRuntime.jsx("ul", { "aria-label": "Visible custom fields", "data-testid": "applied-custom-fields-list", children: jsxRuntime.jsx(FiltersRenderer, { filterBarConfig: filterBarConfig, filters: appliedCustomFields, visualStyle: "list-item" }) })) : null] })] }));
973
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Separator, {}), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(reactComponents.Button, { "aria-controls": "filters-list", className: "text-primary-600 w-full justify-between px-3", onClick: onClickShow, prefix: jsxRuntime.jsx(reactComponents.Text, { className: "text-neutral-400", size: "small", uppercase: true, weight: "bold", children: t("filtersBar.groups.CUSTOM_FIELDS") }), size: "small", variant: "ghost-neutral", children: t("filtersBar.showAll") }), appliedCustomFields.length > 0 ? (jsxRuntime.jsx("ul", { "aria-label": "Visible custom fields", "data-testid": "applied-custom-fields-list", children: jsxRuntime.jsx(FiltersRenderer, { filterBarConfig: filterBarConfig, filters: appliedCustomFields, visualStyle: "list-item" }) })) : null] })] }));
974
974
  };
975
975
 
976
976
  /**
package/index.esm.js CHANGED
@@ -940,7 +940,7 @@ const FiltersMenuContent = ({ filterBarConfig, setShowCustomFilters, setSearchTe
940
940
  ? searchResultsGrouped
941
941
  : showCustomFilters
942
942
  ? filtersToShowGrouped
943
- : removeCustomFieldsGroup(filtersToShowGrouped) }), hasCustomFields && !showCustomFilters && !searchText ? (jsx(CustomFieldsHiddenGroup, { appliedCustomFields: appliedCustomFields, filterBarConfig: filterBarConfig, onShow: () => {
943
+ : removeCustomFieldsGroup(filtersToShowGrouped) }), hasCustomFields && !showCustomFilters && !searchText ? (jsx(CustomFieldsHiddenGroup, { appliedCustomFields: appliedCustomFields, filterBarConfig: filterBarConfig, onClickShow: () => {
944
944
  setShowCustomFilters(true);
945
945
  } })) : null] })] }));
946
946
  };
@@ -966,9 +966,9 @@ const FiltersAppliedCountLabel = ({ filterBarConfig, }) => {
966
966
  return jsx(Fragment, { children: t("filtersMenu.appliedFiltersLabel.plural", { count: appliedValuesCount }) });
967
967
  }
968
968
  };
969
- const CustomFieldsHiddenGroup = ({ appliedCustomFields, filterBarConfig, onShow, }) => {
969
+ const CustomFieldsHiddenGroup = ({ appliedCustomFields, filterBarConfig, onClickShow, }) => {
970
970
  const [t] = useTranslation();
971
- return (jsxs(Fragment, { children: [jsx(Separator, {}), jsxs("div", { children: [jsx(Button, { "aria-controls": "filters-list", className: "text-primary-600 w-full justify-between px-3", onClick: onShow, prefix: jsx(Text, { className: "text-neutral-400", size: "small", uppercase: true, weight: "bold", children: t("filtersBar.groups.CUSTOM_FIELDS") }), size: "small", variant: "ghost-neutral", children: t("filtersBar.showAll") }), appliedCustomFields.length > 0 ? (jsx("ul", { "aria-label": "Visible custom fields", "data-testid": "applied-custom-fields-list", children: jsx(FiltersRenderer, { filterBarConfig: filterBarConfig, filters: appliedCustomFields, visualStyle: "list-item" }) })) : null] })] }));
971
+ return (jsxs(Fragment, { children: [jsx(Separator, {}), jsxs("div", { children: [jsx(Button, { "aria-controls": "filters-list", className: "text-primary-600 w-full justify-between px-3", onClick: onClickShow, prefix: jsx(Text, { className: "text-neutral-400", size: "small", uppercase: true, weight: "bold", children: t("filtersBar.groups.CUSTOM_FIELDS") }), size: "small", variant: "ghost-neutral", children: t("filtersBar.showAll") }), appliedCustomFields.length > 0 ? (jsx("ul", { "aria-label": "Visible custom fields", "data-testid": "applied-custom-fields-list", children: jsx(FiltersRenderer, { filterBarConfig: filterBarConfig, filters: appliedCustomFields, visualStyle: "list-item" }) })) : null] })] }));
972
972
  };
973
973
 
974
974
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/filters-filter-bar",
3
- "version": "1.14.33",
3
+ "version": "1.14.34",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -12,17 +12,17 @@
12
12
  "tailwind-merge": "^2.0.0",
13
13
  "string-ts": "^2.0.0",
14
14
  "zod": "^3.23.8",
15
- "@trackunit/iris-app-api": "1.14.43",
16
- "@trackunit/react-core-hooks": "1.12.27",
17
- "@trackunit/react-filter-components": "1.13.31",
18
- "@trackunit/react-date-and-time-components": "1.16.31",
19
- "@trackunit/shared-utils": "1.13.43",
20
- "@trackunit/react-form-components": "1.14.28",
21
- "@trackunit/iris-app-runtime-core-api": "1.12.24",
22
- "@trackunit/geo-json-utils": "1.11.43",
23
- "@trackunit/i18n-library-translation": "1.12.28",
24
- "@trackunit/css-class-variance-utilities": "1.11.43",
25
- "@trackunit/react-components": "1.17.25",
15
+ "@trackunit/iris-app-api": "1.14.44",
16
+ "@trackunit/react-core-hooks": "1.12.28",
17
+ "@trackunit/react-filter-components": "1.13.32",
18
+ "@trackunit/react-date-and-time-components": "1.16.32",
19
+ "@trackunit/shared-utils": "1.13.44",
20
+ "@trackunit/react-form-components": "1.14.29",
21
+ "@trackunit/iris-app-runtime-core-api": "1.12.25",
22
+ "@trackunit/geo-json-utils": "1.11.44",
23
+ "@trackunit/i18n-library-translation": "1.12.29",
24
+ "@trackunit/css-class-variance-utilities": "1.11.44",
25
+ "@trackunit/react-components": "1.17.26",
26
26
  "@tanstack/react-router": "1.114.29"
27
27
  },
28
28
  "module": "./index.esm.js",