@trackunit/filters-filter-bar 1.4.12 → 1.4.13

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
@@ -712,10 +712,10 @@ const DefaultDateRangeFilter = ({ filterDefinition, filterName, value, setValue,
712
712
  setValue(() => ({ from: fromDateValue, to: toDateValue }));
713
713
  };
714
714
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(reactFilterComponents.FilterHeader, { onReset: reset, resetLabel: t("filtersBar.resetFilter"), showReset: hasSelection, title: filterDefinition.title }), jsxRuntime.jsx(reactFilterComponents.FilterBody, { children: jsxRuntime.jsx("div", { className: "flex gap-4 px-1", children: jsxRuntime.jsx(reactDateAndTimeComponents.DayRangePicker, { language: "en", onRangeSelect: dateRange => {
715
- handleApply(formatToJustDate(dateRange?.from), formatToJustDate(dateRange?.to));
715
+ handleApply(formatToJustDate(dateRange?.start), formatToJustDate(dateRange?.end));
716
716
  }, selectedDays: {
717
- from: value?.from ? new Date(value.from) : undefined,
718
- to: value?.to ? new Date(value.to) : undefined,
717
+ start: value?.from ? new Date(value.from) : undefined,
718
+ end: value?.to ? new Date(value.to) : undefined,
719
719
  } }) }) })] }));
720
720
  };
721
721
 
package/index.esm.js CHANGED
@@ -710,10 +710,10 @@ const DefaultDateRangeFilter = ({ filterDefinition, filterName, value, setValue,
710
710
  setValue(() => ({ from: fromDateValue, to: toDateValue }));
711
711
  };
712
712
  return (jsxs(Fragment, { children: [jsx(FilterHeader$1, { onReset: reset, resetLabel: t("filtersBar.resetFilter"), showReset: hasSelection, title: filterDefinition.title }), jsx(FilterBody, { children: jsx("div", { className: "flex gap-4 px-1", children: jsx(DayRangePicker, { language: "en", onRangeSelect: dateRange => {
713
- handleApply(formatToJustDate(dateRange?.from), formatToJustDate(dateRange?.to));
713
+ handleApply(formatToJustDate(dateRange?.start), formatToJustDate(dateRange?.end));
714
714
  }, selectedDays: {
715
- from: value?.from ? new Date(value.from) : undefined,
716
- to: value?.to ? new Date(value.to) : undefined,
715
+ start: value?.from ? new Date(value.from) : undefined,
716
+ end: value?.to ? new Date(value.to) : undefined,
717
717
  } }) }) })] }));
718
718
  };
719
719
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/filters-filter-bar",
3
- "version": "1.4.12",
3
+ "version": "1.4.13",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -14,18 +14,18 @@
14
14
  "tailwind-merge": "^2.0.0",
15
15
  "string-ts": "^2.0.0",
16
16
  "zod": "3.23.4",
17
- "@trackunit/iris-app-api": "1.3.175",
18
- "@trackunit/react-core-hooks": "1.3.180",
19
- "@trackunit/react-filter-components": "1.3.231",
20
- "@trackunit/react-date-and-time-components": "1.4.12",
21
- "@trackunit/shared-utils": "1.5.165",
22
- "@trackunit/react-form-components": "1.3.229",
23
- "@trackunit/react-core-contexts-api": "1.4.173",
24
- "@trackunit/geo-json-utils": "1.3.163",
25
- "@trackunit/i18n-library-translation": "1.3.189",
26
- "@trackunit/css-class-variance-utilities": "1.3.165",
27
- "@trackunit/react-components": "1.4.203",
28
- "@trackunit/react-test-setup": "1.0.55"
17
+ "@trackunit/iris-app-api": "1.3.176",
18
+ "@trackunit/react-core-hooks": "1.3.181",
19
+ "@trackunit/react-filter-components": "1.3.232",
20
+ "@trackunit/react-date-and-time-components": "1.4.13",
21
+ "@trackunit/shared-utils": "1.5.166",
22
+ "@trackunit/react-form-components": "1.3.230",
23
+ "@trackunit/react-core-contexts-api": "1.4.174",
24
+ "@trackunit/geo-json-utils": "1.3.164",
25
+ "@trackunit/i18n-library-translation": "1.3.190",
26
+ "@trackunit/css-class-variance-utilities": "1.3.166",
27
+ "@trackunit/react-components": "1.4.204",
28
+ "@trackunit/react-test-setup": "1.0.56"
29
29
  },
30
30
  "module": "./index.esm.js",
31
31
  "main": "./index.cjs.js",