@trackunit/filters-asset-filter-definitions 2.10.11 → 2.10.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
@@ -4721,6 +4721,36 @@ const useActivityFilter = () => {
4721
4721
  return result;
4722
4722
  };
4723
4723
 
4724
+ const areaFilterInternalGeoJsonGeometrySchema = zod.z.union([
4725
+ geoJsonUtils.geoJsonPolygonSchema,
4726
+ geoJsonUtils.geoJsonPointSchema,
4727
+ geoJsonUtils.geoJsonMultiPolygonSchema,
4728
+ ]);
4729
+ const areaFilterInternalSchema = zod.z.object({
4730
+ bBox: geoJsonUtils.geoJsonBboxSchema,
4731
+ geometry: areaFilterInternalGeoJsonGeometrySchema,
4732
+ properties: zod.z.object({
4733
+ formattedAddress: zod.z.string(),
4734
+ addressComponents: zod.z
4735
+ .array(zod.z.object({
4736
+ longName: zod.z.string(),
4737
+ shortName: zod.z.string(),
4738
+ types: zod.z.array(zod.z.string()),
4739
+ }))
4740
+ .optional(),
4741
+ }),
4742
+ dateIsoString: zod.z.string().datetime().optional(), //can not be date object since useLocalStorage (with validation) does not support date objects
4743
+ });
4744
+ // Complementary place schemas - used for the Places API search
4745
+ const placePredictionSchema = zod.z.object({
4746
+ placeId: zod.z.string(),
4747
+ description: zod.z.string(),
4748
+ });
4749
+ const placeSchema = areaFilterInternalSchema.extend({
4750
+ placeId: zod.z.string(),
4751
+ description: zod.z.string(),
4752
+ });
4753
+
4724
4754
  /**
4725
4755
  * Renders the AreaView component, which manages the UI and logic for an area filter.
4726
4756
  *
@@ -4753,36 +4783,6 @@ const useAreaFilter = () => {
4753
4783
  return result;
4754
4784
  };
4755
4785
 
4756
- const areaFilterInternalGeoJsonGeometrySchema = zod.z.union([
4757
- geoJsonUtils.geoJsonPolygonSchema,
4758
- geoJsonUtils.geoJsonPointSchema,
4759
- geoJsonUtils.geoJsonMultiPolygonSchema,
4760
- ]);
4761
- const areaFilterInternalSchema = zod.z.object({
4762
- bBox: geoJsonUtils.geoJsonBboxSchema,
4763
- geometry: areaFilterInternalGeoJsonGeometrySchema,
4764
- properties: zod.z.object({
4765
- formattedAddress: zod.z.string(),
4766
- addressComponents: zod.z
4767
- .array(zod.z.object({
4768
- longName: zod.z.string(),
4769
- shortName: zod.z.string(),
4770
- types: zod.z.array(zod.z.string()),
4771
- }))
4772
- .optional(),
4773
- }),
4774
- dateIsoString: zod.z.string().datetime().optional(), //can not be date object since useLocalStorage (with validation) does not support date objects
4775
- });
4776
- // Complementary place schemas - used for the Places API search
4777
- const placePredictionSchema = zod.z.object({
4778
- placeId: zod.z.string(),
4779
- description: zod.z.string(),
4780
- });
4781
- const placeSchema = areaFilterInternalSchema.extend({
4782
- placeId: zod.z.string(),
4783
- description: zod.z.string(),
4784
- });
4785
-
4786
4786
  const SHARED_LOCATIONS_LOCAL_STORAGE_KEY = "shared-recent-locations";
4787
4787
  const MAX_RECENT_SEARCHES$2 = 5;
4788
4788
  const MIN_LENGTH_SEARCH = 3;
package/index.esm.js CHANGED
@@ -4719,6 +4719,36 @@ const useActivityFilter = () => {
4719
4719
  return result;
4720
4720
  };
4721
4721
 
4722
+ const areaFilterInternalGeoJsonGeometrySchema = z.union([
4723
+ geoJsonPolygonSchema,
4724
+ geoJsonPointSchema,
4725
+ geoJsonMultiPolygonSchema,
4726
+ ]);
4727
+ const areaFilterInternalSchema = z.object({
4728
+ bBox: geoJsonBboxSchema,
4729
+ geometry: areaFilterInternalGeoJsonGeometrySchema,
4730
+ properties: z.object({
4731
+ formattedAddress: z.string(),
4732
+ addressComponents: z
4733
+ .array(z.object({
4734
+ longName: z.string(),
4735
+ shortName: z.string(),
4736
+ types: z.array(z.string()),
4737
+ }))
4738
+ .optional(),
4739
+ }),
4740
+ dateIsoString: z.string().datetime().optional(), //can not be date object since useLocalStorage (with validation) does not support date objects
4741
+ });
4742
+ // Complementary place schemas - used for the Places API search
4743
+ const placePredictionSchema = z.object({
4744
+ placeId: z.string(),
4745
+ description: z.string(),
4746
+ });
4747
+ const placeSchema = areaFilterInternalSchema.extend({
4748
+ placeId: z.string(),
4749
+ description: z.string(),
4750
+ });
4751
+
4722
4752
  /**
4723
4753
  * Renders the AreaView component, which manages the UI and logic for an area filter.
4724
4754
  *
@@ -4751,36 +4781,6 @@ const useAreaFilter = () => {
4751
4781
  return result;
4752
4782
  };
4753
4783
 
4754
- const areaFilterInternalGeoJsonGeometrySchema = z.union([
4755
- geoJsonPolygonSchema,
4756
- geoJsonPointSchema,
4757
- geoJsonMultiPolygonSchema,
4758
- ]);
4759
- const areaFilterInternalSchema = z.object({
4760
- bBox: geoJsonBboxSchema,
4761
- geometry: areaFilterInternalGeoJsonGeometrySchema,
4762
- properties: z.object({
4763
- formattedAddress: z.string(),
4764
- addressComponents: z
4765
- .array(z.object({
4766
- longName: z.string(),
4767
- shortName: z.string(),
4768
- types: z.array(z.string()),
4769
- }))
4770
- .optional(),
4771
- }),
4772
- dateIsoString: z.string().datetime().optional(), //can not be date object since useLocalStorage (with validation) does not support date objects
4773
- });
4774
- // Complementary place schemas - used for the Places API search
4775
- const placePredictionSchema = z.object({
4776
- placeId: z.string(),
4777
- description: z.string(),
4778
- });
4779
- const placeSchema = areaFilterInternalSchema.extend({
4780
- placeId: z.string(),
4781
- description: z.string(),
4782
- });
4783
-
4784
4784
  const SHARED_LOCATIONS_LOCAL_STORAGE_KEY = "shared-recent-locations";
4785
4785
  const MAX_RECENT_SEARCHES$2 = 5;
4786
4786
  const MIN_LENGTH_SEARCH = 3;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../../../libs/filters/asset-filter-definitions/migrations/entry.ts"],"names":[],"mappings":"","sourcesContent":["export {};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/filters-asset-filter-definitions",
3
- "version": "2.10.11",
3
+ "version": "2.10.13",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -12,24 +12,24 @@
12
12
  "zod": "^3.25.76",
13
13
  "string-ts": "^2.0.0",
14
14
  "tailwind-merge": "^2.0.0",
15
- "@trackunit/iris-app-build-utilities": "2.4.27",
16
- "@trackunit/filters-filter-bar": "2.6.32",
17
- "@trackunit/react-core-hooks": "1.21.29",
18
- "@trackunit/react-filter-components": "2.6.31",
19
- "@trackunit/react-form-components": "2.6.31",
20
- "@trackunit/filters-graphql-hook": "2.9.9",
21
- "@trackunit/utilization-indicator": "2.6.29",
22
- "@trackunit/geo-json-utils": "1.15.23",
23
- "@trackunit/react-components": "2.10.24",
24
- "@trackunit/shared-utils": "1.16.24",
25
- "@trackunit/translations-machine-type": "2.4.31",
26
- "@trackunit/criticality-indicator": "2.6.29",
27
- "@trackunit/iris-app-api": "2.4.21",
28
- "@trackunit/react-core-contexts-test": "1.18.30",
29
- "@trackunit/i18n-library-translation": "2.4.29",
30
- "@trackunit/iris-app-runtime-core-api": "1.17.30",
31
- "@trackunit/react-graphql-hooks": "2.6.29",
32
- "@trackunit/translations-device": "1.8.8"
15
+ "@trackunit/iris-app-build-utilities": "2.4.28",
16
+ "@trackunit/filters-filter-bar": "2.6.33",
17
+ "@trackunit/react-core-hooks": "1.21.30",
18
+ "@trackunit/react-filter-components": "2.6.32",
19
+ "@trackunit/react-form-components": "2.6.32",
20
+ "@trackunit/filters-graphql-hook": "2.9.10",
21
+ "@trackunit/utilization-indicator": "2.6.30",
22
+ "@trackunit/geo-json-utils": "1.15.24",
23
+ "@trackunit/react-components": "2.10.25",
24
+ "@trackunit/shared-utils": "1.16.25",
25
+ "@trackunit/translations-machine-type": "2.4.33",
26
+ "@trackunit/criticality-indicator": "2.6.30",
27
+ "@trackunit/iris-app-api": "2.4.22",
28
+ "@trackunit/react-core-contexts-test": "1.18.31",
29
+ "@trackunit/i18n-library-translation": "2.4.30",
30
+ "@trackunit/iris-app-runtime-core-api": "1.17.31",
31
+ "@trackunit/react-graphql-hooks": "2.6.30",
32
+ "@trackunit/translations-device": "1.8.9"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@apollo/client": "^3.13.8",
package/src/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  export * from "./defaultFilters/defaults/AccessManagementModeFilter";
2
2
  export * from "./defaultFilters/defaults/ActiveFilterFiltersView";
3
3
  export * from "./defaultFilters/defaults/ActivityFiltersView";
4
- export * from "./defaultFilters/defaults/area/AreaView";
5
4
  export * from "./defaultFilters/defaults/area/areaSchemas";
5
+ export * from "./defaultFilters/defaults/area/AreaView";
6
6
  export * from "./defaultFilters/defaults/area/usePlacesSearch";
7
7
  export * from "./defaultFilters/defaults/AssetIdsFiltersView";
8
8
  export * from "./defaultFilters/defaults/AssetTypesFilterView";