@mindly/ui-components 8.2.4 → 8.2.5
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FilterItem } from '../../widgets/FiltersWidget/types';
|
|
2
2
|
import { AllowFilterValueType, FilterValue, Sort, SortDirection, SortKey, SortValue } from '../types/filter';
|
|
3
3
|
export declare const getMappedFilterValue: (value?: FilterValue) => AllowFilterValueType[];
|
|
4
|
-
export declare const getFiltersValues: (filters: FilterItem[]) => Record<string, FilterValue>;
|
|
5
|
-
export declare const isFilterSet: (filtersValues: Record<string, FilterValue>) => boolean;
|
|
6
|
-
export declare const getFilterCount: (filtersValues: Record<string, FilterValue>) => number;
|
|
7
|
-
export declare const getFiltersQuery: (filters: Record<string, FilterValue>) => string;
|
|
4
|
+
export declare const getFiltersValues: (filters: FilterItem[]) => Record<string, FilterValue | undefined>;
|
|
5
|
+
export declare const isFilterSet: (filtersValues: Record<string, FilterValue | undefined>) => boolean;
|
|
6
|
+
export declare const getFilterCount: (filtersValues: Record<string, FilterValue | undefined>) => number;
|
|
7
|
+
export declare const getFiltersQuery: (filters: Record<string, FilterValue | undefined>) => string;
|
|
8
8
|
export declare const getSortKey: (sort: SortValue, direction: SortDirection) => string;
|
|
9
9
|
export declare const getSortFromKey: (key: SortKey) => Sort;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FilterItem } from '../../widgets/FiltersWidget/types';
|
|
2
2
|
import { AllowFilterValueType, FilterValue, Sort, SortDirection, SortKey, SortValue } from '../types/filter';
|
|
3
3
|
export declare const getMappedFilterValue: (value?: FilterValue) => AllowFilterValueType[];
|
|
4
|
-
export declare const getFiltersValues: (filters: FilterItem[]) => Record<string, FilterValue>;
|
|
5
|
-
export declare const isFilterSet: (filtersValues: Record<string, FilterValue>) => boolean;
|
|
6
|
-
export declare const getFilterCount: (filtersValues: Record<string, FilterValue>) => number;
|
|
7
|
-
export declare const getFiltersQuery: (filters: Record<string, FilterValue>) => string;
|
|
4
|
+
export declare const getFiltersValues: (filters: FilterItem[]) => Record<string, FilterValue | undefined>;
|
|
5
|
+
export declare const isFilterSet: (filtersValues: Record<string, FilterValue | undefined>) => boolean;
|
|
6
|
+
export declare const getFilterCount: (filtersValues: Record<string, FilterValue | undefined>) => number;
|
|
7
|
+
export declare const getFiltersQuery: (filters: Record<string, FilterValue | undefined>) => string;
|
|
8
8
|
export declare const getSortKey: (sort: SortValue, direction: SortDirection) => string;
|
|
9
9
|
export declare const getSortFromKey: (key: SortKey) => Sort;
|
package/dist/index.d.ts
CHANGED
|
@@ -3277,10 +3277,10 @@ type FiltersWidgetProps = {
|
|
|
3277
3277
|
};
|
|
3278
3278
|
|
|
3279
3279
|
declare const getMappedFilterValue: (value?: FilterValue) => AllowFilterValueType[];
|
|
3280
|
-
declare const getFiltersValues: (filters: FilterItem[]) => Record<string, FilterValue>;
|
|
3281
|
-
declare const isFilterSet: (filtersValues: Record<string, FilterValue>) => boolean;
|
|
3282
|
-
declare const getFilterCount: (filtersValues: Record<string, FilterValue>) => number;
|
|
3283
|
-
declare const getFiltersQuery: (filters: Record<string, FilterValue>) => string;
|
|
3280
|
+
declare const getFiltersValues: (filters: FilterItem[]) => Record<string, FilterValue | undefined>;
|
|
3281
|
+
declare const isFilterSet: (filtersValues: Record<string, FilterValue | undefined>) => boolean;
|
|
3282
|
+
declare const getFilterCount: (filtersValues: Record<string, FilterValue | undefined>) => number;
|
|
3283
|
+
declare const getFiltersQuery: (filters: Record<string, FilterValue | undefined>) => string;
|
|
3284
3284
|
declare const getSortKey: (sort: SortValue, direction: SortDirection) => string;
|
|
3285
3285
|
declare const getSortFromKey: (key: SortKey) => Sort;
|
|
3286
3286
|
|