@trackunit/react-core-contexts-api 0.2.55 → 0.2.57

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
@@ -24,7 +24,7 @@ exports.AssetSortByProperty = void 0;
24
24
  AssetSortByProperty["Category"] = "CATEGORY";
25
25
  AssetSortByProperty["Criticality"] = "CRITICALITY";
26
26
  AssetSortByProperty["CustomField"] = "CUSTOM_FIELD";
27
- AssetSortByProperty["DigitalKeyMode"] = "DIGITAL_KEY_MODE";
27
+ AssetSortByProperty["AccessManagement"] = "ACCESS_MANAGEMENT";
28
28
  AssetSortByProperty["ExternalReference"] = "EXTERNAL_REFERENCE";
29
29
  AssetSortByProperty["Location"] = "LOCATION";
30
30
  AssetSortByProperty["LocationUpdatedAt"] = "LOCATION_UPDATED_AT";
@@ -55,7 +55,7 @@ const validateStringAsAssetSortByProperty = (input) => {
55
55
  CATEGORY: exports.AssetSortByProperty.Category,
56
56
  CUSTOM_FIELD: exports.AssetSortByProperty.CustomField,
57
57
  CRITICALITY: exports.AssetSortByProperty.Criticality,
58
- DIGITAL_KEY_MODE: exports.AssetSortByProperty.DigitalKeyMode,
58
+ ACCESS_MANAGEMENT: exports.AssetSortByProperty.AccessManagement,
59
59
  EXTERNAL_REFERENCE: exports.AssetSortByProperty.ExternalReference,
60
60
  LOCATION: exports.AssetSortByProperty.Location,
61
61
  LOCATION_UPDATED_AT: exports.AssetSortByProperty.LocationUpdatedAt,
package/index.esm.js CHANGED
@@ -20,7 +20,7 @@ var AssetSortByProperty;
20
20
  AssetSortByProperty["Category"] = "CATEGORY";
21
21
  AssetSortByProperty["Criticality"] = "CRITICALITY";
22
22
  AssetSortByProperty["CustomField"] = "CUSTOM_FIELD";
23
- AssetSortByProperty["DigitalKeyMode"] = "DIGITAL_KEY_MODE";
23
+ AssetSortByProperty["AccessManagement"] = "ACCESS_MANAGEMENT";
24
24
  AssetSortByProperty["ExternalReference"] = "EXTERNAL_REFERENCE";
25
25
  AssetSortByProperty["Location"] = "LOCATION";
26
26
  AssetSortByProperty["LocationUpdatedAt"] = "LOCATION_UPDATED_AT";
@@ -51,7 +51,7 @@ const validateStringAsAssetSortByProperty = (input) => {
51
51
  CATEGORY: AssetSortByProperty.Category,
52
52
  CUSTOM_FIELD: AssetSortByProperty.CustomField,
53
53
  CRITICALITY: AssetSortByProperty.Criticality,
54
- DIGITAL_KEY_MODE: AssetSortByProperty.DigitalKeyMode,
54
+ ACCESS_MANAGEMENT: AssetSortByProperty.AccessManagement,
55
55
  EXTERNAL_REFERENCE: AssetSortByProperty.ExternalReference,
56
56
  LOCATION: AssetSortByProperty.Location,
57
57
  LOCATION_UPDATED_AT: AssetSortByProperty.LocationUpdatedAt,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts-api",
3
- "version": "0.2.55",
3
+ "version": "0.2.57",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -14,7 +14,7 @@ export declare enum AssetSortByProperty {
14
14
  Category = "CATEGORY",
15
15
  Criticality = "CRITICALITY",
16
16
  CustomField = "CUSTOM_FIELD",
17
- DigitalKeyMode = "DIGITAL_KEY_MODE",
17
+ AccessManagement = "ACCESS_MANAGEMENT",
18
18
  ExternalReference = "EXTERNAL_REFERENCE",
19
19
  Location = "LOCATION",
20
20
  LocationUpdatedAt = "LOCATION_UPDATED_AT",
@@ -0,0 +1,27 @@
1
+ export type ValueName = {
2
+ value: string;
3
+ name: string;
4
+ };
5
+ export type Coordinate = {
6
+ latitude: number;
7
+ longitude: number;
8
+ };
9
+ export type BoundingBox = {
10
+ nw: Coordinate;
11
+ /** The coordinates for the South/East values of the bounding box. */
12
+ se: Coordinate;
13
+ /** The zoom level from which the bound box spans. */
14
+ zoom?: number;
15
+ };
16
+ export type MinMaxFilterValue = {
17
+ min?: number;
18
+ max?: number;
19
+ };
20
+ export type FilterValueType = string[] | ValueName[] | BoundingBox | MinMaxFilterValue | string | number | boolean | undefined;
21
+ export type FilterBarValues = Record<string, FilterValueType>;
22
+ export interface IFilterBarContext {
23
+ /**
24
+ * The filter bar values, keyed by filter key.
25
+ */
26
+ filterBarValues: FilterBarValues | null;
27
+ }
package/src/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export * from "./analyticsContext";
2
2
  export * from "./assetSortingContext";
3
3
  export * from "./currentUserContext";
4
4
  export * from "./environmentContext";
5
+ export * from "./filterBarContext";
5
6
  export * from "./globalSelectionContext";
6
7
  export * from "./oemBrandingContext";
7
8
  export * from "./toastContext";