@zealicsolutions/web-ui 1.0.97-beta.5 → 1.0.97-beta.7

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.
Files changed (103) hide show
  1. package/dist/cjs/components/RichTextViewer/components/VariableFormatter.d.ts +1 -2
  2. package/dist/cjs/index.js +7 -7
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/esm/components/Buttons/IconButton.js +1 -1
  5. package/dist/esm/components/Buttons/IconButton.js.map +1 -1
  6. package/dist/esm/components/Circle/Circle.js +1 -1
  7. package/dist/esm/components/Circle/Circle.js.map +1 -1
  8. package/dist/esm/components/RichTextViewer/RichTextViewer.js +1 -1
  9. package/dist/esm/components/RichTextViewer/RichTextViewer.js.map +1 -1
  10. package/dist/esm/components/RichTextViewer/components/EditorElement.js +1 -1
  11. package/dist/esm/components/RichTextViewer/components/EditorElement.js.map +1 -1
  12. package/dist/esm/components/RichTextViewer/components/Variable.js +1 -1
  13. package/dist/esm/components/RichTextViewer/components/Variable.js.map +1 -1
  14. package/dist/esm/components/RichTextViewer/components/VariableFormatter.d.ts +1 -2
  15. package/dist/esm/components/RichTextViewer/components/VariableFormatter.js +1 -1
  16. package/dist/esm/components/RichTextViewer/components/VariableFormatter.js.map +1 -1
  17. package/dist/esm/components/Toast/ToastContent.js +1 -1
  18. package/dist/esm/components/Toast/ToastContent.js.map +1 -1
  19. package/dist/esm/containers/Container.js +1 -1
  20. package/dist/esm/containers/Container.js.map +1 -1
  21. package/dist/esm/containers/ContainerStoriesComponent.js +1 -1
  22. package/dist/esm/containers/ContainerStoriesComponent.js.map +1 -1
  23. package/dist/esm/containers/FormContainer.js +1 -1
  24. package/dist/esm/containers/FormContainer.js.map +1 -1
  25. package/dist/esm/containers/FormStepContainer.js +1 -1
  26. package/dist/esm/containers/FormStepContainer.js.map +1 -1
  27. package/dist/esm/containers/OrganismItem.js +1 -1
  28. package/dist/esm/containers/OrganismItem.js.map +1 -1
  29. package/dist/esm/containers/hooks/useStateListenerValue.js +1 -1
  30. package/dist/esm/containers/hooks/useStateListenerValue.js.map +1 -1
  31. package/dist/esm/containers/hooks/useStateModifierHandler.js +1 -1
  32. package/dist/esm/containers/hooks/useStateModifierHandler.js.map +1 -1
  33. package/dist/esm/contexts/ApiContext/queries/useDataModelFieldOptions.js +1 -1
  34. package/dist/esm/contexts/ApiContext/queries/useDataModelFieldOptions.js.map +1 -1
  35. package/dist/esm/contexts/ButtonActionsContext/ButtonActionsContextProvider.js +1 -1
  36. package/dist/esm/contexts/ButtonActionsContext/ButtonActionsContextProvider.js.map +1 -1
  37. package/dist/esm/contexts/FormStepContext/FormStepContextProvider.js +1 -1
  38. package/dist/esm/contexts/FormStepContext/FormStepContextProvider.js.map +1 -1
  39. package/dist/esm/helpers/utils.js +1 -1
  40. package/dist/esm/helpers/utils.js.map +1 -1
  41. package/dist/esm/molecules/Accordion/Accordion.js +1 -1
  42. package/dist/esm/molecules/Accordion/Accordion.js.map +1 -1
  43. package/dist/esm/molecules/Avatar/Avatar.js +1 -1
  44. package/dist/esm/molecules/Avatar/Avatar.js.map +1 -1
  45. package/dist/esm/molecules/BaseMolecule.js +1 -1
  46. package/dist/esm/molecules/BaseMolecule.js.map +1 -1
  47. package/dist/esm/molecules/BasicTextField/BasicTextField.js +1 -1
  48. package/dist/esm/molecules/BasicTextField/BasicTextField.js.map +1 -1
  49. package/dist/esm/molecules/BinaryRadioButtons/BinaryRadioButtons.js +1 -1
  50. package/dist/esm/molecules/BinaryRadioButtons/BinaryRadioButtons.js.map +1 -1
  51. package/dist/esm/molecules/Checkbox/Checkbox.js +1 -1
  52. package/dist/esm/molecules/Checkbox/Checkbox.js.map +1 -1
  53. package/dist/esm/molecules/Checklist/Checklist.js +1 -1
  54. package/dist/esm/molecules/Checklist/Checklist.js.map +1 -1
  55. package/dist/esm/molecules/CurrencyInputtField/CurrencyInputField.js +1 -1
  56. package/dist/esm/molecules/CurrencyInputtField/CurrencyInputField.js.map +1 -1
  57. package/dist/esm/molecules/CustomValidation/CustomValidation.js +1 -1
  58. package/dist/esm/molecules/CustomValidation/CustomValidation.js.map +1 -1
  59. package/dist/esm/molecules/DateCalendar/DateCalendar.js +1 -1
  60. package/dist/esm/molecules/DateCalendar/DateCalendar.js.map +1 -1
  61. package/dist/esm/molecules/DatePicker/DatePicker.js +1 -1
  62. package/dist/esm/molecules/DatePicker/DatePicker.js.map +1 -1
  63. package/dist/esm/molecules/Drawer/Drawer.js +1 -1
  64. package/dist/esm/molecules/Drawer/Drawer.js.map +1 -1
  65. package/dist/esm/molecules/EmailInputField/EmailInputField.js +1 -1
  66. package/dist/esm/molecules/EmailInputField/EmailInputField.js.map +1 -1
  67. package/dist/esm/molecules/Link/Link.js +1 -1
  68. package/dist/esm/molecules/Link/Link.js.map +1 -1
  69. package/dist/esm/molecules/Menu/Menu.js +1 -1
  70. package/dist/esm/molecules/Menu/Menu.js.map +1 -1
  71. package/dist/esm/molecules/NumericInputField/NumericInputField.js +1 -1
  72. package/dist/esm/molecules/NumericInputField/NumericInputField.js.map +1 -1
  73. package/dist/esm/molecules/PasswordSetup/PasswordSetup.js +1 -1
  74. package/dist/esm/molecules/PasswordSetup/PasswordSetup.js.map +1 -1
  75. package/dist/esm/molecules/PdfDocument/PdfDocument.js +1 -1
  76. package/dist/esm/molecules/PdfDocument/PdfDocument.js.map +1 -1
  77. package/dist/esm/molecules/PhoneNumberInputField/PhoneNumberInputField.js +1 -1
  78. package/dist/esm/molecules/PhoneNumberInputField/PhoneNumberInputField.js.map +1 -1
  79. package/dist/esm/molecules/Rating/Rating.js +1 -1
  80. package/dist/esm/molecules/Rating/Rating.js.map +1 -1
  81. package/dist/esm/molecules/RichText/TextMolecule.js +1 -1
  82. package/dist/esm/molecules/RichText/TextMolecule.js.map +1 -1
  83. package/dist/esm/molecules/Select/Select.js +1 -1
  84. package/dist/esm/molecules/Select/Select.js.map +1 -1
  85. package/dist/esm/molecules/Slider/Slider.js +1 -1
  86. package/dist/esm/molecules/Slider/Slider.js.map +1 -1
  87. package/dist/esm/molecules/SpeedDial/SpeedDial.js +1 -1
  88. package/dist/esm/molecules/SpeedDial/SpeedDial.js.map +1 -1
  89. package/dist/esm/molecules/Stepper/Stepper.js +1 -1
  90. package/dist/esm/molecules/Stepper/Stepper.js.map +1 -1
  91. package/dist/esm/molecules/Switch/Switch.js +1 -1
  92. package/dist/esm/molecules/Switch/Switch.js.map +1 -1
  93. package/dist/esm/molecules/Tabs/Tabs.js +1 -1
  94. package/dist/esm/molecules/Tabs/Tabs.js.map +1 -1
  95. package/dist/esm/molecules/TimePicker/TimePicker.js +1 -1
  96. package/dist/esm/molecules/TimePicker/TimePicker.js.map +1 -1
  97. package/dist/esm/molecules/ZealUIModal/ZealUIModal.js +1 -1
  98. package/dist/esm/molecules/ZealUIModal/ZealUIModal.js.map +1 -1
  99. package/package.json +1 -1
  100. package/dist/cjs/components/RichTextViewer/utils/debugVariableState.d.ts +0 -109
  101. package/dist/esm/components/RichTextViewer/utils/debugVariableState.d.ts +0 -109
  102. package/dist/esm/components/RichTextViewer/utils/debugVariableState.js +0 -2
  103. package/dist/esm/components/RichTextViewer/utils/debugVariableState.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ZealUIModal.js","sources":["../../../../../src/molecules/ZealUIModal/ZealUIModal.tsx"],"sourcesContent":[null],"names":["ZealUIModal","_a","children","wrapperStyles","_b","padding","onKeyDown","modalStyles","_c","withCloseIcon","rest","__rest","_jsx","MUIModal","__assign","style","_jsxs","ModalWrapper","IconWrapper","onClick","onClose","Icon","size","name","color","defaultTheme","colors","gray1","styled","div","templateObject_2","__makeTemplateObject","theme","sizes","$styles","css","templateObject_1","XL","L","M","background","TouchableOpacity","templateObject_4","templateObject_3","getSizeStyle"],"mappings":"i95GAqBO,YAAMA,EAAc,SAACC,GAC1B,IAAAC,EAAQD,EAAAC,SACRC,EAAaF,EAAAE,cACbC,EAAwBH,EAAAI,QAAxBA,OAAO,IAAAD,EAAG,eAAcA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x"],"sourcesContent":[null],"names":["ZealUIModal","_a","children","wrapperStyles","_b","padding","onKeyDown","modalStyles","_c","withCloseIcon","rest","__rest","_jsx","MUIModal","__assign","style","_jsxs","ModalWrapper","IconWrapper","onClick","onClose","Icon","size","name","color","defaultTheme","colors","gray1","styled","div","templateObject_2","__makeTemplateObject","theme","sizes","$styles","css","templateObject_1","XL","L","M","background","TouchableOpacity","templateObject_4","templateObject_3","getSizeStyle"],"mappings":"645GAqBO,YAAMA,EAAc,SAACC,GAC1B,IAAAC,EAAQD,EAAAC,SACRC,EAAaF,EAAAE,cACbC,EAAwBH,EAAAI,QAAxBA,OAAO,IAAAD,EAAG,eAAcA,EACxBE,EAASL,EAAAK,UACTC,EAAWN,EAAAM,YACXC,EAAAP,EAAAQ,cAAAA,OAAgB,IAAAD,GAAKA,EAClBE,EAAIC,EAAAV,EAPmB,kFAQJ,OACtBW,EAACC,EAAQC,EAAA,CAAA,EAAKJ,EAAI,CAAEK,MAAOR,EAAaD,UAAWA,GACjD,CAAAJ,SAAAc,EAACC,EAAYH,EAAA,CAACC,MAAKD,EAAA,CAAIT,QAAOA,GAAKF,IAAa,CAAAD,SAAA,CAC7CA,EACAO,GACCG,EAACM,EAAYJ,EAAA,CAAAK,QAAST,aAAA,EAAAA,EAAMU,SAC1B,CAAAlB,SAAAU,EAACS,EAAI,CAACC,KAAM,GAAIC,KAAK,QAAQC,MAAOC,EAAaC,OAAOC,mBAOrDV,EAAeW,EAAOC,IAAGC,IAAAA,EAAAC,EAAA,CAAA,4JAAA,MAAA,CAAgB,4JAcnD,QANC,SAAC9B,OAAEG,EAAwBH,EAAA+B,MAAfN,EAAMtB,EAAAsB,OAAEO,EAAK7B,EAAA6B,MAAIC,EAAOjC,EAAAiC,QAAO,OAAAC,EAAGC,IAAAA,EAAAL,EAAA,CAAA,cAAA,wBAAA,2BAAA,8BAAA,UAAA,QAAA,CAAA,cAC/B,wBACM,2BACG,8BACa,UAC5B,UAJFE,EAAMI,GACCJ,EAAMK,EACHL,EAAMM,EACHb,EAAOc,WACzBN,EALyC,GASlChB,EAAcU,EAAOa,EAAPb,CAAwBc,IAAAA,EAAAX,EAAA,CAAA,OAAA,OAAA,CAAA,OAUhD,SATC,SAAC9B,GAAW,IAAAgC,EAAKhC,EAAA+B,MAAAC,MAAS,OAAAE,EAAGQ,IAAAA,EAAAZ,EAAA,CAAA,6BAAA,gGAAA,mBAAA,iCAAA,CAAA,6BAEN,gGAIJ,mBACE,mCALnBa,EAAaX,EAAMK,GAIdL,EAAM,OACJA,EAAM,OAPW"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "1.0.97-beta.5",
