@pega/dx-component-builder-sdk 0.242.14 → 0.242.16

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 (195) hide show
  1. package/README.md +3 -3
  2. package/package.json +1 -1
  3. package/src/constants.js +39 -6
  4. package/src/tasks/create/index.js +7 -5
  5. package/src/tasks/create/templates/Constellation/field/Date/demo.stories.tsx.mustache +0 -16
  6. package/src/tasks/create/templates/Constellation/field/DateTime/demo.stories.tsx.mustache +0 -17
  7. package/src/tasks/create/templates/Constellation/field/Decimal/demo.stories.tsx.mustache +0 -1
  8. package/src/tasks/create/templates/Constellation/field/Decimal-Currency/demo.stories.tsx.mustache +0 -1
  9. package/src/tasks/create/templates/Constellation/field/Decimal-Percentage/demo.stories.tsx.mustache +0 -1
  10. package/src/tasks/create/templates/Constellation/field/Decimal-Percentage/mock.ts.mustache +1 -0
  11. package/src/tasks/create/templates/Constellation/field/Icon-Button-URL/demo.stories.tsx.mustache +9 -20
  12. package/src/tasks/create/templates/Constellation/field/Picklist/demo.stories.tsx.mustache +0 -1
  13. package/src/tasks/create/templates/Constellation/field/Picklist-Autocomplete/demo.stories.tsx.mustache +0 -1
  14. package/src/tasks/create/templates/Constellation/field/Picklist-RadioButtons/demo.stories.tsx.mustache +0 -1
  15. package/src/tasks/create/templates/Constellation/field/Picklist-RadioButtons/index.tsx.mustache +3 -5
  16. package/src/tasks/create/templates/Constellation/field/Text/demo.stories.tsx.mustache +0 -1
  17. package/src/tasks/create/templates/Constellation/field/Text-Email/demo.stories.tsx.mustache +0 -1
  18. package/src/tasks/create/templates/Constellation/field/Text-Email/mock.ts.mustache +1 -0
  19. package/src/tasks/create/templates/Constellation/field/Text-Input/demo.stories.tsx.mustache +0 -1
  20. package/src/tasks/create/templates/Constellation/field/Text-Paragraph/demo.stories.tsx.mustache +0 -1
  21. package/src/tasks/create/templates/Constellation/field/Text-Phone/demo.stories.tsx.mustache +1 -2
  22. package/src/tasks/create/templates/Constellation/field/Text-URL/demo.stories.tsx.mustache +0 -1
  23. package/src/tasks/create/templates/Constellation/field/TimeOfDay/demo.stories.tsx.mustache +0 -1
  24. package/src/tasks/create/templates/Constellation/template/DETAILS/demo.stories.tsx.mustache +10 -0
  25. package/src/tasks/create/templates/Constellation/template/PAGE/demo.stories.tsx.mustache +0 -13
  26. package/src/tasks/create/templates/Constellation/widget/CASE/demo.stories.tsx.mustache +10 -32
  27. package/src/tasks/create/templates/Constellation/widget/CASE/index.tsx.mustache +2 -2
  28. package/src/tasks/create/templates/Constellation/widget/PAGE/demo.stories.tsx.mustache +10 -21
  29. package/src/tasks/create/templates/Constellation/widget/PAGE-CASE/demo.stories.tsx.mustache +10 -22
  30. package/src/tasks/create/templates/SDK-React/field/Date/demo.stories.tsx.mustache +0 -21
  31. package/src/tasks/create/templates/SDK-React/field/Date/index.tsx.mustache +5 -1
  32. package/src/tasks/create/templates/SDK-React/field/DateTime/demo.stories.tsx.mustache +0 -21
  33. package/src/tasks/create/templates/SDK-React/field/DateTime/index.tsx.mustache +13 -5
  34. package/src/tasks/create/templates/SDK-React/field/Decimal/demo.stories.tsx.mustache +0 -14
  35. package/src/tasks/create/templates/SDK-React/field/Decimal/index.tsx.mustache +6 -1
  36. package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/demo.stories.tsx.mustache +0 -14
  37. package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/index.tsx.mustache +6 -1
  38. package/src/tasks/create/templates/SDK-React/field/Decimal-Percentage/demo.stories.tsx.mustache +0 -14
  39. package/src/tasks/create/templates/SDK-React/field/Decimal-Percentage/index.tsx.mustache +5 -1
  40. package/src/tasks/create/templates/SDK-React/field/Icon-Button-URL/demo.stories.tsx.mustache +2 -6
  41. package/src/tasks/create/templates/SDK-React/field/Icon-Button-URL/index.tsx.mustache +1 -1
  42. package/src/tasks/create/templates/SDK-React/field/Integer/demo.stories.tsx.mustache +3 -0
  43. package/src/tasks/create/templates/SDK-React/field/Picklist/index.tsx.mustache +25 -20
  44. package/src/tasks/create/templates/SDK-React/field/Picklist-RadioButtons/index.tsx.mustache +1 -4
  45. package/src/tasks/create/templates/SDK-React/field/Text/demo.stories.tsx.mustache +3 -0
  46. package/src/tasks/create/templates/SDK-React/field/Text-Email/demo.stories.tsx.mustache +3 -0
  47. package/src/tasks/create/templates/SDK-React/field/Text-Input/demo.stories.tsx.mustache +3 -0
  48. package/src/tasks/create/templates/SDK-React/field/Text-Paragraph/demo.stories.tsx.mustache +3 -0
  49. package/src/tasks/create/templates/SDK-React/field/Text-Phone/demo.stories.tsx.mustache +3 -0
  50. package/src/tasks/create/templates/SDK-React/field/Text-URL/demo.stories.tsx.mustache +3 -0
  51. package/src/tasks/create/templates/SDK-React/field/TimeOfDay/index.tsx.mustache +1 -1
  52. package/src/tasks/create/templates/SDK-React/template/DETAILS/demo.stories.tsx.mustache +8 -28
  53. package/src/tasks/create/templates/SDK-React/template/DETAILS/index.tsx.mustache +7 -2
  54. package/src/tasks/create/templates/SDK-React/template/DETAILS-region/demo.stories.tsx.mustache +8 -28
  55. package/src/tasks/create/templates/SDK-React/template/DETAILS-region/index.tsx.mustache +7 -2
  56. package/src/tasks/create/templates/SDK-React/template/FORM/demo.stories.tsx.mustache +10 -16
  57. package/src/tasks/create/templates/SDK-React/template/FORM-region/index.tsx.mustache +5 -5
  58. package/src/tasks/create/templates/SDK-React/widget/CASE/demo.stories.tsx.mustache +10 -20
  59. package/src/tasks/create/templates/SDK-React/widget/CASE/index.tsx.mustache +2 -1
  60. package/src/tasks/create/templates/SDK-React/widget/PAGE/demo.stories.tsx.mustache +9 -19
  61. package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/demo.stories.tsx.mustache +10 -20
  62. package/src/tasks/quarantine/index.js +4 -2
  63. package/tests/assets/sdk-a/components/create/override-sdk/field/dropdown/dropdown.component.ts +122 -7
  64. package/tests/assets/sdk-a/components/create/override-sdk/template/case-view/case-view.component.html +4 -4
  65. package/tests/assets/sdk-a/components/create/override-sdk/template/case-view/case-view.component.ts +7 -12
  66. package/tests/assets/sdk-a/components/create/override-sdk/template/default-form/default-form.component.ts +2 -2
  67. package/tests/assets/sdk-a/components/create/override-sdk/template/details/details.component.ts +5 -39
  68. package/tests/assets/sdk-a/components/create/override-sdk/template/details-narrow-wide/details-narrow-wide.component.ts +5 -38
  69. package/tests/assets/sdk-a/components/create/override-sdk/template/details-one-column/details-one-column.component.ts +5 -40
  70. package/tests/assets/sdk-a/components/create/override-sdk/template/details-sub-tabs/details-sub-tabs.component.html +1 -2
  71. package/tests/assets/sdk-a/components/create/override-sdk/template/details-sub-tabs/details-sub-tabs.component.ts +5 -37
  72. package/tests/assets/sdk-a/components/create/override-sdk/template/details-three-column/details-three-column.component.ts +5 -41
  73. package/tests/assets/sdk-a/components/create/override-sdk/template/details-two-column/details-two-column.component.ts +5 -41
  74. package/tests/assets/sdk-a/components/create/override-sdk/template/details-wide-narrow/details-wide-narrow.component.ts +5 -40
  75. package/tests/assets/sdk-a/components/create/override-sdk/template/one-column/one-column.component.ts +2 -2
  76. package/tests/assets/sdk-a/components/create/override-sdk/template/simple-table-manual/simple-table-manual.component.scss +1 -0
  77. package/tests/assets/sdk-a/components/create/override-sdk/template/three-column/three-column.component.ts +2 -2
  78. package/tests/assets/sdk-a/components/create/override-sdk/template/two-column/two-column.component.ts +2 -2
  79. package/tests/assets/sdk-a/components/create/override-sdk/template/wide-narrow-form/wide-narrow-form.component.ts +2 -2
  80. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyRadioButtons/index.tsx +3 -5
  81. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-picklist/pega-dxil-my-picklist.component.ts +29 -15
  82. package/tests/assets/sdk-a/components/createAll/custom-sdk/template/pega-dxil-my-details/pega-dxil-my-details.component.ts +5 -39
  83. package/tests/assets/sdk-a/components/createAll/custom-sdk/template/pega-dxil-my-form/demo.stories.tsx +1 -4
  84. package/tests/assets/sdk-a/components/createAll/custom-sdk/template/pega-dxil-my-form/pega-dxil-my-form.component.ts +2 -2
  85. package/tests/assets/sdk-a/components/createAll/custom-sdk/template/pega-dxil-my-two-column-details/pega-dxil-my-two-column-details.component.ts +6 -42
  86. package/tests/assets/sdk-a/components/createAll/custom-sdk/template/pega-dxil-my-two-column-form/pega-dxil-my-two-column-form.component.ts +2 -2
  87. package/tests/assets/sdk-a/components/createAll/override-sdk/field/dropdown/dropdown.component.ts +122 -7
  88. package/tests/assets/sdk-a/components/createAll/override-sdk/template/case-view/case-view.component.html +4 -4
  89. package/tests/assets/sdk-a/components/createAll/override-sdk/template/case-view/case-view.component.ts +7 -12
  90. package/tests/assets/sdk-a/components/createAll/override-sdk/template/default-form/default-form.component.ts +2 -2
  91. package/tests/assets/sdk-a/components/createAll/override-sdk/template/details/details.component.ts +5 -39
  92. package/tests/assets/sdk-a/components/createAll/override-sdk/template/details-narrow-wide/details-narrow-wide.component.ts +5 -38
  93. package/tests/assets/sdk-a/components/createAll/override-sdk/template/details-one-column/details-one-column.component.ts +5 -40
  94. package/tests/assets/sdk-a/components/createAll/override-sdk/template/details-sub-tabs/details-sub-tabs.component.html +1 -2
  95. package/tests/assets/sdk-a/components/createAll/override-sdk/template/details-sub-tabs/details-sub-tabs.component.ts +5 -37
  96. package/tests/assets/sdk-a/components/createAll/override-sdk/template/details-three-column/details-three-column.component.ts +5 -41
  97. package/tests/assets/sdk-a/components/createAll/override-sdk/template/details-two-column/details-two-column.component.ts +5 -41
  98. package/tests/assets/sdk-a/components/createAll/override-sdk/template/details-wide-narrow/details-wide-narrow.component.ts +5 -40
  99. package/tests/assets/sdk-a/components/createAll/override-sdk/template/one-column/one-column.component.ts +2 -2
  100. package/tests/assets/sdk-a/components/createAll/override-sdk/template/simple-table-manual/simple-table-manual.component.scss +1 -0
  101. package/tests/assets/sdk-a/components/createAll/override-sdk/template/three-column/three-column.component.ts +2 -2
  102. package/tests/assets/sdk-a/components/createAll/override-sdk/template/two-column/two-column.component.ts +2 -2
  103. package/tests/assets/sdk-a/components/createAll/override-sdk/template/wide-narrow-form/wide-narrow-form.component.ts +2 -2
  104. package/tests/assets/sdk-r/components/create/custom-sdk/field/Pega_DXIL_MyTestText/demo.stories.tsx +3 -0
  105. package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/FieldValueList/FieldValueList.tsx +2 -2
  106. package/tests/assets/sdk-r/components/create/override-sdk/field/Phone/Phone.tsx +5 -5
  107. package/tests/assets/sdk-r/components/create/override-sdk/infra/FlowContainer/FlowContainer.tsx +360 -0
  108. package/tests/assets/sdk-r/components/create/override-sdk/infra/FlowContainer/helpers.ts +138 -0
  109. package/tests/assets/sdk-r/components/create/override-sdk/infra/FlowContainer/index.tsx +1 -0
  110. package/tests/assets/sdk-r/components/create/override-sdk/infra/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.tsx +68 -0
  111. package/tests/assets/sdk-r/components/create/override-sdk/infra/ModalViewContainer/ListViewActionButtons/index.tsx +1 -0
  112. package/tests/assets/sdk-r/components/create/override-sdk/infra/ModalViewContainer/ModalViewContainer.tsx +345 -0
  113. package/tests/assets/sdk-r/components/create/override-sdk/infra/ModalViewContainer/index.tsx +1 -0
  114. package/tests/assets/sdk-r/components/create/override-sdk/infra/NavBar/NavBar.css +1 -0
  115. package/tests/assets/sdk-r/components/create/override-sdk/infra/Reference/Reference.tsx +52 -0
  116. package/tests/assets/sdk-r/components/create/override-sdk/infra/Reference/index.tsx +1 -0
  117. package/tests/assets/sdk-r/components/create/override-sdk/infra/Region/Region.tsx +17 -0
  118. package/tests/assets/sdk-r/components/create/override-sdk/infra/Region/index.tsx +1 -0
  119. package/tests/assets/sdk-r/components/create/override-sdk/infra/RootContainer/RootContainer.tsx +240 -0
  120. package/tests/assets/sdk-r/components/create/override-sdk/infra/RootContainer/index.tsx +1 -0
  121. package/tests/assets/sdk-r/components/create/override-sdk/infra/SimpleView/SimpleView.tsx +48 -0
  122. package/tests/assets/sdk-r/components/create/override-sdk/infra/SimpleView/helper.ts +125 -0
  123. package/tests/assets/sdk-r/components/create/override-sdk/infra/SimpleView/index.tsx +1 -0
  124. package/tests/assets/sdk-r/components/create/override-sdk/infra/ViewContainer/ViewContainer.tsx +201 -0
  125. package/tests/assets/sdk-r/components/create/override-sdk/infra/ViewContainer/index.tsx +1 -0
  126. package/tests/assets/sdk-r/components/create/override-sdk/template/DynamicTabs/DynamicTabs.tsx +80 -0
  127. package/tests/assets/sdk-r/components/create/override-sdk/template/DynamicTabs/config.json +36 -0
  128. package/tests/assets/sdk-r/components/create/override-sdk/template/DynamicTabs/index.tsx +1 -0
  129. package/tests/assets/sdk-r/components/create/override-sdk/template/ListView/ListView.tsx +29 -28
  130. package/tests/assets/sdk-r/components/create/override-sdk/template/SimpleTableManual/SimpleTableManual.tsx +13 -5
  131. package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyRadiobuttons/index.tsx +3 -5
  132. package/tests/assets/sdk-r/components/createAll/custom-constellation/widget/Pega_DXIL_MyCaseWidget/index.tsx +2 -2
  133. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyCurrency/index.tsx +6 -1
  134. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDate/demo.stories.tsx +3 -0
  135. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDate/index.tsx +5 -1
  136. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDateTime/demo.stories.tsx +3 -0
  137. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDateTime/index.tsx +13 -5
  138. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDecimal/index.tsx +6 -1
  139. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyEmail/demo.stories.tsx +3 -0
  140. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyIconButtonURL/index.tsx +1 -1
  141. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyInteger/demo.stories.tsx +3 -0
  142. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyParagraph/demo.stories.tsx +3 -0
  143. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPercentage/index.tsx +5 -1
  144. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPhone/demo.stories.tsx +3 -0
  145. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPhone/index.tsx +5 -5
  146. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPicklist/index.tsx +25 -20
  147. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyRadiobuttons/index.tsx +1 -4
  148. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyText/demo.stories.tsx +3 -0
  149. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyTextInput/demo.stories.tsx +3 -0
  150. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyTimeOfDay/index.tsx +1 -1
  151. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyURL/demo.stories.tsx +3 -0
  152. package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyDetails/index.tsx +7 -2
  153. package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnDetails/index.tsx +7 -2
  154. package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +28 -13
  155. package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnForm/index.tsx +5 -5
  156. package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyCaseWidget/index.tsx +2 -1
  157. package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/FieldValueList/FieldValueList.tsx +2 -2
  158. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Phone/Phone.tsx +5 -5
  159. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/FlowContainer/FlowContainer.tsx +360 -0
  160. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/FlowContainer/helpers.ts +138 -0
  161. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/FlowContainer/index.tsx +1 -0
  162. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.tsx +68 -0
  163. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/ModalViewContainer/ListViewActionButtons/index.tsx +1 -0
  164. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/ModalViewContainer/ModalViewContainer.tsx +345 -0
  165. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/ModalViewContainer/index.tsx +1 -0
  166. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/NavBar/NavBar.css +1 -0
  167. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/Reference/Reference.tsx +52 -0
  168. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/Reference/index.tsx +1 -0
  169. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/Region/Region.tsx +17 -0
  170. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/Region/index.tsx +1 -0
  171. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/RootContainer/RootContainer.tsx +240 -0
  172. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/RootContainer/index.tsx +1 -0
  173. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/SimpleView/SimpleView.tsx +48 -0
  174. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/SimpleView/helper.ts +125 -0
  175. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/SimpleView/index.tsx +1 -0
  176. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/ViewContainer/ViewContainer.tsx +201 -0
  177. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/ViewContainer/index.tsx +1 -0
  178. package/tests/assets/sdk-r/components/createAll/override-sdk/template/DynamicTabs/DynamicTabs.tsx +80 -0
  179. package/tests/assets/sdk-r/components/createAll/override-sdk/template/DynamicTabs/config.json +36 -0
  180. package/tests/assets/sdk-r/components/createAll/override-sdk/template/DynamicTabs/index.tsx +1 -0
  181. package/tests/assets/sdk-r/components/createAll/override-sdk/template/ListView/ListView.tsx +29 -28
  182. package/tests/assets/sdk-r/components/createAll/override-sdk/template/SimpleTableManual/SimpleTableManual.tsx +13 -5
  183. package/tests/functional/sdk-a/localCreateAllListDeleteAllCustom.test.js +5 -5
  184. package/tests/functional/sdk-a/localCreateAllListDeleteAllOverride.test.js +5 -5
  185. package/tests/functional/sdk-a/localCreateBuildAllDeleteAllCustom.test.js +2 -2
  186. package/tests/functional/sdk-a/localCreateBuildDeleteCustom.test.js +2 -2
  187. package/tests/functional/sdk-a/localCreateBuildDeleteOverride.test.js +2 -2
  188. package/tests/functional/sdk-a/localCreateListDeleteCustom.test.js +1 -1
  189. package/tests/functional/sdk-a/localCreateListDeleteOverride.test.js +1 -1
  190. package/tests/functional/sdk-a/localCreateMapAllClearMap.test.js +2 -2
  191. package/tests/functional/sdk-a/localCreatePublishAllDeleteAllCustom.test.js +2 -2
  192. package/tests/functional/sdk-a/localCreatePublishAllDeleteAllOverride.test.js +2 -2
  193. package/tests/functional/sdk-a/localCreatePublishDeleteCustom.test.js +2 -2
  194. package/tests/functional/sdk-a/localCreatePublishDeleteOverride.test.js +2 -2
  195. package/tests/functional/sdk-a/localCreateRenameDeleteCustom.test.js +1 -1
