@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 +3 -3
- package/index.esm.js +3 -3
- package/package.json +12 -12
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,
|
|
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,
|
|
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:
|
|
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,
|
|
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,
|
|
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:
|
|
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.
|
|
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.
|
|
16
|
-
"@trackunit/react-core-hooks": "1.12.
|
|
17
|
-
"@trackunit/react-filter-components": "1.13.
|
|
18
|
-
"@trackunit/react-date-and-time-components": "1.16.
|
|
19
|
-
"@trackunit/shared-utils": "1.13.
|
|
20
|
-
"@trackunit/react-form-components": "1.14.
|
|
21
|
-
"@trackunit/iris-app-runtime-core-api": "1.12.
|
|
22
|
-
"@trackunit/geo-json-utils": "1.11.
|
|
23
|
-
"@trackunit/i18n-library-translation": "1.12.
|
|
24
|
-
"@trackunit/css-class-variance-utilities": "1.11.
|
|
25
|
-
"@trackunit/react-components": "1.17.
|
|
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",
|