@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.
@@ -6,7 +6,7 @@ interface VariableFormatterProps {
6
6
  stateObject: StateConfigType;
7
7
  variable: VariablePayload;
8
8
  leaf: {
9
- text: string;
9
+ text: string | number;
10
10
  };
11
11
  }
12
12
  export declare const VariableFormatter: React.FC<VariableFormatterProps>;
@@ -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?: any;
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<any>;
574
+ form: UseFormReturn<Record<string, unknown>>;
593
575
  formData: AnyObject;
594
576
  setFormData: Dispatch<SetStateAction<AnyObject>>;
595
577
  }>;
596
- export type ConsentType = any;
597
- export type VisitMoleculeProps = any;
578
+ export type ConsentType = Record<string, unknown>;
579
+ export type VisitMoleculeProps = Record<string, unknown>;
598
580
  export {};