@trackunit/filters-asset-filter-definitions 1.5.114 → 1.5.116

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/filters-asset-filter-definitions",
3
- "version": "1.5.114",
3
+ "version": "1.5.116",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -17,23 +17,23 @@
17
17
  "@tanstack/react-router": "1.114.29",
18
18
  "string-ts": "^2.0.0",
19
19
  "tailwind-merge": "^2.0.0",
20
- "@trackunit/iris-app-build-utilities": "1.3.146",
21
- "@trackunit/filters-filter-bar": "1.3.234",
22
- "@trackunit/react-core-hooks": "1.3.151",
23
- "@trackunit/react-filter-components": "1.3.192",
24
- "@trackunit/react-form-components": "1.3.194",
25
- "@trackunit/filters-graphql-hook": "1.5.108",
26
- "@trackunit/utilization-indicator": "1.3.188",
27
- "@trackunit/geo-json-utils": "1.3.137",
28
- "@trackunit/react-components": "1.4.170",
29
- "@trackunit/shared-utils": "1.5.139",
30
- "@trackunit/translations-machine-type": "1.3.161",
31
- "@trackunit/criticality-indicator": "1.3.183",
32
- "@trackunit/iris-app-api": "1.3.146",
33
- "@trackunit/react-core-contexts-test": "1.3.152",
34
- "@trackunit/i18n-library-translation": "1.3.158",
35
- "@trackunit/react-core-contexts-api": "1.4.146",
36
- "@trackunit/react-test-setup": "1.0.29"
20
+ "@trackunit/iris-app-build-utilities": "1.3.148",
21
+ "@trackunit/filters-filter-bar": "1.3.236",
22
+ "@trackunit/react-core-hooks": "1.3.153",
23
+ "@trackunit/react-filter-components": "1.3.194",
24
+ "@trackunit/react-form-components": "1.3.196",
25
+ "@trackunit/filters-graphql-hook": "1.5.110",
26
+ "@trackunit/utilization-indicator": "1.3.190",
27
+ "@trackunit/geo-json-utils": "1.3.139",
28
+ "@trackunit/react-components": "1.4.172",
29
+ "@trackunit/shared-utils": "1.5.141",
30
+ "@trackunit/translations-machine-type": "1.3.163",
31
+ "@trackunit/criticality-indicator": "1.3.185",
32
+ "@trackunit/iris-app-api": "1.3.148",
33
+ "@trackunit/react-core-contexts-test": "1.3.154",
34
+ "@trackunit/i18n-library-translation": "1.3.160",
35
+ "@trackunit/react-core-contexts-api": "1.4.148",
36
+ "@trackunit/react-test-setup": "1.0.31"
37
37
  },
38
38
  "module": "./index.esm.js",
39
39
  "main": "./index.cjs.js",
@@ -20,7 +20,7 @@ export declare const mapActivityToLabelId: (state: AssetActivityState) => "asset
20
20
  * state, value, and actions.
21
21
  * @returns {ReactElement} A React element rendering the Activity Filters view.
22
22
  */
23
- export declare const ActivityFiltersView: ({ filterBarActions, filterDefinition, filterState, value, setValue, }: FilterViewProps<string[]>) => ReactElement;
23
+ export declare const ActivityFiltersView: ({ filterBarActions, filterDefinition, filterState, value, setValue, }: FilterViewProps<Array<string>>) => ReactElement;
24
24
  /**
25
25
  *
26
26
  */
@@ -7,7 +7,7 @@ import { ReactElement } from "react";
7
7
  * filter definition, state, and actions.
8
8
  * @returns {ReactElement} A component rendering the Asset IDs filter view.
9
9
  */
10
- export declare const AssetIdsFiltersView: (props: FilterViewProps<string[]>) => ReactElement;
10
+ export declare const AssetIdsFiltersView: (props: FilterViewProps<Array<string>>) => ReactElement;
11
11
  /**
12
12
  * AssetIds filter definition
13
13
  *
@@ -17,11 +17,11 @@ export declare const ALL_TYPES: ("ATTACHMENT" | "EQUIPMENT" | "GATEWAY" | "MACHI
17
17
  * @param {FilterViewProps<string[]> & { showTypes: AssetType[] }} props - Component props.
18
18
  * @returns {ReactElement} The rendered filter view component.
19
19
  */
