@isettingkit/business-rules 1.0.29 → 2.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.
@@ -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,7 @@ 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;
124
127
  }
125
128
 
126
129
  export declare interface IBusinessRuleView {
@@ -139,6 +142,25 @@ declare interface IBusinessRuleView_2 {
139
142
  position?: number;
140
143
  isOpen?: boolean;
141
144
  onToggle?: () => void;
145
+ onEdit?: () => void;
146
+ onDelete?: () => void;
147
+ }
148
+
149
+ declare interface ICheckpicker {
150
+ disabled?: boolean;
151
+ fullwidth?: boolean;
152
+ id?: string;
153
+ invalid?: boolean;
154
+ label?: string;
155
+ maxItems?: number;
156
+ message?: string;
157
+ name: string;
158
+ onChange: (name: string, values: string) => void;
159
+ options: IOption[];
160
+ placeholder?: string;
161
+ required?: boolean;
162
+ size?: ICheckpickerSize;
163
+ values: string;
142
164
  }
143
165
 
144
166
  export declare interface ICheckpickerField {
@@ -153,6 +175,8 @@ export declare interface ICheckpickerField {
153
175
  invalid?: boolean;
154
176
  }
155
177
 
178
+ declare type ICheckpickerSize = (typeof sizes)[number];
179
+
156
180
  export declare type IClientLabel = string;
157
181
 
158
182
  export declare interface IDragAndDropBoxes {
@@ -349,6 +373,8 @@ export declare const RulesForm: (props: IRulesForm) => JSX.Element;
349
373
 
350
374
  export declare const SendButton: (props: IButton) => JSX.Element;
351
375
 
376
+ declare const sizes: readonly ["wide", "compact"];
377
+
352
378
  export declare const sortDisplayDataSampleSwitchPlaces: (props: IRevertSortedData) => {
353
379
  businessRuleId?: string;
354
380
  conditionDataType?: ValueDataType[keyof ValueDataType];