@pega/dx-component-builder-sdk 0.23.5 → 0.23.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 (178) hide show
  1. package/package.json +1 -1
  2. package/src/tasks/create/templates/Constellation/field/Text/index.jsx.mustache +1 -1
  3. package/src/tasks/create/templates/Constellation/field/Text-Input/index.jsx.mustache +1 -1
  4. package/src/tasks/create/templates/SDK-React/field/Boolean/index.tsx.mustache +30 -29
  5. package/src/tasks/create/templates/SDK-React/field/Date/index.tsx.mustache +6 -2
  6. package/src/tasks/create/templates/SDK-React/field/DateTime/index.tsx.mustache +6 -2
  7. package/src/tasks/create/templates/SDK-React/field/Decimal/index.tsx.mustache +4 -1
  8. package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/index.tsx.mustache +4 -1
  9. package/src/tasks/create/templates/SDK-React/field/Decimal-Percentage/index.tsx.mustache +5 -2
  10. package/src/tasks/create/templates/SDK-React/field/Integer/index.tsx.mustache +6 -2
  11. package/src/tasks/create/templates/SDK-React/field/Picklist/index.tsx.mustache +4 -1
  12. package/src/tasks/create/templates/SDK-React/field/Text/index.tsx.mustache +4 -1
  13. package/src/tasks/create/templates/SDK-React/field/Text-Email/index.tsx.mustache +6 -2
  14. package/src/tasks/create/templates/SDK-React/field/Text-Input/index.tsx.mustache +4 -1
  15. package/src/tasks/create/templates/SDK-React/field/Text-Paragraph/index.tsx.mustache +4 -1
  16. package/src/tasks/create/templates/SDK-React/field/Text-Phone/index.tsx.mustache +4 -1
  17. package/src/tasks/create/templates/SDK-React/field/Text-URL/index.tsx.mustache +6 -2
  18. package/src/tasks/create/templates/SDK-React/field/TimeOfDay/index.tsx.mustache +6 -2
  19. package/src/tasks/create/templates/SDK-React/template/DETAILS/index.tsx.mustache +4 -2
  20. package/src/tasks/create/templates/SDK-React/template/DETAILS-region/index.tsx.mustache +4 -2
  21. package/src/tasks/create/templates/SDK-React/template/PAGE/OneColumn.tsx.mustache +7 -6
  22. package/tests/assets/components/SDK-React/create/custom-constellation/field/Pega_DXIL_MyTestText/index.jsx +1 -1
  23. package/tests/assets/components/SDK-React/create/custom-sdk/field/Pega_DXIL_MyTestText/index.tsx +4 -1
  24. package/tests/assets/components/SDK-React/create/override-sdk/designSystemExtension/AlertBanner/AlertBanner.tsx +47 -0
  25. package/tests/assets/components/SDK-React/create/override-sdk/designSystemExtension/AlertBanner/index.tsx +1 -0
  26. package/tests/assets/components/SDK-React/create/override-sdk/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +5 -3
  27. package/tests/assets/components/SDK-React/create/override-sdk/designSystemExtension/FieldValueList/FieldValueList.tsx +1 -1
  28. package/tests/assets/components/SDK-React/create/override-sdk/designSystemExtension/RichTextEditor/RichTextEditor.tsx +121 -0
  29. package/tests/assets/components/SDK-React/create/override-sdk/designSystemExtension/RichTextEditor/index.tsx +1 -0
  30. package/tests/assets/components/SDK-React/create/override-sdk/field/AutoComplete/AutoComplete.tsx +29 -27
  31. package/tests/assets/components/SDK-React/create/override-sdk/field/Checkbox/Checkbox.tsx +10 -6
  32. package/tests/assets/components/SDK-React/create/override-sdk/field/Currency/Currency.tsx +16 -15
  33. package/tests/assets/components/SDK-React/create/override-sdk/field/Date/Date.tsx +16 -15
  34. package/tests/assets/components/SDK-React/create/override-sdk/field/DateTime/DateTime.tsx +19 -14
  35. package/tests/assets/components/SDK-React/create/override-sdk/field/Decimal/Decimal.tsx +18 -16
  36. package/tests/assets/components/SDK-React/create/override-sdk/field/Dropdown/Dropdown.tsx +17 -25
  37. package/tests/assets/components/SDK-React/create/override-sdk/field/Email/Email.tsx +11 -11
  38. package/tests/assets/components/SDK-React/create/override-sdk/field/Integer/Integer.tsx +9 -7
  39. package/tests/assets/components/SDK-React/create/override-sdk/field/Percentage/Percentage.tsx +9 -9
  40. package/tests/assets/components/SDK-React/create/override-sdk/field/Phone/Phone.tsx +13 -12
  41. package/tests/assets/components/SDK-React/create/override-sdk/field/RadioButtons/RadioButtons.tsx +16 -35
  42. package/tests/assets/components/SDK-React/create/override-sdk/field/RichText/RichText.tsx +95 -0
  43. package/tests/assets/components/SDK-React/create/override-sdk/field/RichText/index.tsx +1 -0
  44. package/tests/assets/components/SDK-React/create/override-sdk/field/ScalarList/ScalarList.tsx +73 -0
  45. package/tests/assets/components/SDK-React/create/override-sdk/field/ScalarList/config-ext.json +8 -0
  46. package/tests/assets/components/SDK-React/create/override-sdk/field/ScalarList/index.tsx +1 -0
  47. package/tests/assets/components/SDK-React/create/override-sdk/field/SemanticLink/SemanticLink.tsx +19 -19
  48. package/tests/assets/components/SDK-React/create/override-sdk/field/TextArea/TextArea.tsx +8 -6
  49. package/tests/assets/components/SDK-React/create/override-sdk/field/TextInput/TextInput.tsx +8 -7
  50. package/tests/assets/components/SDK-React/create/override-sdk/field/Time/Time.tsx +16 -28
  51. package/tests/assets/components/SDK-React/create/override-sdk/field/URL/URL.tsx +10 -8
  52. package/tests/assets/components/SDK-React/create/override-sdk/field/UserReference/UserReference.tsx +29 -29
  53. package/tests/assets/components/SDK-React/create/override-sdk/infra/Assignment/Assignment.tsx +5 -2
  54. package/tests/assets/components/SDK-React/create/override-sdk/infra/AssignmentCard/AssignmentCard.tsx +4 -2
  55. package/tests/assets/components/SDK-React/create/override-sdk/infra/DashboardFilter/DashboardFilter.tsx +13 -13
  56. package/tests/assets/components/SDK-React/create/override-sdk/infra/DashboardFilter/filterUtils.tsx +2 -1
  57. package/tests/assets/components/SDK-React/create/override-sdk/infra/DeferLoad/DeferLoad.tsx +172 -0
  58. package/tests/assets/components/SDK-React/create/override-sdk/infra/DeferLoad/index.tsx +1 -0
  59. package/tests/assets/components/SDK-React/create/override-sdk/infra/MultiStep/MultiStep.tsx +4 -3
  60. package/tests/assets/components/SDK-React/create/override-sdk/infra/NavBar/NavBar.tsx +2 -1
  61. package/tests/assets/components/SDK-React/create/override-sdk/infra/VerticalTabs/VerticalTabs.tsx +4 -1
  62. package/tests/assets/components/SDK-React/create/override-sdk/template/AppShell/AppShell.tsx +6 -4
  63. package/tests/assets/components/SDK-React/create/override-sdk/template/BannerPage/BannerPage.tsx +4 -1
  64. package/tests/assets/components/SDK-React/create/override-sdk/template/CaseSummary/CaseSummary.tsx +4 -1
  65. package/tests/assets/components/SDK-React/create/override-sdk/template/CaseView/CaseView.tsx +10 -13
  66. package/tests/assets/components/SDK-React/create/override-sdk/template/Confirmation/Confirmation.tsx +23 -44
  67. package/tests/assets/components/SDK-React/create/override-sdk/template/DataReference/DataReference.tsx +43 -64
  68. package/tests/assets/components/SDK-React/create/override-sdk/template/Details/Details.tsx +8 -4
  69. package/tests/assets/components/SDK-React/create/override-sdk/template/DetailsThreeColumn/DetailsThreeColumn.tsx +8 -4
  70. package/tests/assets/components/SDK-React/create/override-sdk/template/DetailsTwoColumn/DetailsTwoColumn.tsx +8 -4
  71. package/tests/assets/components/SDK-React/create/override-sdk/template/FieldGroupTemplate/FieldGroupTemplate.tsx +6 -2
  72. package/tests/assets/components/SDK-React/create/override-sdk/template/InlineDashboardPage/InlineDashboardPage.tsx +5 -1
  73. package/tests/assets/components/SDK-React/create/override-sdk/template/ListPage/ListPage.tsx +6 -3
  74. package/tests/assets/components/SDK-React/create/override-sdk/template/ListView/ListView.tsx +89 -93
  75. package/tests/assets/components/SDK-React/create/override-sdk/template/ListView/utils.ts +170 -23
  76. package/tests/assets/components/SDK-React/create/override-sdk/template/MultiReferenceReadOnly/MultiReferenceReadOnly.tsx +9 -9
  77. package/tests/assets/components/SDK-React/create/override-sdk/template/NarrowWideDetails/NarrowWideDetails.tsx +8 -4
  78. package/tests/assets/components/SDK-React/create/override-sdk/template/NarrowWidePage/NarrowWidePage.tsx +4 -1
  79. package/tests/assets/components/SDK-React/create/override-sdk/template/OneColumnPage/OneColumnPage.tsx +3 -1
  80. package/tests/assets/components/SDK-React/create/override-sdk/template/PromotedFilters/PromotedFilters.tsx +4 -1
  81. package/tests/assets/components/SDK-React/create/override-sdk/template/SimpleTable/SimpleTable.tsx +88 -5
  82. package/tests/assets/components/SDK-React/create/override-sdk/template/SimpleTableSelect/SimpleTableSelect.tsx +6 -4
  83. package/tests/assets/components/SDK-React/create/override-sdk/template/SingleReferenceReadOnly/SingleReferenceReadOnly.tsx +22 -18
  84. package/tests/assets/components/SDK-React/create/override-sdk/template/TwoColumnPage/TwoColumnPage.tsx +3 -2
  85. package/tests/assets/components/SDK-React/create/override-sdk/template/WideNarrowDetails/WideNarrowDetails.tsx +8 -3
  86. package/tests/assets/components/SDK-React/create/override-sdk/template/WideNarrowPage/WideNarrowPage.tsx +4 -3
  87. package/tests/assets/components/SDK-React/create/override-sdk/widget/Attachment/Attachment.tsx +5 -1
  88. package/tests/assets/components/SDK-React/create/override-sdk/widget/FileUtility/FileUtility.tsx +8 -2
  89. package/tests/assets/components/SDK-React/create/override-sdk/widget/QuickCreate/QuickCreate.tsx +4 -1
  90. package/tests/assets/components/SDK-React/create/override-sdk/widget/SummaryList/SummaryList.tsx +4 -1
  91. package/tests/assets/components/SDK-React/create/override-sdk/widget/ToDo/ToDo.tsx +53 -82
  92. package/tests/assets/components/SDK-React/createAll/custom-constellation/field/Pega_DXIL_MyText/index.jsx +1 -1
  93. package/tests/assets/components/SDK-React/createAll/custom-constellation/field/Pega_DXIL_MyTextInput/index.jsx +1 -1
  94. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyBoolean/index.tsx +30 -29
  95. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyCurrency/index.tsx +4 -1
  96. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyDate/index.tsx +6 -2
  97. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyDateTime/index.tsx +6 -2
  98. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyDecimal/index.tsx +4 -1
  99. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyEmail/index.tsx +6 -2
  100. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyInteger/index.tsx +6 -2
  101. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyParagraph/index.tsx +4 -1
  102. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyPercentage/index.tsx +5 -2
  103. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyPhone/index.tsx +4 -1
  104. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyPicklist/index.tsx +4 -1
  105. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyText/index.tsx +4 -1
  106. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyTextInput/index.tsx +4 -1
  107. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyTimeOfDay/index.tsx +6 -2
  108. package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyURL/index.tsx +6 -2
  109. package/tests/assets/components/SDK-React/createAll/custom-sdk/template/Pega_DXIL_MyDetails/index.tsx +4 -2
  110. package/tests/assets/components/SDK-React/createAll/custom-sdk/template/Pega_DXIL_MyPage/OneColumn.tsx +7 -6
  111. package/tests/assets/components/SDK-React/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnDetails/index.tsx +4 -2
  112. package/tests/assets/components/SDK-React/createAll/override-sdk/designSystemExtension/AlertBanner/AlertBanner.tsx +47 -0
  113. package/tests/assets/components/SDK-React/createAll/override-sdk/designSystemExtension/AlertBanner/index.tsx +1 -0
  114. package/tests/assets/components/SDK-React/createAll/override-sdk/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +5 -3
  115. package/tests/assets/components/SDK-React/createAll/override-sdk/designSystemExtension/RichTextEditor/RichTextEditor.tsx +121 -0
  116. package/tests/assets/components/SDK-React/createAll/override-sdk/designSystemExtension/RichTextEditor/index.tsx +1 -0
  117. package/tests/assets/components/SDK-React/createAll/override-sdk/field/AutoComplete/AutoComplete.tsx +29 -27
  118. package/tests/assets/components/SDK-React/createAll/override-sdk/field/Checkbox/Checkbox.tsx +10 -6
  119. package/tests/assets/components/SDK-React/createAll/override-sdk/field/Currency/Currency.tsx +16 -15
  120. package/tests/assets/components/SDK-React/createAll/override-sdk/field/Date/Date.tsx +16 -15
  121. package/tests/assets/components/SDK-React/createAll/override-sdk/field/DateTime/DateTime.tsx +19 -14
  122. package/tests/assets/components/SDK-React/createAll/override-sdk/field/Decimal/Decimal.tsx +18 -16
  123. package/tests/assets/components/SDK-React/createAll/override-sdk/field/Dropdown/Dropdown.tsx +17 -25
  124. package/tests/assets/components/SDK-React/createAll/override-sdk/field/Email/Email.tsx +11 -11
  125. package/tests/assets/components/SDK-React/createAll/override-sdk/field/Integer/Integer.tsx +9 -7
  126. package/tests/assets/components/SDK-React/createAll/override-sdk/field/Percentage/Percentage.tsx +9 -9
  127. package/tests/assets/components/SDK-React/createAll/override-sdk/field/Phone/Phone.tsx +13 -12
  128. package/tests/assets/components/SDK-React/createAll/override-sdk/field/RadioButtons/RadioButtons.tsx +16 -35
  129. package/tests/assets/components/SDK-React/createAll/override-sdk/field/RichText/RichText.tsx +95 -0
  130. package/tests/assets/components/SDK-React/createAll/override-sdk/field/RichText/index.tsx +1 -0
  131. package/tests/assets/components/SDK-React/createAll/override-sdk/field/ScalarList/ScalarList.tsx +25 -18
  132. package/tests/assets/components/SDK-React/createAll/override-sdk/field/SemanticLink/SemanticLink.tsx +19 -19
  133. package/tests/assets/components/SDK-React/createAll/override-sdk/field/TextArea/TextArea.tsx +8 -6
  134. package/tests/assets/components/SDK-React/createAll/override-sdk/field/TextInput/TextInput.tsx +8 -7
  135. package/tests/assets/components/SDK-React/createAll/override-sdk/field/Time/Time.tsx +16 -28
  136. package/tests/assets/components/SDK-React/createAll/override-sdk/field/URL/URL.tsx +10 -8
  137. package/tests/assets/components/SDK-React/createAll/override-sdk/field/UserReference/UserReference.tsx +29 -29
  138. package/tests/assets/components/SDK-React/createAll/override-sdk/infra/Assignment/Assignment.tsx +5 -2
  139. package/tests/assets/components/SDK-React/createAll/override-sdk/infra/AssignmentCard/AssignmentCard.tsx +4 -2
  140. package/tests/assets/components/SDK-React/createAll/override-sdk/infra/DeferLoad/DeferLoad.tsx +172 -0
  141. package/tests/assets/components/SDK-React/createAll/override-sdk/infra/DeferLoad/index.tsx +1 -0
  142. package/tests/assets/components/SDK-React/createAll/override-sdk/infra/MultiStep/MultiStep.tsx +4 -3
  143. package/tests/assets/components/SDK-React/createAll/override-sdk/infra/VerticalTabs/VerticalTabs.tsx +4 -1
  144. package/tests/assets/components/SDK-React/createAll/override-sdk/template/AppShell/AppShell.tsx +6 -4
  145. package/tests/assets/components/SDK-React/createAll/override-sdk/template/BannerPage/BannerPage.tsx +4 -1
  146. package/tests/assets/components/SDK-React/createAll/override-sdk/template/CaseSummary/CaseSummary.tsx +4 -1
  147. package/tests/assets/components/SDK-React/createAll/override-sdk/template/CaseView/CaseView.tsx +6 -3
  148. package/tests/assets/components/SDK-React/createAll/override-sdk/template/Confirmation/Confirmation.tsx +23 -44
  149. package/tests/assets/components/SDK-React/createAll/override-sdk/template/DataReference/DataReference.tsx +6 -2
  150. package/tests/assets/components/SDK-React/createAll/override-sdk/template/Details/Details.tsx +5 -1
  151. package/tests/assets/components/SDK-React/createAll/override-sdk/template/DetailsThreeColumn/DetailsThreeColumn.tsx +5 -1
  152. package/tests/assets/components/SDK-React/createAll/override-sdk/template/DetailsTwoColumn/DetailsTwoColumn.tsx +5 -1
  153. package/tests/assets/components/SDK-React/createAll/override-sdk/template/FieldGroupTemplate/FieldGroupTemplate.tsx +6 -2
  154. package/tests/assets/components/SDK-React/createAll/override-sdk/template/InlineDashboardPage/InlineDashboardPage.tsx +5 -1
  155. package/tests/assets/components/SDK-React/createAll/override-sdk/template/ListPage/ListPage.tsx +6 -3
  156. package/tests/assets/components/SDK-React/createAll/override-sdk/template/ListView/ListView.tsx +89 -93
  157. package/tests/assets/components/SDK-React/createAll/override-sdk/template/ListView/utils.ts +170 -23
  158. package/tests/assets/components/SDK-React/createAll/override-sdk/template/NarrowWideDetails/NarrowWideDetails.tsx +5 -1
  159. package/tests/assets/components/SDK-React/createAll/override-sdk/template/NarrowWidePage/NarrowWidePage.tsx +4 -1
  160. package/tests/assets/components/SDK-React/createAll/override-sdk/template/OneColumnPage/OneColumnPage.tsx +3 -1
  161. package/tests/assets/components/SDK-React/createAll/override-sdk/template/PromotedFilters/PromotedFilters.tsx +4 -1
  162. package/tests/assets/components/SDK-React/createAll/override-sdk/template/SimpleTable/SimpleTable.tsx +88 -5
  163. package/tests/assets/components/SDK-React/createAll/override-sdk/template/SimpleTableSelect/SimpleTableSelect.tsx +6 -4
  164. package/tests/assets/components/SDK-React/createAll/override-sdk/template/TwoColumnPage/TwoColumnPage.tsx +3 -2
  165. package/tests/assets/components/SDK-React/createAll/override-sdk/template/WideNarrowDetails/WideNarrowDetails.tsx +5 -1
  166. package/tests/assets/components/SDK-React/createAll/override-sdk/template/WideNarrowPage/WideNarrowPage.tsx +4 -3
  167. package/tests/assets/components/SDK-React/createAll/override-sdk/widget/Attachment/Attachment.tsx +5 -1
  168. package/tests/assets/components/SDK-React/createAll/override-sdk/widget/FileUtility/FileUtility.tsx +8 -2
  169. package/tests/assets/components/SDK-React/createAll/override-sdk/widget/QuickCreate/QuickCreate.tsx +4 -1
  170. package/tests/assets/components/SDK-React/createAll/override-sdk/widget/SummaryList/SummaryList.tsx +4 -1
  171. package/tests/assets/components/SDK-React/createAll/override-sdk/widget/ToDo/ToDo.tsx +53 -82
  172. package/tests/functional/localCreateBuildAllDeleteAllCustom.test.js +1 -1
  173. package/tests/functional/localCreateBuildDeleteCustom.test.js +14 -1
  174. package/tests/functional/localCreateBuildDeleteOverride.test.js +2 -1
  175. package/tests/functional/localCreatePublishAllDeleteAllCustom.test.js +5 -3
  176. package/tests/functional/localCreatePublishAllDeleteAllOverride.test.js +3 -5
  177. package/tests/functional/localCreatePublishDeleteCustom.test.js +4 -3
  178. package/tests/functional/localCreatePublishDeleteOverride.test.js +2 -5
