@isettingkit/business-rules 3.2.0 → 3.2.2
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 +496 -24
- package/dist/index.es.js +1185 -1074
- package/package.json +1 -1
package/dist/index.es.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { IButton } from '@inubekit/inubekit';
|
|
2
|
+
import { IButtonAppearance } from '@inubekit/inubekit';
|
|
2
3
|
import { IOption } from '@inubekit/inubekit';
|
|
3
4
|
import { JSX } from 'react/jsx-runtime';
|
|
4
5
|
import { JSX as JSX_2 } from 'react';
|
|
6
|
+
import { NumberSchema } from 'yup';
|
|
5
7
|
import { ReactPortal } from 'react';
|
|
8
|
+
import { StringSchema } from 'yup';
|
|
6
9
|
|
|
7
10
|
export declare const BackAndNextButton: (props: IBackAndNextButton) => JSX.Element;
|
|
8
11
|
|
|
@@ -26,11 +29,48 @@ export declare const BusinessRuleView: (props: IBusinessRuleView) => JSX.Element
|
|
|
26
29
|
|
|
27
30
|
export declare const BusinessRuleViewNew: (props: IBusinessRuleView_2) => JSX.Element;
|
|
28
31
|
|
|
32
|
+
export declare const Checkpicker: (props: ICheckpicker) => JSX.Element;
|
|
33
|
+
|
|
34
|
+
declare interface Condition {
|
|
35
|
+
valueUse: "RANGE" | "LIST_OF_VALUES_MULTI" | "EQUAL" | "GREATER_THAN" | "LESS_THAN";
|
|
36
|
+
listOfPossibleValues?: {
|
|
37
|
+
list?: string[];
|
|
38
|
+
};
|
|
39
|
+
conditionDataType: string;
|
|
40
|
+
decisionDataType?: string;
|
|
41
|
+
howToSetTheCondition: string;
|
|
42
|
+
howToSetTheDecision: string;
|
|
43
|
+
conditionName: string;
|
|
44
|
+
ruleName: string;
|
|
45
|
+
labelName: string;
|
|
46
|
+
placeholder?: string;
|
|
47
|
+
placeholderFrom?: string;
|
|
48
|
+
placeholderTo?: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
29
51
|
export declare const convertRangeToString: (value: {
|
|
30
52
|
from: number;
|
|
31
53
|
to: number;
|
|
32
54
|
}) => string;
|
|
33
55
|
|
|
56
|
+
export declare const currencyFormat: (price: number | string) => string;
|
|
57
|
+
|
|
58
|
+
export declare const DecisionConditionRender: ({ condition, formik, isDecision, }: {
|
|
59
|
+
condition: Condition;
|
|
60
|
+
formik: FormikType;
|
|
61
|
+
isDecision?: boolean;
|
|
62
|
+
}) => JSX.Element | null;
|
|
63
|
+
|
|
64
|
+
export declare const DecisionConditionRenderNew: ({ condition, formik, isDecision, }: {
|
|
65
|
+
condition: IConditionNew;
|
|
66
|
+
formik: IFormikTypeNew;
|
|
67
|
+
isDecision?: boolean;
|
|
68
|
+
}) => JSX.Element | null;
|
|
69
|
+
|
|
70
|
+
export declare const DecisionViewConditionRenderer: (props: IDecisionViewConditionRenderer) => JSX.Element | null;
|
|
71
|
+
|
|
72
|
+
export declare const DecisionViewConditionRendererNew: (props: IDecisionViewConditionRendererNew) => JSX.Element | null;
|
|
73
|
+
|
|
34
74
|
export declare const DragAndDropBoxes: (props: IDragAndDropBoxes) => JSX.Element;
|
|
35
75
|
|
|
36
76
|
export declare const DraggableList: (props: IDraggableList) => JSX.Element;
|
|
@@ -39,7 +79,24 @@ export declare const DropdownMenu: (props: IDropdownMenu) => JSX.Element;
|
|
|
39
79
|
|
|
40
80
|
export declare const DropdownMenuContainer: (props: IDropdownMenuContainer) => JSX.Element;
|
|
41
81
|
|
|
42
|
-
declare
|
|
82
|
+
export declare const DynamicField: ({ type, name, label, value, onChange, messageValidate, statusValidate, onBlur, placeholder, }: IDynamicField) => JSX.Element | null;
|
|
83
|
+
|
|
84
|
+
export declare const DynamicFieldNew: (props: IDynamicField_2) => JSX.Element | null;
|
|
85
|
+
|
|
86
|
+
export declare const DynamicViewField: (props: IDynamicViewField) => JSX.Element;
|
|
87
|
+
|
|
88
|
+
export declare const DynamicViewFieldNew: (props: IDynamicViewFieldNew) => JSX.Element;
|
|
89
|
+
|
|
90
|
+
export declare enum EFieldType {
|
|
91
|
+
ALPHABETICAL = "alphabetical",
|
|
92
|
+
CURRENCY = "currency",
|
|
93
|
+
DATE = "date",
|
|
94
|
+
MONETARY = "monetary",
|
|
95
|
+
NUMBER = "number",
|
|
96
|
+
PERCENTAGE = "percentage"
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export declare enum EFieldTypeNew {
|
|
43
100
|
ALPHABETICAL = "alphabetical",
|
|
44
101
|
CURRENCY = "currency",
|
|
45
102
|
DATE = "date",
|
|
@@ -69,6 +126,8 @@ export declare const Filter: (props: IFilter) => JSX.Element;
|
|
|
69
126
|
|
|
70
127
|
export declare const filterByGroup: <T>(obj: Record<string, T[]>, pred: (c: T) => boolean) => Record<string, T[]>;
|
|
71
128
|
|
|
129
|
+
export declare const FilterModal: (props: IFilterModal) => ReactPortal;
|
|
130
|
+
|
|
72
131
|
export declare const flatFromGroups: <T>(obj: Record<string, T[]>) => T[];
|
|
73
132
|
|
|
74
133
|
export declare const formatDecisionForBackend: (props: {
|
|
@@ -82,7 +141,7 @@ export declare const formatDecisionForBackend: (props: {
|
|
|
82
141
|
businessRuleId?: string;
|
|
83
142
|
conditionDataType?: "number" | "alphabetical" | "currency" | "date" | "monetary" | "percentage";
|
|
84
143
|
conditionName?: string;
|
|
85
|
-
conditionGroups?:
|
|
144
|
+
conditionGroups?: ICondition[];
|
|
86
145
|
decision?: IDecision;
|
|
87
146
|
decisions?: IDecision[];
|
|
88
147
|
decisionDataType?: "number" | "alphabetical" | "currency" | "date" | "monetary" | "percentage";
|
|
@@ -104,8 +163,19 @@ export declare const formatDecisionForBackend: (props: {
|
|
|
104
163
|
i18nValue?: string | string[] | number | IValue;
|
|
105
164
|
};
|
|
106
165
|
|
|
166
|
+
export declare const formatValue: (value: number | string, type: ITextfieldInputType_4) => string | number;
|
|
167
|
+
|
|
107
168
|
export declare const FormFilter: (props: IFormFilter) => JSX.Element;
|
|
108
169
|
|
|
170
|
+
declare interface FormikType {
|
|
171
|
+
setFieldValue: (field: string, value: any) => void;
|
|
172
|
+
setFieldTouched: (field: string, isTouched: boolean, shouldValidate?: boolean) => void;
|
|
173
|
+
values: Record<string, any>;
|
|
174
|
+
errors: Record<string, any>;
|
|
175
|
+
touched: Record<string, any>;
|
|
176
|
+
handleBlur: () => void;
|
|
177
|
+
}
|
|
178
|
+
|
|
109
179
|
export declare const getConditionsByGroupNew: (raw: any) => Record<string, any[]>;
|
|
110
180
|
|
|
111
181
|
export declare const groupsRecordToArrayNew: (record: Record<string, any[]>) => {
|
|
@@ -233,6 +303,23 @@ declare interface IBusinessRuleView_2 {
|
|
|
233
303
|
withEditOption?: boolean;
|
|
234
304
|
}
|
|
235
305
|
|
|
306
|
+
declare interface ICheckpicker {
|
|
307
|
+
disabled?: boolean;
|
|
308
|
+
fullwidth?: boolean;
|
|
309
|
+
id?: string;
|
|
310
|
+
invalid?: boolean;
|
|
311
|
+
label?: string;
|
|
312
|
+
maxItems?: number;
|
|
313
|
+
message?: string;
|
|
314
|
+
name: string;
|
|
315
|
+
onChange: (name: string, values: string) => void;
|
|
316
|
+
options: IOption[];
|
|
317
|
+
placeholder?: string;
|
|
318
|
+
required?: boolean;
|
|
319
|
+
size?: ICheckpickerSize_3;
|
|
320
|
+
values: string;
|
|
321
|
+
}
|
|
322
|
+
|
|
236
323
|
export declare interface ICheckpickerField {
|
|
237
324
|
label?: string;
|
|
238
325
|
name: string;
|
|
@@ -245,14 +332,16 @@ export declare interface ICheckpickerField {
|
|
|
245
332
|
invalid?: boolean;
|
|
246
333
|
}
|
|
247
334
|
|
|
248
|
-
|
|
335
|
+
declare type ICheckpickerSize = (typeof sizes)[number];
|
|
249
336
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
337
|
+
declare type ICheckpickerSize_2 = (typeof sizes_2)[number];
|
|
338
|
+
|
|
339
|
+
declare type ICheckpickerSize_3 = (typeof sizes_3)[number];
|
|
340
|
+
|
|
341
|
+
export declare type IClientLabel = string;
|
|
253
342
|
|
|
254
|
-
declare interface
|
|
255
|
-
conditionsThatEstablishesTheDecision?:
|
|
343
|
+
export declare interface ICondition {
|
|
344
|
+
conditionsThatEstablishesTheDecision?: ICondition[];
|
|
256
345
|
conditionDataType: (typeof ValueDataType)[keyof typeof ValueDataType];
|
|
257
346
|
hidden?: boolean;
|
|
258
347
|
conditionName: string;
|
|
@@ -264,9 +353,33 @@ declare interface ICondition_2 {
|
|
|
264
353
|
descriptionUse?: string;
|
|
265
354
|
i18n?: Partial<Record<string, string>>;
|
|
266
355
|
i18nValue?: string | string[] | number | IValue;
|
|
356
|
+
timeUnit?: string;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
declare interface ICondition_2<TData> {
|
|
360
|
+
(data: TData): boolean;
|
|
267
361
|
}
|
|
268
362
|
|
|
269
|
-
declare interface
|
|
363
|
+
declare interface IConditionNew {
|
|
364
|
+
groupKey?: string;
|
|
365
|
+
valueUse: "RANGE" | "LIST_OF_VALUES_MULTI" | "EQUAL" | "GREATER_THAN" | "LESS_THAN";
|
|
366
|
+
listOfPossibleValues?: {
|
|
367
|
+
list?: IOption[];
|
|
368
|
+
};
|
|
369
|
+
conditionDataType: string;
|
|
370
|
+
decisionDataType?: string;
|
|
371
|
+
howToSetTheCondition: string;
|
|
372
|
+
howToSetTheDecision: string;
|
|
373
|
+
conditionName: string;
|
|
374
|
+
ruleName: string;
|
|
375
|
+
labelName: string;
|
|
376
|
+
placeholder?: string;
|
|
377
|
+
placeholderFrom?: string;
|
|
378
|
+
placeholderTo?: string;
|
|
379
|
+
value?: string | string[] | number | IValue | undefined;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
export declare interface IDecision {
|
|
270
383
|
decisionDataType: (typeof ValueDataType)[keyof typeof ValueDataType];
|
|
271
384
|
validUntil?: Date;
|
|
272
385
|
labelName: string;
|
|
@@ -279,6 +392,19 @@ declare interface IDecision {
|
|
|
279
392
|
descriptionUse?: string;
|
|
280
393
|
}
|
|
281
394
|
|
|
395
|
+
export declare interface IDecisionViewConditionRenderer {
|
|
396
|
+
element: IRuleDecision;
|
|
397
|
+
type?: "decision" | "condition";
|
|
398
|
+
valueData: string | string[] | number | IValue_2 | undefined;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
export declare interface IDecisionViewConditionRendererNew {
|
|
402
|
+
element: IRuleDecisionNew;
|
|
403
|
+
type?: "decision" | "condition";
|
|
404
|
+
editionMode?: "classic" | "versioned";
|
|
405
|
+
valueData: string | string[] | number | IValue_3 | undefined;
|
|
406
|
+
}
|
|
407
|
+
|
|
282
408
|
export declare interface IDragAndDropBoxes {
|
|
283
409
|
group?: string;
|
|
284
410
|
left: IDragAndDropColumn;
|
|
@@ -338,6 +464,35 @@ export declare interface IDropdownMenuGroup {
|
|
|
338
464
|
path?: string;
|
|
339
465
|
}
|
|
340
466
|
|
|
467
|
+
declare interface IDynamicField extends IFieldStrategy {
|
|
468
|
+
type: string;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
declare interface IDynamicField_2 extends IFieldStrategyNew {
|
|
472
|
+
type: string;
|
|
473
|
+
listOfPossibleValues?: {
|
|
474
|
+
list?: IOption[];
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
export declare interface IDynamicViewField {
|
|
479
|
+
label: string;
|
|
480
|
+
labelType?: string;
|
|
481
|
+
type: ITextfieldInputType_5;
|
|
482
|
+
valueInput: number | string;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
export declare interface IDynamicViewFieldNew {
|
|
486
|
+
label: string;
|
|
487
|
+
labelType?: string;
|
|
488
|
+
type: ITextfieldInputType_7;
|
|
489
|
+
valueInput: number | string;
|
|
490
|
+
stillValid: boolean;
|
|
491
|
+
showModal: boolean;
|
|
492
|
+
handleOnClick: () => void;
|
|
493
|
+
validDate: string;
|
|
494
|
+
}
|
|
495
|
+
|
|
341
496
|
declare interface IEntriesGridNode<TData, TEntry> extends INodeBase<TData> {
|
|
342
497
|
entries: IPath<TData>;
|
|
343
498
|
keyOf: (entry: TEntry) => string;
|
|
@@ -347,6 +502,33 @@ declare interface IEntriesGridNode<TData, TEntry> extends INodeBase<TData> {
|
|
|
347
502
|
valueOf: (entry: TEntry) => string;
|
|
348
503
|
}
|
|
349
504
|
|
|
505
|
+
export declare interface IFieldStrategy {
|
|
506
|
+
label: string;
|
|
507
|
+
messageValidate?: string;
|
|
508
|
+
name: string;
|
|
509
|
+
onBlur?: () => void;
|
|
510
|
+
onChange: (value?: string | number | any) => void;
|
|
511
|
+
statusValidate?: string | IInputStatus;
|
|
512
|
+
value: string | number;
|
|
513
|
+
placeholder?: string;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
declare interface IFieldStrategyNew {
|
|
517
|
+
label: string;
|
|
518
|
+
messageValidate?: string;
|
|
519
|
+
name: string;
|
|
520
|
+
placeholder?: string;
|
|
521
|
+
required?: boolean;
|
|
522
|
+
onBlur?: () => void;
|
|
523
|
+
onChange: (name: string, value: string | number) => void;
|
|
524
|
+
statusValidate?: string | IInputStatus;
|
|
525
|
+
value: string | number;
|
|
526
|
+
condition?: boolean;
|
|
527
|
+
listOfPossibleValues?: {
|
|
528
|
+
list?: IOption[];
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
|
|
350
532
|
export declare interface IFilter {
|
|
351
533
|
appliedFilters?: IFilterTag[];
|
|
352
534
|
onClear: () => void;
|
|
@@ -356,6 +538,23 @@ export declare interface IFilter {
|
|
|
356
538
|
titleFilter: string;
|
|
357
539
|
}
|
|
358
540
|
|
|
541
|
+
export declare interface IFilterModal {
|
|
542
|
+
actionButtonLabel: string;
|
|
543
|
+
cancelButtonLabel?: string;
|
|
544
|
+
children: React.ReactNode;
|
|
545
|
+
loading?: boolean;
|
|
546
|
+
onClick: () => void;
|
|
547
|
+
onCloseModal: () => void;
|
|
548
|
+
portalId: string;
|
|
549
|
+
title: string;
|
|
550
|
+
withText?: boolean;
|
|
551
|
+
withDivider?: boolean;
|
|
552
|
+
withCancelButton?: boolean;
|
|
553
|
+
buttonAppearance?: IButtonAppearance;
|
|
554
|
+
withIconTitle?: boolean;
|
|
555
|
+
icon?: React.ReactNode;
|
|
556
|
+
}
|
|
557
|
+
|
|
359
558
|
export declare interface IFilterTag {
|
|
360
559
|
icon: JSX_2.Element;
|
|
361
560
|
label: string;
|
|
@@ -371,12 +570,64 @@ export declare interface IFormFilter {
|
|
|
371
570
|
noFiltersLabel?: string;
|
|
372
571
|
}
|
|
373
572
|
|
|
573
|
+
declare interface IFormikTypeNew {
|
|
574
|
+
setFieldValue: (field: string, value: any) => void;
|
|
575
|
+
setFieldTouched: (field: string, isTouched: boolean, shouldValidate?: boolean) => void;
|
|
576
|
+
values: Record<string, any>;
|
|
577
|
+
errors: Record<string, any>;
|
|
578
|
+
touched: Record<string, any>;
|
|
579
|
+
handleBlur: () => void;
|
|
580
|
+
submitCount: number;
|
|
581
|
+
}
|
|
582
|
+
|
|
374
583
|
declare interface IGroupNode<TData> extends INodeBase<TData> {
|
|
375
584
|
children: Array<TSchemaNode<TData, any>>;
|
|
376
585
|
type: "group";
|
|
377
586
|
}
|
|
378
587
|
|
|
379
|
-
declare interface
|
|
588
|
+
declare interface IInputRange {
|
|
589
|
+
handleInputChangeFrom: (valueFrom: number | Date) => void;
|
|
590
|
+
handleInputChangeTo: (valueTo: number | Date) => void;
|
|
591
|
+
id: string;
|
|
592
|
+
typeInput: ITextfieldInputType_2;
|
|
593
|
+
label: string;
|
|
594
|
+
required?: boolean;
|
|
595
|
+
valueFrom?: number | Date;
|
|
596
|
+
valueTo?: number | Date;
|
|
597
|
+
messageFrom?: string;
|
|
598
|
+
messageTo?: string;
|
|
599
|
+
statusFrom?: IInputStatus;
|
|
600
|
+
statusTo?: IInputStatus;
|
|
601
|
+
onBlur?: () => void;
|
|
602
|
+
placeholderFrom?: string;
|
|
603
|
+
placeholderTo?: string;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
declare interface IInputRangeNew {
|
|
607
|
+
condition?: boolean;
|
|
608
|
+
handleInputChangeFrom: (valueFrom: number | Date | string) => void;
|
|
609
|
+
handleInputChangeTo: (valueTo: number | Date | string) => void;
|
|
610
|
+
id: string;
|
|
611
|
+
typeInput: ITextfieldInputType_3;
|
|
612
|
+
label: string;
|
|
613
|
+
required?: boolean;
|
|
614
|
+
valueFrom?: number | Date | string;
|
|
615
|
+
valueTo?: number | Date | string;
|
|
616
|
+
messageFrom?: string;
|
|
617
|
+
messageTo?: string;
|
|
618
|
+
statusFrom?: IInputStatus;
|
|
619
|
+
statusTo?: IInputStatus;
|
|
620
|
+
onBlur?: () => void;
|
|
621
|
+
listOfPossibleValues?: {
|
|
622
|
+
list?: IOption[];
|
|
623
|
+
};
|
|
624
|
+
onBlurFrom?: () => void;
|
|
625
|
+
onBlurTo?: () => void;
|
|
626
|
+
placeholderFrom?: string;
|
|
627
|
+
placeholderTo?: string;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
export declare interface IInputStatus {
|
|
380
631
|
from?: string | number | Date;
|
|
381
632
|
to?: string | number | Date;
|
|
382
633
|
}
|
|
@@ -405,9 +656,54 @@ declare interface IModalRules {
|
|
|
405
656
|
description?: string;
|
|
406
657
|
}
|
|
407
658
|
|
|
659
|
+
declare interface IMultipleChoices {
|
|
660
|
+
id: string;
|
|
661
|
+
labelSelect: string;
|
|
662
|
+
labelSelected: string;
|
|
663
|
+
options: IOption[];
|
|
664
|
+
placeholderSelect?: string;
|
|
665
|
+
required?: boolean;
|
|
666
|
+
message?: string;
|
|
667
|
+
onBlur?: () => void;
|
|
668
|
+
values: string;
|
|
669
|
+
onChange: (name: string, value: string) => void;
|
|
670
|
+
size?: ICheckpickerSize;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
declare interface IMultipleChoicesNew {
|
|
674
|
+
condition?: boolean;
|
|
675
|
+
id: string;
|
|
676
|
+
labelSelect: string;
|
|
677
|
+
labelSelected: string;
|
|
678
|
+
options: IOption[];
|
|
679
|
+
placeholderSelect?: string;
|
|
680
|
+
required?: boolean;
|
|
681
|
+
message?: string;
|
|
682
|
+
onBlur?: () => void;
|
|
683
|
+
values: string;
|
|
684
|
+
onChange: (name: string, value: string) => void;
|
|
685
|
+
size?: ICheckpickerSize_2;
|
|
686
|
+
}
|
|
687
|
+
|
|
408
688
|
declare interface INodeBase<TData> {
|
|
409
689
|
id: string;
|
|
410
|
-
when?:
|
|
690
|
+
when?: ICondition_2<TData>;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
export declare const InputRange: (props: IInputRange) => JSX.Element;
|
|
694
|
+
|
|
695
|
+
export declare const InputRangeNew: (props: IInputRangeNew) => JSX.Element;
|
|
696
|
+
|
|
697
|
+
declare interface IOptionItemChecked {
|
|
698
|
+
id: string;
|
|
699
|
+
label: string;
|
|
700
|
+
checked?: boolean;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
declare interface IOptionItemChecked_2 {
|
|
704
|
+
id: string;
|
|
705
|
+
label: string;
|
|
706
|
+
checked?: boolean;
|
|
411
707
|
}
|
|
412
708
|
|
|
413
709
|
export declare type IPath<TData> = string | IPathFn<TData>;
|
|
@@ -434,12 +730,12 @@ declare interface IRevertSortedData {
|
|
|
434
730
|
originalDecision?: IRuleDecision;
|
|
435
731
|
}
|
|
436
732
|
|
|
437
|
-
declare interface IRuleDecision {
|
|
733
|
+
export declare interface IRuleDecision {
|
|
438
734
|
businessRuleId?: string;
|
|
439
735
|
conditionDataType?: (typeof ValueDataType)[keyof typeof ValueDataType];
|
|
440
736
|
conditionName?: string;
|
|
441
|
-
conditionGroups?:
|
|
442
|
-
conditionsThatEstablishesTheDecision?:
|
|
737
|
+
conditionGroups?: ICondition[];
|
|
738
|
+
conditionsThatEstablishesTheDecision?: ICondition[];
|
|
443
739
|
decision?: IDecision;
|
|
444
740
|
decisions?: IDecision[];
|
|
445
741
|
decisionDataType?: (typeof ValueDataType)[keyof typeof ValueDataType];
|
|
@@ -463,12 +759,12 @@ declare interface IRuleDecision {
|
|
|
463
759
|
i18nValue?: string | string[] | number | IValue;
|
|
464
760
|
}
|
|
465
761
|
|
|
466
|
-
declare interface IRuleDecisionNew {
|
|
762
|
+
export declare interface IRuleDecisionNew {
|
|
467
763
|
businessRuleId?: string;
|
|
468
764
|
conditionDataType?: EFieldTypeNew;
|
|
469
765
|
conditionName?: string;
|
|
470
|
-
conditionGroups?:
|
|
471
|
-
conditionsThatEstablishesTheDecision?:
|
|
766
|
+
conditionGroups?: ICondition[];
|
|
767
|
+
conditionsThatEstablishesTheDecision?: ICondition[];
|
|
472
768
|
decision?: IDecision;
|
|
473
769
|
decisions?: IDecision[];
|
|
474
770
|
decisionDataType?: EFieldTypeNew;
|
|
@@ -544,12 +840,33 @@ export declare interface IStepSchema<TData> {
|
|
|
544
840
|
}) => void;
|
|
545
841
|
}
|
|
546
842
|
|
|
843
|
+
export declare type IStrategy = keyof typeof strategies;
|
|
844
|
+
|
|
845
|
+
export declare interface ITextfieldInputType {
|
|
846
|
+
[key: string]: string | number | string[] | {
|
|
847
|
+
from?: number;
|
|
848
|
+
to?: number;
|
|
849
|
+
};
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
declare type ITextfieldInputType_2 = EFieldType;
|
|
853
|
+
|
|
854
|
+
declare type ITextfieldInputType_3 = EFieldTypeNew;
|
|
855
|
+
|
|
856
|
+
declare type ITextfieldInputType_4 = EFieldType | EFieldTypeNew;
|
|
857
|
+
|
|
858
|
+
declare type ITextfieldInputType_5 = EFieldType;
|
|
859
|
+
|
|
860
|
+
declare type ITextfieldInputType_6 = EFieldType;
|
|
861
|
+
|
|
862
|
+
declare type ITextfieldInputType_7 = EFieldTypeNew;
|
|
863
|
+
|
|
547
864
|
declare interface ITranslateOptions {
|
|
548
865
|
url: string;
|
|
549
866
|
apiKey: string;
|
|
550
867
|
}
|
|
551
868
|
|
|
552
|
-
declare interface IValue {
|
|
869
|
+
export declare interface IValue {
|
|
553
870
|
from?: number | string | Date;
|
|
554
871
|
labelFrom?: string;
|
|
555
872
|
labelTo?: string;
|
|
@@ -563,6 +880,34 @@ declare interface IValue {
|
|
|
563
880
|
value?: string | number | string[];
|
|
564
881
|
}
|
|
565
882
|
|
|
883
|
+
declare interface IValue_2 {
|
|
884
|
+
list?: string[];
|
|
885
|
+
listSelected?: string[];
|
|
886
|
+
labelFrom?: string;
|
|
887
|
+
labelTo?: string;
|
|
888
|
+
from?: number | string | Date;
|
|
889
|
+
to?: number | string | Date;
|
|
890
|
+
value?: string | number;
|
|
891
|
+
messageFrom?: string;
|
|
892
|
+
messageTo?: string;
|
|
893
|
+
statusFrom?: IInputStatus;
|
|
894
|
+
statusTo?: IInputStatus;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
declare interface IValue_3 {
|
|
898
|
+
list?: string[];
|
|
899
|
+
listSelected?: string[];
|
|
900
|
+
labelFrom?: string;
|
|
901
|
+
labelTo?: string;
|
|
902
|
+
from?: number | string | Date;
|
|
903
|
+
to?: number | string | Date;
|
|
904
|
+
value?: string | number;
|
|
905
|
+
messageFrom?: string;
|
|
906
|
+
messageTo?: string;
|
|
907
|
+
statusFrom?: IInputStatus;
|
|
908
|
+
statusTo?: IInputStatus;
|
|
909
|
+
}
|
|
910
|
+
|
|
566
911
|
declare interface IVerificationEngine<TData> {
|
|
567
912
|
data: TData;
|
|
568
913
|
isMobile: boolean;
|
|
@@ -575,23 +920,69 @@ export declare interface IVerificationSchema<TData> {
|
|
|
575
920
|
steps: IStepSchema<TData>[];
|
|
576
921
|
}
|
|
577
922
|
|
|
923
|
+
export declare interface IViewMultipleChoices {
|
|
924
|
+
id: string;
|
|
925
|
+
label: string;
|
|
926
|
+
options: IOptionItemChecked[];
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
export declare interface IViewMultipleChoicesNew {
|
|
930
|
+
id: string;
|
|
931
|
+
label: string;
|
|
932
|
+
options: IOptionItemChecked_2[];
|
|
933
|
+
stillValid: boolean;
|
|
934
|
+
showModal: boolean;
|
|
935
|
+
handleOnClick: () => void;
|
|
936
|
+
validDate: string;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
export declare interface IViewRangeField {
|
|
940
|
+
labelFrom?: string;
|
|
941
|
+
labelType?: string;
|
|
942
|
+
typeInput: ITextfieldInputType_6;
|
|
943
|
+
valueFrom?: string | number;
|
|
944
|
+
valueTo?: string | number;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
export declare interface IViewRangeFieldNew {
|
|
948
|
+
labelFrom?: string;
|
|
949
|
+
labelType?: string;
|
|
950
|
+
typeInput: EFieldTypeNew;
|
|
951
|
+
valueFrom?: string | number;
|
|
952
|
+
valueTo?: string | number;
|
|
953
|
+
stillValid: boolean;
|
|
954
|
+
showModal: boolean;
|
|
955
|
+
handleOnClick: () => void;
|
|
956
|
+
validDate: string;
|
|
957
|
+
}
|
|
958
|
+
|
|
578
959
|
export declare const mapByGroupNew: (raw: any, mapFn: (condition: any) => any) => Record<string, any[]>;
|
|
579
960
|
|
|
580
961
|
export declare const ModalRules: (props: IModalRules) => ReactPortal;
|
|
581
962
|
|
|
963
|
+
export declare const MultipleChoices: (props: IMultipleChoices) => JSX.Element;
|
|
964
|
+
|
|
965
|
+
export declare const MultipleChoicesNew: (props: IMultipleChoicesNew) => JSX.Element;
|
|
966
|
+
|
|
582
967
|
export declare const normalizeDecisionToNewShape: (decision: any) => any;
|
|
583
968
|
|
|
969
|
+
export declare const parseCurrencyString: (currencyString: string) => number;
|
|
970
|
+
|
|
971
|
+
export declare const parsePercentageString: (percentageString: string) => number;
|
|
972
|
+
|
|
584
973
|
export declare const parseRangeFromString: (value: string | number | string[] | IValue | undefined) => string | number | string[] | IValue | {
|
|
585
974
|
from?: number;
|
|
586
975
|
to?: number;
|
|
587
976
|
} | undefined;
|
|
588
977
|
|
|
978
|
+
export declare const percentageFormat: (percentage: number | string) => string;
|
|
979
|
+
|
|
589
980
|
export declare const revertSortedDataSampleSwitchPlaces: (props: IRevertSortedData) => {
|
|
590
|
-
conditionsThatEstablishesTheDecision:
|
|
981
|
+
conditionsThatEstablishesTheDecision: ICondition[];
|
|
591
982
|
businessRuleId?: string;
|
|
592
983
|
conditionDataType?: "number" | "alphabetical" | "currency" | "date" | "monetary" | "percentage";
|
|
593
984
|
conditionName?: string;
|
|
594
|
-
conditionGroups?:
|
|
985
|
+
conditionGroups?: ICondition[];
|
|
595
986
|
decision?: IDecision;
|
|
596
987
|
decisions?: IDecision[];
|
|
597
988
|
decisionDataType?: "number" | "alphabetical" | "currency" | "date" | "monetary" | "percentage";
|
|
@@ -621,12 +1012,18 @@ export declare const RulesForm: (props: IRulesForm) => JSX.Element;
|
|
|
621
1012
|
|
|
622
1013
|
export declare const SendButton: (props: IButton) => JSX.Element;
|
|
623
1014
|
|
|
1015
|
+
declare const sizes: readonly ["wide", "compact"];
|
|
1016
|
+
|
|
1017
|
+
declare const sizes_2: readonly ["wide", "compact"];
|
|
1018
|
+
|
|
1019
|
+
declare const sizes_3: readonly ["wide", "compact"];
|
|
1020
|
+
|
|
624
1021
|
export declare const sortDisplayDataSampleSwitchPlaces: (props: IRevertSortedData) => {
|
|
625
1022
|
businessRuleId?: string;
|
|
626
1023
|
conditionDataType?: "number" | "alphabetical" | "currency" | "date" | "monetary" | "percentage";
|
|
627
1024
|
conditionName?: string;
|
|
628
|
-
conditionGroups?:
|
|
629
|
-
conditionsThatEstablishesTheDecision?:
|
|
1025
|
+
conditionGroups?: ICondition[];
|
|
1026
|
+
conditionsThatEstablishesTheDecision?: ICondition[];
|
|
630
1027
|
decision?: IDecision;
|
|
631
1028
|
decisions?: IDecision[];
|
|
632
1029
|
decisionDataType?: "number" | "alphabetical" | "currency" | "date" | "monetary" | "percentage";
|
|
@@ -652,6 +1049,57 @@ export declare const sortDisplayDataSampleSwitchPlaces: (props: IRevertSortedDat
|
|
|
652
1049
|
|
|
653
1050
|
export declare const sortDisplayDataSwitchPlaces: (props: IRevertSortedData) => IRuleDecision[] | undefined;
|
|
654
1051
|
|
|
1052
|
+
declare const strategies: {
|
|
1053
|
+
LIST_OF_VALUES: ({ condition, formik, }: {
|
|
1054
|
+
condition: Condition;
|
|
1055
|
+
formik: FormikType;
|
|
1056
|
+
}) => JSX.Element;
|
|
1057
|
+
LIST_OF_VALUES_MULTI: ({ condition, formik, }: {
|
|
1058
|
+
condition: Condition;
|
|
1059
|
+
formik: FormikType;
|
|
1060
|
+
}) => JSX.Element;
|
|
1061
|
+
RANGE: ({ condition, formik, }: {
|
|
1062
|
+
condition: Condition;
|
|
1063
|
+
formik: FormikType;
|
|
1064
|
+
}) => JSX.Element;
|
|
1065
|
+
GREATER_THAN: ({ condition, formik, }: {
|
|
1066
|
+
condition: Condition;
|
|
1067
|
+
formik: FormikType;
|
|
1068
|
+
}) => JSX.Element;
|
|
1069
|
+
LESS_THAN: ({ condition, formik, }: {
|
|
1070
|
+
condition: Condition;
|
|
1071
|
+
formik: FormikType;
|
|
1072
|
+
}) => JSX.Element;
|
|
1073
|
+
EQUAL: ({ condition, formik, }: {
|
|
1074
|
+
condition: Condition;
|
|
1075
|
+
formik: FormikType;
|
|
1076
|
+
}) => JSX.Element;
|
|
1077
|
+
DECISION_RANGE: ({ condition, formik, }: {
|
|
1078
|
+
condition: Condition;
|
|
1079
|
+
formik: FormikType;
|
|
1080
|
+
}) => JSX.Element;
|
|
1081
|
+
DECISION_LIST_OF_VALUES: ({ condition, formik, }: {
|
|
1082
|
+
condition: Condition;
|
|
1083
|
+
formik: FormikType;
|
|
1084
|
+
}) => JSX.Element;
|
|
1085
|
+
DECISION_LIST_OF_VALUES_MULTI: ({ condition, formik, }: {
|
|
1086
|
+
condition: Condition;
|
|
1087
|
+
formik: FormikType;
|
|
1088
|
+
}) => JSX.Element;
|
|
1089
|
+
DECISION_EQUAL: ({ condition, formik, }: {
|
|
1090
|
+
condition: Condition;
|
|
1091
|
+
formik: FormikType;
|
|
1092
|
+
}) => JSX.Element;
|
|
1093
|
+
DECISION_GREATER_THAN: ({ condition, formik, }: {
|
|
1094
|
+
condition: Condition;
|
|
1095
|
+
formik: FormikType;
|
|
1096
|
+
}) => JSX.Element;
|
|
1097
|
+
DECISION_LESS_THAN: ({ condition, formik, }: {
|
|
1098
|
+
condition: Condition;
|
|
1099
|
+
formik: FormikType;
|
|
1100
|
+
}) => JSX.Element;
|
|
1101
|
+
};
|
|
1102
|
+
|
|
655
1103
|
export declare type TLinkItem = {
|
|
656
1104
|
id: string;
|
|
657
1105
|
label: string;
|
|
@@ -666,7 +1114,23 @@ export declare type TRegistry<TData> = Record<TSchemaNode<TData, any>["type"], I
|
|
|
666
1114
|
|
|
667
1115
|
export declare type TSchemaNode<TData, TEntry> = IAttributesGridNode<TData> | IEntriesGridNode<TData, TEntry> | IGroupNode<TData> | IJsonNode<TData>;
|
|
668
1116
|
|
|
669
|
-
declare
|
|
1117
|
+
export declare interface TypeDataOutput {
|
|
1118
|
+
schema: StringSchema | NumberSchema;
|
|
1119
|
+
value: string | number | {
|
|
1120
|
+
from: number;
|
|
1121
|
+
to: number;
|
|
1122
|
+
} | undefined;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
export declare const useValidUntilManagement: (validUntil: string) => {
|
|
1126
|
+
showModal: boolean;
|
|
1127
|
+
handleOnClick: () => void;
|
|
1128
|
+
stillValid: boolean;
|
|
1129
|
+
};
|
|
1130
|
+
|
|
1131
|
+
export declare const validationStrategies: Record<EFieldTypeNew, (value: string) => boolean>;
|
|
1132
|
+
|
|
1133
|
+
export declare const ValueDataType: {
|
|
670
1134
|
readonly ALPHABETICAL: "alphabetical";
|
|
671
1135
|
readonly CURRENCY: "currency";
|
|
672
1136
|
readonly MONETARY: "monetary";
|
|
@@ -675,7 +1139,7 @@ declare const ValueDataType: {
|
|
|
675
1139
|
readonly PERCENTAGE: "percentage";
|
|
676
1140
|
};
|
|
677
1141
|
|
|
678
|
-
declare const ValueHowToSetUp: {
|
|
1142
|
+
export declare const ValueHowToSetUp: {
|
|
679
1143
|
readonly EQUAL: "EqualTo";
|
|
680
1144
|
readonly GREATER_THAN: "GreaterThan";
|
|
681
1145
|
readonly LESS_THAN: "LessThan";
|
|
@@ -686,4 +1150,12 @@ declare const ValueHowToSetUp: {
|
|
|
686
1150
|
|
|
687
1151
|
export declare function Verification<TData>(props: IVerificationEngine<TData>): JSX.Element;
|
|
688
1152
|
|
|
1153
|
+
export declare const ViewMultipleChoices: (props: IViewMultipleChoices) => JSX.Element;
|
|
1154
|
+
|
|
1155
|
+
export declare const ViewMultipleChoicesNew: (props: IViewMultipleChoicesNew) => JSX.Element;
|
|
1156
|
+
|
|
1157
|
+
export declare const ViewRangeField: (props: IViewRangeField) => JSX.Element;
|
|
1158
|
+
|
|
1159
|
+
export declare const ViewRangeFieldNew: (props: IViewRangeFieldNew) => JSX.Element;
|
|
1160
|
+
|
|
689
1161
|
export { }
|