@@ -1,7 +1,6 @@
1
- import { Component, OnInit, Input, forwardRef, OnDestroy } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
3
- import { AngularPConnectData, AngularPConnectService } from '@pega/angular-sdk-components';
1
+ import { Component, forwardRef } from '@angular/core';
4
2
  import { ComponentMapperComponent } from '@pega/angular-sdk-components';
3
+ import { DetailsTemplateBase } from '@pega/angular-sdk-components';
5
4
 
6
5
  @Component({
7
6
  selector: 'app-details-wide-narrow',
@@ -10,50 +9,16 @@ import { ComponentMapperComponent } from '@pega/angular-sdk-components';
10
9
  standalone: true,
11
10
  imports: [forwardRef(() => ComponentMapperComponent)]
12
11
  })
13
- export class DetailsWideNarrowComponent implements OnInit, OnDestroy {
14
- constructor(private angularPConnect: AngularPConnectService) {}
15
-
16
- @Input() pConn$: typeof PConnect;
17
- @Input() formGroup$: FormGroup;
12
+ export class DetailsWideNarrowComponent extends DetailsTemplateBase {
13
+ override pConn$: typeof PConnect;
18
14
 
19
15
  highlightedDataArr: any[] = [];
20
16
  showHighlightedData: boolean;
21
17
  arFields$: any[] = [];
22
18
  arFields2$: any[] = [];
23
19
  propsToUse: any = {};
24
- // Used with AngularPConnect
25
- angularPConnectData: AngularPConnectData = {};
26
-
27
- ngOnInit(): void {
28
- // First thing in initialization is registering and subscribing to the AngularPConnect service
29
- this.angularPConnectData = this.angularPConnect.registerAndSubscribeComponent(this, this.onStateChange);
30
-
31
- // this.updateSelf();
32
- this.checkAndUpdate();
33
- }
34
-
35
- ngOnDestroy() {
36
- if (this.angularPConnectData.unsubscribeFn) {
37
- this.angularPConnectData.unsubscribeFn();
38
- }
39
- }
40
-
41
- onStateChange() {
42
- this.checkAndUpdate();
43
- }
44
-
45
- checkAndUpdate() {
46
- // Should always check the bridge to see if the component should
47
- // update itself (re-render)
48
- const bUpdateSelf = this.angularPConnect.shouldComponentUpdate(this);
49
-
50
- // ONLY call updateSelf when the component should update
51
- if (bUpdateSelf) {
52
- this.updateSelf();
53
- }
54
- }
55
20
 
56
- updateSelf() {
21
+ override updateSelf() {
57
22
  const rawMetaData: any = this.pConn$.resolveConfigProps(this.pConn$.getRawMetadata()?.config);
58
23
  this.showHighlightedData = rawMetaData?.showHighlightedData;
59
24
 
@@ -2,7 +2,7 @@ import { Component, OnInit, Input, forwardRef, OnChanges, SimpleChanges } from '
2
2
  import { CommonModule } from '@angular/common';
3
3
  import { FormGroup } from '@angular/forms';
4
4
  import { ComponentMapperComponent } from '@pega/angular-sdk-components';
5
- import { FormTemplateBaseComponent } from '@pega/angular-sdk-components';
5
+ import { FormTemplateBase } from '@pega/angular-sdk-components';
6
6
 
7
7
  @Component({
8
8
  selector: 'app-one-column',
@@ -11,7 +11,7 @@ import { FormTemplateBaseComponent } from '@pega/angular-sdk-components';
11
11
  standalone: true,
12
12
  imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
13
13
  })
14
- export class OneColumnComponent extends FormTemplateBaseComponent implements OnInit, OnChanges {
14
+ export class OneColumnComponent extends FormTemplateBase implements OnInit, OnChanges {
15
15
  @Input() override pConn$: typeof PConnect;
16
16
  @Input() formGroup$: FormGroup;
17
17
 
@@ -4,6 +4,7 @@
4
4
  width: 100%;
5
5
  margin-top: 0.5rem;
6
6
  margin-bottom: 0.5rem;
7
+ overflow-y: auto;
7
8
  }
8
9
 
9
10
  table {
@@ -2,7 +2,7 @@ import { Component, OnInit, Input, forwardRef, OnChanges, SimpleChanges } from '
2
2
  import { CommonModule } from '@angular/common';
3
3
  import { FormGroup } from '@angular/forms';
4
4
  import { ComponentMapperComponent } from '@pega/angular-sdk-components';
5
- import { FormTemplateBaseComponent } from '@pega/angular-sdk-components';
5
+ import { FormTemplateBase } from '@pega/angular-sdk-components';
6
6
 
7
7
  @Component({
8
8
  selector: 'app-three-column',
@@ -11,7 +11,7 @@ import { FormTemplateBaseComponent } from '@pega/angular-sdk-components';
11
11
  standalone: true,
12
12
  imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
13
13
  })
14
- export class ThreeColumnComponent extends FormTemplateBaseComponent implements OnInit, OnChanges {
14
+ export class ThreeColumnComponent extends FormTemplateBase implements OnInit, OnChanges {
15
15
  @Input() override pConn$: typeof PConnect;
16
16
  @Input() formGroup$: FormGroup;
17
17
 
@@ -2,7 +2,7 @@ import { Component, OnInit, Input, forwardRef, SimpleChanges, OnChanges } from '
2
2
  import { CommonModule } from '@angular/common';
3
3
  import { FormGroup } from '@angular/forms';
4
4
  import { ComponentMapperComponent } from '@pega/angular-sdk-components';
5
- import { FormTemplateBaseComponent } from '@pega/angular-sdk-components';
5
+ import { FormTemplateBase } from '@pega/angular-sdk-components';
6
6
 
7
7
  @Component({
8
8
  selector: 'app-two-column',
@@ -11,7 +11,7 @@ import { FormTemplateBaseComponent } from '@pega/angular-sdk-components';
11
11
  standalone: true,
12
12
  imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
13
13
  })
14
- export class TwoColumnComponent extends FormTemplateBaseComponent implements OnInit, OnChanges {
14
+ export class TwoColumnComponent extends FormTemplateBase implements OnInit, OnChanges {
15
15
  @Input() override pConn$: typeof PConnect;
16
16
  @Input() formGroup$: FormGroup;
17
17
 
@@ -2,7 +2,7 @@ import { Component, OnInit, Input, forwardRef, OnChanges, SimpleChanges } from '
2
2
  import { CommonModule } from '@angular/common';
3
3
  import { FormGroup } from '@angular/forms';
4
4
  import { ComponentMapperComponent } from '@pega/angular-sdk-components';
5
- import { FormTemplateBaseComponent } from '@pega/angular-sdk-components';
5
+ import { FormTemplateBase } from '@pega/angular-sdk-components';
6
6
 
7
7
  @Component({
8
8
  selector: 'app-wide-narrow-form',
@@ -11,7 +11,7 @@ import { FormTemplateBaseComponent } from '@pega/angular-sdk-components';
11
11
  standalone: true,
12
12
  imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
13
13
  })
14
- export class WideNarrowFormComponent extends FormTemplateBaseComponent implements OnInit, OnChanges {
14
+ export class WideNarrowFormComponent extends FormTemplateBase implements OnInit, OnChanges {
15
15
  @Input() override pConn$: typeof PConnect;
16
16
  @Input() formGroup$: FormGroup;
17
17
 
@@ -26,6 +26,9 @@ export const BasePegaDxilMyTestText: Story = args => {
26
26
  return {
27
27
  updateFieldValue: (propName, theValue) => {
28
28
  setValue(theValue);
29
+ },
30
+ triggerFieldChange: (propName, theValue) => {
31
+ setValue(theValue);
29
32
  }
30
33
  };
31
34
  },
@@ -51,7 +51,7 @@ export default function FieldValueList(props: FieldValueListProps) {
51
51
 
52
52
  function getGridItemLabel() {
53
53
  return (
54
- <Grid item xs={variant === 'stacked' ? 12 : 6} className={variant === 'stacked' ? classes.noPaddingBottom : ''}>
54
+ <Grid item xs={variant === 'stacked' ? 12 : 4} className={variant === 'stacked' ? classes.noPaddingBottom : ''}>
55
55
  <Typography variant='body2' component='span' className={`${classes.fieldLabel}`}>
56
56
  {name}
57
57
  </Typography>
@@ -63,7 +63,7 @@ export default function FieldValueList(props: FieldValueListProps) {
63
63
  const formattedValue = formatItemValue(value);
64
64
 
65
65
  return (
66
- <Grid item xs={variant === 'stacked' ? 12 : 6} className={variant === 'stacked' ? classes.noPaddingTop : ''}>
66
+ <Grid item xs={variant === 'stacked' ? 12 : 8} className={variant === 'stacked' ? classes.noPaddingTop : ''}>
67
67
  {isHtml ? (
68
68
  // eslint-disable-next-line react/no-danger
69
69
  <div dangerouslySetInnerHTML={{ __html: formattedValue }} />
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useState } from 'react';
2
- import MuiPhoneNumber from 'material-ui-phone-number';
2
+ import { MuiTelInput } from 'mui-tel-input';
3
3
 
4
4
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
5
5
  import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
@@ -57,12 +57,12 @@ export default function Phone(props: PhoneProps) {
57
57
  const disableDropdown = true;
58
58
  return (
59
59
  <div>
60
- <MuiPhoneNumber
60
+ <MuiTelInput
61
61
  fullWidth
62
62
  helperText={helperTextToDisplay}
63
63
  placeholder={placeholder ?? ''}
64
64
  size='small'
65
- defaultCountry='us'
65
+ defaultCountry='US'
66
66
  required={required}
67
67
  disabled={disabled}
68
68
  onChange={onChange}
@@ -91,13 +91,13 @@ export default function Phone(props: PhoneProps) {
91
91
  };
92
92
 
93
93
  return (
94
- <MuiPhoneNumber
94
+ <MuiTelInput
95
95
  fullWidth
96
96
  variant='outlined'
97
97
  helperText={helperTextToDisplay}
98
98
  placeholder={placeholder ?? ''}
99
99
  size='small'
100
- defaultCountry='us'
100
+ defaultCountry='US'
101
101
  required={required}
102
102
  disabled={disabled}
103
103
  onChange={handleChange}
@@ -0,0 +1,360 @@
1
+ /* eslint-disable no-nested-ternary */
2
+
3
+ import { useState, useEffect, useContext } from 'react';
4
+ import makeStyles from '@mui/styles/makeStyles';
5
+ import { Alert, Card, CardHeader, Avatar, Typography } from '@mui/material';
6
+
7
+ import StoreContext from '@pega/react-sdk-components/lib/bridge/Context/StoreContext';
8
+ import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
9
+ import { isContainerInitialized } from '@pega/react-sdk-components/lib/components/helpers';
10
+ import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
11
+ import { withSimpleViewContainerRenderer } from '../SimpleView/SimpleView';
12
+
13
+ import { addContainerItem, getToDoAssignments, showBanner, hasContainerItems } from './helpers';
14
+ import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
15
+ import { LocalizationProvider } from '@mui/x-date-pickers';
16
+ import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
17
+
18
+ interface FlowContainerProps extends PConnProps {
19
+ // If any, enter additional props that only exist on this component
20
+ pageMessages: any[];
21
+ rootViewElement: React.ReactNode;
22
+ getPConnectOfActiveContainerItem: Function;
23
+ assignmentNames: string[];
24
+ activeContainerItemID: string;
25
+ }
26
+
27
+ //
28
+ // WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with
29
+ // Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and
30
+ // is totally at your own risk.
31
+ //
32
+
33
+ const useStyles = makeStyles(theme => ({
34
+ root: {
35
+ paddingRight: theme.spacing(2),
36
+ paddingLeft: theme.spacing(2),
37
+ paddingTop: theme.spacing(1.5),
38
+ paddingBottom: theme.spacing(1.5),
39
+ marginRight: theme.spacing(1),
40
+ marginLeft: theme.spacing(1),
41
+ marginTop: theme.spacing(1),
42
+ marginBottom: theme.spacing(1)
43
+ },
44
+ alert: {
45
+ marginRight: theme.spacing(1),
46
+ marginLeft: theme.spacing(1)
47
+ },
48
+ avatar: {
49
+ backgroundColor: theme.palette.primary.light,
50
+ color: theme.palette.getContrastText(theme.palette.primary.light)
51
+ }
52
+ }));
53
+
54
+ export const FlowContainer = (props: FlowContainerProps) => {
55
+ // Get the proper implementation (local or Pega-provided) for these components that are emitted below
56
+ const Assignment = getComponentFromMap('Assignment');
57
+ const ToDo = getComponentFromMap('Todo'); // NOTE: ConstellationJS Engine uses "Todo" and not "ToDo"!!!
58
+ const AlertBanner = getComponentFromMap('AlertBanner');
59
+
60
+ const pCoreConstants = PCore.getConstants();
61
+ const PCoreVersion = PCore.getPCoreVersion();
62
+ const { TODO } = pCoreConstants;
63
+ const todo_headerText = 'To do';
64
+
65
+ const {
66
+ getPConnect: getPConnectOfFlowContainer,
67
+ pageMessages,
68
+ rootViewElement,
69
+ getPConnectOfActiveContainerItem,
70
+ assignmentNames,
71
+ activeContainerItemID: itemKey
72
+ } = props;
73
+
74
+ const { displayOnlyFA } = useContext<any>(StoreContext);
75
+ const pConnectOfFlowContainer = getPConnectOfFlowContainer();
76
+ const isInitialized = isContainerInitialized(pConnectOfFlowContainer);
77
+ const hasItems = isInitialized && hasContainerItems(pConnectOfFlowContainer);
78
+ const getPConnect = getPConnectOfActiveContainerItem || getPConnectOfFlowContainer;
79
+ const thePConn = getPConnect();
80
+ const containerName = assignmentNames && assignmentNames.length > 0 ? assignmentNames[0] : '';
81
+ // const [init, setInit] = useState(true);
82
+ // const [fcState, setFCState] = useState({ hasError: false });
83
+
84
+ const [todo_showTodo, setShowTodo] = useState(false);
85
+ const [todo_caseInfoID, setCaseInfoID] = useState('');
86
+ const [todo_showTodoList, setShowTodoList] = useState(false);
87
+ const [todo_datasource, setTodoDatasource] = useState({});
88
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
89
+ const [todo_context, setTodoContext] = useState('');
90
+
91
+ const [caseMessages, setCaseMessages] = useState('');
92
+ const [bHasCaseMessages, setHasCaseMessages] = useState(false);
93
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
94
+ const [checkSvg, setCheckSvg] = useState('');
95
+
96
+ const [buildName, setBuildName] = useState('');
97
+ const [bShowConfirm, setShowConfirm] = useState(false);
98
+ const localizedVal = PCore.getLocaleUtils().getLocaleValue;
99
+ const localeCategory = 'Messages';
100
+
101
+ const key = `${thePConn.getCaseInfo().getClassName()}!CASE!${thePConn.getCaseInfo().getName()}`.toUpperCase();
102
+ const classes = useStyles();
103
+
104
+ function getBuildName(): string {
105
+ const ourPConn = getPConnect();
106
+
107
+ // let { getPConnect, name } = this.pConn$.pConn;
108
+ const context = ourPConn.getContextName();
109
+ let viewContainerName = ourPConn.getContainerName();
110
+
111
+ if (!viewContainerName) viewContainerName = '';
112
+ return `${context.toUpperCase()}/${viewContainerName.toUpperCase()}`;
113
+ }
114
+
115
+ function getTodoVisibility() {
116
+ const caseViewMode = getPConnect().getValue('context_data.caseViewMode', ''); // 2nd arg empty string until typedefs properly allow optional
117
+ if (caseViewMode && caseViewMode === 'review') {
118
+ return true;
119
+ }
120
+ // eslint-disable-next-line sonarjs/prefer-single-boolean-return
121
+ if (caseViewMode && caseViewMode === 'perform') {
122
+ return false;
123
+ }
124
+
125
+ return true;
126
+ }
127
+
128
+ function initComponent() {
129
+ const ourPConn = getPConnect();
130
+
131
+ // debugging/investigation help
132
+ // console.log(`${ourPConn.getComponentName()}: children update for main draw`);
133
+
134
+ // const oData = ourPConn.getDataObject();
135
+
136
+ // const activeActionLabel = "";
137
+ // const child0_getPConnect = arNewChildren[0].getPConnect();
138
+
139
+ // this.templateName$ = this.configProps$["template"];
140
+
141
+ // debugger;
142
+ setShowTodo(getTodoVisibility());
143
+
144
+ ourPConn.isBoundToState();
145
+
146
+ // debugger;
147
+ setBuildName(getBuildName());
148
+ }
149
+
150
+ useEffect(() => {
151
+ // from WC SDK connectedCallback (mount)
152
+ initComponent();
153
+ }, []);
154
+
155
+ useEffect(() => {
156
+ // @ts-ignore - Property 'getMetadata' is private and only accessible within class 'C11nEnv'
157
+ if (isInitialized && pConnectOfFlowContainer.getMetadata().children && !hasItems) {
158
+ // ensuring not to add container items, if container already has items
159
+ // because during multi doc mode, we will have container items already in store
160
+ addContainerItem(pConnectOfFlowContainer);
161
+ }
162
+ }, [isInitialized, hasItems]);
163
+
164
+ function isCaseWideLocalAction() {
165
+ const ourPConn = getPConnect();
166
+
167
+ const actionID = ourPConn.getValue(pCoreConstants.CASE_INFO.ACTIVE_ACTION_ID, ''); // 2nd arg empty string until typedefs properly allow optional
168
+ const caseActions = ourPConn.getValue(pCoreConstants.CASE_INFO.AVAILABLEACTIONS, ''); // 2nd arg empty string until typedefs properly allow optional
169
+ let bCaseWideAction = false;
170
+ if (caseActions && actionID) {
171
+ const actionObj = caseActions.find(caseAction => caseAction.ID === actionID);
172
+ if (actionObj) {
173
+ bCaseWideAction = actionObj.type === 'Case';
174
+ }
175
+ }
176
+ return bCaseWideAction;
177
+ }
178
+
179
+ function hasChildCaseAssignments() {
180
+ const ourPConn = getPConnect();
181
+
182
+ const childCases = ourPConn.getValue(pCoreConstants.CASE_INFO.CHILD_ASSIGNMENTS, ''); // 2nd arg empty string until typedefs properly allow optional
183
+ // const allAssignments = [];
184
+ // eslint-disable-next-line sonarjs/prefer-single-boolean-return
185
+ if (childCases && childCases.length > 0) {
186
+ return true;
187
+ }
188
+ return false;
189
+ }
190
+
191
+ function hasAssignments() {
192
+ const ourPConn = getPConnect();
193
+
194
+ let bHasAssignments = false;
195
+ const assignmentsList: any[] = ourPConn.getValue(pCoreConstants.CASE_INFO.D_CASE_ASSIGNMENTS_RESULTS, ''); // 2nd arg empty string until typedefs properly allow optional
196
+ const isEmbedded = window.location.href.includes('embedded');
197
+ let bAssignmentsForThisOperator = false;
198
+ // 8.7 includes assignments in Assignments List that may be assigned to
199
+ // a different operator. So, see if there are any assignments for
200
+ // the current operator
201
+ if (PCoreVersion?.includes('8.7') || isEmbedded) {
202
+ const thisOperator = PCore.getEnvironmentInfo().getOperatorIdentifier();
203
+ for (const assignment of assignmentsList) {
204
+ if (assignment.assigneeInfo.ID === thisOperator) {
205
+ bAssignmentsForThisOperator = true;
206
+ }
207
+ }
208
+ } else {
209
+ bAssignmentsForThisOperator = true;
210
+ }
211
+ // Bail out if there isn't an assignmentsList
212
+ if (!assignmentsList) {
213
+ return bHasAssignments;
214
+ }
215
+
216
+ const bHasChildCaseAssignments = hasChildCaseAssignments();
217
+
218
+ if (bAssignmentsForThisOperator || bHasChildCaseAssignments || isCaseWideLocalAction()) {
219
+ bHasAssignments = true;
220
+ }
221
+
222
+ return bHasAssignments;
223
+ }
224
+
225
+ // From SDK-WC updateSelf - so do this in useEffect that's run only when the props change...
226
+ useEffect(() => {
227
+ setBuildName(getBuildName());
228
+
229
+ // routingInfo was added as component prop in populateAdditionalProps
230
+ // let routingInfo = this.getComponentProp("routingInfo");
231
+
232
+ let loadingInfo: any;
233
+ try {
234
+ loadingInfo = thePConn.getLoadingStatus(''); // 1st arg empty string until typedefs properly allow optional
235
+ } catch (ex) {
236
+ // eslint-disable-next-line no-console
237
+ console.error(`${thePConn.getComponentName()}: loadingInfo catch block`);
238
+ }
239
+
240
+ // let configProps = this.thePConn.resolveConfigProps(this.thePConn.getConfigProps());
241
+
242
+ if (!loadingInfo) {
243
+ // turn off spinner
244
+ // this.psService.sendMessage(false);
245
+ }
246
+
247
+ const caseViewMode = thePConn.getValue('context_data.caseViewMode', ''); // 2nd arg empty string until typedefs properly allow optional
248
+ const { CASE_INFO: CASE_CONSTS } = pCoreConstants;
249
+ if (caseViewMode && caseViewMode === 'review') {
250
+ setTimeout(() => {
251
+ // updated for 8.7 - 30-Mar-2022
252
+ const todoAssignments = getToDoAssignments(thePConn);
253
+ if (todoAssignments && todoAssignments.length > 0) {
254
+ setCaseInfoID(thePConn.getValue(CASE_CONSTS.CASE_INFO_ID, '')); // 2nd arg empty string until typedefs properly allow optional
255
+ setTodoDatasource({ source: todoAssignments });
256
+ }
257
+ setShowTodo(true);
258
+ setShowTodoList(false);
259
+ }, 100);
260
+ } else if (caseViewMode && caseViewMode === 'perform') {
261
+ // perform
262
+ // debugger;
263
+ setShowTodo(false);
264
+ }
265
+
266
+ // if have caseMessage show message and end
267
+ const theCaseMessages = localizedVal(thePConn.getValue('caseMessages', ''), localeCategory); // 2nd arg empty string until typedefs properly allow optional
268
+
269
+ // caseMessages's behavior has changed in 24.2, and hence it doesn't let Optional Action work.
270
+ // Changing the below condition for now. Was: (theCaseMessages || !hasAssignments())
271
+ if (!hasAssignments()) {
272
+ // Temp fix for 8.7 change: confirmationNote no longer coming through in caseMessages$.
273
+ // So, if we get here and caseMessages$ is empty, use default value in DX API response
274
+ setCaseMessages(theCaseMessages || localizedVal('Thank you! The next step in this case has been routed appropriately.', localeCategory));
275
+ setHasCaseMessages(true);
276
+ setShowConfirm(true);
277
+
278
+ // publish this "assignmentFinished" for mashup, need to get approved as a standard
279
+ // @ts-ignore - second parameter “payload” for publish method should be optional
280
+ PCore.getPubSubUtils().publish('assignmentFinished');
281
+
282
+ // debugger;
283
+ setCheckSvg(Utils.getImageSrc('check', Utils.getSDKStaticConentUrl()));
284
+ } else {
285
+ // debugger;
286
+ setHasCaseMessages(false);
287
+ setShowConfirm(false);
288
+ }
289
+ }, [props]);
290
+
291
+ const caseId = thePConn.getCaseSummary().content.pyID;
292
+ const urgency = getPConnect().getCaseSummary().assignments ? getPConnect().getCaseSummary().assignments?.[0].urgency : '';
293
+ const operatorInitials = Utils.getInitials(PCore.getEnvironmentInfo().getOperatorName());
294
+
295
+ const bShowBanner = showBanner(getPConnect);
296
+
297
+ const displayPageMessages = () => {
298
+ let hasBanner = false;
299
+ const messages = pageMessages ? pageMessages.map(msg => localizedVal(msg.message, 'Messages')) : pageMessages;
300
+ hasBanner = messages && messages.length > 0;
301
+ return hasBanner && <AlertBanner id='flowContainerBanner' variant='urgent' messages={messages} />;
302
+ };
303
+
304
+ return (
305
+ <div style={{ textAlign: 'left' }} id={buildName} className='psdk-flow-container-top'>
306
+ {!bShowConfirm &&
307
+ (!todo_showTodo ? (
308
+ !displayOnlyFA ? (
309
+ <Card className={`${classes.root} psdk-root`}>
310
+ <CardHeader
311
+ id='assignment-header'
312
+ title={<Typography variant='h6'>{localizedVal(containerName, undefined, key)}</Typography>}
313
+ subheader={`${localizedVal('Task in', 'Todo')} ${caseId} \u2022 ${localizedVal('Priority', 'Todo')} ${urgency}`}
314
+ avatar={<Avatar className={`${classes.avatar} psdk-avatar`}>{operatorInitials}</Avatar>}
315
+ />
316
+ {displayPageMessages()}
317
+ <LocalizationProvider dateAdapter={AdapterDayjs}>
318
+ <Assignment getPConnect={getPConnect} itemKey={itemKey}>
319
+ {rootViewElement}
320
+ </Assignment>
321
+ </LocalizationProvider>
322
+ </Card>
323
+ ) : (
324
+ <Card className={`${classes.root} psdk-root`}>
325
+ <Typography variant='h6'>{localizedVal(containerName, undefined, key)}</Typography>
326
+ {displayPageMessages()}
327
+ <LocalizationProvider dateAdapter={AdapterDayjs}>
328
+ <Assignment getPConnect={getPConnect} itemKey={itemKey}>
329
+ {rootViewElement}
330
+ </Assignment>
331
+ </LocalizationProvider>
332
+ </Card>
333
+ )
334
+ ) : (
335
+ <div>
336
+ <ToDo
337
+ key={Math.random()}
338
+ getPConnect={getPConnect}
339
+ caseInfoID={todo_caseInfoID}
340
+ datasource={todo_datasource}
341
+ showTodoList={todo_showTodoList}
342
+ headerText={todo_headerText}
343
+ type={TODO}
344
+ context={todo_context}
345
+ itemKey={itemKey}
346
+ isConfirm
347
+ />
348
+ </div>
349
+ ))}
350
+ {bHasCaseMessages && (
351
+ <div className={`${classes.alert} psdk-alert`}>
352
+ <Alert severity='success'>{caseMessages}</Alert>
353
+ </div>
354
+ )}
355
+ {bShowConfirm && bShowBanner && <div>{rootViewElement}</div>}
356
+ </div>
357
+ );
358
+ };
359
+
360
+ export default withSimpleViewContainerRenderer(FlowContainer);