20
- export declare const AssetTypesFilterView: (props: FilterViewProps<string[]> & {
21
- showTypes: AssetType[];
20
+ export declare const AssetTypesFilterView: (props: FilterViewProps<Array<string>> & {
21
+ showTypes: Array<AssetType>;
22
22
  }) => ReactElement;
23
23
  interface AssetTypeFilterProps {
24
- showTypes: AssetType[];
24
+ showTypes: Array<AssetType>;
25
25
  }
26
26
  /**
27
27
  * AssetType filter definition
@@ -6,7 +6,7 @@ import { ReactElement } from "react";
6
6
  * @param {FilterViewProps<string[]>} props - The component's properties, including filter state and values.
7
7
  * @returns {ReactElement} The brand filter component.
8
8
  */
9
- export declare const BrandFilterView: (props: FilterViewProps<string[]>) => ReactElement;
9
+ export declare const BrandFilterView: (props: FilterViewProps<Array<string>>) => ReactElement;
10
10
  /**
11
11
  * Brand filter definition
12
12
  *
@@ -6,7 +6,7 @@ import { ReactElement } from "react";
6
6
  * @param {FilterViewProps<string[]>} props FilterViewProps for the filter
7
7
  * @returns {ReactElement} The criticality filter component.
8
8
  */
9
- export declare const CriticalityFiltersView: (props: FilterViewProps<string[]>) => ReactElement;
9
+ export declare const CriticalityFiltersView: (props: FilterViewProps<Array<string>>) => ReactElement;
10
10
  /**
11
11
  * Criticality filter definition
12
12
  *
@@ -8,11 +8,11 @@ import { ReactElement } from "react";
8
8
  * @param {FilterViewProps<ValueName[]>} props - Filter properties including data, state, and actions.
9
9
  * @returns {ReactElement} A customer ID filter component for rendering in the UI.
10
10
  */
11
- export declare const CustomerIdsFilterView: (props: FilterViewProps<ValueName[]>) => ReactElement;
11
+ export declare const CustomerIdsFilterView: (props: FilterViewProps<Array<ValueName>>) => ReactElement;
12
12
  interface CustomerIdsFilterProps {
13
13
  showInStarredMenu: () => boolean;
14
14
  showInFilterBar: () => boolean;
15
- defaultValue?: ValueName[];
15
+ defaultValue?: Array<ValueName>;
16
16
  }
17
17
  /**
18
18
  * Custom hook to create and configure a customer IDs filter definition.
@@ -7,7 +7,7 @@ import { ReactElement } from "react";
7
7
  * @param {FilterViewProps<ValueName[]>} props - The properties for the filter view, including filter state and callbacks.
8
8
  * @returns {ReactElement} The GroupIdsFilterView component.
9
9
  */
10
- export declare const GroupIdsFilterView: (props: FilterViewProps<ValueName[]>) => ReactElement;
10
+ export declare const GroupIdsFilterView: (props: FilterViewProps<Array<ValueName>>) => ReactElement;
11
11
  /**
12
12
  * GroupIds filter definition
13
13
  *
@@ -6,7 +6,7 @@ import { ReactElement } from "react";
6
6
  * @param {FilterViewProps<string[]>} props - Properties passed to the component.
7
7
  * @returns {ReactElement} Rendered checkbox filter.
8
8
  */
9
- export declare const HourIntervalFilterView: (props: FilterViewProps<string[]>) => ReactElement;
9
+ export declare const HourIntervalFilterView: (props: FilterViewProps<Array<string>>) => ReactElement;
10
10
  /**
11
11
  * HourInterval filter definition
12
12
  *
@@ -6,7 +6,7 @@ export declare const metadataCompleteness: {
6
6
  readonly All: "ALL";
7
7
  };
8
8
  export type MetadataCompleteness = (typeof metadataCompleteness)[keyof typeof metadataCompleteness];
9
- export declare const metadataCompletenessOptions: MetadataCompleteness[];
9
+ export declare const metadataCompletenessOptions: Array<MetadataCompleteness>;
10
10
  /**
11
11
  * Maps the asset type to a label id
12
12
  *
@@ -7,7 +7,7 @@ import { ReactElement } from "react";
7
7
  * @param {FilterViewProps<string[]>} props - The filter view properties, including filters and their state.
8
8
  * @returns {ReactElement} The rendered model filter component.
9
9
  */
10
- export declare const ModelsFilterView: (props: FilterViewProps<string[]>) => ReactElement;
10
+ export declare const ModelsFilterView: (props: FilterViewProps<Array<string>>) => ReactElement;
11
11
  /**
12
12
  *
13
13
  */
@@ -6,10 +6,10 @@ import { ReactElement } from "react";
6
6
  * @param {FilterViewProps<ValueName[]>} props - The props to render the filter view, including filter state and settings.
7
7
  * @returns {ReactElement} The rendered filter view component.
8
8
  */
9
- export declare const OwnerAccountIdsFilterView: (props: FilterViewProps<ValueName[]>) => ReactElement;
9
+ export declare const OwnerAccountIdsFilterView: (props: FilterViewProps<Array<ValueName>>) => ReactElement;
10
10
  /**
11
11
  * OwnerAccountIds filter definition
12
12
  *
13
13
  * @returns {ValueNameArrayFilterDefinition} OwnerAccountIds filter definition
14
14
  */
15
- export declare const useOwnerAccountIdsFilter: (defaultValue?: ValueName[]) => ValueNameArrayFilterDefinition;
15
+ export declare const useOwnerAccountIdsFilter: (defaultValue?: Array<ValueName>) => ValueNameArrayFilterDefinition;
@@ -9,7 +9,7 @@ import { ReactElement } from "react";
9
9
  * @param {object} props.filterBarActions - Actions related to the filter bar API.
10
10
  * @returns {ReactElement} The rendered PartnerFilterView component.
11
11
  */
12
- export declare const PartnerFilterView: ({ filterDefinition, value, filterBarActions, }: FilterViewProps<ValueName[]>) => ReactElement;
12
+ export declare const PartnerFilterView: ({ filterDefinition, value, filterBarActions, }: FilterViewProps<Array<ValueName>>) => ReactElement;
13
13
  /**
14
14
  * Partner filter definition
15
15
  *
@@ -12,7 +12,7 @@ import { ReactElement } from "react";
12
12
  * @param {object} props - Additional props passed to the component.
13
13
  * @returns {JSX.Element} React component to render the production year filter.
14
14
  */
15
- export declare const ProductionYearFilterView: ({ filterDefinition, filterState, filterBarActions, ...props }: FilterViewProps<ValueName[]>) => ReactElement;
15
+ export declare const ProductionYearFilterView: ({ filterDefinition, filterState, filterBarActions, ...props }: FilterViewProps<Array<ValueName>>) => ReactElement;
16
16
  /**
17
17
  * Production year filter definition
18
18
  *
@@ -8,11 +8,11 @@ export declare const SERVICE_PLAN_STATUSES_TO_SHOW: ("OVERDUE" | "PLANNED" | "UP
8
8
  * @param props FilterViewProps for the filter
9
9
  * @returns {ReactElement} The rendered filter view component.
10
10
  */
11
- export declare const ServicePanStatusesFiltersView: (props: FilterViewProps<string[]> & {
12
- servicePlanStatusToShow: ServicePlanStatus[];
11
+ export declare const ServicePanStatusesFiltersView: (props: FilterViewProps<Array<string>> & {
12
+ servicePlanStatusToShow: Array<ServicePlanStatus>;
13
13
  }) => ReactElement;
14
14
  interface AssetTypeFilterProps {
15
- servicePlanStatusToShow?: ServicePlanStatus[];
15
+ servicePlanStatusToShow?: Array<ServicePlanStatus>;
16
16
  showInStarredMenu: () => boolean;
17
17
  showInFilterBar: () => boolean;
18
18
  }
@@ -6,11 +6,11 @@ import { ReactElement } from "react";
6
6
  * @param {FilterViewProps<ValueName[]>} props - The props required for the filter view.
7
7
  * @returns {ReactElement} The filter view component.
8
8
  */
9
- export declare const SiteDepotOwnershipIdsFilterView: (props: FilterViewProps<ValueName[]>) => ReactElement;
9
+ export declare const SiteDepotOwnershipIdsFilterView: (props: FilterViewProps<Array<ValueName>>) => ReactElement;
10
10
  interface SiteDepotOwnershipIdsFilterProps {
11
11
  showInStarredMenu: () => boolean;
12
12
  showInFilterBar: () => boolean;
13
- defaultValue?: ValueName[];
13
+ defaultValue?: Array<ValueName>;
14
14
  }
15
15
  /**
16
16
  * Site depot ownership filter definition
@@ -9,11 +9,11 @@ import { ReactElement } from "react";
9
9
  * @param {FilterViewProps<ValueName[]>} props - The properties passed to the component, including the current filter state and methods to manage it.
10
10
  * @returns {ReactElement} The rendered Site IDs filter view component.
11
11
  */
12
- export declare const SiteIdsFilterView: (props: FilterViewProps<ValueName[]>) => ReactElement;
12
+ export declare const SiteIdsFilterView: (props: FilterViewProps<Array<ValueName>>) => ReactElement;
13
13
  interface SiteIdsFilterProps {
14
14
  showInStarredMenu: () => boolean;
15
15
  showInFilterBar: () => boolean;
16
- defaultValue?: ValueName[];
16
+ defaultValue?: Array<ValueName>;
17
17
  persistValue?: boolean;
18
18
  }
19
19
  /**
@@ -13,7 +13,7 @@ export declare enum SiteStatus {
13
13
  * @param {FilterViewProps<string[]>} props - The properties for the filter component.
14
14
  * @returns {ReactElement} The rendered SiteStatusFilterView component.
15
15
  */
16
- export declare const SiteStatusFilterView: (props: FilterViewProps<string[]>) => ReactElement;
16
+ export declare const SiteStatusFilterView: (props: FilterViewProps<Array<string>>) => ReactElement;
17
17
  interface SiteTypeFilterProps {
18
18
  showInStarredMenu: () => boolean;
19
19
  showInFilterBar: () => boolean;
@@ -20,14 +20,14 @@ export interface SortSiteTypeSummary {
20
20
  * @param arr - The array to sort
21
21
  * @returns {SortSiteTypeSummary[]} - The sorted array
22
22
  */
23
- export declare const sortSiteTypeSummary: (arr: SortSiteTypeSummary[]) => SortSiteTypeSummary[];
23
+ export declare const sortSiteTypeSummary: (arr: Array<SortSiteTypeSummary>) => SortSiteTypeSummary[];
24
24
  /**
25
25
  * A filter view component for selecting site types.
26
26
  *
27
27
  * @param {FilterViewProps<string[]>} props - The filter view properties, including filter state and actions.
28
28
  * @returns {ReactElement} - The rendered filter view component.
29
29
  */
30
- export declare const SiteTypesFilterView: (props: FilterViewProps<string[]>) => ReactElement;
30
+ export declare const SiteTypesFilterView: (props: FilterViewProps<Array<string>>) => ReactElement;
31
31
  interface SiteTypeFilterProps {
32
32
  showInStarredMenu: () => boolean;
33
33
  showInFilterBar: () => boolean;
@@ -6,7 +6,7 @@ import { ReactElement } from "react";
6
6
  * @param {FilterViewProps<string[]>} props - The properties passed to the filter view.
7
7
  * @returns {ReactElement} The rendered filter view component.
8
8
  */
9
- export declare const TypesFilterView: (props: FilterViewProps<string[]>) => ReactElement;
9
+ export declare const TypesFilterView: (props: FilterViewProps<Array<string>>) => ReactElement;
10
10
  /**
11
11
  * Types filter definition
12
12
  *
@@ -1,12 +1,12 @@
1
1
  import { HierarchicalFilterOption } from "@trackunit/filters-filter-bar";
2
2
  import { GetCustomerIdSummaryQuery } from "../../../generated/graphql-api/graphql";
3
3
  type CustomerSummaryItem = NonNullable<NonNullable<NonNullable<GetCustomerIdSummaryQuery["assetSummary"]>["customers"]>["summary"]>[number];
4
- type CustomerSummary = readonly (CustomerSummaryItem | null)[] | undefined | null;
4
+ type CustomerSummary = ReadonlyArray<CustomerSummaryItem | null> | undefined | null;
5
5
  /**
6
6
  * Custom hook to transform customer summary data into a hierarchical options structure.
7
7
  *
8
8
  * @param customerSummary - The customer summary data fetched from the API.
9
9
  * @returns An array of hierarchical filter options.
10
10
  */
11
- export declare const useCustomerHierarchy: (customerSummary?: CustomerSummary) => HierarchicalFilterOption[];
11
+ export declare const useCustomerHierarchy: (customerSummary?: CustomerSummary) => Array<HierarchicalFilterOption>;
12
12
  export {};
@@ -6,7 +6,7 @@ declare const internalFiltersArray: {
6
6
  mockAssetIds: StringArrayFilterDefinition;
7
7
  mockBrands: StringArrayFilterDefinition;
8
8
  };
9
- export declare const MockFiltersArray: FilterDefinition[];
9
+ export declare const MockFiltersArray: Array<FilterDefinition>;
10
10
  export declare const MockFilterBarDefinition: FilterBarDefinition;
11
11
  export type MockFilterValues = FilterStateValues<typeof internalFiltersArray>;
12
12
  export {};
@@ -24,7 +24,7 @@ interface DefaultAssetFilterBarDefinitionProps {
24
24
  /**
25
25
  * A value setting the initial value of the "Owner" filter
26
26
  */
27
- ownerFilterDefaultValue?: ValueName[];
27
+ ownerFilterDefaultValue?: Array<ValueName>;
28
28
  }
29
29
  /**
30
30
  * Default asset filter bar definition, used to define the default filters for the asset related filters.