@isettingkit/business-rules 0.1.33 → 0.1.35
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 +15 -5
- package/dist/index.es.js +523 -433
- package/package.json +1 -1
package/dist/index.es.d.ts
CHANGED
|
@@ -18,16 +18,18 @@ export declare interface IBusinessRuleCard {
|
|
|
18
18
|
|
|
19
19
|
declare interface IBusinessRules {
|
|
20
20
|
controls?: boolean;
|
|
21
|
+
customTitleContentAddCard?: string;
|
|
22
|
+
customMessageEmptyDecisions?: string;
|
|
21
23
|
decisions: IRuleDecision[];
|
|
22
24
|
textValues: IRulesFormTextValues;
|
|
23
25
|
decisionTemplate: IRuleDecision;
|
|
24
26
|
isModalOpen: boolean;
|
|
25
27
|
selectedDecision: IRuleDecision | null;
|
|
26
28
|
loading: boolean;
|
|
27
|
-
handleOpenModal
|
|
28
|
-
handleCloseModal
|
|
29
|
-
handleSubmitForm
|
|
30
|
-
handleDelete
|
|
29
|
+
handleOpenModal?: (decision?: IRuleDecision | null) => void;
|
|
30
|
+
handleCloseModal?: () => void;
|
|
31
|
+
handleSubmitForm?: (dataDecision: IRuleDecision) => void;
|
|
32
|
+
handleDelete?: (id: string) => void;
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
export declare interface IBusinessRuleView {
|
|
@@ -45,7 +47,7 @@ declare interface IModalRules {
|
|
|
45
47
|
|
|
46
48
|
export declare interface IRulesForm {
|
|
47
49
|
decision: IRuleDecision;
|
|
48
|
-
onCancel
|
|
50
|
+
onCancel?: () => void;
|
|
49
51
|
onSubmitEvent: (dataDecision: IRuleDecision) => void;
|
|
50
52
|
textValues: IRulesFormTextValues;
|
|
51
53
|
}
|
|
@@ -70,6 +72,14 @@ declare interface IRulesFormTextValues {
|
|
|
70
72
|
|
|
71
73
|
export declare const ModalRules: (props: IModalRules) => ReactPortal;
|
|
72
74
|
|
|
75
|
+
export declare const revertSortedDataSampleSwitchPlaces: (dataDecision: IRuleDecision, originalDecision: IRuleDecision) => IRuleDecision;
|
|
76
|
+
|
|
77
|
+
export declare const revertSortedDataSwitchPlaces: (decisions: IRuleDecision[]) => IRuleDecision[];
|
|
78
|
+
|
|
73
79
|
export declare const RulesForm: (props: IRulesForm) => JSX_2.Element;
|
|
74
80
|
|
|
81
|
+
export declare const sortDisplayDataSampleSwitchPlaces: (decision: IRuleDecision) => IRuleDecision;
|
|
82
|
+
|
|
83
|
+
export declare const sortDisplayDataSwitchPlaces: (decisions: IRuleDecision[]) => IRuleDecision[];
|
|
84
|
+
|
|
75
85
|
export { }
|