@pega/dx-component-builder-sdk 0.242.2 → 0.242.4

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 (257) hide show
  1. package/package.json +1 -1
  2. package/src/tasks/create/templates/Constellation/field/Decimal/index.tsx.mustache +3 -6
  3. package/src/tasks/create/templates/Constellation/field/Decimal-Currency/index.tsx.mustache +1 -3
  4. package/src/tasks/create/templates/Constellation/field/Decimal-Percentage/index.tsx.mustache +2 -5
  5. package/src/tasks/create/templates/Constellation/field/Picklist-Autocomplete/index.tsx.mustache +10 -52
  6. package/src/tasks/create/templates/Constellation/field/Picklist-Autocomplete/utils.ts.mustache +1 -1
  7. package/src/tasks/create/templates/Constellation/template/DETAILS/Avatar.tsx.mustache +5 -7
  8. package/src/tasks/create/templates/Constellation/template/DETAILS-region/Avatar.tsx.mustache +5 -7
  9. package/src/tasks/create/templates/Constellation/widget/PAGE-CASE/Avatar.tsx.mustache +5 -7
  10. package/src/tasks/create/templates/SDK-React/field/Boolean/index.tsx.mustache +2 -2
  11. package/src/tasks/create/templates/SDK-React/field/Date/index.tsx.mustache +1 -1
  12. package/src/tasks/create/templates/SDK-React/field/DateTime/index.tsx.mustache +9 -2
  13. package/src/tasks/create/templates/SDK-React/field/Decimal/index.tsx.mustache +2 -2
  14. package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/index.tsx.mustache +2 -2
  15. package/src/tasks/create/templates/SDK-React/field/Decimal-Percentage/index.tsx.mustache +2 -2
  16. package/src/tasks/create/templates/SDK-React/field/Icon-Button-URL/index.tsx.mustache +2 -2
  17. package/src/tasks/create/templates/SDK-React/field/Integer/index.tsx.mustache +21 -7
  18. package/src/tasks/create/templates/SDK-React/field/Picklist/index.tsx.mustache +3 -3
  19. package/src/tasks/create/templates/SDK-React/field/Picklist-Autocomplete/index.tsx.mustache +1 -1
  20. package/src/tasks/create/templates/SDK-React/field/Picklist-RadioButtons/index.tsx.mustache +1 -1
  21. package/src/tasks/create/templates/SDK-React/field/Text/index.tsx.mustache +1 -1
  22. package/src/tasks/create/templates/SDK-React/field/Text-Email/index.tsx.mustache +27 -6
  23. package/src/tasks/create/templates/SDK-React/field/Text-Input/index.tsx.mustache +1 -1
  24. package/src/tasks/create/templates/SDK-React/field/Text-Paragraph/index.tsx.mustache +25 -6
  25. package/src/tasks/create/templates/SDK-React/field/Text-Phone/index.tsx.mustache +6 -5
  26. package/src/tasks/create/templates/SDK-React/field/Text-URL/index.tsx.mustache +25 -6
  27. package/src/tasks/create/templates/SDK-React/field/TimeOfDay/index.tsx.mustache +9 -5
  28. package/src/tasks/create/templates/SDK-React/template/DETAILS/index.tsx.mustache +1 -1
  29. package/src/tasks/create/templates/SDK-React/template/DETAILS/mock.ts.mustache +28 -11
  30. package/src/tasks/create/templates/SDK-React/template/DETAILS-region/index.tsx.mustache +1 -1
  31. package/src/tasks/create/templates/SDK-React/template/DETAILS-region/mock.ts.mustache +13 -13
  32. package/src/tasks/create/templates/SDK-React/template/FORM/demo.stories.tsx.mustache +13 -0
  33. package/src/tasks/create/templates/SDK-React/template/FORM-region/demo.stories.tsx.mustache +1 -1
  34. package/src/tasks/create/templates/SDK-React/widget/CASE/index.tsx.mustache +5 -4
  35. package/src/tasks/create/templates/SDK-React/widget/PAGE/index.tsx.mustache +5 -5
  36. package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/mock.ts.mustache +1 -1
  37. package/tests/assets/sdk-r/components/create/custom-sdk/field/Pega_DXIL_MyTestText/index.tsx +3 -2
  38. package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/AlertBanner/AlertBanner.tsx +1 -1
  39. package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/Banner/Banner.tsx +1 -1
  40. package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  41. package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +11 -2
  42. package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/DetailsFields/DetailsFields.tsx +4 -4
  43. package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/FieldGroup/FieldGroup.tsx +4 -4
  44. package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/FieldGroupList/FieldGroupList.tsx +4 -4
  45. package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/FieldValueList/FieldValueList.tsx +3 -3
  46. package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/Operator/Operator.tsx +6 -5
  47. package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/Pulse/Pulse.tsx +2 -2
  48. package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/RichTextEditor/RichTextEditor.tsx +3 -2
  49. package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx +1 -1
  50. package/tests/assets/sdk-r/components/create/override-sdk/field/AutoComplete/AutoComplete.tsx +4 -4
  51. package/tests/assets/sdk-r/components/create/override-sdk/field/CancelAlert/CancelAlert.tsx +3 -3
  52. package/tests/assets/sdk-r/components/create/override-sdk/field/Checkbox/Checkbox.tsx +4 -4
  53. package/tests/assets/sdk-r/components/create/override-sdk/field/Currency/Currency.tsx +2 -2
  54. package/tests/assets/sdk-r/components/create/override-sdk/field/Date/Date.tsx +23 -42
  55. package/tests/assets/sdk-r/components/create/override-sdk/field/DateTime/DateTime.tsx +29 -34
  56. package/tests/assets/sdk-r/components/create/override-sdk/field/Decimal/Decimal.tsx +2 -2
  57. package/tests/assets/sdk-r/components/create/override-sdk/field/Dropdown/Dropdown.tsx +3 -3
  58. package/tests/assets/sdk-r/components/create/override-sdk/field/Email/Email.tsx +29 -8
  59. package/tests/assets/sdk-r/components/create/override-sdk/field/Group/Group.tsx +2 -2
  60. package/tests/assets/sdk-r/components/create/override-sdk/field/Integer/Integer.tsx +22 -8
  61. package/tests/assets/sdk-r/components/create/override-sdk/field/Multiselect/Multiselect.tsx +8 -14
  62. package/tests/assets/sdk-r/components/create/override-sdk/field/Percentage/Percentage.tsx +3 -3
  63. package/tests/assets/sdk-r/components/create/override-sdk/field/Phone/Phone.tsx +3 -2
  64. package/tests/assets/sdk-r/components/create/override-sdk/field/Phone/config-ext.json +9 -0
  65. package/tests/assets/sdk-r/components/create/override-sdk/field/RadioButtons/RadioButtons.tsx +3 -3
  66. package/tests/assets/sdk-r/components/create/override-sdk/field/RichText/RichText.tsx +1 -1
  67. package/tests/assets/sdk-r/components/create/override-sdk/field/RichText/config-ext.json +11 -0
  68. package/tests/assets/sdk-r/components/create/override-sdk/field/ScalarList/ScalarList.tsx +2 -2
  69. package/tests/assets/sdk-r/components/create/override-sdk/field/SemanticLink/SemanticLink.tsx +4 -4
  70. package/tests/assets/sdk-r/components/create/override-sdk/field/TextArea/TextArea.tsx +26 -8
  71. package/tests/assets/sdk-r/components/create/override-sdk/field/TextContent/TextContent.tsx +1 -1
  72. package/tests/assets/sdk-r/components/create/override-sdk/field/TextInput/TextInput.tsx +2 -2
  73. package/tests/assets/sdk-r/components/create/override-sdk/field/Time/Time.tsx +27 -20
  74. package/tests/assets/sdk-r/components/create/override-sdk/field/URL/URL.tsx +26 -7
  75. package/tests/assets/sdk-r/components/create/override-sdk/field/UserReference/UserReference.tsx +2 -2
  76. package/tests/assets/sdk-r/components/create/override-sdk/infra/ActionButtons/ActionButtons.tsx +3 -3
  77. package/tests/assets/sdk-r/components/create/override-sdk/infra/Assignment/Assignment.tsx +10 -6
  78. package/tests/assets/sdk-r/components/create/override-sdk/infra/DashboardFilter/DashboardFilter.tsx +1 -1
  79. package/tests/assets/sdk-r/components/create/override-sdk/infra/DashboardFilter/filterUtils.tsx +2 -1
  80. package/tests/assets/sdk-r/components/create/override-sdk/infra/DeferLoad/DeferLoad.tsx +3 -3
  81. package/tests/assets/sdk-r/components/create/override-sdk/infra/LeftAlignVerticalTabs/LeftAlignVerticalTabs.tsx +4 -3
  82. package/tests/assets/sdk-r/components/create/override-sdk/infra/MultiStep/MultiStep.tsx +14 -8
  83. package/tests/assets/sdk-r/components/create/override-sdk/infra/NavBar/NavBar.tsx +25 -17
  84. package/tests/assets/sdk-r/components/create/override-sdk/infra/Stages/Stages.tsx +4 -4
  85. package/tests/assets/sdk-r/components/create/override-sdk/infra/VerticalTabs/VerticalTabs.tsx +2 -2
  86. package/tests/assets/sdk-r/components/create/override-sdk/infra/View/View.tsx +37 -3
  87. package/tests/assets/sdk-r/components/create/override-sdk/template/AppShell/AppShell.tsx +55 -5
  88. package/tests/assets/sdk-r/components/create/override-sdk/template/BannerPage/config-ext.json +10 -0
  89. package/tests/assets/sdk-r/components/create/override-sdk/template/CaseView/CaseView.tsx +5 -5
  90. package/tests/assets/sdk-r/components/create/override-sdk/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx +7 -7
  91. package/tests/assets/sdk-r/components/create/override-sdk/template/Confirmation/Confirmation.tsx +2 -1
  92. package/tests/assets/sdk-r/components/create/override-sdk/template/DataReference/DataReference.tsx +2 -2
  93. package/tests/assets/sdk-r/components/create/override-sdk/template/Details/Details.tsx +2 -2
  94. package/tests/assets/sdk-r/components/create/override-sdk/template/DetailsSubTabs/DetailsSubTabs.tsx +3 -3
  95. package/tests/assets/sdk-r/components/create/override-sdk/template/DetailsThreeColumn/DetailsThreeColumn.tsx +2 -2
  96. package/tests/assets/sdk-r/components/create/override-sdk/template/DetailsTwoColumn/DetailsTwoColumn.tsx +2 -2
  97. package/tests/assets/sdk-r/components/create/override-sdk/template/FieldGroupTemplate/FieldGroupTemplate.tsx +10 -3
  98. package/tests/assets/sdk-r/components/create/override-sdk/template/InlineDashboard/InlineDashboard.tsx +2 -2
  99. package/tests/assets/sdk-r/components/create/override-sdk/template/InlineDashboardPage/config-ext.json +10 -0
  100. package/tests/assets/sdk-r/components/create/override-sdk/template/ListView/ListView.tsx +41 -34
  101. package/tests/assets/sdk-r/components/create/override-sdk/template/ListView/utils.ts +1 -1
  102. package/tests/assets/sdk-r/components/create/override-sdk/template/NarrowWideDetails/NarrowWideDetails.tsx +2 -2
  103. package/tests/assets/sdk-r/components/create/override-sdk/template/OneColumn/OneColumn.tsx +2 -2
  104. package/tests/assets/sdk-r/components/create/override-sdk/template/PromotedFilters/PromotedFilters.tsx +1 -1
  105. package/tests/assets/sdk-r/components/create/override-sdk/template/SimpleTableManual/SimpleTableManual.tsx +29 -25
  106. package/tests/assets/sdk-r/components/create/override-sdk/template/SubTabs/SubTabs.tsx +2 -2
  107. package/tests/assets/sdk-r/components/create/override-sdk/template/TwoColumn/TwoColumn.tsx +2 -2
  108. package/tests/assets/sdk-r/components/create/override-sdk/template/TwoColumnTab/TwoColumnTab.tsx +2 -2
  109. package/tests/assets/sdk-r/components/create/override-sdk/template/WideNarrowDetails/WideNarrowDetails.tsx +2 -2
  110. package/tests/assets/sdk-r/components/create/override-sdk/template/WssNavBar/WssNavBar.tsx +9 -9
  111. package/tests/assets/sdk-r/components/create/override-sdk/widget/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx +1 -1
  112. package/tests/assets/sdk-r/components/create/override-sdk/widget/AppAnnouncement/AppAnnouncement.tsx +2 -2
  113. package/tests/assets/sdk-r/components/create/override-sdk/widget/Attachment/Attachment.tsx +5 -2
  114. package/tests/assets/sdk-r/components/create/override-sdk/widget/CaseHistory/CaseHistory.tsx +12 -10
  115. package/tests/assets/sdk-r/components/create/override-sdk/widget/FileUtility/FileUtility.tsx +4 -3
  116. package/tests/assets/sdk-r/components/create/override-sdk/widget/Followers/Followers.tsx +2 -2
  117. package/tests/assets/sdk-r/components/create/override-sdk/widget/QuickCreate/config-ext.json +10 -0
  118. package/tests/assets/sdk-r/components/create/override-sdk/widget/SummaryItem/SummaryItem.tsx +3 -2
  119. package/tests/assets/sdk-r/components/create/override-sdk/widget/ToDo/ToDo.tsx +91 -21
  120. package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/demo.stories.tsx +2 -3
  121. package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/index.tsx +5 -4
  122. package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/mock.ts +0 -1
  123. package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyCurrency/index.tsx +1 -3
  124. package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/index.tsx +3 -5
  125. package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyDecimal/index.tsx +3 -6
  126. package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyInteger/demo.stories.tsx +1 -2
  127. package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyInteger/event-utils.ts +1 -1
  128. package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyInteger/index.tsx +2 -12
  129. package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyInteger/mock.ts +3 -2
  130. package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyPercentage/index.tsx +2 -5
  131. package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/index.tsx +10 -52
  132. package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/utils.ts +1 -1
  133. package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/Avatar.tsx +5 -7
  134. package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/Avatar.tsx +5 -7
  135. package/tests/assets/sdk-r/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +5 -7
  136. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyBoolean/index.tsx +5 -4
  137. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyCurrency/index.tsx +4 -3
  138. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDate/index.tsx +29 -45
  139. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDateTime/index.tsx +35 -38
  140. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDecimal/index.tsx +6 -5
  141. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyEmail/index.tsx +30 -8
  142. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyIconButtonURL/index.tsx +13 -13
  143. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyInteger/index.tsx +23 -8
  144. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyParagraph/index.tsx +27 -7
  145. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPercentage/index.tsx +6 -5
  146. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPhone/index.tsx +2 -1
  147. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPicklist/index.tsx +6 -5
  148. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyRadiobuttons/index.tsx +3 -2
  149. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MySearchbox/index.tsx +5 -4
  150. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyText/index.tsx +3 -2
  151. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyTextInput/index.tsx +3 -2
  152. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyTimeOfDay/index.tsx +32 -22
  153. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyURL/index.tsx +27 -7
  154. package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyDetails/index.tsx +2 -2
  155. package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyDetails/mock.ts +28 -11
  156. package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyForm/demo.stories.tsx +13 -0
  157. package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyPage/OneColumn.tsx +2 -2
  158. package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnDetails/index.tsx +2 -2
  159. package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnDetails/mock.ts +13 -13
  160. package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +18 -15
  161. package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnForm/index.tsx +6 -6
  162. package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyCaseWidget/index.tsx +15 -13
  163. package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageCaseWidget/index.tsx +18 -10
  164. package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageCaseWidget/mock.ts +1 -1
  165. package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageWidget/index.tsx +29 -23
  166. package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageWidget/mock.ts +1 -1
  167. package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/AlertBanner/AlertBanner.tsx +1 -1
  168. package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/Banner/Banner.tsx +1 -1
  169. package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  170. package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +11 -2
  171. package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/DetailsFields/DetailsFields.tsx +4 -4
  172. package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/FieldGroup/FieldGroup.tsx +4 -4
  173. package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/FieldGroupList/FieldGroupList.tsx +4 -4
  174. package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/FieldValueList/FieldValueList.tsx +3 -3
  175. package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/Operator/Operator.tsx +6 -5
  176. package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/Pulse/Pulse.tsx +2 -2
  177. package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/RichTextEditor/RichTextEditor.tsx +3 -2
  178. package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx +1 -1
  179. package/tests/assets/sdk-r/components/createAll/override-sdk/field/AutoComplete/AutoComplete.tsx +4 -4
  180. package/tests/assets/sdk-r/components/createAll/override-sdk/field/CancelAlert/CancelAlert.tsx +3 -3
  181. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Checkbox/Checkbox.tsx +4 -4
  182. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Currency/Currency.tsx +2 -2
  183. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Date/Date.tsx +23 -42
  184. package/tests/assets/sdk-r/components/createAll/override-sdk/field/DateTime/DateTime.tsx +29 -34
  185. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Decimal/Decimal.tsx +2 -2
  186. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Dropdown/Dropdown.tsx +3 -3
  187. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Email/Email.tsx +29 -8
  188. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Group/Group.tsx +2 -2
  189. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Integer/Integer.tsx +22 -8
  190. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Multiselect/Multiselect.tsx +8 -14
  191. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Percentage/Percentage.tsx +3 -3
  192. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Phone/Phone.tsx +3 -2
  193. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Phone/config-ext.json +9 -0
  194. package/tests/assets/sdk-r/components/createAll/override-sdk/field/RadioButtons/RadioButtons.tsx +3 -3
  195. package/tests/assets/sdk-r/components/createAll/override-sdk/field/RichText/RichText.tsx +1 -1
  196. package/tests/assets/sdk-r/components/createAll/override-sdk/field/RichText/config-ext.json +11 -0
  197. package/tests/assets/sdk-r/components/createAll/override-sdk/field/ScalarList/ScalarList.tsx +2 -2
  198. package/tests/assets/sdk-r/components/createAll/override-sdk/field/SemanticLink/SemanticLink.tsx +4 -4
  199. package/tests/assets/sdk-r/components/createAll/override-sdk/field/TextArea/TextArea.tsx +26 -8
  200. package/tests/assets/sdk-r/components/createAll/override-sdk/field/TextContent/TextContent.tsx +1 -1
  201. package/tests/assets/sdk-r/components/createAll/override-sdk/field/TextInput/TextInput.tsx +2 -2
  202. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Time/Time.tsx +27 -20
  203. package/tests/assets/sdk-r/components/createAll/override-sdk/field/URL/URL.tsx +26 -7
  204. package/tests/assets/sdk-r/components/createAll/override-sdk/field/UserReference/UserReference.tsx +2 -2
  205. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/ActionButtons/ActionButtons.tsx +3 -3
  206. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/Assignment/Assignment.tsx +10 -6
  207. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/DashboardFilter/DashboardFilter.tsx +1 -1
  208. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/DashboardFilter/filterUtils.tsx +2 -1
  209. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/DeferLoad/DeferLoad.tsx +3 -3
  210. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/LeftAlignVerticalTabs/LeftAlignVerticalTabs.tsx +4 -3
  211. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/MultiStep/MultiStep.tsx +14 -8
  212. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/NavBar/NavBar.tsx +25 -17
  213. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/Stages/Stages.tsx +4 -4
  214. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/VerticalTabs/VerticalTabs.tsx +2 -2
  215. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/View/View.tsx +37 -3
  216. package/tests/assets/sdk-r/components/createAll/override-sdk/template/AppShell/AppShell.tsx +55 -5
  217. package/tests/assets/sdk-r/components/createAll/override-sdk/template/BannerPage/config-ext.json +10 -0
  218. package/tests/assets/sdk-r/components/createAll/override-sdk/template/CaseView/CaseView.tsx +5 -5
  219. package/tests/assets/sdk-r/components/createAll/override-sdk/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx +7 -7
  220. package/tests/assets/sdk-r/components/createAll/override-sdk/template/Confirmation/Confirmation.tsx +2 -1
  221. package/tests/assets/sdk-r/components/createAll/override-sdk/template/DataReference/DataReference.tsx +2 -2
  222. package/tests/assets/sdk-r/components/createAll/override-sdk/template/Details/Details.tsx +2 -2
  223. package/tests/assets/sdk-r/components/createAll/override-sdk/template/DetailsSubTabs/DetailsSubTabs.tsx +3 -3
  224. package/tests/assets/sdk-r/components/createAll/override-sdk/template/DetailsThreeColumn/DetailsThreeColumn.tsx +2 -2
  225. package/tests/assets/sdk-r/components/createAll/override-sdk/template/DetailsTwoColumn/DetailsTwoColumn.tsx +2 -2
  226. package/tests/assets/sdk-r/components/createAll/override-sdk/template/FieldGroupTemplate/FieldGroupTemplate.tsx +10 -3
  227. package/tests/assets/sdk-r/components/createAll/override-sdk/template/InlineDashboard/InlineDashboard.tsx +2 -2
  228. package/tests/assets/sdk-r/components/createAll/override-sdk/template/InlineDashboardPage/config-ext.json +10 -0
  229. package/tests/assets/sdk-r/components/createAll/override-sdk/template/ListView/ListView.tsx +41 -34
  230. package/tests/assets/sdk-r/components/createAll/override-sdk/template/ListView/utils.ts +1 -1
  231. package/tests/assets/sdk-r/components/createAll/override-sdk/template/NarrowWideDetails/NarrowWideDetails.tsx +2 -2
  232. package/tests/assets/sdk-r/components/createAll/override-sdk/template/OneColumn/OneColumn.tsx +2 -2
  233. package/tests/assets/sdk-r/components/createAll/override-sdk/template/PromotedFilters/PromotedFilters.tsx +1 -1
  234. package/tests/assets/sdk-r/components/createAll/override-sdk/template/SimpleTableManual/SimpleTableManual.tsx +29 -25
  235. package/tests/assets/sdk-r/components/createAll/override-sdk/template/SubTabs/SubTabs.tsx +2 -2
  236. package/tests/assets/sdk-r/components/createAll/override-sdk/template/TwoColumn/TwoColumn.tsx +2 -2
  237. package/tests/assets/sdk-r/components/createAll/override-sdk/template/TwoColumnTab/TwoColumnTab.tsx +2 -2
  238. package/tests/assets/sdk-r/components/createAll/override-sdk/template/WideNarrowDetails/WideNarrowDetails.tsx +2 -2
  239. package/tests/assets/sdk-r/components/createAll/override-sdk/template/WssNavBar/WssNavBar.tsx +9 -9
  240. package/tests/assets/sdk-r/components/createAll/override-sdk/widget/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx +1 -1
  241. package/tests/assets/sdk-r/components/createAll/override-sdk/widget/AppAnnouncement/AppAnnouncement.tsx +2 -2
  242. package/tests/assets/sdk-r/components/createAll/override-sdk/widget/Attachment/Attachment.tsx +5 -2
  243. package/tests/assets/sdk-r/components/createAll/override-sdk/widget/CaseHistory/CaseHistory.tsx +12 -10
  244. package/tests/assets/sdk-r/components/createAll/override-sdk/widget/FileUtility/FileUtility.tsx +4 -3
  245. package/tests/assets/sdk-r/components/createAll/override-sdk/widget/Followers/Followers.tsx +2 -2
  246. package/tests/assets/sdk-r/components/createAll/override-sdk/widget/QuickCreate/config-ext.json +10 -0
  247. package/tests/assets/sdk-r/components/createAll/override-sdk/widget/SummaryItem/SummaryItem.tsx +3 -2
  248. package/tests/assets/sdk-r/components/createAll/override-sdk/widget/ToDo/ToDo.tsx +91 -21
  249. /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadiobuttons → Pega_DXIL_MyRadioButtons}/PConnProps.d.ts +0 -0
  250. /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadiobuttons → Pega_DXIL_MyRadioButtons}/create-nonce.ts +0 -0
  251. /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadiobuttons → Pega_DXIL_MyRadioButtons}/demo.stories.tsx +0 -0
  252. /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadiobuttons → Pega_DXIL_MyRadioButtons}/event-utils.ts +0 -0
  253. /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadiobuttons → Pega_DXIL_MyRadioButtons}/index.tsx +0 -0
  254. /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadiobuttons → Pega_DXIL_MyRadioButtons}/mock.ts +0 -0
  255. /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadiobuttons → Pega_DXIL_MyRadioButtons}/styles.ts +0 -0
  256. /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadiobuttons → Pega_DXIL_MyRadioButtons}/suggestions-handler.ts +0 -0
  257. /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadiobuttons → Pega_DXIL_MyRadioButtons}/textformat-utils.tsx +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/dx-component-builder-sdk",
