@isettingkit/business-rules 1.0.30 → 2.0.1

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.
@@ -24,6 +24,8 @@ export declare const BusinessRuleView: (props: IBusinessRuleView) => JSX.Element
24
24
 
25
25
  export declare const BusinessRuleViewNew: (props: IBusinessRuleView_2) => JSX.Element;
26
26
 
27
+ export declare const Checkpicker: (props: ICheckpicker) => JSX.Element;
28
+
27
29
  export declare const convertRangeToString: (value: {
28
30
  from: number;
29
31
  to: number;
@@ -121,6 +123,9 @@ declare interface IBusinessRules_2 {
121
123
  handleSubmitForm?: (dataDecision: IRuleDecision) => void;
122
124
  handleDelete?: (id: string) => void;
123
125
  terms?: boolean;
126
+ onRemoveCondition?: (conditionName: string) => void;
127
+ onRestoreConditions?: (conditionNames: string[]) => void;
128
+ baseDecisionTemplate?: IRuleDecision;
124
129
  }
125
130
 
126
131
  export declare interface IBusinessRuleView {
@@ -139,6 +144,25 @@ declare interface IBusinessRuleView_2 {
139
144
  position?: number;
140
145
  isOpen?: boolean;
141
146
  onToggle?: () => void;
147
+ onEdit?: () => void;
148
+ onDelete?: () => void;
149
+ }
150
+
151
+ declare interface ICheckpicker {
152
+ disabled?: boolean;
153
+ fullwidth?: boolean;
154
+ id?: string;
155
+ invalid?: boolean;
156
+ label?: string;
157
+ maxItems?: number;
158
+ message?: string;
159
+ name: string;
160
+ onChange: (name: string, values: string) => void;
161
+ options: IOption[];
162
+ placeholder?: string;
163
+ required?: boolean;
164
+ size?: ICheckpickerSize;
165
+ values: string;
142
166
  }
143
167
 
144
168
  export declare interface ICheckpickerField {
@@ -153,6 +177,8 @@ export declare interface ICheckpickerField {
153
177
  invalid?: boolean;
154
178
  }
155
179
 
180
+ declare type ICheckpickerSize = (typeof sizes)[number];
181
+
156
182
  export declare type IClientLabel = string;
157
183
 
158
184
  export declare interface IDragAndDropBoxes {
@@ -349,6 +375,8 @@ export declare const RulesForm: (props: IRulesForm) => JSX.Element;
349
375
 
350
376
  export declare const SendButton: (props: IButton) => JSX.Element;
351
377
 
378
+ declare const sizes: readonly ["wide", "compact"];
379
+
352
380
  export declare const sortDisplayDataSampleSwitchPlaces: (props: IRevertSortedData) => {
353
381
  businessRuleId?: string;
354
382
  conditionDataType?: ValueDataType[keyof ValueDataType];