@zealicsolutions/web-ui 1.0.95 → 1.0.97-beta.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.
- package/dist/cjs/components/RichTextViewer/components/VariableFormatter.d.ts +1 -1
- package/dist/cjs/components/RichTextViewer/utils/debugVariableState.d.ts +67 -0
- package/dist/cjs/containers/types/moleculeTypes.d.ts +6 -24
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/molecules/Consent/Consent.stories.d.ts +3 -3
- package/dist/cjs/molecules/DateCalendar/DateCalendar.d.ts +1 -1
- package/dist/esm/components/RichTextViewer/components/VariableFormatter.d.ts +1 -1
- package/dist/esm/components/RichTextViewer/components/VariableFormatter.js +1 -1
- package/dist/esm/components/RichTextViewer/components/VariableFormatter.js.map +1 -1
- package/dist/esm/components/RichTextViewer/utils/debugVariableState.d.ts +67 -0
- package/dist/esm/containers/types/moleculeTypes.d.ts +6 -24
- package/dist/esm/molecules/BaseMolecule.js +1 -1
- package/dist/esm/molecules/BaseMolecule.js.map +1 -1
- package/dist/esm/molecules/Consent/Consent.stories.d.ts +3 -3
- package/dist/esm/molecules/DateCalendar/DateCalendar.d.ts +1 -1
- package/dist/esm/molecules/DateCalendar/DateCalendar.js +1 -1
- package/dist/esm/molecules/DateCalendar/DateCalendar.js.map +1 -1
- package/dist/index.d.ts +7 -25
- package/package.json +4 -4
@@ -0,0 +1,67 @@
|
|
1
|
+
import { StateConfigType } from 'containers/types/types';
|
2
|
+
import { VariablePayload } from '../types';
|
3
|
+
/**
|
4
|
+
* Debugging utility to help troubleshoot variable state issues
|
5
|
+
* @param variable The variable payload from the Rich Text Editor
|
6
|
+
* @param stateObject The current state object (localStateObject or stateConfig)
|
7
|
+
* @param logToConsole Whether to log debug information to console (default: true)
|
8
|
+
* @returns Debug information object
|
9
|
+
*/
|
10
|
+
export declare const debugVariableState: (variable: VariablePayload, stateObject: StateConfigType, logToConsole?: boolean) => {
|
11
|
+
variable: {
|
12
|
+
id: string;
|
13
|
+
text: string;
|
14
|
+
dataModelFieldId: string | undefined;
|
15
|
+
pmiObjectName: string | undefined;
|
16
|
+
dataFieldName: string | undefined;
|
17
|
+
dataType: string | undefined;
|
18
|
+
format: import("../types").DataDisplayFormatType | undefined;
|
19
|
+
defaultValue: string | number | boolean | null | undefined;
|
20
|
+
};
|
21
|
+
stateObject: {
|
22
|
+
exists: boolean;
|
23
|
+
keys: string[];
|
24
|
+
totalKeys: number;
|
25
|
+
};
|
26
|
+
lookup: {
|
27
|
+
keyExists: boolean;
|
28
|
+
rawValue: string | boolean | import("containers/types/types").FormDataStateConfig | import("containers/types/types").ActionEventType | import("containers/types/types").BaseStateValue | null | undefined;
|
29
|
+
valueType: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
|
30
|
+
};
|
31
|
+
recommendations: string[];
|
32
|
+
};
|
33
|
+
/**
|
34
|
+
* Enhanced version of debugVariableState that also shows potential matches
|
35
|
+
* @param variable The variable payload
|
36
|
+
* @param stateObject The current state object
|
37
|
+
* @param logToConsole Whether to log to console
|
38
|
+
* @returns Debug info with potential matches
|
39
|
+
*/
|
40
|
+
export declare const debugVariableStateDetailed: (variable: VariablePayload, stateObject: StateConfigType, logToConsole?: boolean) => {
|
41
|
+
potentialMatches: {
|
42
|
+
key: string;
|
43
|
+
value: unknown;
|
44
|
+
reason: string;
|
45
|
+
}[];
|
46
|
+
variable: {
|
47
|
+
id: string;
|
48
|
+
text: string;
|
49
|
+
dataModelFieldId: string | undefined;
|
50
|
+
pmiObjectName: string | undefined;
|
51
|
+
dataFieldName: string | undefined;
|
52
|
+
dataType: string | undefined;
|
53
|
+
format: import("../types").DataDisplayFormatType | undefined;
|
54
|
+
defaultValue: string | number | boolean | null | undefined;
|
55
|
+
};
|
56
|
+
stateObject: {
|
57
|
+
exists: boolean;
|
58
|
+
keys: string[];
|
59
|
+
totalKeys: number;
|
60
|
+
};
|
61
|
+
lookup: {
|
62
|
+
keyExists: boolean;
|
63
|
+
rawValue: string | boolean | import("containers/types/types").FormDataStateConfig | import("containers/types/types").ActionEventType | import("containers/types/types").BaseStateValue | null | undefined;
|
64
|
+
valueType: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
|
65
|
+
};
|
66
|
+
recommendations: string[];
|
67
|
+
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AlertMoleculeProps, BadgeMoleculeProps, BasicTextFieldProps, BinaryRadioButtonsProps, ButtonProps, CheckboxProps, ChecklistItem, ChecklistProps, ChipMoleculeProps, DatePickerMoleculeProps, DividerProps, ImageProps, LinkProps, RatingMoleculeProps, SelectMoleculeProps, SliderMoleculeProps, StepperProps, TextProps, VideoProps } from 'molecules';
|
1
|
+
import { AlertMoleculeProps, BadgeMoleculeProps, BasicTextFieldProps, BinaryRadioButtonsProps, ButtonProps, CheckboxProps, ChecklistItem, ChecklistProps, ChipMoleculeProps, DateCalendarProps, DatePickerMoleculeProps, DividerProps, ImageProps, LinkProps, RatingMoleculeProps, SelectMoleculeProps, SliderMoleculeProps, StepperProps, TextProps, VideoProps } from 'molecules';
|
2
2
|
/**
|
3
3
|
* [ NEW MOLECULE: 2 ] Import new molecule props from the molecule index
|
4
4
|
*
|
@@ -404,7 +404,7 @@ export interface DatePickerMoleculeType extends BaseMoleculeType {
|
|
404
404
|
export interface TimePickerMoleculeType extends BaseMoleculeType {
|
405
405
|
type: 'time_picker' | 'time_picker_display';
|
406
406
|
config: {
|
407
|
-
props?:
|
407
|
+
props?: Record<string, unknown>;
|
408
408
|
};
|
409
409
|
properties: {
|
410
410
|
text: TextProperties;
|
@@ -515,27 +515,9 @@ export interface CalendarMoleculeType extends BaseMoleculeType {
|
|
515
515
|
export interface DateCalendarMoleculeType extends BaseMoleculeType {
|
516
516
|
type: 'date_calendar' | 'date_calendar_display';
|
517
517
|
config: {
|
518
|
-
props:
|
519
|
-
sx?: {
|
520
|
-
container?: Record<string, any>;
|
521
|
-
calendar?: Record<string, any>;
|
522
|
-
header?: Record<string, any>;
|
523
|
-
dayButton?: Record<string, any>;
|
524
|
-
selectedDay?: Record<string, any>;
|
525
|
-
disabledDay?: Record<string, any>;
|
526
|
-
[key: string]: Record<string, any> | undefined;
|
527
|
-
};
|
528
|
-
disabled?: boolean;
|
529
|
-
minDate?: Date;
|
530
|
-
maxDate?: Date;
|
531
|
-
disablePast?: boolean;
|
532
|
-
disableFuture?: boolean;
|
533
|
-
shouldDisableDate?: (date: Date) => boolean;
|
534
|
-
};
|
518
|
+
props: DateCalendarProps;
|
535
519
|
};
|
536
520
|
properties: {
|
537
|
-
text?: TextProperties;
|
538
|
-
selectedDate?: DateProperties;
|
539
521
|
required?: BooleanProperties;
|
540
522
|
requiredErrorText?: TextProperties;
|
541
523
|
validationErrorText?: TextProperties;
|
@@ -589,10 +571,10 @@ export interface BinaryRadioButtonsMoleculeType extends BaseMoleculeType {
|
|
589
571
|
};
|
590
572
|
}
|
591
573
|
export type Molecule = StrictUnion<SimpleTextMoleculeType | TextMoleculeType | ConsentFieldMoleculeType | PasswordSetupMoleculeType | StepperMoleculeType | ChecklistsMoleculeType | AccordionMoleculeType | MenuMoleculeType | DrawerMoleculeType | TabsMoleculeType | DividerMoleculeType | LinkMoleculeType | VideoMoleculeType | ImageMoleculeType | ButtonMoleculeType | ChipMoleculeType | BadgeMoleculeType | AlertMoleculeType | BasicTextFieldMoleculeType | RatingMoleculeType | SwitchMoleculeType | SliderMoleculeType | SelectMoleculeType | DatePickerMoleculeType | TimePickerMoleculeType | EmailInputFieldMoleculeType | PhoneNumberInputFieldMoleculeType | NumericInputFieldMoleculeType | CurrencyInputFieldMoleculeType | AvatarMoleculeType | VisitMoleculeType | CalendarMoleculeType | DateCalendarMoleculeType | SpeedDialMoleculeType | CheckboxMoleculeType | BinaryRadioButtonsMoleculeType> & Partial<{
|
592
|
-
form: UseFormReturn<
|
574
|
+
form: UseFormReturn<Record<string, unknown>>;
|
593
575
|
formData: AnyObject;
|
594
576
|
setFormData: Dispatch<SetStateAction<AnyObject>>;
|
595
577
|
}>;
|
596
|
-
export type ConsentType =
|
597
|
-
export type VisitMoleculeProps =
|
578
|
+
export type ConsentType = Record<string, unknown>;
|
579
|
+
export type VisitMoleculeProps = Record<string, unknown>;
|
598
580
|
export {};
|