3
- "version": "0.242.2",
3
+ "version": "0.242.4",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -88,9 +88,8 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
88
88
  }, [validatemessage, hasSuggestions, status]);
89
89
 
90
90
  const { decimalPrecision, currencyDecimalPrecision } = props;
91
- let numberOfDecimals = parseInt(decimalPrecision, 10);
91
+ let numberOfDecimals: number | undefined = parseInt(decimalPrecision, 10);
92
92
  if (Number.isNaN(numberOfDecimals)) {
93
- // @ts-ignore
94
93
  numberOfDecimals = decimalPrecision === '' ? undefined : 2;
95
94
  }
96
95
  let noOfFractionDigits = currencyDecimalPrecision === 'auto' ? undefined : parseInt(currencyDecimalPrecision, 10);
@@ -226,15 +225,13 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
226
225
  }
227
226
  setDecimalValue(enteredValue);
228
227
  if (value !== (enteredValue !== '' ? Number(enteredValue) : '')) {
229
- // @ts-ignore
230
- handleEvent(actions, 'change', propName, enteredValue !== '' ? Number(enteredValue) : '');
228
+ handleEvent(actions, 'change', propName, enteredValue !== '' ? Number(enteredValue).toString() : '');
231
229
  hasValueChange.current = true;
232
230
  }
