@stenajs-webui/filter 21.9.1 → 21.10.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/context/SearchFilterActionsContext.d.ts +0 -1
- package/dist/features/search-filter/context/SearchFilterDispatchContext.d.ts +0 -1
- package/dist/features/search-filter/context/SearchFilterModelContext.d.ts +0 -1
- package/dist/features/search-filter/context/SearchFilterStateContext.d.ts +0 -1
- package/dist/features/search-filter/hooks/UseLocalSearchFilterState.d.ts +0 -1
- package/dist/features/search-filter/section-factories/boolean-record/BooleanRecordChips.d.ts +3 -2
- package/dist/features/search-filter/section-factories/date-range/DateRangeChips.d.ts +3 -2
- package/dist/features/search-filter/section-factories/date-range/DateRangePropsFactory.d.ts +2 -1
- package/package.json +11 -11
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SearchFilterActions } from "../redux/SearchFilterRedux";
|
|
3
2
|
export declare const SearchFilterActionsContext: import("react").Context<SearchFilterActions<unknown, any>>;
|
|
4
3
|
export declare const useSearchFilterActions: <TFormModel, TSectionKey extends string>() => SearchFilterActions<TFormModel, TSectionKey>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SearchFilterDispatch } from "../redux/SearchFilterRedux";
|
|
3
2
|
export declare const SearchFilterDispatchContext: import("react").Context<SearchFilterDispatch<unknown>>;
|
|
4
3
|
export declare const useSearchFilterDispatch: () => SearchFilterDispatch<unknown>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SearchFilterState } from "../redux/SearchFilterRedux";
|
|
3
2
|
export declare const SearchFilterStateContext: import("react").Context<SearchFilterState<unknown>>;
|
|
4
3
|
export declare const useSearchFilterState: <TFormModel>() => SearchFilterState<TFormModel>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SearchFilterState } from "../redux/SearchFilterRedux";
|
|
3
2
|
export declare const useLocalSearchFilterState: <TFormModel, TSectionKey extends string>(initialState: SearchFilterState<TFormModel>) => {
|
|
4
3
|
actions: import("../redux/SearchFilterRedux").SearchFilterActions<TFormModel, TSectionKey>;
|
package/dist/features/search-filter/section-factories/boolean-record/BooleanRecordChips.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BooleanRecord, BooleanRecordOptions } from "./BooleanRecordTypes";
|
|
2
2
|
import { SearchFilterSectionChipModel, SearchFilterSectionOnClickRemoveOnChip } from "../../config/SearchFilterConfig";
|
|
3
|
+
import { PickByValue } from "@stenajs-webui/core";
|
|
3
4
|
import { SectionChipsProps } from "../../features/chips/SectionChips";
|
|
4
|
-
export declare const createChipsPropsForBooleanRecord: <TFormModel, TSectionKey extends string, TField extends
|
|
5
|
+
export declare const createChipsPropsForBooleanRecord: <TFormModel, TSectionKey extends string, TField extends keyof PickByValue<TFormModel, BooleanRecord>>(formModel: TFormModel, fieldName: TField, options?: BooleanRecordOptions) => Pick<SectionChipsProps<TFormModel, TSectionKey>, "chips" | "onClickRemoveOnChip">;
|
|
5
6
|
export declare const createChipsForBooleanRecord: (booleanRecord: BooleanRecord, options?: BooleanRecordOptions) => Array<SearchFilterSectionChipModel>;
|
|
6
|
-
export declare const createOnClickRemoveOnChipForBooleanRecord: <TFormModel, TField extends
|
|
7
|
+
export declare const createOnClickRemoveOnChipForBooleanRecord: <TFormModel, TField extends keyof PickByValue<TFormModel, BooleanRecord>>(formModel: TFormModel, fieldName: TField) => SearchFilterSectionOnClickRemoveOnChip<TFormModel>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SearchFilterSectionChipModel, SearchFilterSectionOnClickRemoveOnChip } from "../../config/SearchFilterConfig";
|
|
2
|
+
import { PickByValue } from "@stenajs-webui/core";
|
|
2
3
|
import { SectionChipsProps } from "../../features/chips/SectionChips";
|
|
3
|
-
export declare const createChipsPropsForDateRange: <TFormModel, TSectionKey extends string, TField extends
|
|
4
|
+
export declare const createChipsPropsForDateRange: <TFormModel, TSectionKey extends string, TField extends keyof PickByValue<TFormModel, string | undefined>>(formModel: TFormModel, startDateFieldName: TField, endDateFieldName: TField) => Pick<SectionChipsProps<TFormModel, TSectionKey>, "chips" | "onClickRemoveOnChip">;
|
|
4
5
|
export declare const createChipsForDateRange: (startDate: string | undefined, endDate: string | undefined) => Array<SearchFilterSectionChipModel>;
|
|
5
|
-
export declare const createOnClickRemoveOnChipForDateRange: <TFormModel, TField extends
|
|
6
|
+
export declare const createOnClickRemoveOnChipForDateRange: <TFormModel, TField extends keyof PickByValue<TFormModel, string | undefined>>(startDateFieldName: TField, endDateFieldName: TField) => SearchFilterSectionOnClickRemoveOnChip<TFormModel>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { PickByValue } from "@stenajs-webui/core";
|
|
1
2
|
import { DateRangeCalendarSectionProps } from "./components/DateRangeCalendarSection";
|
|
2
|
-
export declare const createDateRangeSectionProps: <TFormModel, TField extends
|
|
3
|
+
export declare const createDateRangeSectionProps: <TFormModel, TField extends keyof PickByValue<TFormModel, string | undefined>, TSectionKey extends string>(formModel: TFormModel, startDateFieldName: TField, endDateFieldName: TField) => Pick<DateRangeCalendarSectionProps<TFormModel, TSectionKey>, "value" | "onValueChange">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stenajs-webui/filter",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.10.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": "21.
|
|
37
|
-
"@stenajs-webui/core": "21.
|
|
38
|
-
"@stenajs-webui/elements": "21.
|
|
39
|
-
"@stenajs-webui/forms": "21.
|
|
40
|
-
"@stenajs-webui/modal": "21.
|
|
41
|
-
"@stenajs-webui/panels": "21.
|
|
42
|
-
"@stenajs-webui/redux": "21.
|
|
43
|
-
"@stenajs-webui/select": "21.
|
|
44
|
-
"@stenajs-webui/theme": "21.
|
|
36
|
+
"@stenajs-webui/calendar": "21.10.0",
|
|
37
|
+
"@stenajs-webui/core": "21.10.0",
|
|
38
|
+
"@stenajs-webui/elements": "21.10.0",
|
|
39
|
+
"@stenajs-webui/forms": "21.10.0",
|
|
40
|
+
"@stenajs-webui/modal": "21.10.0",
|
|
41
|
+
"@stenajs-webui/panels": "21.10.0",
|
|
42
|
+
"@stenajs-webui/redux": "21.10.0",
|
|
43
|
+
"@stenajs-webui/select": "21.10.0",
|
|
44
|
+
"@stenajs-webui/theme": "21.10.0",
|
|
45
45
|
"date-fns": "3.6.0",
|
|
46
46
|
"lodash-es": "^4.17.21"
|
|
47
47
|
},
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"files": [
|
|
72
72
|
"dist"
|
|
73
73
|
],
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "b02af89951bf394379a02c8e8dc5ad5182d36daa"
|
|
75
75
|
}
|