3
+ "version": "1.0.97-beta.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"
@@ -1,109 +0,0 @@
1
- import { StateConfigType } from 'containers/types/types';
2
- import { VariablePayload } from '../types';
3
- /**
4
- * Variable State Debugging Utilities
5
- *
6
- * These utilities help troubleshoot issues with variable values not appearing from the state object.
7
- *
8
- * ## Usage Methods:
9
- *
10
- * ### 1. Automatic Debug Mode (Integrated)
11
- * The VariableFormatter component automatically enables debugging in development mode when:
12
- * - NODE_ENV === 'development' AND
13
- * - REACT_APP_DEBUG_VARIABLES=true in .env OR
14
- * - window.__ZEAL_DEBUG_VARIABLES__ = true in browser console
15
- *
16
- * ### 2. Manual Debug (Standalone)
17
- * ```typescript
18
- * import { debugVariableStateDetailed } from '../utils/debugVariableState';
19
- *
20
- * // In your component or wherever you have access to variable and stateObject:
21
- * debugVariableStateDetailed(variablePayload, stateObject);
22
- * ```
23
- *
24
- * ### 3. Browser Console Debug
25
- * ```javascript
26
- * // Enable debug mode globally
27
- * window.__ZEAL_DEBUG_VARIABLES__ = true;
28
- *
29
- * // Then reload or trigger variable rendering
30
- * ```
31
- *
32
- * ### 4. Environment Variable
33
- * Add to your .env.development file:
34
- * ```
35
- * REACT_APP_DEBUG_VARIABLES=true
36
- * ```
37
- *
38
- * ## Debug Output Includes:
39
- * - Variable configuration (dataModelFieldId, format, etc.)
40
- * - State object structure and available keys
41
- * - Direct lookup results
42
- * - Potential key matches (fuzzy search)
43
- * - Actionable recommendations
44
- */
45
- /**
46
- * Debugging utility to help troubleshoot variable state issues
47
- * @param variable The variable payload from the Rich Text Editor
48
- * @param stateObject The current state object (localStateObject or stateConfig)
49
- * @param logToConsole Whether to log debug information to console (default: true)
50
- * @returns Debug information object
51
- */
52
- export declare const debugVariableState: (variable: VariablePayload, stateObject: StateConfigType, logToConsole?: boolean) => {
53
- variable: {
54
- id: string;
55
- text: string;
56
- dataModelFieldId: string | undefined;
57
- pmiObjectName: string | undefined;
58
- dataFieldName: string | undefined;
59
- dataType: string | undefined;
60
- format: import("../types").DataDisplayFormatType | undefined;
61
- defaultValue: string | number | boolean | null | undefined;
62
- };
63
- stateObject: {
64
- exists: boolean;
65
- keys: string[];
66
- totalKeys: number;
67
- };
68
- lookup: {
69
- keyExists: boolean;
70
- rawValue: string | boolean | import("containers/types/types").FormDataStateConfig | import("containers/types/types").ActionEventType | import("containers/types/types").BaseStateValue | null | undefined;
71
- valueType: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
72
- };
73
- recommendations: string[];
74
- };
75
- /**
76
- * Enhanced version of debugVariableState that also shows potential matches
77
- * @param variable The variable payload
78
- * @param stateObject The current state object
79
- * @param logToConsole Whether to log to console
80
- * @returns Debug info with potential matches
81
- */
82
- export declare const debugVariableStateDetailed: (variable: VariablePayload, stateObject: StateConfigType, logToConsole?: boolean) => {
83
- potentialMatches: {
84
- key: string;
85
- value: unknown;
86
- reason: string;
87
- }[];
88
- variable: {
89
- id: string;
90
- text: string;
91
- dataModelFieldId: string | undefined;
92
- pmiObjectName: string | undefined;
93
- dataFieldName: string | undefined;
94
- dataType: string | undefined;
95
- format: import("../types").DataDisplayFormatType | undefined;
96
- defaultValue: string | number | boolean | null | undefined;
97
- };
98
- stateObject: {
99
- exists: boolean;
100
- keys: string[];
101
- totalKeys: number;
102
- };
103
- lookup: {
104
- keyExists: boolean;
105
- rawValue: string | boolean | import("containers/types/types").FormDataStateConfig | import("containers/types/types").ActionEventType | import("containers/types/types").BaseStateValue | null | undefined;
106
- valueType: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
107
- };
108
- recommendations: string[];
109
- };
@@ -1,109 +0,0 @@
1
- import { StateConfigType } from 'containers/types/types';
2
- import { VariablePayload } from '../types';
3
- /**
4
- * Variable State Debugging Utilities
5
- *
6
- * These utilities help troubleshoot issues with variable values not appearing from the state object.
7
- *
8
- * ## Usage Methods:
9
- *
10
- * ### 1. Automatic Debug Mode (Integrated)
11
- * The VariableFormatter component automatically enables debugging in development mode when:
12
- * - NODE_ENV === 'development' AND
13
- * - REACT_APP_DEBUG_VARIABLES=true in .env OR
14
- * - window.__ZEAL_DEBUG_VARIABLES__ = true in browser console
15
- *
16
- * ### 2. Manual Debug (Standalone)
17
- * ```typescript
18
- * import { debugVariableStateDetailed } from '../utils/debugVariableState';
19
- *
20
- * // In your component or wherever you have access to variable and stateObject:
21
- * debugVariableStateDetailed(variablePayload, stateObject);
22
- * ```
23
- *
24
- * ### 3. Browser Console Debug
25
- * ```javascript
26
- * // Enable debug mode globally
27
- * window.__ZEAL_DEBUG_VARIABLES__ = true;
28
- *
29
- * // Then reload or trigger variable rendering
30
- * ```
31
- *
32
- * ### 4. Environment Variable
33
- * Add to your .env.development file:
34
- * ```
35
- * REACT_APP_DEBUG_VARIABLES=true
36
- * ```
37
- *
38
- * ## Debug Output Includes:
39
- * - Variable configuration (dataModelFieldId, format, etc.)
40
- * - State object structure and available keys
41
- * - Direct lookup results
42
- * - Potential key matches (fuzzy search)
43
- * - Actionable recommendations
44
- */
45
- /**
46
- * Debugging utility to help troubleshoot variable state issues
47
- * @param variable The variable payload from the Rich Text Editor
48
- * @param stateObject The current state object (localStateObject or stateConfig)
49
- * @param logToConsole Whether to log debug information to console (default: true)
50
- * @returns Debug information object
51
- */
52
- export declare const debugVariableState: (variable: VariablePayload, stateObject: StateConfigType, logToConsole?: boolean) => {
53
- variable: {
54
- id: string;
55
- text: string;
56
- dataModelFieldId: string | undefined;
57
- pmiObjectName: string | undefined;
58
- dataFieldName: string | undefined;
59
- dataType: string | undefined;
60
- format: import("../types").DataDisplayFormatType | undefined;
61
- defaultValue: string | number | boolean | null | undefined;
62
- };
63
- stateObject: {
64
- exists: boolean;
65
- keys: string[];
66
- totalKeys: number;
67
- };
68
- lookup: {
69
- keyExists: boolean;
70
- rawValue: string | boolean | import("containers/types/types").FormDataStateConfig | import("containers/types/types").ActionEventType | import("containers/types/types").BaseStateValue | null | undefined;
71
- valueType: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
72
- };
73
- recommendations: string[];
74
- };
75
- /**
76
- * Enhanced version of debugVariableState that also shows potential matches
77
- * @param variable The variable payload
78
- * @param stateObject The current state object
79
- * @param logToConsole Whether to log to console
80
- * @returns Debug info with potential matches
81
- */
82
- export declare const debugVariableStateDetailed: (variable: VariablePayload, stateObject: StateConfigType, logToConsole?: boolean) => {
83
- potentialMatches: {
84
- key: string;
85
- value: unknown;
86
- reason: string;
87
- }[];
88
- variable: {
89
- id: string;
90
- text: string;
91
- dataModelFieldId: string | undefined;
92
- pmiObjectName: string | undefined;
93
- dataFieldName: string | undefined;
94
- dataType: string | undefined;
95
- format: import("../types").DataDisplayFormatType | undefined;
96
- defaultValue: string | number | boolean | null | undefined;
97
- };
98
- stateObject: {
99
- exists: boolean;
100
- keys: string[];
101
- totalKeys: number;
102
- };
103
- lookup: {
104
- keyExists: boolean;
105
- rawValue: string | boolean | import("containers/types/types").FormDataStateConfig | import("containers/types/types").ActionEventType | import("containers/types/types").BaseStateValue | null | undefined;
106
- valueType: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
107
- };
108
- recommendations: string[];
109
- };
@@ -1,2 +0,0 @@
1
- import{__assign as e}from"../../../node_modules/tslib/tslib.es6.js";var o=function(e,o,t){void 0===t&&(t=!0);var a=(null==e?void 0:e.dataModelField)||{},n=a.dataModelFieldId,l=a.pmiObjectName,c=a.dataFieldName,i=a.dataType,s=a.format,d=a.defaultValue,u={variable:{id:e.id,text:e.text,dataModelFieldId:n,pmiObjectName:l,dataFieldName:c,dataType:i,format:s,defaultValue:d},stateObject:{exists:!!o,keys:o?Object.keys(o):[],totalKeys:o?Object.keys(o).length:0},lookup:{keyExists:!(!o||!n)&&n in o,rawValue:o&&n?o[n]:void 0,valueType:o&&n?typeof o[n]:"undefined"},recommendations:[]};if(o||u.recommendations.push("❌ No state object provided - check OrganismContext and StateContext"),n||u.recommendations.push("❌ No dataModelFieldId - check variable configuration"),o&&n&&!u.lookup.keyExists&&u.recommendations.push('❌ Key "'.concat(n,'" not found in state object. Available keys: ').concat(u.stateObject.keys.join(", "))),void 0!==u.lookup.rawValue){var r=u.lookup.rawValue;if("object"==typeof r&&null!==r){var v="value"in r;u.recommendations.push(v?"✅ Found object with value property: ".concat(JSON.stringify(r)):"⚠️ Found object without value property: ".concat(JSON.stringify(r)))}else u.recommendations.push("✅ Found direct value: ".concat(r," (").concat(typeof r,")"))}return t&&(console.group("🔍 Variable Debug: [".concat(l," - ").concat(c,"]")),console.log("📋 Variable Info:",u.variable),console.log("📦 State Object Info:",u.stateObject),console.log("🔍 Lookup Results:",u.lookup),console.log("💡 Recommendations:"),u.recommendations.forEach(function(e){return console.log(" ".concat(e))}),console.groupEnd()),u},t=function(t,a,n){var l,c,i;void 0===n&&(n=!0);var s=o(t,a,!1),d=null===(l=null==t?void 0:t.dataModelField)||void 0===l?void 0:l.dataModelFieldId,u=[];a&&d&&Object.entries(a).forEach(function(e){var o=e[0],a=e[1];if(o!==d&&(o.toLowerCase().includes(d.toLowerCase())&&u.push({key:o,value:a,reason:'Key contains "'.concat(d,'" (case-insensitive)')}),d.toLowerCase().includes(o.toLowerCase())&&u.push({key:o,value:a,reason:'"'.concat(d,'" contains key "').concat(o,'" (case-insensitive)')}),"object"==typeof a&&null!==a&&"value"in a&&"string"==typeof a.value)){var n=String(a.value);(n.toLowerCase().includes(t.text.toLowerCase())||t.text.toLowerCase().includes(n.toLowerCase()))&&u.push({key:o,value:a,reason:"Value content might be related to variable text"})}});var r=e(e({},s),{potentialMatches:u});return n&&(console.group("🔍 Detailed Variable Debug: [".concat(null===(c=null==t?void 0:t.dataModelField)||void 0===c?void 0:c.pmiObjectName," - ").concat(null===(i=null==t?void 0:t.dataModelField)||void 0===i?void 0:i.dataFieldName,"]")),console.log("📋 Variable Info:",s.variable),console.log("📦 State Object Info:",s.stateObject),console.log("🔍 Lookup Results:",s.lookup),u.length>0?(console.log("🎯 Potential Matches:"),u.forEach(function(e,o){console.log(" ".concat(o+1,". ").concat(e.key,":"),e.value),console.log(" Reason: ".concat(e.reason))})):console.log("🎯 No potential matches found"),console.log("💡 Recommendations:"),s.recommendations.forEach(function(e){return console.log(" ".concat(e))}),console.groupEnd()),r};"undefined"!=typeof window&&(window.__zealDebugVariable__=t,window.__zealDebugVariableSimple__=o);export{o as debugVariableState,t as debugVariableStateDetailed};
2
- //# sourceMappingURL=debugVariableState.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debugVariableState.js","sources":["../../../../../../src/components/RichTextViewer/utils/debugVariableState.ts"],"sourcesContent":[null],"names":["debugVariableState","variable","stateObject","logToConsole","_a","dataModelField","dataModelFieldId","pmiObjectName","dataFieldName","dataType","format","defaultValue","debugInfo","id","text","exists","keys","Object","totalKeys","length","lookup","keyExists","rawValue","undefined","valueType","recommendations","push","concat","join","hasValueProperty","JSON","stringify","console","group","log","forEach","rec","groupEnd","debugVariableStateDetailed","basicDebug","potentialMatches","entries","key","value","toLowerCase","includes","reason","stringValue","String","detailedDebug","__assign","_b","_c","match","index","window","__zealDebugVariable__","__zealDebugVariableSimple__"],"mappings":"wEAqDaA,EAAqB,SAC9BC,EACAC,EACAC,QAAA,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