@isettingkit/business-rules 0.1.21 → 0.1.23
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 +25 -0
- package/dist/index.es.js +711 -426
- package/package.json +2 -2
package/dist/index.es.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { IRuleDecision } from '@isettingkit/input';
|
|
2
2
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
3
|
+
import { ReactPortal } from 'react';
|
|
3
4
|
|
|
4
5
|
export declare const BusinessRuleCard: (props: IBusinessRuleCard) => JSX_2.Element;
|
|
5
6
|
|
|
7
|
+
export declare const BusinessRules: ({ decisions, textValues, decisionTemplate, isModalOpen, selectedDecision, loading, handleOpenModal, handleCloseModal, handleSubmitForm, handleDelete, }: IBusinessRules) => JSX_2.Element;
|
|
8
|
+
|
|
6
9
|
export declare const BusinessRuleView: (props: IBusinessRuleView) => JSX_2.Element;
|
|
7
10
|
|
|
8
11
|
export declare interface IBusinessRuleCard {
|
|
@@ -13,12 +16,32 @@ export declare interface IBusinessRuleCard {
|
|
|
13
16
|
id: string;
|
|
14
17
|
}
|
|
15
18
|
|
|
19
|
+
declare interface IBusinessRules {
|
|
20
|
+
decisions: IRuleDecision[];
|
|
21
|
+
textValues: IRulesFormTextValues;
|
|
22
|
+
decisionTemplate: IRuleDecision;
|
|
23
|
+
isModalOpen: boolean;
|
|
24
|
+
selectedDecision: IRuleDecision | null;
|
|
25
|
+
loading: boolean;
|
|
26
|
+
handleOpenModal: (decision?: IRuleDecision | null) => void;
|
|
27
|
+
handleCloseModal: () => void;
|
|
28
|
+
handleSubmitForm: (dataDecision: IRuleDecision) => void;
|
|
29
|
+
handleDelete: (id: string) => void;
|
|
30
|
+
}
|
|
31
|
+
|
|
16
32
|
export declare interface IBusinessRuleView {
|
|
17
33
|
decision?: IRuleDecision;
|
|
18
34
|
loading?: boolean;
|
|
19
35
|
textValues?: IRulesFormTextValues;
|
|
20
36
|
}
|
|
21
37
|
|
|
38
|
+
declare interface IModalRules {
|
|
39
|
+
children: React.ReactNode;
|
|
40
|
+
onCloseModal: () => void;
|
|
41
|
+
portalId: string;
|
|
42
|
+
title: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
22
45
|
export declare interface IRulesForm {
|
|
23
46
|
id: string;
|
|
24
47
|
decision: IRuleDecision;
|
|
@@ -46,6 +69,8 @@ declare interface IRulesFormTextValues {
|
|
|
46
69
|
termStart: string;
|
|
47
70
|
}
|
|
48
71
|
|
|
72
|
+
export declare const ModalRules: (props: IModalRules) => ReactPortal;
|
|
73
|
+
|
|
49
74
|
export declare const RulesForm: (prop: IRulesForm) => JSX_2.Element;
|
|
50
75
|
|
|
51
76
|
export { }
|