@stenajs-webui/filter 20.8.0 → 20.9.0
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/dist/features/search-filter/components/SearchFilterSection.d.ts +1 -1
- package/dist/features/search-filter/components/context/SearchFilterContext.d.ts +2 -1
- package/dist/features/search-filter/components/context/SearchFilterLocalStateContext.d.ts +2 -1
- package/dist/features/search-filter/features/chips/EmptyChip.d.ts +2 -2
- package/dist/features/search-filter/features/chips/SearchFilterChip.d.ts +2 -2
- package/dist/features/search-filter/features/chips/SectionChips.d.ts +2 -2
- package/dist/features/search-filter/section-factories/date-range/components/DateRangeCalendarSection.d.ts +2 -2
- package/package.json +17 -17
|
@@ -11,5 +11,5 @@ export interface SearchFilterSectionProps<TSectionKey extends string> {
|
|
|
11
11
|
error?: string;
|
|
12
12
|
onRetry?: () => void;
|
|
13
13
|
}
|
|
14
|
-
export declare const SearchFilterSection: <TSectionKey extends string>({ sectionId, label, loading, error, onRetry, disableContentPadding, children, leftIcon, contentRight, }: PropsWithChildren<SearchFilterSectionProps<TSectionKey>>) => JSX.Element;
|
|
14
|
+
export declare const SearchFilterSection: <TSectionKey extends string>({ sectionId, label, loading, error, onRetry, disableContentPadding, children, leftIcon, contentRight, }: PropsWithChildren<SearchFilterSectionProps<TSectionKey>>) => React.JSX.Element;
|
|
15
15
|
export declare const formatColumnIdToHeaderCellLabel: (columnId: string) => string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { PropsWithChildren } from "react";
|
|
2
3
|
import { SearchFilterActions, SearchFilterDispatch, SearchFilterState } from "../../redux/SearchFilterRedux";
|
|
3
4
|
interface SearchFilterScopeProps<TFormModel, TSectionKey extends string> {
|
|
@@ -5,5 +6,5 @@ interface SearchFilterScopeProps<TFormModel, TSectionKey extends string> {
|
|
|
5
6
|
dispatch: SearchFilterDispatch<TFormModel>;
|
|
6
7
|
actions: SearchFilterActions<TFormModel, TSectionKey>;
|
|
7
8
|
}
|
|
8
|
-
export declare const SearchFilterContext: <TFormModel, TSectionKey extends string>({ state, dispatch, actions, children, }: PropsWithChildren<SearchFilterScopeProps<TFormModel, TSectionKey>>) => JSX.Element;
|
|
9
|
+
export declare const SearchFilterContext: <TFormModel, TSectionKey extends string>({ state, dispatch, actions, children, }: PropsWithChildren<SearchFilterScopeProps<TFormModel, TSectionKey>>) => React.JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { PropsWithChildren } from "react";
|
|
2
3
|
interface SearchFilterLocalScopeProps<TFormModel> {
|
|
3
4
|
initialFormModel: TFormModel;
|
|
4
5
|
}
|
|
5
|
-
export declare const SearchFilterLocalStateContext: <TFormModel>({ initialFormModel, children, }: PropsWithChildren<SearchFilterLocalScopeProps<TFormModel>>) => JSX.Element;
|
|
6
|
+
export declare const SearchFilterLocalStateContext: <TFormModel>({ initialFormModel, children, }: PropsWithChildren<SearchFilterLocalScopeProps<TFormModel>>) => React.JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
interface EmptyChipProps<TSectionKey extends string> {
|
|
3
3
|
sectionId: TSectionKey;
|
|
4
4
|
label: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const EmptyChip: <TSectionKey extends string>({ label, sectionId, }: EmptyChipProps<TSectionKey>) => JSX.Element;
|
|
6
|
+
export declare const EmptyChip: <TSectionKey extends string>({ label, sectionId, }: EmptyChipProps<TSectionKey>) => React.JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { SearchFilterSectionOnClickRemoveOnChip } from "../../config/SearchFilterConfig";
|
|
3
3
|
interface SearchFilterChipProps<TFormModel, TSectionKey> {
|
|
4
4
|
sectionId: TSectionKey;
|
|
@@ -6,5 +6,5 @@ interface SearchFilterChipProps<TFormModel, TSectionKey> {
|
|
|
6
6
|
value: string;
|
|
7
7
|
onClickRemove?: SearchFilterSectionOnClickRemoveOnChip<TFormModel>;
|
|
8
8
|
}
|
|
9
|
-
export declare const SearchFilterChip: <TFormModel, TSectionKey extends string>({ sectionId, label, value, onClickRemove, }: SearchFilterChipProps<TFormModel, TSectionKey>) => JSX.Element;
|
|
9
|
+
export declare const SearchFilterChip: <TFormModel, TSectionKey extends string>({ sectionId, label, value, onClickRemove, }: SearchFilterChipProps<TFormModel, TSectionKey>) => React.JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { SearchFilterSectionChipModel, SearchFilterSectionOnClickRemoveOnChip } from "../../config/SearchFilterConfig";
|
|
3
3
|
export interface SectionChipsProps<TFormModel, TSectionKey extends string> {
|
|
4
4
|
sectionId: TSectionKey;
|
|
@@ -6,4 +6,4 @@ export interface SectionChipsProps<TFormModel, TSectionKey extends string> {
|
|
|
6
6
|
emptyChipLabel?: string;
|
|
7
7
|
onClickRemoveOnChip?: SearchFilterSectionOnClickRemoveOnChip<TFormModel>;
|
|
8
8
|
}
|
|
9
|
-
export declare const SectionChips: <TFormModel, TSectionKey extends string>({ sectionId, chips, emptyChipLabel, onClickRemoveOnChip, }: SectionChipsProps<TFormModel, TSectionKey>) => JSX.Element | null;
|
|
9
|
+
export declare const SectionChips: <TFormModel, TSectionKey extends string>({ sectionId, chips, emptyChipLabel, onClickRemoveOnChip, }: SectionChipsProps<TFormModel, TSectionKey>) => React.JSX.Element | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { DateRangeCalendarProps, DateStringRange } from "@stenajs-webui/calendar";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { SearchFilterSectionProps } from "../../../components/SearchFilterSection";
|
|
4
4
|
import { SearchFilterActions, SearchFilterDispatch } from "../../../redux/SearchFilterRedux";
|
|
5
5
|
export interface DateRangeCalendarSectionProps<TFormModel, TSectionKey extends string> extends Omit<SearchFilterSectionProps<TSectionKey>, "label" | "onRetry" | "error" | "loading">, Omit<DateRangeCalendarProps<{}>, "value" | "onValueChange" | "focusedInput" | "setFocusedInput"> {
|
|
@@ -11,4 +11,4 @@ export interface SetDateOptions<TFormModel, TSectionKey extends string> {
|
|
|
11
11
|
dispatch: SearchFilterDispatch<TFormModel>;
|
|
12
12
|
actions: SearchFilterActions<TFormModel, TSectionKey>;
|
|
13
13
|
}
|
|
14
|
-
export declare const DateRangeCalendarSection: <TFormModel, TSectionKey extends string>({ value, onValueChange, sectionId, contentRight, disableContentPadding, label, leftIcon, ...dateRangeCalendarProps }: DateRangeCalendarSectionProps<TFormModel, TSectionKey>) => JSX.Element;
|
|
14
|
+
export declare const DateRangeCalendarSection: <TFormModel, TSectionKey extends string>({ value, onValueChange, sectionId, contentRight, disableContentPadding, label, leftIcon, ...dateRangeCalendarProps }: DateRangeCalendarSectionProps<TFormModel, TSectionKey>) => React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stenajs-webui/filter",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.9.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "mattias800",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"deploy": "gh-pages -d example/build"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@stenajs-webui/calendar": "20.
|
|
37
|
-
"@stenajs-webui/core": "20.
|
|
38
|
-
"@stenajs-webui/elements": "20.
|
|
39
|
-
"@stenajs-webui/forms": "20.
|
|
40
|
-
"@stenajs-webui/modal": "20.
|
|
41
|
-
"@stenajs-webui/panels": "20.
|
|
42
|
-
"@stenajs-webui/redux": "20.
|
|
43
|
-
"@stenajs-webui/select": "20.
|
|
44
|
-
"@stenajs-webui/theme": "20.
|
|
36
|
+
"@stenajs-webui/calendar": "20.9.0",
|
|
37
|
+
"@stenajs-webui/core": "20.9.0",
|
|
38
|
+
"@stenajs-webui/elements": "20.9.0",
|
|
39
|
+
"@stenajs-webui/forms": "20.9.0",
|
|
40
|
+
"@stenajs-webui/modal": "20.9.0",
|
|
41
|
+
"@stenajs-webui/panels": "20.9.0",
|
|
42
|
+
"@stenajs-webui/redux": "20.9.0",
|
|
43
|
+
"@stenajs-webui/select": "20.9.0",
|
|
44
|
+
"@stenajs-webui/theme": "20.9.0",
|
|
45
45
|
"date-fns": "2.26.0",
|
|
46
46
|
"lodash-es": "^4.17.21"
|
|
47
47
|
},
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"@fortawesome/fontawesome-svg-core": ">=6.5.2",
|
|
52
52
|
"@types/lodash-es": ">=4.17.12",
|
|
53
53
|
"prop-types": ">=15.5.4",
|
|
54
|
-
"react": ">=18.
|
|
55
|
-
"react-dom": ">=18.
|
|
54
|
+
"react": ">=18.3.1",
|
|
55
|
+
"react-dom": ">=18.3.1",
|
|
56
56
|
"redux": ">=4.0.5"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
"@fortawesome/fontawesome-svg-core": "6.5.2",
|
|
62
62
|
"@types/jest": "^23.1.5",
|
|
63
63
|
"@types/lodash-es": "^4.17.12",
|
|
64
|
-
"@types/react": "^18.
|
|
65
|
-
"@types/react-dom": "^18.0
|
|
64
|
+
"@types/react": "^18.3.3",
|
|
65
|
+
"@types/react-dom": "^18.3.0",
|
|
66
66
|
"prop-types": "^15.5.4",
|
|
67
|
-
"react": "^18.
|
|
68
|
-
"react-dom": "^18.
|
|
67
|
+
"react": "^18.3.1",
|
|
68
|
+
"react-dom": "^18.3.1",
|
|
69
69
|
"redux": "^4.0.5"
|
|
70
70
|
},
|
|
71
71
|
"files": [
|
|
72
72
|
"dist"
|
|
73
73
|
],
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "874eb3170b5fe66de022ff1eb576f5c46ac54858"
|
|
75
75
|
}
|