@isettingkit/business-rules 0.2.1 → 1.0.0
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 +55 -12
- package/dist/index.es.js +955 -729
- package/package.json +1 -1
package/dist/index.es.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ICondition } from '@isettingkit/input';
|
|
2
2
|
import { IDecision } from '@isettingkit/input';
|
|
3
|
+
import { IOption } from '@inubekit/inubekit';
|
|
3
4
|
import { IRuleDecision } from '@isettingkit/input';
|
|
4
5
|
import { IValue } from '@isettingkit/input';
|
|
5
6
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
@@ -13,6 +14,12 @@ export declare const BusinessRules: (props: IBusinessRules) => JSX_2.Element;
|
|
|
13
14
|
|
|
14
15
|
export declare const BusinessRuleView: (props: IBusinessRuleView) => JSX_2.Element;
|
|
15
16
|
|
|
17
|
+
export declare const Filter: (props: IFilter) => JSX_2.Element;
|
|
18
|
+
|
|
19
|
+
export declare const FilterModal: (props: IFilterModal) => ReactPortal;
|
|
20
|
+
|
|
21
|
+
export declare const FormFilter: (props: IFormFilter) => JSX_2.Element;
|
|
22
|
+
|
|
16
23
|
export declare interface IBusinessRuleCard {
|
|
17
24
|
children: React.ReactNode;
|
|
18
25
|
controls?: boolean;
|
|
@@ -35,6 +42,7 @@ declare interface IBusinessRules {
|
|
|
35
42
|
handleCloseModal?: () => void;
|
|
36
43
|
handleSubmitForm?: (dataDecision: IRuleDecision) => void;
|
|
37
44
|
handleDelete?: (id: string) => void;
|
|
45
|
+
terms?: boolean;
|
|
38
46
|
}
|
|
39
47
|
|
|
40
48
|
export declare interface IBusinessRuleView {
|
|
@@ -43,22 +51,57 @@ export declare interface IBusinessRuleView {
|
|
|
43
51
|
textValues?: IRulesFormTextValues;
|
|
44
52
|
}
|
|
45
53
|
|
|
46
|
-
declare interface
|
|
54
|
+
export declare interface ICheckpickerField {
|
|
55
|
+
label?: string;
|
|
56
|
+
name: string;
|
|
57
|
+
options: IOption[];
|
|
58
|
+
values: string;
|
|
59
|
+
placeholder?: string;
|
|
60
|
+
required?: boolean;
|
|
61
|
+
disabled?: boolean;
|
|
62
|
+
message?: string;
|
|
63
|
+
invalid?: boolean;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export declare interface IFilter {
|
|
67
|
+
appliedFilters?: IFilterTag[];
|
|
68
|
+
onClear: () => void;
|
|
69
|
+
onClick: () => void;
|
|
70
|
+
titleClearFilter: string;
|
|
71
|
+
titleFilter: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export declare interface IFilterModal {
|
|
75
|
+
actionButtonLabel: string;
|
|
76
|
+
cancelButtonLabel: string;
|
|
47
77
|
children: React.ReactNode;
|
|
78
|
+
loading?: boolean;
|
|
79
|
+
onClick: () => void;
|
|
48
80
|
onCloseModal: () => void;
|
|
49
81
|
portalId: string;
|
|
50
82
|
title: string;
|
|
51
83
|
}
|
|
52
84
|
|
|
53
|
-
declare interface
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
85
|
+
export declare interface IFilterTag {
|
|
86
|
+
icon: JSX.Element;
|
|
87
|
+
label: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export declare interface IFormFilter {
|
|
91
|
+
fields: Array<ICheckpickerField & {
|
|
92
|
+
icon?: JSX.Element;
|
|
93
|
+
}>;
|
|
94
|
+
onChange: (name: string, values: string) => void;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
declare interface IModalRules {
|
|
98
|
+
children: React.ReactNode;
|
|
99
|
+
onCloseModal: () => void;
|
|
100
|
+
portalId: string;
|
|
101
|
+
title: string;
|
|
59
102
|
}
|
|
60
103
|
|
|
61
|
-
declare interface
|
|
104
|
+
declare interface IRevertSortedData {
|
|
62
105
|
decisionTemplate?: IRuleDecision;
|
|
63
106
|
dataDecision?: IRuleDecision;
|
|
64
107
|
decision?: IRuleDecision;
|
|
@@ -69,7 +112,7 @@ declare interface IRevertSortedData_2 {
|
|
|
69
112
|
export declare interface IRulesForm {
|
|
70
113
|
decision: IRuleDecision;
|
|
71
114
|
onCancel?: () => void;
|
|
72
|
-
onSubmitEvent
|
|
115
|
+
onSubmitEvent?: (dataDecision: IRuleDecision) => void;
|
|
73
116
|
textValues: IRulesFormTextValues;
|
|
74
117
|
}
|
|
75
118
|
|
|
@@ -87,7 +130,7 @@ declare interface IRulesFormTextValues {
|
|
|
87
130
|
selectOption: string;
|
|
88
131
|
selectOptions: string;
|
|
89
132
|
termEnd: string;
|
|
90
|
-
terms
|
|
133
|
+
terms?: string;
|
|
91
134
|
termStart: string;
|
|
92
135
|
}
|
|
93
136
|
|
|
@@ -116,7 +159,7 @@ export declare const revertSortedDataSampleSwitchPlaces: (props: IRevertSortedDa
|
|
|
116
159
|
value?: string | string[] | number | IValue | undefined;
|
|
117
160
|
};
|
|
118
161
|
|
|
119
|
-
export declare const revertSortedDataSwitchPlaces: (props:
|
|
162
|
+
export declare const revertSortedDataSwitchPlaces: (props: IRevertSortedData) => IRuleDecision[] | undefined;
|
|
120
163
|
|
|
121
164
|
export declare const RulesForm: (props: IRulesForm) => JSX_2.Element;
|
|
122
165
|
|
|
@@ -143,6 +186,6 @@ export declare const sortDisplayDataSampleSwitchPlaces: (props: IRevertSortedDat
|
|
|
143
186
|
value?: string | string[] | number | IValue | undefined;
|
|
144
187
|
};
|
|
145
188
|
|
|
146
|
-
export declare const sortDisplayDataSwitchPlaces: (props:
|
|
189
|
+
export declare const sortDisplayDataSwitchPlaces: (props: IRevertSortedData) => IRuleDecision[] | undefined;
|
|
147
190
|
|
|
148
191
|
export { }
|