233
231
  }}
234
232
  onBlur={() => {
235
233
  if (!value || hasValueChange.current) {
236
- // @ts-ignore
237
- handleEvent(actions, 'blur', propName, decimalValue !== '' ? Number(decimalValue) : '');
234
+ handleEvent(actions, 'blur', propName, decimalValue !== '' ? Number(decimalValue).toString() : '');
238
235
  if (hasSuggestions) {
239
236
  pConn.ignoreSuggestion("");
240
237
  }
@@ -1,4 +1,3 @@
1
-
2
1
  import { useState, useEffect } from 'react';
3
2
  import {
4
3
  CurrencyInput as CosmosCurrency,
@@ -265,9 +264,8 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
265
264
  });
266
265
  }}
267
266
  onBlur={(enteredValue) => {
268
- const parsedValue = enteredValue !== '' ? Number(enteredValue) : enteredValue;
267
+ const parsedValue = enteredValue !== '' ? Number(enteredValue).toString() : enteredValue;
269
268
  if (!readOnly && (!value || value !== parsedValue)) {
270
- // @ts-ignore
271
269
  handleEvent(actions, 'changeNblur', propName, parsedValue);
272
270
  if (hasSuggestions) {
273
271
  pConn.ignoreSuggestion('');
@@ -94,9 +94,8 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
94
94
  }
95
95
  }, [validatemessage, hasSuggestions, status]);
96
96
 
97
- let numberOfDecimals = parseInt(decimalPrecision, 10);
97
+ let numberOfDecimals : number | undefined = parseInt(decimalPrecision, 10);
98
98
  if (Number.isNaN(numberOfDecimals)) {
99
- // @ts-ignore
100
99
  numberOfDecimals = decimalPrecision === '' ? undefined : 2;
101
100
  }
102
101
 
@@ -247,15 +246,13 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
247
246
  }
