@trackunit/filters-filter-bar 1.8.112 → 1.8.115
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
|
@@ -7,7 +7,7 @@ var reactFilterComponents = require('@trackunit/react-filter-components');
|
|
|
7
7
|
var reactComponents = require('@trackunit/react-components');
|
|
8
8
|
var reactCoreHooks = require('@trackunit/react-core-hooks');
|
|
9
9
|
var stringTs = require('string-ts');
|
|
10
|
-
var
|
|
10
|
+
var irisAppRuntimeCoreApi = require('@trackunit/iris-app-runtime-core-api');
|
|
11
11
|
var reactFormComponents = require('@trackunit/react-form-components');
|
|
12
12
|
var reactDateAndTimeComponents = require('@trackunit/react-date-and-time-components');
|
|
13
13
|
var sharedUtils = require('@trackunit/shared-utils');
|
|
@@ -464,13 +464,13 @@ const AppliedFiltersRenderer = ({ appliedFilters, filterBarConfig, showResetButt
|
|
|
464
464
|
* which properties are required/recommended when using logEvent() on said event
|
|
465
465
|
*/
|
|
466
466
|
const FilterEvents = {
|
|
467
|
-
"Filters Applied - V2":
|
|
467
|
+
"Filters Applied - V2": irisAppRuntimeCoreApi.createEvent({
|
|
468
468
|
description: "A filter was applied",
|
|
469
469
|
}),
|
|
470
|
-
"Starring Filter - Toggled":
|
|
470
|
+
"Starring Filter - Toggled": irisAppRuntimeCoreApi.createEvent({
|
|
471
471
|
description: "A filter was starred or unstarred",
|
|
472
472
|
}),
|
|
473
|
-
"Showing Filters - All or Favorites":
|
|
473
|
+
"Showing Filters - All or Favorites": irisAppRuntimeCoreApi.createEvent(),
|
|
474
474
|
};
|
|
475
475
|
|
|
476
476
|
/**
|
package/index.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Filter, FilterBody, RadioFilterItem, CheckBoxFilterItem, FilterHeader a
|
|
|
5
5
|
import { Button, Icon, useList, List, Text, Card, CardBody, useViewportBreakpoints, Popover, PopoverTrigger, Tooltip, Badge, PopoverContent, IconButton, MenuList } from '@trackunit/react-components';
|
|
6
6
|
import { useAnalytics, useTextSearch, useCurrentUser, useCustomEncoding, useWatch } from '@trackunit/react-core-hooks';
|
|
7
7
|
import { capitalize } from 'string-ts';
|
|
8
|
-
import { createEvent } from '@trackunit/
|
|
8
|
+
import { createEvent } from '@trackunit/iris-app-runtime-core-api';
|
|
9
9
|
import { Search, NumberField, RadioGroup } from '@trackunit/react-form-components';
|
|
10
10
|
import { DayRangePicker } from '@trackunit/react-date-and-time-components';
|
|
11
11
|
import { nonNullable, capitalize as capitalize$1, objectValues, truthy, objectKeys } from '@trackunit/shared-utils';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/filters-filter-bar",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.115",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -9,22 +9,20 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"react": "19.0.0",
|
|
11
11
|
"dequal": "^2.0.3",
|
|
12
|
-
"jest-fetch-mock": "^3.0.3",
|
|
13
12
|
"tailwind-merge": "^2.0.0",
|
|
14
13
|
"string-ts": "^2.0.0",
|
|
15
14
|
"zod": "^3.23.8",
|
|
16
|
-
"@trackunit/iris-app-api": "1.9.
|
|
17
|
-
"@trackunit/react-core-hooks": "1.7.
|
|
18
|
-
"@trackunit/react-filter-components": "1.7.
|
|
19
|
-
"@trackunit/react-date-and-time-components": "1.10.
|
|
20
|
-
"@trackunit/shared-utils": "1.9.
|
|
21
|
-
"@trackunit/react-form-components": "1.8.
|
|
22
|
-
"@trackunit/
|
|
23
|
-
"@trackunit/geo-json-utils": "1.7.
|
|
24
|
-
"@trackunit/i18n-library-translation": "1.7.
|
|
25
|
-
"@trackunit/css-class-variance-utilities": "1.7.
|
|
26
|
-
"@trackunit/react-components": "1.10.
|
|
27
|
-
"@trackunit/react-test-setup": "1.4.69",
|
|
15
|
+
"@trackunit/iris-app-api": "1.9.10",
|
|
16
|
+
"@trackunit/react-core-hooks": "1.7.82",
|
|
17
|
+
"@trackunit/react-filter-components": "1.7.111",
|
|
18
|
+
"@trackunit/react-date-and-time-components": "1.10.111",
|
|
19
|
+
"@trackunit/shared-utils": "1.9.72",
|
|
20
|
+
"@trackunit/react-form-components": "1.8.108",
|
|
21
|
+
"@trackunit/iris-app-runtime-core-api": "1.7.78",
|
|
22
|
+
"@trackunit/geo-json-utils": "1.7.72",
|
|
23
|
+
"@trackunit/i18n-library-translation": "1.7.86",
|
|
24
|
+
"@trackunit/css-class-variance-utilities": "1.7.72",
|
|
25
|
+
"@trackunit/react-components": "1.10.42",
|
|
28
26
|
"@tanstack/react-router": "1.114.29"
|
|
29
27
|
},
|
|
30
28
|
"module": "./index.esm.js",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ErrorHandlingContextValue } from "@trackunit/
|
|
1
|
+
import { ErrorHandlingContextValue } from "@trackunit/iris-app-runtime-core-api";
|
|
2
2
|
import { ZodTypeAny } from "zod";
|
|
3
3
|
interface SearchParamAsFilterProps<TZodSchema> {
|
|
4
4
|
filterName: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseEvent } from "@trackunit/
|
|
1
|
+
import { BaseEvent } from "@trackunit/iris-app-runtime-core-api";
|
|
2
2
|
export interface FilterEvent extends BaseEvent {
|
|
3
3
|
type: string;
|
|
4
4
|
value: string | number;
|
|
@@ -12,9 +12,9 @@ export interface FilterEvent extends BaseEvent {
|
|
|
12
12
|
* which properties are required/recommended when using logEvent() on said event
|
|
13
13
|
*/
|
|
14
14
|
export declare const FilterEvents: {
|
|
15
|
-
"Filters Applied - V2": import("@trackunit/
|
|
16
|
-
"Starring Filter - Toggled": import("@trackunit/
|
|
17
|
-
"Showing Filters - All or Favorites": import("@trackunit/
|
|
15
|
+
"Filters Applied - V2": import("@trackunit/iris-app-runtime-core-api").Event<FilterEvent>;
|
|
16
|
+
"Starring Filter - Toggled": import("@trackunit/iris-app-runtime-core-api").Event<FilterEvent>;
|
|
17
|
+
"Showing Filters - All or Favorites": import("@trackunit/iris-app-runtime-core-api").Event<{
|
|
18
18
|
selected: "all" | "favorites";
|
|
19
19
|
}>;
|
|
20
20
|
};
|