@isettingkit/business-rules 0.2.2 → 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 +52 -10
- package/dist/index.es.js +992 -782
- 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;
|
|
@@ -44,22 +51,57 @@ export declare interface IBusinessRuleView {
|
|
|
44
51
|
textValues?: IRulesFormTextValues;
|
|
45
52
|
}
|
|
46
53
|
|
|
47
|
-
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;
|
|
48
77
|
children: React.ReactNode;
|
|
78
|
+
loading?: boolean;
|
|
79
|
+
onClick: () => void;
|
|
49
80
|
onCloseModal: () => void;
|
|
50
81
|
portalId: string;
|
|
51
82
|
title: string;
|
|
52
83
|
}
|
|
53
84
|
|
|
54
|
-
declare interface
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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;
|
|
60
102
|
}
|
|
61
103
|
|
|
62
|
-
declare interface
|
|
104
|
+
declare interface IRevertSortedData {
|
|
63
105
|
decisionTemplate?: IRuleDecision;
|
|
64
106
|
dataDecision?: IRuleDecision;
|
|
65
107
|
decision?: IRuleDecision;
|
|
@@ -117,7 +159,7 @@ export declare const revertSortedDataSampleSwitchPlaces: (props: IRevertSortedDa
|
|
|
117
159
|
value?: string | string[] | number | IValue | undefined;
|
|
118
160
|
};
|
|
119
161
|
|
|
120
|
-
export declare const revertSortedDataSwitchPlaces: (props:
|
|
162
|
+
export declare const revertSortedDataSwitchPlaces: (props: IRevertSortedData) => IRuleDecision[] | undefined;
|
|
121
163
|
|
|
122
164
|
export declare const RulesForm: (props: IRulesForm) => JSX_2.Element;
|
|
123
165
|
|
|
@@ -144,6 +186,6 @@ export declare const sortDisplayDataSampleSwitchPlaces: (props: IRevertSortedDat
|
|
|
144
186
|
value?: string | string[] | number | IValue | undefined;
|
|
145
187
|
};
|
|
146
188
|
|
|
147
|
-
export declare const sortDisplayDataSwitchPlaces: (props:
|
|
189
|
+
export declare const sortDisplayDataSwitchPlaces: (props: IRevertSortedData) => IRuleDecision[] | undefined;
|
|
148
190
|
|
|
149
191
|
export { }
|