@trackunit/filters-filter-bar 2.10.18 → 2.11.0

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
@@ -373,6 +373,7 @@ const EmptyResults = ({ loading = false }) => {
373
373
  *
374
374
  * @param {DefaultFilterProps<string[]>} props - The properties required for the `DefaultCheckboxFilter` component.
375
375
  */
376
+ // eslint-disable-next-line @trackunit/require-component-prop-contracts -- renders a fragment (header + body) with no DOM root to attach these props to; fix in GLU-2699
376
377
  const DefaultCheckboxFilter = ({ filterDefinition, filterBarActions, options, loading, setValue, filterName, customSearch, showRequestMoreUseSearch = false, showUndefinedOptionWithCountAtBottom = true, undefinedOptionKey = "UNDEFINED", pagination, }) => {
377
378
  const { logEvent } = reactCoreHooks.useAnalytics(FilterEvents);
378
379
  const { t } = useTranslation();
@@ -512,6 +513,7 @@ const parseLocalDate = (dateValue) => {
512
513
  *
513
514
  * @param {DefaultFilterProps<DateRangeValue>} props - The properties required for the `DefaultDateRangeFilter` component.
514
515
  */
516
+ // eslint-disable-next-line @trackunit/require-component-prop-contracts -- renders a fragment (header + body) with no DOM root to attach these props to; fix in GLU-2699
515
517
  const DefaultDateRangeFilter = ({ filterDefinition, filterName, value, setValue, }) => {
516
518
  const [t] = useTranslation();
517
519
  const hasSelection = [value?.from, value?.to].some(val => sharedUtils.nonNullable(val));
@@ -549,6 +551,7 @@ const DefaultDateRangeFilter = ({ filterDefinition, filterName, value, setValue,
549
551
  * @param {DefaultMinMaxFilterProps} props - The properties required for the `DefaultMinMaxFilter` component.
550
552
  * @returns {ReactElement} The rendered `DefaultMinMaxFilter` component.
551
553
  */
554
+ // eslint-disable-next-line @trackunit/require-component-prop-contracts -- renders a fragment (header + body) with no DOM root to attach these props to; fix in GLU-2699
552
555
  const DefaultMinMaxFilter = ({ filterDefinition, filterName, value, setValue, filterBarActions, unit, }) => {
553
556
  const [t] = useTranslation();
554
557
  const [minValue, setMinValue] = react.useState(value?.min ?? undefined);
@@ -1194,6 +1197,7 @@ const cvaOptionItem = cssClassVarianceUtilities.cva({
1194
1197
  *
1195
1198
  * Supports optional cascading selection behavior via the `cascadeSelection` prop.
1196
1199
  */
1200
+ // eslint-disable-next-line @trackunit/require-component-prop-contracts -- renders a fragment (header + body) with no DOM root to attach these props to; fix in GLU-2699
1197
1201
  const HierarchicalCheckboxFilter = ({ filterDefinition, filterBarActions, options, loading, setValue, value, cascadeSelection = false, customSearch, showCount = true, }) => {
1198
1202
  const { logEvent } = reactCoreHooks.useAnalytics(FilterEvents);
1199
1203
  const selectedValues = value ?? [];
package/index.esm.js CHANGED
@@ -371,6 +371,7 @@ const EmptyResults = ({ loading = false }) => {
371
371
  *
372
372
  * @param {DefaultFilterProps<string[]>} props - The properties required for the `DefaultCheckboxFilter` component.
373
373
  */
374
+ // eslint-disable-next-line @trackunit/require-component-prop-contracts -- renders a fragment (header + body) with no DOM root to attach these props to; fix in GLU-2699
374
375
  const DefaultCheckboxFilter = ({ filterDefinition, filterBarActions, options, loading, setValue, filterName, customSearch, showRequestMoreUseSearch = false, showUndefinedOptionWithCountAtBottom = true, undefinedOptionKey = "UNDEFINED", pagination, }) => {
375
376
  const { logEvent } = useAnalytics(FilterEvents);
376
377
  const { t } = useTranslation();
@@ -510,6 +511,7 @@ const parseLocalDate = (dateValue) => {
510
511
  *
511
512
  * @param {DefaultFilterProps<DateRangeValue>} props - The properties required for the `DefaultDateRangeFilter` component.
512
513
  */
514
+ // eslint-disable-next-line @trackunit/require-component-prop-contracts -- renders a fragment (header + body) with no DOM root to attach these props to; fix in GLU-2699
513
515
  const DefaultDateRangeFilter = ({ filterDefinition, filterName, value, setValue, }) => {
514
516
  const [t] = useTranslation();
515
517
  const hasSelection = [value?.from, value?.to].some(val => nonNullable(val));
@@ -547,6 +549,7 @@ const DefaultDateRangeFilter = ({ filterDefinition, filterName, value, setValue,
547
549
  * @param {DefaultMinMaxFilterProps} props - The properties required for the `DefaultMinMaxFilter` component.
548
550
  * @returns {ReactElement} The rendered `DefaultMinMaxFilter` component.
549
551
  */
552
+ // eslint-disable-next-line @trackunit/require-component-prop-contracts -- renders a fragment (header + body) with no DOM root to attach these props to; fix in GLU-2699
550
553
  const DefaultMinMaxFilter = ({ filterDefinition, filterName, value, setValue, filterBarActions, unit, }) => {
551
554
  const [t] = useTranslation();
552
555
  const [minValue, setMinValue] = useState(value?.min ?? undefined);
@@ -1192,6 +1195,7 @@ const cvaOptionItem = cva({
1192
1195
  *
1193
1196
  * Supports optional cascading selection behavior via the `cascadeSelection` prop.
1194
1197
  */
1198
+ // eslint-disable-next-line @trackunit/require-component-prop-contracts -- renders a fragment (header + body) with no DOM root to attach these props to; fix in GLU-2699
1195
1199
  const HierarchicalCheckboxFilter = ({ filterDefinition, filterBarActions, options, loading, setValue, value, cascadeSelection = false, customSearch, showCount = true, }) => {
1196
1200
  const { logEvent } = useAnalytics(FilterEvents);
1197
1201
  const selectedValues = value ?? [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/filters-filter-bar",
3
- "version": "2.10.18",
3
+ "version": "2.11.0",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -11,17 +11,17 @@
11
11
  "tailwind-merge": "^2.0.0",
12
12
  "string-ts": "^2.0.0",
13
13
  "zod": "^3.25.76",
14
- "@trackunit/iris-app-api": "2.9.9",
15
- "@trackunit/react-core-hooks": "1.25.11",
16
- "@trackunit/react-filter-components": "2.10.17",
17
- "@trackunit/react-date-and-time-components": "2.10.17",
18
- "@trackunit/shared-utils": "1.19.10",
19
- "@trackunit/react-form-components": "2.10.17",
20
- "@trackunit/iris-app-runtime-core-api": "1.21.10",
21
- "@trackunit/geo-json-utils": "1.18.10",
22
- "@trackunit/i18n-library-translation": "2.8.11",
23
- "@trackunit/css-class-variance-utilities": "2.3.10",
24
- "@trackunit/react-components": "3.8.10"
14
+ "@trackunit/iris-app-api": "2.10.0",
15
+ "@trackunit/react-core-hooks": "1.26.0",
16
+ "@trackunit/react-filter-components": "2.11.0",
17
+ "@trackunit/react-date-and-time-components": "2.11.0",
18
+ "@trackunit/shared-utils": "1.20.0",
19
+ "@trackunit/react-form-components": "2.11.0",
20
+ "@trackunit/iris-app-runtime-core-api": "1.22.0",
21
+ "@trackunit/geo-json-utils": "1.19.0",
22
+ "@trackunit/i18n-library-translation": "2.9.0",
23
+ "@trackunit/css-class-variance-utilities": "2.4.0",
24
+ "@trackunit/react-components": "3.9.0"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "@apollo/client": "^3.13.8",