@zeniai/web-components 3.1.70 → 3.1.71
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.
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { SpendManagementFilterEntityType, ZeniDate, ZeniUrl, SpendManagementFiltersType, SpendManagementFilterCategoryDropdownOption, MatchingOperatorDropdownOption, UserRoleType, BillPayFilterCategoryDropdownOption, ReimbursementFilterCategoryDropdownOption, TaskFilterCategoryDropdownOption } from '@zeniai/client-epic-state';
|
|
2
|
+
|
|
3
|
+
interface DropdownOptionTypeBase {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}
|
|
6
|
+
export interface ValuesDropdownOption extends DropdownOptionTypeBase {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string | ZeniDate;
|
|
9
|
+
photo?: ZeniUrl;
|
|
10
|
+
email?: string;
|
|
11
|
+
iconColor?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const defaultEmptyFilters: SpendManagementFiltersType;
|
|
14
|
+
export declare const NEW_CATEGORY_BODY: {
|
|
15
|
+
valuesCombinationOperator: string;
|
|
16
|
+
values: never[];
|
|
17
|
+
matchingOperator: string;
|
|
18
|
+
};
|
|
19
|
+
interface GetUpdatedFiltersonCategoryChangeProps {
|
|
20
|
+
currentFilters: SpendManagementFiltersType;
|
|
21
|
+
selectedOption: SpendManagementFilterCategoryDropdownOption;
|
|
22
|
+
categoryIndex?: number;
|
|
23
|
+
}
|
|
24
|
+
interface GetUpdatedFiltersOnMatchingOperatorChangeProps {
|
|
25
|
+
currentFilters: SpendManagementFiltersType;
|
|
26
|
+
selectedOption: MatchingOperatorDropdownOption;
|
|
27
|
+
categoryIndex?: number;
|
|
28
|
+
}
|
|
29
|
+
interface GetUpdatedFiltersOnValueChangeProps {
|
|
30
|
+
currentFilters: SpendManagementFiltersType;
|
|
31
|
+
selectedOptions: ValuesDropdownOption[];
|
|
32
|
+
categoryIndex: number;
|
|
33
|
+
}
|
|
34
|
+
export declare const getFilterCategoriesForSelectedEntity: (selectedEntity: SpendManagementFilterEntityType, userRole: UserRoleType[]) => BillPayFilterCategoryDropdownOption[] | ReimbursementFilterCategoryDropdownOption[] | TaskFilterCategoryDropdownOption[];
|
|
35
|
+
export declare const getFilterCategoryLabel: (selectedEntity: SpendManagementFilterEntityType, key: string) => string;
|
|
36
|
+
export declare const getUpdatedFiltersOnCategoryChange: ({ currentFilters, selectedOption, categoryIndex, }: GetUpdatedFiltersonCategoryChangeProps) => SpendManagementFiltersType;
|
|
37
|
+
export declare const getUpdatedFiltersOnMatchingOperatorChange: ({ currentFilters, selectedOption, categoryIndex, }: GetUpdatedFiltersOnMatchingOperatorChangeProps) => SpendManagementFiltersType;
|
|
38
|
+
export declare const getUpdatedFiltersOnValueChange: ({ currentFilters, selectedOptions, categoryIndex, }: GetUpdatedFiltersOnValueChangeProps) => SpendManagementFiltersType;
|
|
39
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/web-components",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.71",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@stripe/react-stripe-js": "^2.7.3",
|
|
40
40
|
"@stripe/stripe-js": "^4.4.0",
|
|
41
41
|
"@zeniai/client-analytics": "1.4.83",
|
|
42
|
-
"@zeniai/client-epic-state": "4.12.
|
|
42
|
+
"@zeniai/client-epic-state": "4.12.7",
|
|
43
43
|
"autosuggest-highlight": "^3.2.1",
|
|
44
44
|
"browser-image-compression": "^2.0.2",
|
|
45
45
|
"countries-list": "^2.6.1",
|