@@ -1,10 +1,11 @@
1
1
 
2
2
  import React from 'react';
3
3
  import { TextField } from '@material-ui/core';
4
- import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
5
- import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
4
+ // import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
5
+ // import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
6
6
  // import PropTypes from 'prop-types';
7
7
  import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
8
+ import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
8
9
 
9
10
 
10
11
  import StyledPegaDxilMyIntegerWrapper from './styles';
@@ -36,6 +37,9 @@ export default function PegaDxilMyInteger(props: PegaDxilMyIntegerProps) {
36
37
  } = props;
37
38
  const helperTextToDisplay = validatemessage || helperText;
38
39
 
40
+ const TextInput = getComponentFromMap("TextInput");
41
+ const FieldValueList = getComponentFromMap("FieldValueList");
42
+
39
43
 
40
44
  if (displayMode === 'LABELS_LEFT') {
41
45
  return <FieldValueList name={hideLabel ? '' : label} value={value} />;
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
2
  import { TextField } from '@material-ui/core';
3
- import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
3
+ // import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
4
4
  // import PropTypes from 'prop-types';
5
5
  import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
6
+ import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
6
7
 
7
8
 
8
9
  import StyledPegaDxilMyParagraphWrapper from './styles';
@@ -36,6 +37,8 @@ export default function PegaDxilMyParagraph(props: PegaDxilMyParagraphProps) {
36
37
  } = props;
37
38
  const helperTextToDisplay = validatemessage || helperText;
38
39
 
40
+ const FieldValueList = getComponentFromMap("FieldValueList");
41
+
39
42
  const maxLength = fieldMetadata?.maxLength;
40
43
 
41
44
  let readOnlyProp = {};
@@ -2,10 +2,11 @@
2
2
  import React from 'react';
3
3
  import { makeStyles } from '@material-ui/core/styles';
4
4
  import { TextField } from '@material-ui/core';
5
- import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
6
- import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
5
+ // import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
6
+ // import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
7
7
  // import PropTypes from 'prop-types';
8
8
  import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
9
+ import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
9
10
 
10
11
 
11
12
  import StyledPegaDxilMyPercentageWrapper from './styles';
@@ -56,6 +57,8 @@ export default function PegaDxilMyPercentage(props: PegaDxilMyPercentageProps) {
56
57
  } = props;
57
58
  const helperTextToDisplay = validatemessage || helperText;
58
59
 
60
+ const TextInput = getComponentFromMap("TextInput");
61
+ const FieldValueList = getComponentFromMap("FieldValueList");
59
62
 
60
63
 
61
64
  if (displayMode === 'LABELS_LEFT') {
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
2
  import MuiPhoneNumber from 'material-ui-phone-number';
3
- import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
3
+ // import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
4
4
  // import PropTypes from 'prop-types';
5
5
  import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
6
+ import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
6
7
 
7
8
  import StyledPegaDxilMyPhoneWrapper from './styles';
8
9
 
@@ -33,6 +34,8 @@ export default function PegaDxilMyPhone(props: PegaDxilMyPhoneProps) {
33
34
  } = props;
34
35
  const helperTextToDisplay = validatemessage || helperText;
35
36
 
37
+ const FieldValueList = getComponentFromMap("FieldValueList");
38
+
36
39
  let testProp = {};
37
40
 
38
41
  testProp = {
@@ -4,8 +4,9 @@ import MenuItem from '@material-ui/core/MenuItem';
4
4
  import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
5
5
  import Utils from '@pega/react-sdk-components/lib/components/helpers/utils';
6
6
  // import PropTypes from 'prop-types';
7
- import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
7
+ // import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
8
8
  // import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
9
+ import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
9
10
 
10
11
 
11
12
  import StyledPegaDxilMyPicklistWrapper from './styles';
@@ -50,6 +51,8 @@ export default function PegaDxilMyPicklist(props /* : PegaDxilMyPicklistProps */
50
51
  const [options, setOptions] = useState<Array<IOption>>([]);
51
52
  const helperTextToDisplay = validatemessage || helperText;
52
53
 
54
+ const FieldValueList = getComponentFromMap("FieldValueList");
55
+
53
56
  const thePConn = getPConnect();
54
57
  const actionsApi = thePConn.getActionsApi();
55
58
  const propName = thePConn.getStateProps()["value"];
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
2
  import { TextField } from '@material-ui/core';
3
- import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
3
+ // import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
4
4
  // import PropTypes from 'prop-types';
5
5
  import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
6
+ import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
6
7
 
7
8
 
8
9
  import StyledPegaDxilMyTextWrapper from './styles';
@@ -36,6 +37,8 @@ export default function PegaDxilMyText(props: PegaDxilMyTextProps) {
36
37
  } = props;
37
38
  const helperTextToDisplay = validatemessage || helperText;
38
39
 
40
+ const FieldValueList = getComponentFromMap("FieldValueList");
41
+
39
42
  const maxLength = fieldMetadata?.maxLength;
40
43
 
41
44
  let readOnlyProp = {}; // Note: empty if NOT ReadOnly
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
2
  import { TextField } from '@material-ui/core';
3
- import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
3
+ /// import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
4
4
  // import PropTypes from 'prop-types';
5
5
  import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
6
+ import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
6
7
 
7
8
 
8
9
  import StyledPegaDxilMyTextInputWrapper from './styles';
@@ -37,6 +38,8 @@ export default function PegaDxilMyTextInput(props: PegaDxilMyTextInputProps) {
37
38
  } = props;
38
39
  const helperTextToDisplay = validatemessage || helperText;
39
40
 
41
+ const FieldValueList = getComponentFromMap("FieldValueList");
42
+
40
43
  const maxLength = fieldMetadata?.maxLength;
41
44
 
42
45
  let readOnlyProp = {}; // Note: empty if NOT ReadOnly
@@ -1,12 +1,13 @@
1
1
  import React from 'react';
2
- import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
2
+ // import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
3
3
  import { KeyboardTimePicker, MuiPickersUtilsProvider } from '@material-ui/pickers';
4
4
  import DayjsUtils from '@date-io/dayjs';
5
5
  import dayjs from 'dayjs';
6
6
  import AccessTimeIcon from '@material-ui/icons/AccessTime';
7
- import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
7
+ // import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
8
8
  // import PropTypes from 'prop-types';
9
9
  import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
10
+ import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
10
11
 
11
12
 
12
13
  import StyledPegaDxilMyTimeOfDayWrapper from './styles';
@@ -37,6 +38,9 @@ export default function PegaDxilMyTimeOfDay(props: PegaDxilMyTimeOfDayProps) {
37
38
  } = props;
38
39
  const helperTextToDisplay = validatemessage || helperText;
39
40
 
41
+ const TextInput = getComponentFromMap("TextInput");
42
+ const FieldValueList = getComponentFromMap("FieldValueList");
43
+
40
44
  if (displayMode === 'LABELS_LEFT') {
41
45
  return <FieldValueList name={hideLabel ? '' : label} value={value} />;
42
46
  }
@@ -1,10 +1,11 @@
1
1
 
2
2
  import React from 'react';
3
3
  import { TextField } from '@material-ui/core';
4
- import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
5
- import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
4
+ // import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
5
+ // import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
6
6
  // import PropTypes from 'prop-types';
7
7
  import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
8
+ import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
8
9
 
9
10
 
10
11
  import StyledPegaDxilMyUrlWrapper from './styles';
@@ -36,6 +37,9 @@ export default function PegaDxilMyUrl(props: PegaDxilMyUrlProps) {
36
37
  } = props;
37
38
  const helperTextToDisplay = validatemessage || helperText;
38
39
 
40
+ const TextInput = getComponentFromMap("TextInput");
41
+ const FieldValueList = getComponentFromMap("FieldValueList");
42
+
39
43
  if (displayMode === 'LABELS_LEFT') {
40
44
  return <FieldValueList name={hideLabel ? '' : label} value={value} />;
41
45
  }
@@ -1,9 +1,9 @@
1
1
  import React, { createElement } from "react";
2
2
  import Grid from "@material-ui/core/Grid";
3
- import FieldGroup from "@pega/react-sdk-components/lib/components/designSystemExtension/FieldGroup";
3
+ // import FieldGroup from "@pega/react-sdk-components/lib/components/designSystemExtension/FieldGroup";
4
4
  import createPConnectComponent from "@pega/react-sdk-components/lib/bridge/react_pconnect";
5
5
  // import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
6
-
6
+ import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
7
7
 
8
8
  import StyledPegaDxilMyDetailsWrapper from "./styles";
9
9
 
@@ -23,6 +23,8 @@ import StyledPegaDxilMyDetailsWrapper from "./styles";
23
23
  export default function PegaDxilMyDetails(props /* : PegaDxilMyDetailsProps */) {
24
24
  const { label = '', showLabel = true, getPConnect, showHighlightedData = false } = props;
25
25
 
26
+ const FieldGroup = getComponentFromMap("FieldGroup");
27
+
26
28
  // Get the inherited props from the parent to determine label settings
27
29
  const propsToUse = { label, showLabel, ...getPConnect().getInheritedProps() };
28
30
 
@@ -1,8 +1,12 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
  import { Grid } from "@material-ui/core";
4
3
  import { makeStyles } from '@material-ui/core/styles';
5
4
 
5
+ interface OneColumnProps{
6
+ // If any, enter additional props that only exist on this component
7
+ children: Array<any>
8
+ }
9
+
6
10
  const useStyles = makeStyles((/* theme */) => ({
7
11
  colStyles: {
8
12
  display: "grid",
@@ -12,7 +16,7 @@ const useStyles = makeStyles((/* theme */) => ({
12
16
  }));
13
17
 
14
18
 
15
- export default function OneColumn(props) {
19
+ export default function OneColumn(props: OneColumnProps) {
16
20
  const classes = useStyles();
17
21
 
18
22
  const { children} = props;
@@ -26,7 +30,4 @@ export default function OneColumn(props) {
26
30
  )
27
31
  }
28
32
 
29
- OneColumn.propTypes = {
30
- children: PropTypes.arrayOf(PropTypes.node).isRequired,
31
- // template: PropTypes.string.isRequired
32
- };
33
+
@@ -1,9 +1,9 @@
1
1
  import React, { createElement } from "react";
2
2
  import Grid from "@material-ui/core/Grid";
3
- import FieldGroup from "@pega/react-sdk-components/lib/components/designSystemExtension/FieldGroup";
3
+ // import FieldGroup from "@pega/react-sdk-components/lib/components/designSystemExtension/FieldGroup";
4
4
  import createPConnectComponent from "@pega/react-sdk-components/lib/bridge/react_pconnect";
5
5
  // import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
6
-
6
+ import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
7
7
 
8
8
  import StyledPegaDxilMyTwoColumnDetailsWrapper from "./styles";
9
9
 
@@ -24,6 +24,8 @@ import StyledPegaDxilMyTwoColumnDetailsWrapper from "./styles";
24
24
  export default function PegaDxilMyTwoColumnDetails(props /* : PegaDxilMyTwoColumnDetailsProps */) {
25
25
  const { label = '', showLabel = true, getPConnect, showHighlightedData = false } = props;
26
26
 
27
+ const FieldGroup = getComponentFromMap("FieldGroup");
28
+
27
29
  // Get the inherited props from the parent to determine label settings
28
30
  const propsToUse = { label, showLabel, ...getPConnect().getInheritedProps() };
29
31
 
@@ -0,0 +1,47 @@
1
+ import React from 'react';
2
+ import { Alert } from '@material-ui/lab';
3
+
4
+
5
+ // AlertBanner is one of the few components that does NOT have getPConnect.
6
+ // So, no need to extend PConnProps
7
+ interface AlertBannerProps {
8
+ // If any, enter additional props that only exist on Date here
9
+ id: string,
10
+ variant: string,
11
+ messages: Array<string>,
12
+ onDismiss?: any
13
+ }
14
+
15
+
16
+ const SEVERITY_MAP = {
17
+ urgent: 'error',
18
+ warning: 'warning',
19
+ success: 'success',
20
+ info: 'info'
21
+ };
22
+
23
+ export default function AlertBanner(props:AlertBannerProps) {
24
+ const { id, variant, messages, onDismiss } = props;
25
+ let additionalProps = {};
26
+
27
+ if (onDismiss) {
28
+ additionalProps = {
29
+ onClose: onDismiss
30
+ };
31
+ }
32
+
33
+ return (
34
+ <div id={id}>
35
+ {messages.map(message => (
36
+ <Alert
37
+ key={message}
38
+ variant='outlined'
39
+ severity={SEVERITY_MAP[variant]}
40
+ {...additionalProps}
41
+ >
42
+ {message}
43
+ </Alert>
44
+ ))}
45
+ </div>
46
+ );
47
+ }
@@ -1,11 +1,10 @@
1
1
  import React, { useState, useEffect } from 'react';
2
2
  import isDeepEqual from 'fast-deep-equal/react';
3
-
4
3
  import Grid from '@material-ui/core/Grid';
5
4
  import TextField from '@material-ui/core/TextField';
6
- import Operator from '@pega/react-sdk-components/lib/components/designSystemExtension/Operator';
7
5
  import { getDateFormatInfo } from '@pega/react-sdk-components/lib/components/helpers/date-format-utils';
8
6
  import { getCurrencyOptions } from '@pega/react-sdk-components/lib/components/field/Currency/currency-utils';
7
+ import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
9
8
 
10
9
  import './CaseSummaryFields.css';
11
10
 
@@ -21,7 +20,10 @@ interface CaseSummaryFieldsProps{
21
20
  }
22
21
 
23
22
 
24
- export default function CaseSummaryFields(props:CaseSummaryFieldsProps) {
23
+ export default function CaseSummaryFields(props: CaseSummaryFieldsProps) {
24
+ // Get emitted components from map (so we can get any override that may exist)
25
+ const Operator = getComponentFromMap("Operator");
26
+
25
27
  const { status, showStatus, theFields } = props;
26
28
 
27
29
  const [theFieldsToRender, setFieldsToRender] = useState([]);
@@ -0,0 +1,121 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { Editor } from '@tinymce/tinymce-react';
3
+ import { FormControl, FormHelperText, InputLabel, makeStyles } from '@material-ui/core';
4
+ import { useAfterInitialEffect, useConsolidatedRef, useUID } from '@pega/react-sdk-components/lib/hooks';
5
+
6
+ const useStyles = makeStyles((theme) => ({
7
+ fieldLabel: {
8
+ position: 'relative',
9
+ transform: 'translate(0, 0px) scale(1)',
10
+ marginBottom: '5px',
11
+ color: theme.palette.text.secondary
12
+ }
13
+ }));
14
+
15
+ interface RichTextEditorProps {
16
+ id?: string;
17
+ defaultValue: string;
18
+ label: string;
19
+ labelHidden: boolean;
20
+ info: string;
21
+ testId: string;
22
+ placeholder: string;
23
+ disabled: boolean;
24
+ required: boolean;
25
+ readOnly: boolean;
26
+ error: boolean;
27
+ onBlur: React.EventHandler<any>;
28
+ onChange: React.EventHandler<any>;
29
+ }
30
+
31
+ const RichTextEditor = forwardRef(function RichTextEditor(props: RichTextEditorProps, ref) {
32
+ const classes = useStyles();
33
+ const uid = useUID();
34
+ const { id = uid, defaultValue, label, labelHidden, info, testId, placeholder, disabled, required, readOnly, error, onBlur, onChange } = props;
35
+
36
+ const editorRef: any = useConsolidatedRef(ref);
37
+ let richTextComponent: any = null;
38
+
39
+ useAfterInitialEffect(() => {
40
+ editorRef?.current.mode.set(readOnly || disabled ? 'readonly' : 'design');
41
+ }, [readOnly, disabled]);
42
+
43
+ const filePickerCallback = (cb) => {
44
+ const input = document.createElement('input');
45
+ input.setAttribute('type', 'file');
46
+ input.setAttribute('accept', 'image/*');
47
+
48
+ input.addEventListener('change', (e: any) => {
49
+ const file = e.target.files[0];
50
+
51
+ const reader: any = new FileReader();
52
+ reader.addEventListener('load', () => {
53
+ /*
54
+ Note: Now we need to register the blob in TinyMCEs image blob
55
+ registry. In the next release this part hopefully won't be
56
+ necessary, as we are looking to handle it internally.
57
+ */
58
+ const blobId = `blobid${new Date().getTime()}`;
59
+ const blobCache = editorRef.current.editorUpload.blobCache;
60
+ const base64 = reader.result.split(',')[1];
61
+ const blobInfo = blobCache.create(blobId, file, base64);
62
+ blobCache.add(blobInfo);
63
+
64
+ /* call the callback and populate the Title field with the file name */
65
+ cb(blobInfo.blobUri(), { title: file.name });
66
+ });
67
+ reader.readAsDataURL(file);
68
+ });
69
+
70
+ input.click();
71
+ };
72
+
73
+ if (readOnly) {
74
+ const value = defaultValue || '--';
75
+ // eslint-disable-next-line react/no-danger
76
+ richTextComponent = <div key={id} id={id} className="readonly-richtext-editor" dangerouslySetInnerHTML={{ __html: value }} />;
77
+ } else {
78
+ richTextComponent = (
79
+ <Editor
80
+ tinymceScriptSrc="tinymce/tinymce.min.js"
81
+ onInit={(_evt, editor) => {
82
+ editorRef.current = editor;
83
+ }}
84
+ id={id}
85
+ initialValue={defaultValue}
86
+ disabled={disabled}
87
+ init={{
88
+ placeholder,
89
+ menubar: false,
90
+ statusbar: false,
91
+ min_height: 130,
92
+ plugins: ['lists', 'advlist', 'autolink', 'image', 'link', 'autoresize'],
93
+ autoresize_bottom_margin: 0,
94
+ toolbar: disabled ? false : 'blocks | bold italic strikethrough | bullist numlist outdent indent | link image',
95
+ toolbar_location: 'bottom',
96
+ content_style: 'body { font-family:Helvetica, Arial,sans-serif; font-size:14px }',
97
+ branding: false,
98
+ paste_data_images: true,
99
+ file_picker_types: 'image',
100
+ file_picker_callback: filePickerCallback
101
+ }}
102
+ onBlur={onBlur}
103
+ onEditorChange={onChange}
104
+ />
105
+ );
106
+ }
107
+
108
+ return (
109
+ <FormControl data-test-id={testId} error={error} required={required}>
110
+ {!labelHidden && (
111
+ <InputLabel id="demo-simple-select-error-label" className={classes.fieldLabel}>
112
+ {label}
113
+ </InputLabel>
114
+ )}
115
+ {richTextComponent}
116
+ {info && <FormHelperText>{info}</FormHelperText>}
117
+ </FormControl>
118
+ );
119
+ });
120
+
121
+ export default RichTextEditor;
@@ -1,12 +1,11 @@
1
1
  import React, { useEffect, useState } from 'react';
2
2
  import { TextField } from '@material-ui/core';
3
3
  import Autocomplete from '@material-ui/lab/Autocomplete';
4
- import Utils from '@pega/react-sdk-components/lib/components/helpers/utils';
5
- import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
6
4
  import isDeepEqual from 'fast-deep-equal/react';
5
+ import Utils from '@pega/react-sdk-components/lib/components/helpers/utils';
7
6
  import { getDataPage } from '@pega/react-sdk-components/lib/components/helpers/data_page';
8
7
  import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
9
- import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
8
+ import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
10
9
  import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
11
10
 
12
11
  interface IOption {
@@ -14,18 +13,18 @@ interface IOption {
14
13
  value: string;
15
14
  }
16
15
 
17
- const preProcessColumns = columnList => {
18
- return columnList.map(col => {
16
+ const preProcessColumns = (columnList) => {
17
+ return columnList.map((col) => {
19
18
  const tempColObj = { ...col };
20
19
  tempColObj.value = col.value && col.value.startsWith('.') ? col.value.substring(1) : col.value;
21
20
  return tempColObj;
22
21
  });
23
22
  };
24
23
 
25
- const getDisplayFieldsMetaData = columnList => {
26
- const displayColumns = columnList.filter(col => col.display === 'true');
24
+ const getDisplayFieldsMetaData = (columnList) => {
25
+ const displayColumns = columnList.filter((col) => col.display === 'true');
27
26
  const metaDataObj: any = { key: '', primary: '', secondary: [] };
28
- const keyCol = columnList.filter(col => col.key === 'true');
27
+ const keyCol = columnList.filter((col) => col.key === 'true');
29
28
  metaDataObj.key = keyCol.length > 0 ? keyCol[0].value : 'auto';
30
29
  for (let index = 0; index < displayColumns.length; index += 1) {
31
30
  if (displayColumns[index].primary === 'true') {
@@ -39,20 +38,23 @@ const getDisplayFieldsMetaData = columnList => {
39
38
 
40
39
  interface AutoCompleteProps extends PConnFieldProps {
41
40
  // If any, enter additional props that only exist on AutoComplete here'
42
- displayMode?: string,
43
- deferDatasource?: boolean,
44
- datasourceMetadata?: any,
45
- status?: string,
46
- onRecordChange?: any,
47
- additionalProps?: object,
48
- listType: string,
49
- parameters?: any,
50
- datasource: any,
51
- columns: Array<any>
41
+ displayMode?: string;
42
+ deferDatasource?: boolean;
43
+ datasourceMetadata?: any;
44
+ status?: string;
45
+ onRecordChange?: any;
46
+ additionalProps?: object;
47
+ listType: string;
48
+ parameters?: any;
49
+ datasource: any;
50
+ columns: Array<any>;
52
51
  }
53
52
 
53
+ export default function AutoComplete(props: AutoCompleteProps) {
54
+ // Get emitted components from map (so we can get any override that may exist)
55
+ const TextInput = getComponentFromMap('TextInput');
56
+ const FieldValueList = getComponentFromMap('FieldValueList');
54
57
 
55
- export default function AutoComplete(props:AutoCompleteProps) {
56
58
  const {
57
59
  getPConnect,
58
60
  label,
@@ -90,7 +92,7 @@ export default function AutoComplete(props:AutoCompleteProps) {
90
92
 
91
93
  const flattenParameters = (params = {}) => {
92
94
  const flatParams = {};
93
- Object.keys(params).forEach(key => {
95
+ Object.keys(params).forEach((key) => {
94
96
  const { name, value: theVal } = params[key];
95
97
  flatParams[name] = theVal;
96
98
  });
@@ -137,7 +139,7 @@ export default function AutoComplete(props:AutoCompleteProps) {
137
139
  getDataPage(datasource, parameters, context).then((results: any) => {
138
140
  const optionsData: Array<any> = [];
139
141
  const displayColumn = getDisplayFieldsMetaData(columns);
140
- results?.forEach(element => {
142
+ results?.forEach((element) => {
141
143
  const val = element[displayColumn.primary]?.toString();
142
144
  const obj = {
143
145
  key: element[displayColumn.key] || element.pyGUID,
@@ -155,11 +157,11 @@ export default function AutoComplete(props:AutoCompleteProps) {
155
157
  }
156
158
 
157
159
  if (displayMode === 'STACKED_LARGE_VAL') {
158
- return <FieldValueList name={hideLabel ? '' : label} value={value} variant='stacked' />;
160
+ return <FieldValueList name={hideLabel ? '' : label} value={value} variant="stacked" />;
159
161
  }
160
162
 
161
163
  if (value) {
162
- const index = options?.findIndex(element => element.key === value);
164
+ const index = options?.findIndex((element) => element.key === value);
163
165
  if (index > -1) {
164
166
  selectedValue = options[index].value;
165
167
  } else {
@@ -180,7 +182,7 @@ export default function AutoComplete(props:AutoCompleteProps) {
180
182
  };
181
183
 
182
184
  if (readOnly) {
183
- const theValAsString = options?.find(opt => opt.key === value)?.value;
185
+ const theValAsString = options?.find((opt) => opt.key === value)?.value;
184
186
  return <TextInput {...props} value={theValAsString} />;
185
187
  }
186
188
  // Need to use both getOptionLabel and getOptionSelected to map our
@@ -199,14 +201,14 @@ export default function AutoComplete(props:AutoCompleteProps) {
199
201
  value={selectedValue}
200
202
  inputValue={inputValue || selectedValue}
201
203
  onInputChange={handleInputValue}
202
- renderInput={params => (
204
+ renderInput={(params) => (
203
205
  <TextField
204
206
  {...params}
205
207
  fullWidth
206
- variant='outlined'
208
+ variant="outlined"
207
209
  helperText={helperTextToDisplay}
208
210
  placeholder={placeholder}
209
- size='small'
211
+ size="small"
210
212
  required={required}
211
213
  error={status === 'error'}
212
214
  label={label}