@isettingkit/business-rules 1.0.19 → 1.0.20
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 +65 -9
- package/dist/index.es.js +1483 -925
- package/package.json +13 -15
package/dist/index.es.d.ts
CHANGED
|
@@ -3,23 +3,30 @@ import { IDecision } from '@isettingkit/input';
|
|
|
3
3
|
import { IOption } from '@inubekit/inubekit';
|
|
4
4
|
import { IRuleDecision } from '@isettingkit/input';
|
|
5
5
|
import { IValue } from '@isettingkit/input';
|
|
6
|
-
import { JSX
|
|
6
|
+
import { JSX } from 'react/jsx-runtime';
|
|
7
|
+
import { JSX as JSX_2 } from 'react';
|
|
7
8
|
import { ReactPortal } from 'react';
|
|
8
9
|
import { ValueDataType } from '@isettingkit/input';
|
|
9
10
|
import { ValueHowToSetUp } from '@isettingkit/input';
|
|
10
11
|
|
|
11
|
-
export declare const BusinessRuleCard: (props: IBusinessRuleCard) =>
|
|
12
|
+
export declare const BusinessRuleCard: (props: IBusinessRuleCard) => JSX.Element;
|
|
12
13
|
|
|
13
|
-
export declare const
|
|
14
|
+
export declare const BusinessRuleCardNew: (props: IBusinessRuleCard) => JSX.Element;
|
|
14
15
|
|
|
15
|
-
export declare const
|
|
16
|
+
export declare const BusinessRules: (props: IBusinessRules) => JSX.Element;
|
|
17
|
+
|
|
18
|
+
export declare const BusinessRulesNew: (props: IBusinessRules_2) => JSX.Element;
|
|
19
|
+
|
|
20
|
+
export declare const BusinessRuleView: (props: IBusinessRuleView) => JSX.Element;
|
|
21
|
+
|
|
22
|
+
export declare const BusinessRuleViewNew: (props: IBusinessRuleView_2) => JSX.Element;
|
|
16
23
|
|
|
17
24
|
export declare const convertRangeToString: (value: {
|
|
18
25
|
from: number;
|
|
19
26
|
to: number;
|
|
20
27
|
}) => string;
|
|
21
28
|
|
|
22
|
-
export declare const Filter: (props: IFilter) =>
|
|
29
|
+
export declare const Filter: (props: IFilter) => JSX.Element;
|
|
23
30
|
|
|
24
31
|
export declare const FilterModal: (props: IFilterModal) => ReactPortal;
|
|
25
32
|
|
|
@@ -50,7 +57,7 @@ export declare const formatDecisionForBackend: (props: {
|
|
|
50
57
|
validUntil?: Date | string;
|
|
51
58
|
};
|
|
52
59
|
|
|
53
|
-
export declare const FormFilter: (props: IFormFilter) =>
|
|
60
|
+
export declare const FormFilter: (props: IFormFilter) => JSX.Element;
|
|
54
61
|
|
|
55
62
|
export declare interface IBusinessRuleCard {
|
|
56
63
|
children: React.ReactNode;
|
|
@@ -77,10 +84,39 @@ declare interface IBusinessRules {
|
|
|
77
84
|
terms?: boolean;
|
|
78
85
|
}
|
|
79
86
|
|
|
87
|
+
declare interface IBusinessRules_2 {
|
|
88
|
+
controls?: boolean;
|
|
89
|
+
customTitleContentAddCard?: string;
|
|
90
|
+
customMessageEmptyDecisions?: string;
|
|
91
|
+
decisions?: IRuleDecision[];
|
|
92
|
+
textValues: IRulesFormTextValues_2;
|
|
93
|
+
decisionTemplate: IRuleDecision;
|
|
94
|
+
isModalOpen: boolean;
|
|
95
|
+
selectedDecision: IRuleDecision | null;
|
|
96
|
+
loading: boolean;
|
|
97
|
+
handleOpenModal?: (decision?: IRuleDecision | null) => void;
|
|
98
|
+
handleCloseModal?: () => void;
|
|
99
|
+
handleSubmitForm?: (dataDecision: IRuleDecision) => void;
|
|
100
|
+
handleDelete?: (id: string) => void;
|
|
101
|
+
terms?: boolean;
|
|
102
|
+
}
|
|
103
|
+
|
|
80
104
|
export declare interface IBusinessRuleView {
|
|
81
105
|
decision?: IRuleDecision;
|
|
82
106
|
loading?: boolean;
|
|
83
107
|
textValues?: IRulesFormTextValues;
|
|
108
|
+
position?: number;
|
|
109
|
+
isOpen?: boolean;
|
|
110
|
+
onToggle?: (isOpen: boolean) => void;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
declare interface IBusinessRuleView_2 {
|
|
114
|
+
decision?: IRuleDecision;
|
|
115
|
+
loading?: boolean;
|
|
116
|
+
textValues?: IRulesFormTextValues_2;
|
|
117
|
+
position?: number;
|
|
118
|
+
isOpen?: boolean;
|
|
119
|
+
onToggle?: () => void;
|
|
84
120
|
}
|
|
85
121
|
|
|
86
122
|
export declare interface ICheckpickerField {
|
|
@@ -116,7 +152,7 @@ export declare interface IFilterModal {
|
|
|
116
152
|
}
|
|
117
153
|
|
|
118
154
|
export declare interface IFilterTag {
|
|
119
|
-
icon:
|
|
155
|
+
icon: JSX_2.Element;
|
|
120
156
|
label: string;
|
|
121
157
|
onClose?: (e?: React.MouseEvent<Element, MouseEvent>) => void;
|
|
122
158
|
}
|
|
@@ -124,7 +160,7 @@ export declare interface IFilterTag {
|
|
|
124
160
|
export declare interface IFormFilter {
|
|
125
161
|
appliedFilters?: IFilterTag[];
|
|
126
162
|
fields: Array<ICheckpickerField & {
|
|
127
|
-
icon?:
|
|
163
|
+
icon?: JSX_2.Element;
|
|
128
164
|
}>;
|
|
129
165
|
onChange: (name: string, values: string) => void;
|
|
130
166
|
noFiltersLabel?: string;
|
|
@@ -170,6 +206,26 @@ declare interface IRulesFormTextValues {
|
|
|
170
206
|
termStart: string;
|
|
171
207
|
}
|
|
172
208
|
|
|
209
|
+
declare interface IRulesFormTextValues_2 {
|
|
210
|
+
cancel: string;
|
|
211
|
+
change: string;
|
|
212
|
+
changePlaceholder: string;
|
|
213
|
+
confirm: string;
|
|
214
|
+
criteria: string;
|
|
215
|
+
factsThatConditionIt: string;
|
|
216
|
+
none: string;
|
|
217
|
+
rangeMax: (label: string) => string;
|
|
218
|
+
rangeMin: (label: string) => string;
|
|
219
|
+
reasonForChange: string;
|
|
220
|
+
selectOption: string;
|
|
221
|
+
selectOptions: string;
|
|
222
|
+
termEnd: string;
|
|
223
|
+
terms?: string;
|
|
224
|
+
termStart: string;
|
|
225
|
+
effectiveFrom?: string;
|
|
226
|
+
validUntil?: string;
|
|
227
|
+
}
|
|
228
|
+
|
|
173
229
|
declare interface ITranslateOptions {
|
|
174
230
|
url: string;
|
|
175
231
|
apiKey: string;
|
|
@@ -207,7 +263,7 @@ export declare const revertSortedDataSampleSwitchPlaces: (props: IRevertSortedDa
|
|
|
207
263
|
|
|
208
264
|
export declare const revertSortedDataSwitchPlaces: (props: IRevertSortedData) => IRuleDecision[] | undefined;
|
|
209
265
|
|
|
210
|
-
export declare const RulesForm: (props: IRulesForm) =>
|
|
266
|
+
export declare const RulesForm: (props: IRulesForm) => JSX.Element;
|
|
211
267
|
|
|
212
268
|
export declare const sortDisplayDataSampleSwitchPlaces: (props: IRevertSortedData) => {
|
|
213
269
|
businessRuleId?: string;
|