@trackunit/filters-asset-filter-definitions 1.17.0 → 1.17.1

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
@@ -3348,8 +3348,8 @@ const useCustomerHierarchy = (customerSummary) => {
3348
3348
  *
3349
3349
  * This component renders a hierarchical checkbox filter for selecting customer IDs.
3350
3350
  *
3351
- * @param {FilterViewProps<ValueName[]>} props - Filter properties including data, state, and actions.
3352
- * @param customerId - The ID of the customer that owns the customers shown in the filter bar.
3351
+ * @param props - Filter properties including data, state, and actions.
3352
+ * @param props.customerId - The ID of the customer that owns the customers shown in the filter bar.
3353
3353
  * @returns {ReactElement} A customer ID filter component for rendering in the UI.
3354
3354
  */
3355
3355
  const CustomerIdsFilterView = ({ customerId, ...props }) => {
@@ -4390,10 +4390,10 @@ const FETCH_LIMIT$7 = 1000;
4390
4390
  * This component provides an interface to select production years.
4391
4391
  * It fetches data from a GraphQL query and integrates with the filter bar's filtering logic.
4392
4392
  *
4393
- * @param {ValueNameArrayFilterDefinition} filterDefinition - The filter's definition.
4394
- * @param {FilterState} filterState - The current state of the filter, including selected values.
4395
- * @param {object} filterBarActions - Actions for the filter's interaction with the filter bar.
4396
- * @param {object} props - Additional props passed to the component.
4393
+ * @param props - The filter view props.
4394
+ * @param props.filterDefinition - The filter's definition.
4395
+ * @param props.filterState - The current state of the filter, including selected values.
4396
+ * @param props.filterBarActions - Actions for the filter's interaction with the filter bar.
4397
4397
  * @returns {ReactElement} React component to render the production year filter.
4398
4398
  */
4399
4399
  const ProductionYearFilterView = ({ filterDefinition, filterState, filterBarActions, ...props }) => {
@@ -5327,10 +5327,13 @@ const SiteTypesFilterView = (props) => {
5327
5327
  return jsxRuntime.jsx(filtersFilterBar.DefaultCheckboxFilter, { ...props, loading: loading, options: siteTypeOptions });
5328
5328
  };
5329
5329
  /**
5330
- * SiteType filter definition
5330
+ * SiteType filter definition.
5331
5331
  *
5332
- * @param showInFilterBar Function to determine if filter should be shown in filter bar
5333
- * @returns {StringArrayFilterDefinition} SiteType filter definition
5332
+ * @param props - The hook props.
5333
+ * @param props.showInFilterBar - Function to determine if filter should be shown in filter bar.
5334
+ * @param props.group - The filter group.
5335
+ * @param props.persistValue - Whether to persist the filter value.
5336
+ * @returns {StringArrayFilterDefinition} SiteType filter definition.
5334
5337
  */
5335
5338
  const useSiteTypeFilter = ({ showInFilterBar, persistValue, group } = {
5336
5339
  persistValue: true,
package/index.esm.js CHANGED
@@ -3346,8 +3346,8 @@ const useCustomerHierarchy = (customerSummary) => {
3346
3346
  *
3347
3347
  * This component renders a hierarchical checkbox filter for selecting customer IDs.
3348
3348
  *
3349
- * @param {FilterViewProps<ValueName[]>} props - Filter properties including data, state, and actions.
3350
- * @param customerId - The ID of the customer that owns the customers shown in the filter bar.
3349
+ * @param props - Filter properties including data, state, and actions.
3350
+ * @param props.customerId - The ID of the customer that owns the customers shown in the filter bar.
3351
3351
  * @returns {ReactElement} A customer ID filter component for rendering in the UI.
3352
3352
  */
3353
3353
  const CustomerIdsFilterView = ({ customerId, ...props }) => {
@@ -4388,10 +4388,10 @@ const FETCH_LIMIT$7 = 1000;
4388
4388
  * This component provides an interface to select production years.
4389
4389
  * It fetches data from a GraphQL query and integrates with the filter bar's filtering logic.
4390
4390
  *
4391
- * @param {ValueNameArrayFilterDefinition} filterDefinition - The filter's definition.
4392
- * @param {FilterState} filterState - The current state of the filter, including selected values.
4393
- * @param {object} filterBarActions - Actions for the filter's interaction with the filter bar.
4394
- * @param {object} props - Additional props passed to the component.
4391
+ * @param props - The filter view props.
4392
+ * @param props.filterDefinition - The filter's definition.
4393
+ * @param props.filterState - The current state of the filter, including selected values.
4394
+ * @param props.filterBarActions - Actions for the filter's interaction with the filter bar.
4395
4395
  * @returns {ReactElement} React component to render the production year filter.
4396
4396
  */
4397
4397
  const ProductionYearFilterView = ({ filterDefinition, filterState, filterBarActions, ...props }) => {
@@ -5325,10 +5325,13 @@ const SiteTypesFilterView = (props) => {
5325
5325
  return jsx(DefaultCheckboxFilter, { ...props, loading: loading, options: siteTypeOptions });
5326
5326
  };
5327
5327
  /**
5328
- * SiteType filter definition
5328
+ * SiteType filter definition.
5329
5329
  *
5330
- * @param showInFilterBar Function to determine if filter should be shown in filter bar
5331
- * @returns {StringArrayFilterDefinition} SiteType filter definition
5330
+ * @param props - The hook props.
5331
+ * @param props.showInFilterBar - Function to determine if filter should be shown in filter bar.
5332
+ * @param props.group - The filter group.
5333
+ * @param props.persistValue - Whether to persist the filter value.
5334
+ * @returns {StringArrayFilterDefinition} SiteType filter definition.
5332
5335
  */
5333
5336
  const useSiteTypeFilter = ({ showInFilterBar, persistValue, group } = {
5334
5337
  persistValue: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/filters-asset-filter-definitions",
3
- "version": "1.17.0",
3
+ "version": "1.17.1",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -15,23 +15,23 @@
15
15
  "zod": "^3.23.8",
16
16
  "string-ts": "^2.0.0",
17
17
  "tailwind-merge": "^2.0.0",
18
- "@trackunit/iris-app-build-utilities": "1.12.20",
19
- "@trackunit/filters-filter-bar": "1.13.0",
20
- "@trackunit/react-core-hooks": "1.12.0",
21
- "@trackunit/react-filter-components": "1.12.0",
22
- "@trackunit/react-form-components": "1.13.0",
23
- "@trackunit/filters-graphql-hook": "1.16.0",
24
- "@trackunit/utilization-indicator": "1.12.0",
25
- "@trackunit/geo-json-utils": "1.11.19",
26
- "@trackunit/react-components": "1.16.0",
27
- "@trackunit/shared-utils": "1.13.19",
28
- "@trackunit/translations-machine-type": "1.12.0",
29
- "@trackunit/criticality-indicator": "1.12.0",
30
- "@trackunit/iris-app-api": "1.14.18",
31
- "@trackunit/react-core-contexts-test": "1.12.0",
32
- "@trackunit/i18n-library-translation": "1.12.0",
33
- "@trackunit/iris-app-runtime-core-api": "1.12.0",
34
- "@trackunit/react-graphql-hooks": "1.13.0"
18
+ "@trackunit/iris-app-build-utilities": "1.12.21",
19
+ "@trackunit/filters-filter-bar": "1.13.1",
20
+ "@trackunit/react-core-hooks": "1.12.1",
21
+ "@trackunit/react-filter-components": "1.12.1",
22
+ "@trackunit/react-form-components": "1.13.1",
23
+ "@trackunit/filters-graphql-hook": "1.16.1",
24
+ "@trackunit/utilization-indicator": "1.12.1",
25
+ "@trackunit/geo-json-utils": "1.11.20",
26
+ "@trackunit/react-components": "1.16.1",
27
+ "@trackunit/shared-utils": "1.13.20",
28
+ "@trackunit/translations-machine-type": "1.12.1",
29
+ "@trackunit/criticality-indicator": "1.12.1",
30
+ "@trackunit/iris-app-api": "1.14.19",
31
+ "@trackunit/react-core-contexts-test": "1.12.1",
32
+ "@trackunit/i18n-library-translation": "1.12.1",
33
+ "@trackunit/iris-app-runtime-core-api": "1.12.1",
34
+ "@trackunit/react-graphql-hooks": "1.13.1"
35
35
  },
36
36
  "module": "./index.esm.js",
37
37
  "main": "./index.cjs.js",
@@ -5,8 +5,8 @@ import { ReactElement } from "react";
5
5
  *
6
6
  * This component renders a hierarchical checkbox filter for selecting customer IDs.
7
7
  *
8
- * @param {FilterViewProps<ValueName[]>} props - Filter properties including data, state, and actions.
9
- * @param customerId - The ID of the customer that owns the customers shown in the filter bar.
8
+ * @param props - Filter properties including data, state, and actions.
9
+ * @param props.customerId - The ID of the customer that owns the customers shown in the filter bar.
10
10
  * @returns {ReactElement} A customer ID filter component for rendering in the UI.
11
11
  */
12
12
  export declare const CustomerIdsFilterView: ({ customerId, ...props }: {
@@ -6,10 +6,10 @@ import { ReactElement } from "react";
6
6
  * This component provides an interface to select production years.
7
7
  * It fetches data from a GraphQL query and integrates with the filter bar's filtering logic.
8
8
  *
9
- * @param {ValueNameArrayFilterDefinition} filterDefinition - The filter's definition.
10
- * @param {FilterState} filterState - The current state of the filter, including selected values.
11
- * @param {object} filterBarActions - Actions for the filter's interaction with the filter bar.
12
- * @param {object} props - Additional props passed to the component.
9
+ * @param props - The filter view props.
10
+ * @param props.filterDefinition - The filter's definition.
11
+ * @param props.filterState - The current state of the filter, including selected values.
12
+ * @param props.filterBarActions - Actions for the filter's interaction with the filter bar.
13
13
  * @returns {ReactElement} React component to render the production year filter.
14
14
  */
15
15
  export declare const ProductionYearFilterView: ({ filterDefinition, filterState, filterBarActions, ...props }: FilterViewProps<Array<ValueName>>) => ReactElement;
@@ -34,10 +34,13 @@ interface SiteTypeFilterProps {
34
34
  persistValue?: boolean;
35
35
  }
36
36
  /**
37
- * SiteType filter definition
37
+ * SiteType filter definition.
38
38
  *
39
- * @param showInFilterBar Function to determine if filter should be shown in filter bar
40
- * @returns {StringArrayFilterDefinition} SiteType filter definition
39
+ * @param props - The hook props.
40
+ * @param props.showInFilterBar - Function to determine if filter should be shown in filter bar.
41
+ * @param props.group - The filter group.
42
+ * @param props.persistValue - Whether to persist the filter value.
43
+ * @returns {StringArrayFilterDefinition} SiteType filter definition.
41
44
  */
42
45
  export declare const useSiteTypeFilter: ({ showInFilterBar, persistValue, group }?: SiteTypeFilterProps) => StringArrayFilterDefinition;
43
46
  export {};