@isettingkit/business-rules 2.0.6 → 2.0.8

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,7 +24,9 @@ export declare const BusinessRuleCardNew: (props: IBusinessRuleCard) => JSX.Elem
24
24
 
25
25
  export declare const BusinessRules: (props: IBusinessRules) => JSX.Element;
26
26
 
27
- export declare const BusinessRulesNew: (props: IBusinessRules_2) => JSX.Element;
27
+ export declare const BusinessRulesNew: (props: IBusinessRules_3) => JSX.Element;
28
+
29
+ export declare const BusinessRulesWithGroup: (props: IBusinessRules_2) => JSX.Element;
28
30
 
29
31
  export declare const BusinessRuleView: (props: IBusinessRuleView) => JSX.Element;
30
32
 
@@ -154,6 +156,23 @@ declare interface IBusinessRules_2 {
154
156
  handleSubmitForm?: (dataDecision: IRuleDecision) => void;
155
157
  handleDelete?: (id: string) => void;
156
158
  terms?: boolean;
159
+ }
160
+
161
+ declare interface IBusinessRules_3 {
162
+ controls?: boolean;
163
+ customTitleContentAddCard?: string;
164
+ customMessageEmptyDecisions?: string;
165
+ decisions?: IRuleDecision[];
166
+ textValues: IRulesFormTextValues_3;
167
+ decisionTemplate: IRuleDecision;
168
+ isModalOpen: boolean;
169
+ selectedDecision: IRuleDecision | null;
170
+ loading: boolean;
171
+ handleOpenModal?: (decision?: IRuleDecision | null) => void;
172
+ handleCloseModal?: () => void;
173
+ handleSubmitForm?: (dataDecision: IRuleDecision) => void;
174
+ handleDelete?: (id: string) => void;
175
+ terms?: boolean;
157
176
  onRemoveCondition?: (conditionName: string) => void;
158
177
  onRestoreConditions?: (conditionNames: string[]) => void;
159
178
  baseDecisionTemplate?: IRuleDecision;
@@ -171,7 +190,7 @@ export declare interface IBusinessRuleView {
171
190
  declare interface IBusinessRuleView_2 {
172
191
  decision?: IRuleDecision;
173
192
  loading?: boolean;
174
- textValues?: IRulesFormTextValues_2;
193
+ textValues?: IRulesFormTextValues_3;
175
194
  position?: number;
176
195
  isOpen?: boolean;
177
196
  onToggle?: () => void;
@@ -361,6 +380,24 @@ declare interface IRulesFormTextValues_2 {
361
380
  termEnd: string;
362
381
  terms?: string;
363
382
  termStart: string;
383
+ }
384
+
385
+ declare interface IRulesFormTextValues_3 {
386
+ cancel: string;
387
+ change: string;
388
+ changePlaceholder: string;
389
+ confirm: string;
390
+ criteria: string;
391
+ factsThatConditionIt: string;
392
+ none: string;
393
+ rangeMax: (label: string) => string;
394
+ rangeMin: (label: string) => string;
395
+ reasonForChange: string;
396
+ selectOption: string;
397
+ selectOptions: string;
398
+ termEnd: string;
399
+ terms?: string;
400
+ termStart: string;
364
401
  effectiveFrom?: string;
365
402
  validUntil?: string;
366
403
  }