@isettingkit/business-rules 2.0.1 → 2.0.3
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/index.es.d.ts +32 -0
- package/dist/index.es.js +750 -687
- package/package.json +2 -2
package/dist/index.es.d.ts
CHANGED
|
@@ -12,6 +12,12 @@ import { ValueHowToSetUp } from '@isettingkit/input';
|
|
|
12
12
|
|
|
13
13
|
export declare const BackAndNextButton: (props: IBackAndNextButton) => JSX.Element;
|
|
14
14
|
|
|
15
|
+
export declare const buildEsConditionSentence: (opts: {
|
|
16
|
+
label: string;
|
|
17
|
+
howToSet: EValueHowToSetUp_2;
|
|
18
|
+
isFirst?: boolean;
|
|
19
|
+
}) => string;
|
|
20
|
+
|
|
15
21
|
export declare const BusinessRuleCard: (props: IBusinessRuleCard) => JSX.Element;
|
|
16
22
|
|
|
17
23
|
export declare const BusinessRuleCardNew: (props: IBusinessRuleCard) => JSX.Element;
|
|
@@ -39,10 +45,32 @@ export declare const DropdownMenu: (props: IDropdownMenu) => JSX.Element;
|
|
|
39
45
|
|
|
40
46
|
export declare const DropdownMenuContainer: (props: IDropdownMenuContainer) => JSX.Element;
|
|
41
47
|
|
|
48
|
+
export declare enum EValueHowToSetUp {
|
|
49
|
+
EQUAL = "EqualTo",
|
|
50
|
+
GREATER_THAN = "GreaterThan",
|
|
51
|
+
LESS_THAN = "LessThan",
|
|
52
|
+
LIST_OF_VALUES = "ListOfValues",
|
|
53
|
+
LIST_OF_VALUES_MULTI = "ListOfValuesMulti",
|
|
54
|
+
RANGE = "Range"
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
declare enum EValueHowToSetUp_2 {
|
|
58
|
+
EQUAL = "EqualTo",
|
|
59
|
+
GREATER_THAN = "GreaterThan",
|
|
60
|
+
LESS_THAN = "LessThan",
|
|
61
|
+
LIST_OF_VALUES = "ListOfValues",
|
|
62
|
+
LIST_OF_VALUES_MULTI = "ListOfValuesMulti",
|
|
63
|
+
RANGE = "Range"
|
|
64
|
+
}
|
|
65
|
+
|
|
42
66
|
export declare const Filter: (props: IFilter) => JSX.Element;
|
|
43
67
|
|
|
68
|
+
export declare const filterByGroup: <T>(obj: Record<string, T[]>, pred: (c: T) => boolean) => Record<string, T[]>;
|
|
69
|
+
|
|
44
70
|
export declare const FilterModal: (props: IFilterModal) => ReactPortal;
|
|
45
71
|
|
|
72
|
+
export declare const flatFromGroups: <T>(obj: Record<string, T[]>) => T[];
|
|
73
|
+
|
|
46
74
|
export declare const formatDecisionForBackend: (props: {
|
|
47
75
|
decision: IRuleDecision;
|
|
48
76
|
fallbackId: string;
|
|
@@ -72,6 +100,8 @@ export declare const formatDecisionForBackend: (props: {
|
|
|
72
100
|
|
|
73
101
|
export declare const FormFilter: (props: IFormFilter) => JSX.Element;
|
|
74
102
|
|
|
103
|
+
export declare const getConditionsByGroup: (decision: IRuleDecision) => {};
|
|
104
|
+
|
|
75
105
|
export declare interface IBackAndNextButton extends Omit<IButton, "onClick" | "path" | "children"> {
|
|
76
106
|
handleBack: () => void;
|
|
77
107
|
handleNext: () => void;
|
|
@@ -339,6 +369,8 @@ declare interface ITranslateOptions {
|
|
|
339
369
|
apiKey: string;
|
|
340
370
|
}
|
|
341
371
|
|
|
372
|
+
export declare const mapByGroup: <T, R>(obj: Record<string, T[]>, fn: (c: T, idx: number, arr: T[], group: string) => R) => Record<string, R[]>;
|
|
373
|
+
|
|
342
374
|
export declare const ModalRules: (props: IModalRules) => ReactPortal;
|
|
343
375
|
|
|
344
376
|
export declare const parseRangeFromString: (value: string | number | string[] | IValue | undefined) => string | number | IValue | string[] | {
|