248
247
  setPercentageValue(enteredValue);
249
248
  if (value !== enteredValue) {
250
- // @ts-ignore
251
249
  handleEvent(actions, 'change', propName, enteredValue);
252
250
  hasValueChange.current = true;
253
251
  }
254
252
  }}
255
253
  onBlur={() => {
256
- const parsedValue = percentageValue !== '' ? Number(percentageValue) : '';
254
+ const parsedValue = percentageValue !== '' ? Number(percentageValue).toString() : '';
257
255
  if (!value || hasValueChange.current) {
258
- // @ts-ignore
259
256
  handleEvent(actions, 'blur', propName, parsedValue);
260
257
  if (hasSuggestions) {
261
258
  pConn.ignoreSuggestion("");
@@ -497,14 +497,14 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
497
497
  const pConn = getPConnect();
498
498
  const contextName = getPConnect().getContextName();
499
499
  const actions = pConn.getActionsApi();
500
- const [dataApiObj, setDataApiObj] = useState(() => ({}));
500
+ const [dataApiObj, setDataApiObj] = useState(() => ({} as any));
501
501
  const [filterValue, setFilterValue] = useState('');
502
502
  const [loading, setLoading] = useState(listType !== 'associated');
503
503
  // const selected = useMemo(() => menuHelpers.getSelected(items)[0], [items]);
504
504
  const [selected, setSelected] = useState();
505
505
  const hasMoreResults = useRef(true);
506
506
  const inputValueRef = useRef('');
507
- const displayFieldMeta = useRef(null);
507
+ const displayFieldMeta: any = useRef(null);
508
508
  const [actualValue, setActualValue] = useState();
509
509
  const [newRecordCreated, setNewRecordCreated] = useState();
510
510
 
@@ -645,15 +645,13 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
645
645
  }
646
646
  PCore.getDataApi()
647
647
  .init(dataConfig, contextName)
648
- .then(dataObj => {
649
- // @ts-ignore
648
+ .then((dataObj: any) => {
650
649
  setDataApiObj(dataObj);
651
650
  // To avoid calling doSearch if someone types/pastes value before the API call is made
652
651
  if (!filterValue)
653
652
  doSearch(
654
653
  '',
655
654
  getDisplayFieldsMetaData(dataConfig.columns),
656
- // @ts-ignore
657
655
  dataObj,
658
656
  setItems as any,
659
657
  setLoading,
@@ -679,12 +677,10 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
679
677
  if (!dataRefMount && !displayMode && listType === 'datapage') {
680
678
  PCore.getDataApi()
681
679
  .init(dataConfig, contextName)
682
- .then(dataObj => {
683
- // @ts-ignore
680
+ .then((dataObj: any) => {
684
681
  setDataApiObj(dataObj);
685
682
  // To avoid calling doSearch if someone types/pastes value before the API call is made
686
683
  if (!filterValue) {
687
- // @ts-ignore
688
684
  if (displayFieldMeta?.current?.key === displayFieldMeta?.current?.primary) {
689
685
  const displayItem = {
690
686
  id: value,
@@ -696,7 +692,6 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
696
692
  doSearch(
697
693
  '',
698
694
  getDisplayFieldsMetaData(dataConfig.columns),
699
- // @ts-ignore
700
695
  dataObj,
701
696
  setItems as any,
702
697
  setLoading,
@@ -716,7 +711,6 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
716
711
  doSearch(
717
712
  '',
718
713
  getDisplayFieldsMetaData(dataConfig.columns),
719
- // @ts-ignore
720
714
  dataObj,
721
715
  setItems as any,
722
716
  setLoading,
@@ -775,22 +769,16 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
775
769
  ) {
776
770
  PCore.getDataApi()
777
771
  .init(dataConfig, contextName)
778
- .then(dataObj => {
779
- // @ts-ignore
772
+ .then((dataObj: any) => {
780
773
  setDataApiObj(dataObj);
781
- // @ts-ignore
782
774
  buildColumnForDisplayValue(dataObj);
783
775
  // SET matchPosition to EQUALS to return exact matching record
784
- // @ts-ignore
785
776
  dataObj.matchPosition = 'equals';
786
- // @ts-ignore
787
777
  dataObj
788
778
  .fetchData(value)
789
779
  .then((displayResponse: { data: Array<never> }) => {
790
780
  let columnsWithSetProperty: string | Array<any> = [];
791
- // @ts-ignore
792
781
  if (dataApiObj.columns) {
793
- // @ts-ignore
794
782
  columnsWithSetProperty = dataApiObj.columns
795
783
  .filter(
796
784
  (col: { setProperty: string }) =>
@@ -805,12 +793,9 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
805
793
  const searchedItem = displayResponseData.map((entry: { [x: string]: any }) => {
806
794
  const secondaryArr: Array<any> = [];
807
795
  const secondaryFieldValues: Array<any> = [];
808
- // @ts-ignore
809
796
  displayFieldMeta.current.secondary.forEach((col: string) => {
810
- // @ts-ignore
811
797
  if (!displayFieldMeta.hidden.includes(col)) secondaryArr.push(entry[col]);
812
798
  if (columnsWithSetProperty.includes(col)) {
813
- // @ts-ignore
814
799
  if (dataApiObj.isQueryable) {
815
800
  secondaryFieldValues.push(entry[col]);
816
801
  } else {
@@ -819,9 +804,7 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
819
804
  }
820
805
  });
821
806
  return {
822
- // @ts-ignore
823
807
  id: entry[displayFieldMeta.current.key],
824
- // @ts-ignore
825
808
  primary: entry[displayFieldMeta.current.primary],
826
809
  secondary: secondaryArr,
827
810
  secondaryFieldValues
@@ -832,13 +815,11 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
832
815
  setSelected(searchedItem[0]);
833
816
  setActualValue(value);
834
817
  // RESET matchPosition
835
- // @ts-ignore
836
818
  dataObj.matchPosition = dataConfig.matchPosition;
837
819
  })
838
820
  .catch(() => {
839
821
  setActualValue(value);
840
822
  // RESET matchPosition
841
- // @ts-ignore
842
823
  dataObj.matchPosition = dataConfig.matchPosition;
843
824
  });
844
825
  });
@@ -856,21 +837,17 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
856
837
  };
857
838
  })
858
839
  );
859
- // @ts-ignore
860
- setSelected(null);
840
+ setSelected(undefined);
861
841
  inputValueRef.current = '';
862
842
  };
863
843
 
864
844
  const onChangeHandler = (ev: { target: { value: any } }) => {
865
845
  if (hasSuggestions) {
866
- // @ts-ignore
867
- pConn.ignoreSuggestion();
846
+ pConn.ignoreSuggestion('');
868
847
  setStatus(undefined);
869
848
  }
870
849
 
871
- // @ts-ignore
872
850
  dataApiObj.columns = dataConfig.columns;
873
- // @ts-ignore
874
851
  dataApiObj.matchPosition = dataConfig.matchPosition;
875
852
  const searchText = ev.target.value;
876
853
  inputValueRef.current = searchText;
@@ -879,15 +856,14 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
879
856
  clearSelections();
880
857
  }
881
858
  setFilterValue(searchText);
882
- // @ts-ignore
883
859
  if (listType === 'datapage' && dataApiObj.isQueryable) {
884
860
  hasMoreResults.current = true;
885
861
  if (searchText.length < 5) {
886
862
  searchHandlerThrottled(
887
863
  searchText,
888
- // @ts-ignore
889
864
  displayFieldMeta.current,
890
865
  dataApiObj,
866
+ // @ts-ignore
891
867
  setItems,
892
868
  setLoading,
893
869
  hasMoreResults
@@ -895,9 +871,9 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
895
871
  } else {
896
872
  searchHandlerDebounced(
897
873
  searchText,
898
- // @ts-ignore
899
874
  displayFieldMeta.current,
900
875
  dataApiObj,
876
+ // @ts-ignore
901
877
  setItems,
902
878
  setLoading,
903
879
  hasMoreResults
@@ -905,14 +881,12 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
905
881
  }
906
882
  } else if (
907
883
  listType === 'associated' ||
908
- // @ts-ignore
909
884
  (listType === 'datapage' && dataApiObj?.isQueryable === false)
910
885
  ) {
911
886
  paginateHelperApis.resetIndexes();
912
887
  const progressivePaginatedRecords = paginateHelperApis.fetchData(
913
888
  inputValueRef.current,
914
889
  false,
915
- // @ts-ignore
916
890
  dataApiObj.columns
917
891
  );
918
892
  setItems(progressivePaginatedRecords);
@@ -939,21 +913,19 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
939
913
 
940
914
  setFilterValue('');
941
915
  if (!selected && inputValueRef.current !== '') {
942
- // @ts-ignore
943
916
  if (listType === 'datapage' && dataApiObj.isQueryable) {
944
917
  hasMoreResults.current = true;
945
918
  searchHandlerThrottled(
946
919
  '',
947
- // @ts-ignore
948
920
  displayFieldMeta.current,
949
921
  dataApiObj,
922
+ // @ts-ignore
950
923
  setItems,
951
924
  setLoading,
952
925
  hasMoreResults
953
926
  );
954
927
  } else if (
955
928
  listType === 'associated' ||
956
- // @ts-ignore
957
929
  (listType === 'datapage' && dataApiObj?.isQueryable === false)
958
930
  ) {
959
931
  paginateHelperApis.resetIndexes();
@@ -976,7 +948,6 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
976
948
  // @ts-ignore
977
949
  setSelected(menuHelpers.getSelected(updatedItems)[0]);
978
950
  // const { id: itemId } = menuHelpers.getSelected(updatedItems)[0];
979
- // @ts-ignore
980
951
  const assocProp = pConn.getStateProps().value;
981
952
  const propValue = setValueToAssocProp(
982
953
  assocProp,
@@ -1009,7 +980,6 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
1009
980
  const loadMore = () => {
1010
981
  if (
1011
982
  (listType === 'associated' ||
1012
- // @ts-ignore
1013
983
  (listType === 'datapage' && dataApiObj?.isQueryable === false)) &&
1014
984
  paginateHelperApis.hasMoreResults(inputValueRef.current)
1015
985
  ) {
@@ -1019,23 +989,18 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
1019
989
  progressivePaginatedRecords = removeDuplicates(previousItems, progressivePaginatedRecords);
1020
990
  return [...previousItems, ...progressivePaginatedRecords];
1021
991
  });
1022
- // @ts-ignore
1023
992
  } else if (listType === 'datapage' && dataApiObj.isQueryable && hasMoreResults.current) {
1024
993
  setLoading(true);
1025
994
  dataApiObj
1026
- // @ts-ignore
1027
995
  .fetchPaginatedData(inputValueRef.current)
1028
996
  .then((response: { pageSize: number; data: Array<never> }) => {
1029
997
  setLoading(false);
1030
- // @ts-ignore
1031
998
  if (response.pageSize === 0 || response.pageSize < dataApiObj.pageSize) {
1032
999
  hasMoreResults.current = false;
1033
1000
  }
1034
1001
  const listObjData = response.data || [];
1035
1002
  let columnsWithSetProperty: string | Array<any> = [];
1036
- // @ts-ignore
1037
1003
  if (dataApiObj.columns) {
1038
- // @ts-ignore
1039
1004
  columnsWithSetProperty = dataApiObj.columns
1040
1005
  .filter(
1041
1006
  (col: { setProperty: string }) =>
@@ -1049,12 +1014,9 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
1049
1014
  const searchedItems = listObjData.map((entry: { [x: string]: any }) => {
1050
1015
  const secondaryArr: Array<any> = [];
1051
1016
  const secondaryFieldValues: Array<any> = [];
1052
- // @ts-ignore
1053
1017
  displayFieldMeta.current.secondary.forEach((col: string) => {
1054
- // @ts-ignore
1055
1018
  if (!displayFieldMeta.current.hidden.includes(col)) secondaryArr.push(entry[col]);
1056
1019
  if (columnsWithSetProperty.includes(col)) {
1057
- // @ts-ignore
1058
1020
  if (dataApiObj.isQueryable) {
1059
1021
  secondaryFieldValues.push(entry[col]);
1060
1022
  } else {
@@ -1063,9 +1025,7 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
1063
1025
  }
1064
1026
  });
1065
1027
  return {
1066
- // @ts-ignore
1067
1028
  id: entry[displayFieldMeta.current.key],
1068
- // @ts-ignore
1069
1029
  primary: entry[displayFieldMeta.current.primary],
1070
1030
  secondary: secondaryArr,
1071
1031
  secondaryFieldValues
@@ -1076,7 +1036,6 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
1076
1036
  })
1077
1037
  .catch(() => {
1078
1038
  setLoading(false);
1079
- // @ts-ignore
1080
1039
  dataApiObj.pageSize -= 1;
1081
1040
  });
1082
1041
  }
@@ -1162,7 +1121,6 @@ function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
1162
1121
  selected: item.items ? undefined : !!item.selected || item.id === selected?.id
1163
1122
  })),
1164
1123
  onItemClick: selectItem,
1165
- // @ts-ignore
1166
1124
  emptyText: pConn.getLocalizedValue('No items'),
1167
1125
  loading,
1168
1126
  loadMore,
@@ -187,7 +187,7 @@ export const updatePropertiesForNewRecord = (
187
187
  dataObj
188
188
  .fetchData(newCaseId)
189
189
  // @ts-ignore
190
- .then(displayResponse => {
190
+ .then((displayResponse: any) => {
191
191
  let columnsWithSetProperty = [];
192
192
  if (dataApiObj.columns) {
193
193
  columnsWithSetProperty = dataApiObj.columns
@@ -22,8 +22,8 @@ function Avatar(props: {{COMPONENT_CLASS_NAME}}AvatarProps) {
22
22
  // TODO Below if conditions can be removed once we have apis to get worklist/mywork info
23
23
  // This is non CaseView case (Dashboard, MyWork etc)
24
24
  if (!metaObj) {
25
- userName = PCore.getEnvironmentInfo().getOperatorName();
26
- userIdentifier = PCore.getEnvironmentInfo().getOperatorIdentifier();
25
+ userName = PCore.getEnvironmentInfo().getOperatorName() ?? "";
26
+ userIdentifier = PCore.getEnvironmentInfo().getOperatorIdentifier() ?? "";
27
27
  } else {
28
28
  userName = metaObj.name;
29
29
  userIdentifier = metaObj.ID;
@@ -46,22 +46,20 @@ function Avatar(props: {{COMPONENT_CLASS_NAME}}AvatarProps) {
46
46
  const currentState = PCore.getMessagingServiceManager().getUserPresence().getUserState(userIdentifier);
47
47
  const [userState, setUserState]: any = useState(currentState === 'online' ? 'active' : 'inactive');
48
48
 
49
- // @ts-ignore
50
- const handleUserStateChange = ({ state }) => {
49
+ const handleUserStateChange = ({ state }: any) => {
51
50
  setUserState(state === 'online' ? 'active' : 'inactive');
52
51
  };
53
52
 
54
53
  useEffect(() => {
55
54
  const subId = PCore.getMessagingServiceManager()
56
55
  .getUserPresence()
57
- // @ts-ignore
58
- .subscribe(userIdentifier, handleUserStateChange);
56
+ .subscribe(userIdentifier, handleUserStateChange, '');
59
57
 
60
58
  return function cleanup() {
61
59
  PCore.getMessagingServiceManager().getUserPresence().unsubscribe(userIdentifier, subId);
62
60
  };
63
61
  }, [userIdentifier, handleUserStateChange]);
64
- // @ts-ignore
62
+
65
63
  return <CosmosAvatar name={userName} imageSrc={imageBlobUrl as React.SetStateAction<any>} status={userState} />;
66
64
  }
67
65
 
@@ -22,8 +22,8 @@ function Avatar(props: {{COMPONENT_CLASS_NAME}}AvatarProps) {
22
22
  // TODO Below if conditions can be removed once we have apis to get worklist/mywork info
23
23
  // This is non CaseView case (Dashboard, MyWork etc)
24
24
  if (!metaObj) {
25
- userName = PCore.getEnvironmentInfo().getOperatorName();
26
- userIdentifier = PCore.getEnvironmentInfo().getOperatorIdentifier();
25
+ userName = PCore.getEnvironmentInfo().getOperatorName() ?? "";
26
+ userIdentifier = PCore.getEnvironmentInfo().getOperatorIdentifier() ?? "";
27
27
  } else {
28
28
  userName = metaObj.name;
29
29
  userIdentifier = metaObj.ID;
@@ -46,22 +46,20 @@ function Avatar(props: {{COMPONENT_CLASS_NAME}}AvatarProps) {
46
46
  const currentState = PCore.getMessagingServiceManager().getUserPresence().getUserState(userIdentifier);
47
47
  const [userState, setUserState]: any = useState(currentState === 'online' ? 'active' : 'inactive');
48
48
 
49
- // @ts-ignore
50
- const handleUserStateChange = ({ state }) => {
49
+ const handleUserStateChange = ({ state }: any) => {
51
50
  setUserState(state === 'online' ? 'active' : 'inactive');
52
51
  };
53
52
 
54
53
  useEffect(() => {
55
54
  const subId = PCore.getMessagingServiceManager()
56
55
  .getUserPresence()
57
- // @ts-ignore
58
- .subscribe(userIdentifier, handleUserStateChange);
56
+ .subscribe(userIdentifier, handleUserStateChange, '');
59
57
 
60
58
  return function cleanup() {
61
59
  PCore.getMessagingServiceManager().getUserPresence().unsubscribe(userIdentifier, subId);
62
60
  };
63
61
  }, [userIdentifier, handleUserStateChange]);
64
- // @ts-ignore
62
+
65
63
  return <CosmosAvatar name={userName} imageSrc={imageBlobUrl as React.SetStateAction<any>} status={userState} />;
66
64
  }
67
65
 
@@ -22,8 +22,8 @@ function Avatar(props: {{COMPONENT_CLASS_NAME}}AvatarProps) {
22
22
  // TODO Below if conditions can be removed once we have apis to get worklist/mywork info
23
23
  // This is non CaseView case (Dashboard, MyWork etc)
24
24
  if (!metaObj) {
25
- userName = PCore.getEnvironmentInfo().getOperatorName();
26
- userIdentifier = PCore.getEnvironmentInfo().getOperatorIdentifier();
25
+ userName = PCore.getEnvironmentInfo().getOperatorName() ?? "";
26
+ userIdentifier = PCore.getEnvironmentInfo().getOperatorIdentifier() ?? "";
27
27
  } else {
28
28
  userName = metaObj.name;
29
29
  userIdentifier = metaObj.ID;
@@ -46,22 +46,20 @@ function Avatar(props: {{COMPONENT_CLASS_NAME}}AvatarProps) {
46
46
  const currentState = PCore.getMessagingServiceManager().getUserPresence().getUserState(userIdentifier);
47
47
  const [userState, setUserState]: any = useState(currentState === 'online' ? 'active' : 'inactive');
48
48
 
49
- // @ts-ignore
50
- const handleUserStateChange = ({ state }) => {
49
+ const handleUserStateChange = ({ state }: any) => {
51
50
  setUserState(state === 'online' ? 'active' : 'inactive');
52
51
  };
53
52
 
54
53
  useEffect(() => {
55
54
  const subId = PCore.getMessagingServiceManager()
56
55
  .getUserPresence()
57
- // @ts-ignore
58
- .subscribe(userIdentifier, handleUserStateChange);
56
+ .subscribe(userIdentifier, handleUserStateChange, '');
59
57
 
60
58
  return function cleanup() {
61
59
  PCore.getMessagingServiceManager().getUserPresence().unsubscribe(userIdentifier, subId);
62
60
  };
63
61
  }, [userIdentifier, handleUserStateChange]);
64
- // @ts-ignore
62
+
65
63
  return <CosmosAvatar name={userName} imageSrc={imageBlobUrl as React.SetStateAction<any>} status={userState} />;
66
64
  }
67
65
 
@@ -82,7 +82,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
82
82
  }
83
83
  }, [thePConn]);
84
84
 
85
- if (displayMode === 'LABELS_LEFT') {
85
+ if (displayMode === 'DISPLAY_ONLY') {
86
86
  return <FieldValueList name={hideLabel ? '' : caption} value={value ? trueLabel : falseLabel} />;
87
87
  }
88
88
 
@@ -167,7 +167,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
167
167
 
168
168
  return (
169
169
  <Styled{{COMPONENT_CLASS_NAME}}Wrapper>
170
- <FormControl required={required} error={status === 'error'}>
170
+ <FormControl variant='standard' required={required} error={status === 'error'}>
171
171
  {!hideLabel && <FormLabel component='legend'>{label}</FormLabel>}
172
172
  <FormGroup>{theCheckbox}</FormGroup>
173
173
  <FormHelperText>{helperTextToDisplay}</FormHelperText>
@@ -46,7 +46,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
46
46
  dateFormatInfo.dateFormatStringLC = theDateFormat.dateFormatStringLC;
47
47
  dateFormatInfo.dateFormatMask = theDateFormat.dateFormatMask;
48
48
 
49
- if (displayMode === 'LABELS_LEFT') {
49
+ if (displayMode === 'DISPLAY_ONLY') {
50
50
  const formattedDate = format(props.value, 'date', {
51
51
  format: dateFormatInfo.dateFormatString
52
52
  });
@@ -41,7 +41,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
41
41
  dateFormatInfo.dateFormatStringLC = theDateFormat.dateFormatStringLC;
42
42
  dateFormatInfo.dateFormatMask = theDateFormat.dateFormatMask;
43
43
 
44
- if (displayMode === 'LABELS_LEFT') {
44
+ if (displayMode === 'DISPLAY_ONLY') {
45
45
  const formattedDateTime = format(props.value, 'datetime', {
46
46
  format: `${dateFormatInfo.dateFormatString} hh:mm a`
47
47
  });
@@ -60,6 +60,12 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
60
60
  return <TextInput {...props} value={formattedDateTime} />;
61
61
  }
62
62
 
63
+ let testProp = {};
64
+
65
+ testProp = {
66
+ 'data-test-id': testId
67
+ };
68
+
63
69
  const handleChange = date => {
64
70
  setDateValue(date);
65
71
  const changeValue = date && date.isValid() ? date.toISOString() : null;
@@ -94,7 +100,8 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
94
100
  placeholder: `${dateFormatInfo.dateFormatStringLC} hh:mm a`,
95
101
  error: status === 'error',
96
102
  helperText: helperTextToDisplay,
97
- size: 'small'
103
+ size: 'small',
104
+ InputProps: { ...testProp }
98
105
  }
99
106
  }}
100
107
  <%={{ }}=%> {{! revert delimiters for mustache }}
@@ -73,10 +73,10 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
73
73
  if (formatter === 'Currency') {
74
74
  formattedValue = format(value, formatter.toLowerCase(), theCurrencyOptions);
75
75
  } else {
76
- formattedValue = format(value, pConn.getComponentName().toLowerCase(), theCurrencyOptions);
76
+ formattedValue = format(value, pConn.getComponentName()?.toLowerCase(), theCurrencyOptions);
77
77
  }
78
78
 
79
- if (displayMode === 'LABELS_LEFT') {
79
+ if (displayMode === 'DISPLAY_ONLY') {
80
80
  return <FieldValueList name={hideLabel ? '' : label} value={formattedValue} />;
81
81
  }
82
82
 
@@ -62,7 +62,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
62
62
  const theCurrSep = theSymbols.theDigitGroupSeparator;
63
63
 
64
64
  const theCurrencyOptions = getCurrencyOptions(currencyISOCode);
65
- const formattedValue = format(value, pConn.getComponentName().toLowerCase(), theCurrencyOptions);
65
+ const formattedValue = format(value, pConn.getComponentName()?.toLowerCase(), theCurrencyOptions);
66
66
 
67
67
  let readOnlyProp = {}; // Note: empty if NOT ReadOnly
68
68
 
@@ -73,7 +73,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
73
73
  let currencyProp = {};
74
74
  currencyProp = { prefix: theCurrSym, decimalSeparator: theCurrDec, thousandSeparator: theCurrSep };
75
75
 
76
- if (displayMode === 'LABELS_LEFT') {
76
+ if (displayMode === 'DISPLAY_ONLY') {
77
77
  return <FieldValueList name={hideLabel ? '' : label} value={formattedValue} />;
78
78
  }
79
79
 
@@ -54,7 +54,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
54
54
  const helperTextToDisplay = validatemessage || helperText;
55
55
 
56
56
  const theCurrencyOptions = getCurrencyOptions(currencyISOCode);
57
- const formattedValue = format(value, pConn.getComponentName().toLowerCase(), theCurrencyOptions);
57
+ const formattedValue = format(value, pConn.getComponentName()?.toLowerCase(), theCurrencyOptions);
58
58
 
59
59
  let readOnlyProp = {}; // Note: empty if NOT ReadOnly
60
60
 
@@ -62,7 +62,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
62
62
  readOnlyProp = { readOnly: true };
63
63
  }
64
64
 
65
- if (displayMode === 'LABELS_LEFT') {
65
+ if (displayMode === 'DISPLAY_ONLY') {
66
66
  return <FieldValueList name={hideLabel ? '' : label} value={formattedValue} />;
67
67
  }
68
68
 
@@ -117,7 +117,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
117
117
  <Styled{{COMPONENT_CLASS_NAME}}Wrapper>
118
118
  {{! pick new delimiters for mustache }}
119
119
  {{=<% %>=}}
120
- <div style={{ display: 'flex' }} data-testid={testId}>
120
+ <div style={{ display: 'flex', alignItems: 'center' }} data-testid={testId}>
121
121
  <ArrowForwardIcon />
122
122
  <TextContent displayAs='body' content={localLabel} />
123
123
  <Tooltip title={PConnect.getLocalizedValue('Click to show/hide state list', '', '')}>
@@ -127,7 +127,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
127
127
  </Tooltip>
128
128
  {
129
129
  // eslint-disable-next-line jsx-a11y/control-has-associated-label
130
- <a href={validUrl} style={{ padding: '0 0.25rem' }}>
130
+ <a href={validUrl} style={{ display: 'flex' }}>
131
131
  <LanguageIcon />
132
132
  </a>
133
133
  }