@trackunit/filters-filter-bar 1.8.120 → 1.8.122
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 +2 -2
- package/index.esm.js +2 -2
- package/package.json +8 -8
- package/src/lib/components/FilterComponent.d.ts +2 -2
package/index.cjs.js
CHANGED
|
@@ -1143,7 +1143,7 @@ const FilterTableComponent = ({ filterKey, filterBarDefinition, filterBarConfig,
|
|
|
1143
1143
|
const multipleFiltersAppliedCount = getManuallyAppliedFilterCount(activeFilterKeys);
|
|
1144
1144
|
const multipleFiltersIsActive = multipleFiltersAppliedCount > 0;
|
|
1145
1145
|
return (jsxRuntime.jsx(reactComponents.Popover, { placement: "bottom-start", children: modalState => {
|
|
1146
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(reactComponents.PopoverTrigger, { children: jsxRuntime.jsx("div", { className: "relative", children: jsxRuntime.jsx(reactComponents.Tooltip, { disabled: modalState.isOpen || !multipleFiltersIsActive, label: jsxRuntime.jsx(MultipleFilterTooltipLabel, { filterBarConfig: filterBarConfig, filterKeys: filterKey, filters: filters }), placement: "bottom", children: jsxRuntime.jsx(reactComponents.IconButton, { icon: jsxRuntime.jsx(reactComponents.Icon, { name: "Funnel", size: "small" }),
|
|
1146
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(reactComponents.PopoverTrigger, { children: jsxRuntime.jsx("div", { className: "relative", children: jsxRuntime.jsx(reactComponents.Tooltip, { disabled: modalState.isOpen || !multipleFiltersIsActive, label: jsxRuntime.jsx(MultipleFilterTooltipLabel, { filterBarConfig: filterBarConfig, filterKeys: filterKey, filters: filters }), placement: "bottom", children: jsxRuntime.jsx(reactComponents.IconButton, { className: "h-8 w-5 p-0", icon: jsxRuntime.jsx(reactComponents.Icon, { name: "Funnel", size: "small" }), variant: multipleFiltersIsActive ? "ghost" : "ghost-neutral" }) }) }) }), jsxRuntime.jsx(reactComponents.PopoverContent, { children: jsxRuntime.jsx(reactComponents.MenuList, { children: filters.map((value, index) => value && (jsxRuntime.jsx(FilterComponent, { filter: value, filterBarActions: filterBarConfig, filterState: filterBarConfig, visualStyle: "list-item" }, index))) }) })] }));
|
|
1147
1147
|
} }));
|
|
1148
1148
|
}
|
|
1149
1149
|
const filter = filterBarDefinition[ensureFilterKey(filterKey)];
|
|
@@ -1151,7 +1151,7 @@ const FilterTableComponent = ({ filterKey, filterBarDefinition, filterBarConfig,
|
|
|
1151
1151
|
return null;
|
|
1152
1152
|
}
|
|
1153
1153
|
const isActive = filterBarConfig.appliedFilterKeys().includes(filterKey);
|
|
1154
|
-
return (jsxRuntime.jsx("div", { onClick: event => event.stopPropagation(), children: jsxRuntime.jsx("div", { className: "relative", children: jsxRuntime.jsx(reactComponents.Tooltip, { disabled: !isActive, label: jsxRuntime.jsx(SingleFilterTooltipLabel, { filter: filter, filterBarConfig: filterBarConfig, filterKey: filterKey }), placement: "bottom", children: jsxRuntime.jsx(FilterComponent, { asIcon: "Funnel", filter: filter, filterBarActions: filterBarConfig, filterState: filterBarConfig
|
|
1154
|
+
return (jsxRuntime.jsx("div", { onClick: event => event.stopPropagation(), children: jsxRuntime.jsx("div", { className: "relative", children: jsxRuntime.jsx(reactComponents.Tooltip, { disabled: !isActive, label: jsxRuntime.jsx(SingleFilterTooltipLabel, { filter: filter, filterBarConfig: filterBarConfig, filterKey: filterKey }), placement: "bottom", children: jsxRuntime.jsx(FilterComponent, { asIcon: "Funnel", className: "h-8 w-5 p-0", filter: filter, filterBarActions: filterBarConfig, filterState: filterBarConfig }) }) }) }));
|
|
1155
1155
|
};
|
|
1156
1156
|
|
|
1157
1157
|
/**
|
package/index.esm.js
CHANGED
|
@@ -1141,7 +1141,7 @@ const FilterTableComponent = ({ filterKey, filterBarDefinition, filterBarConfig,
|
|
|
1141
1141
|
const multipleFiltersAppliedCount = getManuallyAppliedFilterCount(activeFilterKeys);
|
|
1142
1142
|
const multipleFiltersIsActive = multipleFiltersAppliedCount > 0;
|
|
1143
1143
|
return (jsx(Popover, { placement: "bottom-start", children: modalState => {
|
|
1144
|
-
return (jsxs(Fragment, { children: [jsx(PopoverTrigger, { children: jsx("div", { className: "relative", children: jsx(Tooltip, { disabled: modalState.isOpen || !multipleFiltersIsActive, label: jsx(MultipleFilterTooltipLabel, { filterBarConfig: filterBarConfig, filterKeys: filterKey, filters: filters }), placement: "bottom", children: jsx(IconButton, { icon: jsx(Icon, { name: "Funnel", size: "small" }),
|
|
1144
|
+
return (jsxs(Fragment, { children: [jsx(PopoverTrigger, { children: jsx("div", { className: "relative", children: jsx(Tooltip, { disabled: modalState.isOpen || !multipleFiltersIsActive, label: jsx(MultipleFilterTooltipLabel, { filterBarConfig: filterBarConfig, filterKeys: filterKey, filters: filters }), placement: "bottom", children: jsx(IconButton, { className: "h-8 w-5 p-0", icon: jsx(Icon, { name: "Funnel", size: "small" }), variant: multipleFiltersIsActive ? "ghost" : "ghost-neutral" }) }) }) }), jsx(PopoverContent, { children: jsx(MenuList, { children: filters.map((value, index) => value && (jsx(FilterComponent, { filter: value, filterBarActions: filterBarConfig, filterState: filterBarConfig, visualStyle: "list-item" }, index))) }) })] }));
|
|
1145
1145
|
} }));
|
|
1146
1146
|
}
|
|
1147
1147
|
const filter = filterBarDefinition[ensureFilterKey(filterKey)];
|
|
@@ -1149,7 +1149,7 @@ const FilterTableComponent = ({ filterKey, filterBarDefinition, filterBarConfig,
|
|
|
1149
1149
|
return null;
|
|
1150
1150
|
}
|
|
1151
1151
|
const isActive = filterBarConfig.appliedFilterKeys().includes(filterKey);
|
|
1152
|
-
return (jsx("div", { onClick: event => event.stopPropagation(), children: jsx("div", { className: "relative", children: jsx(Tooltip, { disabled: !isActive, label: jsx(SingleFilterTooltipLabel, { filter: filter, filterBarConfig: filterBarConfig, filterKey: filterKey }), placement: "bottom", children: jsx(FilterComponent, { asIcon: "Funnel", filter: filter, filterBarActions: filterBarConfig, filterState: filterBarConfig
|
|
1152
|
+
return (jsx("div", { onClick: event => event.stopPropagation(), children: jsx("div", { className: "relative", children: jsx(Tooltip, { disabled: !isActive, label: jsx(SingleFilterTooltipLabel, { filter: filter, filterBarConfig: filterBarConfig, filterKey: filterKey }), placement: "bottom", children: jsx(FilterComponent, { asIcon: "Funnel", className: "h-8 w-5 p-0", filter: filter, filterBarActions: filterBarConfig, filterState: filterBarConfig }) }) }) }));
|
|
1153
1153
|
};
|
|
1154
1154
|
|
|
1155
1155
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/filters-filter-bar",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.122",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
"string-ts": "^2.0.0",
|
|
14
14
|
"zod": "^3.23.8",
|
|
15
15
|
"@trackunit/iris-app-api": "1.9.11",
|
|
16
|
-
"@trackunit/react-core-hooks": "1.7.
|
|
17
|
-
"@trackunit/react-filter-components": "1.7.
|
|
18
|
-
"@trackunit/react-date-and-time-components": "1.10.
|
|
16
|
+
"@trackunit/react-core-hooks": "1.7.86",
|
|
17
|
+
"@trackunit/react-filter-components": "1.7.116",
|
|
18
|
+
"@trackunit/react-date-and-time-components": "1.10.116",
|
|
19
19
|
"@trackunit/shared-utils": "1.9.73",
|
|
20
|
-
"@trackunit/react-form-components": "1.8.
|
|
21
|
-
"@trackunit/iris-app-runtime-core-api": "1.7.
|
|
20
|
+
"@trackunit/react-form-components": "1.8.113",
|
|
21
|
+
"@trackunit/iris-app-runtime-core-api": "1.7.82",
|
|
22
22
|
"@trackunit/geo-json-utils": "1.7.73",
|
|
23
|
-
"@trackunit/i18n-library-translation": "1.7.
|
|
23
|
+
"@trackunit/i18n-library-translation": "1.7.90",
|
|
24
24
|
"@trackunit/css-class-variance-utilities": "1.7.73",
|
|
25
|
-
"@trackunit/react-components": "1.10.
|
|
25
|
+
"@trackunit/react-components": "1.10.47",
|
|
26
26
|
"@tanstack/react-router": "1.114.29"
|
|
27
27
|
},
|
|
28
28
|
"module": "./index.esm.js",
|
|
@@ -34,9 +34,9 @@ interface FilterComponentProps<T extends FilterBarDefinition> {
|
|
|
34
34
|
*/
|
|
35
35
|
asIcon?: IconName;
|
|
36
36
|
/**
|
|
37
|
-
* The size of the filter component. Can be one of the predefined values: "
|
|
37
|
+
* The size of the filter component. Can be one of the predefined values: "small", "medium", or "large".
|
|
38
38
|
*/
|
|
39
|
-
size?:
|
|
39
|
+
size?: Size;
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* Filter is a React component that renders a filter element based on the provided filter definition and state.
|