@pega/dx-component-builder-sdk 0.24.3 → 0.24.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 (549) hide show
  1. package/README.md +3 -3
  2. package/package.json +1 -1
  3. package/src/constants.js +74 -2
  4. package/src/tasks/create/templates/Constellation/field/Boolean/create-nonce.ts.mustache +5 -0
  5. package/src/tasks/create/templates/Constellation/field/Boolean/index.tsx.mustache +1 -0
  6. package/src/tasks/create/templates/Constellation/field/Date/create-nonce.ts.mustache +5 -0
  7. package/src/tasks/create/templates/Constellation/field/Date/index.tsx.mustache +1 -0
  8. package/src/tasks/create/templates/Constellation/field/DateTime/create-nonce.ts.mustache +5 -0
  9. package/src/tasks/create/templates/Constellation/field/DateTime/index.tsx.mustache +1 -0
  10. package/src/tasks/create/templates/Constellation/field/Decimal/create-nonce.ts.mustache +5 -0
  11. package/src/tasks/create/templates/Constellation/field/Decimal/index.tsx.mustache +1 -0
  12. package/src/tasks/create/templates/Constellation/field/Decimal-Currency/create-nonce.ts.mustache +5 -0
  13. package/src/tasks/create/templates/Constellation/field/Decimal-Currency/index.tsx.mustache +1 -0
  14. package/src/tasks/create/templates/Constellation/field/Decimal-Percentage/create-nonce.ts.mustache +5 -0
  15. package/src/tasks/create/templates/Constellation/field/Decimal-Percentage/index.tsx.mustache +1 -0
  16. package/src/tasks/create/templates/Constellation/field/Icon-Button-URL/create-nonce.ts.mustache +5 -0
  17. package/src/tasks/create/templates/Constellation/field/Icon-Button-URL/demo.stories.tsx.mustache +15 -10
  18. package/src/tasks/create/templates/Constellation/field/Icon-Button-URL/index.tsx.mustache +1 -0
  19. package/src/tasks/create/templates/Constellation/field/Integer/create-nonce.ts.mustache +5 -0
  20. package/src/tasks/create/templates/Constellation/field/Integer/index.tsx.mustache +1 -0
  21. package/src/tasks/create/templates/Constellation/field/Picklist/create-nonce.ts.mustache +5 -0
  22. package/src/tasks/create/templates/Constellation/field/Picklist/index.tsx.mustache +1 -0
  23. package/src/tasks/create/templates/Constellation/field/Picklist-Autocomplete/create-nonce.ts.mustache +5 -0
  24. package/src/tasks/create/templates/Constellation/field/Picklist-Autocomplete/index.tsx.mustache +1 -0
  25. package/src/tasks/create/templates/Constellation/field/Picklist-RadioButtons/create-nonce.ts.mustache +5 -0
  26. package/src/tasks/create/templates/Constellation/field/Picklist-RadioButtons/index.tsx.mustache +1 -0
  27. package/src/tasks/create/templates/Constellation/field/Text/create-nonce.ts.mustache +5 -0
  28. package/src/tasks/create/templates/Constellation/field/Text/index.tsx.mustache +1 -0
  29. package/src/tasks/create/templates/Constellation/field/Text-Email/create-nonce.ts.mustache +5 -0
  30. package/src/tasks/create/templates/Constellation/field/Text-Email/index.tsx.mustache +1 -0
  31. package/src/tasks/create/templates/Constellation/field/Text-Input/create-nonce.ts.mustache +5 -0
  32. package/src/tasks/create/templates/Constellation/field/Text-Input/index.tsx.mustache +1 -0
  33. package/src/tasks/create/templates/Constellation/field/Text-Paragraph/create-nonce.ts.mustache +5 -0
  34. package/src/tasks/create/templates/Constellation/field/Text-Paragraph/index.tsx.mustache +1 -0
  35. package/src/tasks/create/templates/Constellation/field/Text-Phone/create-nonce.ts.mustache +5 -0
  36. package/src/tasks/create/templates/Constellation/field/Text-Phone/index.tsx.mustache +1 -0
  37. package/src/tasks/create/templates/Constellation/field/Text-URL/create-nonce.ts.mustache +5 -0
  38. package/src/tasks/create/templates/Constellation/field/Text-URL/index.tsx.mustache +1 -0
  39. package/src/tasks/create/templates/Constellation/field/TimeOfDay/create-nonce.ts.mustache +5 -0
  40. package/src/tasks/create/templates/Constellation/field/TimeOfDay/index.tsx.mustache +1 -0
  41. package/src/tasks/create/templates/Constellation/template/DETAILS/create-nonce.ts.mustache +5 -0
  42. package/src/tasks/create/templates/Constellation/template/DETAILS/index.tsx.mustache +1 -0
  43. package/src/tasks/create/templates/Constellation/template/DETAILS-region/create-nonce.ts.mustache +5 -0
  44. package/src/tasks/create/templates/Constellation/template/DETAILS-region/index.tsx.mustache +1 -0
  45. package/src/tasks/create/templates/Constellation/template/FORM/create-nonce.ts.mustache +5 -0
  46. package/src/tasks/create/templates/Constellation/template/FORM/demo.stories.tsx.mustache +73 -8
  47. package/src/tasks/create/templates/Constellation/template/FORM/index.tsx.mustache +4 -1
  48. package/src/tasks/create/templates/Constellation/template/FORM-region/create-nonce.ts.mustache +5 -0
  49. package/src/tasks/create/templates/Constellation/template/FORM-region/demo.stories.tsx.mustache +95 -15
  50. package/src/tasks/create/templates/Constellation/template/FORM-region/index.tsx.mustache +2 -1
  51. package/src/tasks/create/templates/Constellation/template/PAGE/create-nonce.ts.mustache +5 -0
  52. package/src/tasks/create/templates/Constellation/template/PAGE/index.tsx.mustache +1 -0
  53. package/src/tasks/create/templates/Constellation/widget/CASE/create-nonce.ts.mustache +5 -0
  54. package/src/tasks/create/templates/Constellation/widget/CASE/demo.stories.tsx.mustache +22 -22
  55. package/src/tasks/create/templates/Constellation/widget/CASE/index.tsx.mustache +1 -0
  56. package/src/tasks/create/templates/Constellation/widget/PAGE/create-nonce.ts.mustache +5 -0
  57. package/src/tasks/create/templates/Constellation/widget/PAGE/demo.stories.tsx.mustache +15 -17
  58. package/src/tasks/create/templates/Constellation/widget/PAGE/index.tsx.mustache +1 -0
  59. package/src/tasks/create/templates/Constellation/widget/PAGE-CASE/create-nonce.ts.mustache +5 -0
  60. package/src/tasks/create/templates/Constellation/widget/PAGE-CASE/index.tsx.mustache +1 -0
  61. package/src/tasks/create/templates/SDK-Angular/field/Boolean/boolean.component.ts.mustache +1 -1
  62. package/src/tasks/create/templates/SDK-Angular/field/DateTime/date-time.component.html.mustache +5 -5
  63. package/src/tasks/create/templates/SDK-Angular/field/DateTime/date-time.component.ts.mustache +8 -39
  64. package/src/tasks/create/templates/SDK-Angular/field/Decimal/decimal.component.html.mustache +14 -4
  65. package/src/tasks/create/templates/SDK-Angular/field/Decimal/decimal.component.ts.mustache +42 -5
  66. package/src/tasks/create/templates/SDK-Angular/field/Decimal-Currency/config.json.mustache +166 -0
  67. package/src/tasks/create/templates/SDK-Angular/field/Decimal-Currency/decimal-currency.component.html.mustache +15 -6
  68. package/src/tasks/create/templates/SDK-Angular/field/Decimal-Currency/decimal-currency.component.scss.mustache +2 -2
  69. package/src/tasks/create/templates/SDK-Angular/field/Decimal-Currency/decimal-currency.component.ts.mustache +36 -18
  70. package/src/tasks/create/templates/SDK-Angular/field/Decimal-Percentage/decimal-percentage.component.html.mustache +15 -4
  71. package/src/tasks/create/templates/SDK-Angular/field/Decimal-Percentage/decimal-percentage.component.scss.mustache +18 -18
  72. package/src/tasks/create/templates/SDK-Angular/field/Decimal-Percentage/decimal-percentage.component.ts.mustache +29 -5
  73. package/src/tasks/create/templates/SDK-Angular/field/Icon-Button-URL/icon-button-url.component.ts.mustache +1 -1
  74. package/src/tasks/create/templates/SDK-Angular/widget/PAGE/demo.stories.tsx.mustache +22 -5
  75. package/src/tasks/create/templates/SDK-Angular/widget/PAGE/mock.ts.mustache +25 -0
  76. package/src/tasks/create/templates/SDK-Angular/widget/PAGE/page.component.html.mustache +10 -0
  77. package/src/tasks/create/templates/SDK-Angular/widget/PAGE/page.component.ts.mustache +93 -1
  78. package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/config.json.mustache +166 -0
  79. package/src/tasks/create/templates/SDK-React/field/Text-Phone/index.tsx.mustache +16 -7
  80. package/src/tasks/create/templates/SDK-React/template/DETAILS/mock.ts.mustache +18 -1
  81. package/src/tasks/create/templates/SDK-React/template/FORM/demo.stories.tsx.mustache +13 -0
  82. package/src/tasks/create/templates/SDK-React/widget/CASE/demo.stories.tsx.mustache +20 -20
  83. package/src/tasks/create/templates/SDK-React/widget/PAGE/demo.stories.tsx.mustache +45 -2
  84. package/src/tasks/create/templates/SDK-React/widget/PAGE/index.tsx.mustache +168 -3
  85. package/src/tasks/create/templates/SDK-React/widget/PAGE/mock.ts.mustache +25 -0
  86. package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/demo.stories.tsx.mustache +20 -20
  87. package/src/tasks/override/index.js +11 -1
  88. package/src/tasks/override-all/index.js +12 -9
  89. package/tests/assets/sdk-a/components/create/_components.md +6 -0
  90. package/tests/assets/sdk-a/components/create/custom-constellation/field/Pega_DXIL_MyTestText/create-nonce.ts +5 -0
  91. package/tests/assets/sdk-a/components/create/custom-constellation/field/Pega_DXIL_MyTestText/demo.stories.tsx +23 -9
  92. package/tests/assets/sdk-a/components/create/custom-constellation/field/Pega_DXIL_MyTestText/index.tsx +97 -24
  93. package/tests/assets/sdk-a/components/create/custom-constellation/field/Pega_DXIL_MyTestText/mock.ts +8 -1
  94. package/tests/assets/sdk-a/components/create/custom-constellation/field/Pega_DXIL_MyTestText/styles.ts +7 -14
  95. package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/banner/banner.component.html +28 -0
  96. package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/banner/banner.component.scss +64 -0
  97. package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/banner/banner.component.spec.ts +22 -0
  98. package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/banner/banner.component.ts +26 -0
  99. package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/material-case-summary/material-case-summary.component.html +5 -2
  100. package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/material-case-summary/material-case-summary.component.ts +3 -1
  101. package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/material-vertical-tabs/material-vertical-tabs.component.html +1 -1
  102. package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/operator/operator.component.ts +6 -4
  103. package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/wss-quick-create/wss-quick-create.component.html +13 -0
  104. package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/wss-quick-create/wss-quick-create.component.scss +43 -0
  105. package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/wss-quick-create/wss-quick-create.component.spec.ts +22 -0
  106. package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/wss-quick-create/wss-quick-create.component.ts +15 -0
  107. package/tests/assets/sdk-a/components/create/override-sdk/field/auto-complete/auto-complete.component.ts +1 -1
  108. package/tests/assets/sdk-a/components/create/override-sdk/field/cancel-alert/cancel-alert.component.ts +0 -2
  109. package/tests/assets/sdk-a/components/create/override-sdk/field/check-box/check-box.component.html +16 -15
  110. package/tests/assets/sdk-a/components/create/override-sdk/field/check-box/check-box.component.scss +14 -1
  111. package/tests/assets/sdk-a/components/create/override-sdk/field/check-box/check-box.component.ts +127 -44
  112. package/tests/assets/sdk-a/components/create/override-sdk/field/currency/currency.component.html +15 -6
  113. package/tests/assets/sdk-a/components/create/override-sdk/field/currency/currency.component.ts +36 -18
  114. package/tests/assets/sdk-a/components/create/override-sdk/field/date-time/date-time.component.html +5 -5
  115. package/tests/assets/sdk-a/components/create/override-sdk/field/date-time/date-time.component.ts +8 -39
  116. package/tests/assets/sdk-a/components/create/override-sdk/field/decimal/decimal.component.html +14 -4
  117. package/tests/assets/sdk-a/components/create/override-sdk/field/decimal/decimal.component.ts +42 -5
  118. package/tests/assets/sdk-a/components/create/override-sdk/field/dropdown/dropdown.component.ts +0 -3
  119. package/tests/assets/sdk-a/components/create/override-sdk/field/group/group.component.html +1 -1
  120. package/tests/assets/sdk-a/components/create/override-sdk/field/group/group.component.ts +4 -0
  121. package/tests/assets/sdk-a/components/create/override-sdk/field/percentage/percentage.component.html +15 -4
  122. package/tests/assets/sdk-a/components/create/override-sdk/field/percentage/percentage.component.ts +29 -5
  123. package/tests/assets/sdk-a/components/create/override-sdk/field/radio-buttons/radio-buttons.component.ts +0 -3
  124. package/tests/assets/sdk-a/components/create/override-sdk/field/rich-text/rich-text.component.html +1 -1
  125. package/tests/assets/sdk-a/components/create/override-sdk/field/scalar-list/scalar-list.component.ts +2 -1
  126. package/tests/assets/sdk-a/components/create/override-sdk/field/text-area/text-area.component.ts +0 -2
  127. package/tests/assets/sdk-a/components/create/override-sdk/field/time/time.component.html +1 -0
  128. package/tests/assets/sdk-a/components/create/override-sdk/field/time/time.component.ts +2 -0
  129. package/tests/assets/sdk-a/components/create/override-sdk/field/url/url.component.html +1 -0
  130. package/tests/assets/sdk-a/components/create/override-sdk/field/url/url.component.ts +2 -0
  131. package/tests/assets/sdk-a/components/create/override-sdk/field/user-reference/user-reference.component.html +50 -45
  132. package/tests/assets/sdk-a/components/create/override-sdk/field/user-reference/user-reference.component.ts +33 -15
  133. package/tests/assets/sdk-a/components/create/override-sdk/infra/assignment/assignment.component.ts +31 -7
  134. package/tests/assets/sdk-a/components/create/override-sdk/infra/dashboard-filter/dashboard-filter.component.html +35 -0
  135. package/tests/assets/sdk-a/components/create/override-sdk/infra/dashboard-filter/dashboard-filter.component.scss +14 -0
  136. package/tests/assets/sdk-a/components/create/override-sdk/infra/dashboard-filter/dashboard-filter.component.spec.ts +24 -0
  137. package/tests/assets/sdk-a/components/create/override-sdk/infra/dashboard-filter/dashboard-filter.component.ts +89 -0
  138. package/tests/assets/sdk-a/components/create/override-sdk/infra/defer-load/defer-load.component.ts +5 -8
  139. package/tests/assets/sdk-a/components/create/override-sdk/infra/flow-container/flow-container.component.html +40 -0
  140. package/tests/assets/sdk-a/components/create/override-sdk/infra/flow-container/flow-container.component.scss +1 -0
  141. package/tests/assets/sdk-a/components/create/override-sdk/infra/flow-container/flow-container.component.spec.ts +24 -0
  142. package/tests/assets/sdk-a/components/create/override-sdk/infra/flow-container/flow-container.component.ts +627 -0
  143. package/tests/assets/sdk-a/components/create/override-sdk/infra/flow-container/helpers.ts +79 -0
  144. package/tests/assets/sdk-a/components/create/override-sdk/infra/hybrid-view-container/hybrid-view-container.component.html +1 -0
  145. package/tests/assets/sdk-a/components/create/override-sdk/infra/hybrid-view-container/hybrid-view-container.component.scss +0 -0
  146. package/tests/assets/sdk-a/components/create/override-sdk/infra/hybrid-view-container/hybrid-view-container.component.spec.ts +24 -0
  147. package/tests/assets/sdk-a/components/create/override-sdk/infra/hybrid-view-container/hybrid-view-container.component.ts +24 -0
  148. package/tests/assets/sdk-a/components/create/override-sdk/infra/modal-view-container/modal-view-container.component.html +35 -0
  149. package/tests/assets/sdk-a/components/create/override-sdk/infra/modal-view-container/modal-view-container.component.scss +1 -0
  150. package/tests/assets/sdk-a/components/create/override-sdk/infra/modal-view-container/modal-view-container.component.spec.ts +24 -0
  151. package/tests/assets/sdk-a/components/create/override-sdk/infra/modal-view-container/modal-view-container.component.ts +393 -0
  152. package/tests/assets/sdk-a/components/create/override-sdk/infra/multi-step/multi-step.component.html +1 -1
  153. package/tests/assets/sdk-a/components/create/override-sdk/infra/multi-step/multi-step.component.scss +1 -0
  154. package/tests/assets/sdk-a/components/create/override-sdk/infra/navbar/navbar.component.html +4 -4
  155. package/tests/assets/sdk-a/components/create/override-sdk/infra/navbar/navbar.component.ts +6 -3
  156. package/tests/assets/sdk-a/components/create/override-sdk/infra/preview-view-container/preview-view-container.component.html +1 -0
  157. package/tests/assets/sdk-a/components/create/override-sdk/infra/preview-view-container/preview-view-container.component.scss +0 -0
  158. package/tests/assets/sdk-a/components/create/override-sdk/infra/preview-view-container/preview-view-container.component.spec.ts +24 -0
  159. package/tests/assets/sdk-a/components/create/override-sdk/infra/preview-view-container/preview-view-container.component.ts +35 -0
  160. package/tests/assets/sdk-a/components/create/override-sdk/infra/reference/reference.component.html +1 -0
  161. package/tests/assets/sdk-a/components/create/override-sdk/infra/reference/reference.component.scss +0 -0
  162. package/tests/assets/sdk-a/components/create/override-sdk/infra/reference/reference.component.ts +165 -0
  163. package/tests/assets/sdk-a/components/create/override-sdk/infra/root-container/root-container.component.html +36 -0
  164. package/tests/assets/sdk-a/components/create/override-sdk/infra/root-container/root-container.component.scss +18 -0
  165. package/tests/assets/sdk-a/components/create/override-sdk/infra/root-container/root-container.component.spec.ts +24 -0
  166. package/tests/assets/sdk-a/components/create/override-sdk/infra/root-container/root-container.component.ts +256 -0
  167. package/tests/assets/sdk-a/components/create/override-sdk/infra/view-container/view-container.component.html +31 -0
  168. package/tests/assets/sdk-a/components/create/override-sdk/infra/view-container/view-container.component.scss +1 -0
  169. package/tests/assets/sdk-a/components/create/override-sdk/infra/view-container/view-container.component.spec.ts +24 -0
  170. package/tests/assets/sdk-a/components/create/override-sdk/infra/view-container/view-container.component.ts +288 -0
  171. package/tests/assets/sdk-a/components/create/override-sdk/template/banner-page/banner-page.component.html +12 -0
  172. package/tests/assets/sdk-a/components/create/override-sdk/template/banner-page/banner-page.component.scss +0 -0
  173. package/tests/assets/sdk-a/components/create/override-sdk/template/banner-page/banner-page.component.spec.ts +22 -0
  174. package/tests/assets/sdk-a/components/create/override-sdk/template/banner-page/banner-page.component.ts +65 -0
  175. package/tests/assets/sdk-a/components/create/override-sdk/template/case-summary/case-summary.component.ts +37 -3
  176. package/tests/assets/sdk-a/components/create/override-sdk/template/case-view/case-view.component.html +3 -3
  177. package/tests/assets/sdk-a/components/create/override-sdk/template/case-view/case-view.component.scss +2 -0
  178. package/tests/assets/sdk-a/components/create/override-sdk/template/case-view/case-view.component.ts +0 -6
  179. package/tests/assets/sdk-a/components/create/override-sdk/template/data-reference/data-reference.component.ts +1 -3
  180. package/tests/assets/sdk-a/components/create/override-sdk/template/dynamic-tabs/config-ext.json +37 -0
  181. package/tests/assets/sdk-a/components/create/override-sdk/template/dynamic-tabs/dynamic-tabs.component.html +5 -0
  182. package/tests/assets/sdk-a/components/create/override-sdk/template/dynamic-tabs/dynamic-tabs.component.scss +0 -0
  183. package/tests/assets/sdk-a/components/create/override-sdk/template/dynamic-tabs/dynamic-tabs.component.spec.ts +22 -0
  184. package/tests/assets/sdk-a/components/create/override-sdk/template/dynamic-tabs/dynamic-tabs.component.ts +77 -0
  185. package/tests/assets/sdk-a/components/create/override-sdk/template/field-group-template/field-group-template.component.ts +4 -12
  186. package/tests/assets/sdk-a/components/create/override-sdk/template/field-value-list/field-value-list.component.html +7 -2
  187. package/tests/assets/sdk-a/components/create/override-sdk/template/field-value-list/field-value-list.component.ts +1 -0
  188. package/tests/assets/sdk-a/components/create/override-sdk/template/list-view/list-view.component.html +6 -6
  189. package/tests/assets/sdk-a/components/create/override-sdk/template/list-view/list-view.component.ts +35 -27
  190. package/tests/assets/sdk-a/components/create/override-sdk/template/list-view/listViewHelpers.ts +0 -1
  191. package/tests/assets/sdk-a/components/create/override-sdk/template/repeating-structures/repeating-structures.component.ts +1 -2
  192. package/tests/assets/sdk-a/components/create/override-sdk/template/simple-table/simple-table.component.ts +0 -2
  193. package/tests/assets/sdk-a/components/create/override-sdk/template/simple-table-manual/helpers.ts +1 -1
  194. package/tests/assets/sdk-a/components/create/override-sdk/template/simple-table-manual/simple-table-manual.component.html +1 -1
  195. package/tests/assets/sdk-a/components/create/override-sdk/template/simple-table-manual/simple-table-manual.component.ts +48 -16
  196. package/tests/assets/sdk-a/components/create/override-sdk/template/simple-table-select/simple-table-select.component.ts +2 -4
  197. package/tests/assets/sdk-a/components/create/override-sdk/template/wss-nav-bar/wss-nav-bar.component.html +32 -0
  198. package/tests/assets/sdk-a/components/create/override-sdk/template/wss-nav-bar/wss-nav-bar.component.scss +164 -0
  199. package/tests/assets/sdk-a/components/create/override-sdk/template/wss-nav-bar/wss-nav-bar.component.spec.ts +22 -0
  200. package/tests/assets/sdk-a/components/create/override-sdk/template/wss-nav-bar/wss-nav-bar.component.ts +173 -0
  201. package/tests/assets/sdk-a/components/create/override-sdk/widget/attachment/attachment.component.html +50 -26
  202. package/tests/assets/sdk-a/components/create/override-sdk/widget/attachment/attachment.component.scss +118 -0
  203. package/tests/assets/sdk-a/components/create/override-sdk/widget/attachment/attachment.component.ts +256 -501
  204. package/tests/assets/sdk-a/components/create/override-sdk/widget/case-history/case-history.component.ts +1 -2
  205. package/tests/assets/sdk-a/components/create/override-sdk/widget/feed-container/feed-container.component.ts +0 -4
  206. package/tests/assets/sdk-a/components/create/override-sdk/widget/file-utility/file-utility.component.html +2 -2
  207. package/tests/assets/sdk-a/components/create/override-sdk/widget/file-utility/file-utility.component.ts +13 -17
  208. package/tests/assets/sdk-a/components/create/override-sdk/widget/list-utility/list-utility.component.html +1 -1
  209. package/tests/assets/sdk-a/components/create/override-sdk/widget/quick-create/quick-create.component.html +1 -0
  210. package/tests/assets/sdk-a/components/create/override-sdk/widget/quick-create/quick-create.component.scss +0 -0
  211. package/tests/assets/sdk-a/components/create/override-sdk/widget/quick-create/quick-create.component.spec.ts +22 -0
  212. package/tests/assets/sdk-a/components/create/override-sdk/widget/quick-create/quick-create.component.ts +96 -0
  213. package/tests/assets/sdk-a/components/create/override-sdk/widget/todo/todo.component.html +4 -4
  214. package/tests/assets/sdk-a/components/create/override-sdk/widget/todo/todo.component.ts +6 -5
  215. package/tests/assets/sdk-a/components/createAll/_components.md +6 -0
  216. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/Boolean.ts +35 -0
  217. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/create-nonce.ts +5 -0
  218. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/{demo.stories.jsx → demo.stories.tsx} +28 -20
  219. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/index.tsx +14 -49
  220. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/mock.ts +2 -1
  221. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/styles.ts +7 -14
  222. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyCurrency/create-nonce.ts +5 -0
  223. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyCurrency/demo.stories.tsx +28 -15
  224. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyCurrency/index.tsx +25 -76
  225. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyCurrency/mock.ts +11 -1
  226. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyCurrency/styles.ts +7 -14
  227. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/{DateFormatter.js → DateFormatter.ts} +6 -6
  228. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/FormattedText.tsx +20 -0
  229. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/create-nonce.ts +5 -0
  230. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/{date.js → date.ts} +3 -2
  231. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/demo.stories.tsx +31 -24
  232. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/index.tsx +20 -60
  233. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/mock.ts +2 -1
  234. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/styles.ts +7 -14
  235. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDateTime/create-nonce.ts +5 -0
  236. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDateTime/{date-time.js → date-time.ts} +12 -12
  237. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyTimeOfDay/time-of-day.js → Pega_DXIL_MyDateTime/date-utils.ts} +27 -26
  238. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDateTime/{date.js → date.ts} +1 -0
  239. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDateTime/demo.stories.tsx +32 -25
  240. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDateTime/index.tsx +14 -60
  241. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDateTime/mock.ts +3 -1
  242. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDateTime/styles.ts +7 -14
  243. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDecimal/create-nonce.ts +5 -0
  244. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDecimal/demo.stories.tsx +25 -13
  245. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDecimal/index.tsx +16 -68
  246. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDecimal/mock.ts +9 -1
  247. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDecimal/styles.ts +7 -14
  248. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyEmail/create-nonce.ts +5 -0
  249. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyEmail/demo.stories.tsx +24 -11
  250. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyEmail/index.tsx +11 -47
  251. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyEmail/mock.ts +8 -1
  252. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyEmail/styles.ts +7 -14
  253. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyIconButtonURL/PConnProps.d.ts +46 -0
  254. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyIconButtonURL/create-nonce.ts +5 -0
  255. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +104 -0
  256. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyIconButtonURL/index.tsx +202 -0
  257. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyIconButtonURL/mock.ts +5 -0
  258. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyIconButtonURL/styles.ts +8 -0
  259. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyInteger/create-nonce.ts +5 -0
  260. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyInteger/demo.stories.tsx +25 -12
  261. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyInteger/index.tsx +25 -88
  262. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyInteger/mock.ts +8 -2
  263. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyInteger/styles.ts +7 -14
  264. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyParagraph/create-nonce.ts +5 -0
  265. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyParagraph/demo.stories.tsx +24 -11
  266. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyParagraph/index.tsx +14 -49
  267. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyParagraph/mock.ts +9 -1
  268. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyParagraph/styles.ts +7 -14
  269. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPercentage/create-nonce.ts +5 -0
  270. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPercentage/demo.stories.tsx +25 -12
  271. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPercentage/index.tsx +15 -55
  272. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPercentage/mock.ts +9 -2
  273. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPercentage/styles.ts +7 -14
  274. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPhone/create-nonce.ts +5 -0
  275. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPhone/demo.stories.tsx +25 -11
  276. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPhone/index.tsx +15 -53
  277. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPhone/mock.ts +9 -1
  278. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPhone/styles.ts +7 -14
  279. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPicklist/create-nonce.ts +5 -0
  280. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPicklist/demo.stories.tsx +25 -12
  281. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPicklist/index.tsx +14 -62
  282. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPicklist/mock.ts +9 -1
  283. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyPicklist/styles.ts +7 -14
  284. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyRadioButtons/create-nonce.ts +5 -0
  285. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyRadioButtons/demo.stories.tsx +25 -13
  286. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyRadioButtons/index.tsx +12 -58
  287. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyRadioButtons/mock.ts +9 -1
  288. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyRadioButtons/styles.ts +7 -14
  289. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyRadioButtons/{textformat-utils.jsx → textformat-utils.tsx} +1 -0
  290. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/create-nonce.ts +5 -0
  291. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/{date.js → date.ts} +16 -37
  292. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/demo.stories.tsx +26 -14
  293. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/{embed-utils.js → embed-utils.ts} +2 -1
  294. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/index.tsx +27 -76
  295. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/mock.ts +8 -1
  296. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/{picklist-utils.js → picklist-utils.ts} +1 -0
  297. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/{repeat-constants.js → repeat-constants.ts} +1 -1
  298. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/{repeat-utils.js → repeat-utils.ts} +6 -12
  299. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/styles.ts +7 -14
  300. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/{textformat-utils.jsx → textformat-utils.tsx} +30 -10
  301. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/utils.ts +4 -1
  302. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyText/create-nonce.ts +5 -0
  303. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyText/demo.stories.tsx +23 -9
  304. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyText/index.tsx +97 -24
  305. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyText/mock.ts +8 -1
  306. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyText/styles.ts +7 -14
  307. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTextInput/StatusWork.tsx +3 -9
  308. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTextInput/create-nonce.ts +5 -0
  309. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTextInput/demo.stories.tsx +24 -11
  310. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTextInput/index.tsx +12 -51
  311. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTextInput/mock.ts +9 -1
  312. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTextInput/styles.ts +7 -14
  313. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTimeOfDay/create-nonce.ts +5 -0
  314. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTimeOfDay/demo.stories.tsx +28 -22
  315. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTimeOfDay/index.tsx +18 -53
  316. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTimeOfDay/mock.ts +2 -1
  317. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyTimeOfDay/styles.ts +7 -14
  318. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyDateTime/date-utils.js → Pega_DXIL_MyTimeOfDay/time-of-day.ts} +24 -23
  319. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyURL/create-nonce.ts +5 -0
  320. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyURL/demo.stories.tsx +24 -11
  321. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyURL/index.tsx +16 -71
  322. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyURL/mock.ts +9 -1
  323. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyURL/styles.ts +7 -14
  324. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyURL/{text-url.jsx → text-url.tsx} +4 -3
  325. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/Avatar.tsx +78 -0
  326. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/DetailsRender.tsx +52 -0
  327. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/HighlightRender.tsx +46 -0
  328. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/Operator.tsx +215 -0
  329. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/StatusWork.tsx +17 -19
  330. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/create-nonce.ts +5 -0
  331. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/demo.stories.tsx +94 -29
  332. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/index.tsx +51 -52
  333. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/mock.ts +78 -20
  334. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/styles.ts +21 -12
  335. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyForm/DetailsRender.tsx +59 -0
  336. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyForm/create-nonce.ts +5 -0
  337. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyForm/demo.stories.tsx +91 -16
  338. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyForm/index.tsx +34 -16
  339. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyForm/styles.ts +7 -14
  340. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyPage/GetNextWork.tsx +2 -1
  341. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyPage/create-nonce.ts +5 -0
  342. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyPage/demo.stories.tsx +14 -8
  343. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyPage/index.tsx +6 -16
  344. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyPage/localizations.json +4 -2
  345. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyPage/styles.ts +7 -14
  346. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyPage/{utils.js → utils.ts} +28 -14
  347. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/Avatar.tsx +78 -0
  348. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/DetailsRender.tsx +52 -0
  349. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/HighlightRender.tsx +46 -0
  350. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/Operator.tsx +215 -0
  351. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/StatusWork.tsx +17 -19
  352. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/create-nonce.ts +5 -0
  353. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +112 -34
  354. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/index.tsx +43 -53
  355. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/mock.ts +68 -10
  356. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/styles.ts +20 -12
  357. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/{utils.js → utils.ts} +15 -13
  358. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnForm/DetailsRender.tsx +59 -0
  359. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnForm/create-nonce.ts +5 -0
  360. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +112 -22
  361. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnForm/index.tsx +27 -13
  362. package/tests/assets/sdk-a/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnForm/styles.ts +7 -14
  363. package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyCaseWidget/create-nonce.ts +5 -0
  364. package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyCaseWidget/demo.stories.tsx +34 -28
  365. package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyCaseWidget/index.tsx +4 -10
  366. package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyCaseWidget/styles.ts +7 -14
  367. package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +3 -13
  368. package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageCaseWidget/Operator.tsx +5 -20
  369. package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageCaseWidget/create-nonce.ts +5 -0
  370. package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +15 -9
  371. package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageCaseWidget/index.tsx +25 -39
  372. package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageCaseWidget/styles.ts +7 -14
  373. package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageWidget/create-nonce.ts +5 -0
  374. package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageWidget/demo.stories.tsx +100 -16
  375. package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageWidget/index.tsx +70 -21
  376. package/tests/assets/sdk-a/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageWidget/styles.ts +7 -14
  377. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-boolean/pega-dxil-my-boolean.component.html +18 -17
  378. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-boolean/pega-dxil-my-boolean.component.ts +127 -44
  379. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-currency/config.json +166 -0
  380. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-currency/pega-dxil-my-currency.component.html +15 -6
  381. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-currency/pega-dxil-my-currency.component.scss +2 -2
  382. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-currency/pega-dxil-my-currency.component.ts +36 -18
  383. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-date-time/pega-dxil-my-date-time.component.html +5 -5
  384. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-date-time/pega-dxil-my-date-time.component.ts +8 -39
  385. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-decimal/pega-dxil-my-decimal.component.html +14 -4
  386. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-decimal/pega-dxil-my-decimal.component.ts +42 -5
  387. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-icon-button-url/config.json +64 -0
  388. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-icon-button-url/demo.stories.tsx +63 -0
  389. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-icon-button-url/mock.ts +37 -0
  390. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-icon-button-url/pega-dxil-my-icon-button-url.component.html +37 -0
  391. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-icon-button-url/pega-dxil-my-icon-button-url.component.scss +24 -0
  392. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-icon-button-url/pega-dxil-my-icon-button-url.component.spec.ts +26 -0
  393. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-icon-button-url/pega-dxil-my-icon-button-url.component.ts +195 -0
  394. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-percentage/pega-dxil-my-percentage.component.html +15 -4
  395. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-percentage/pega-dxil-my-percentage.component.scss +18 -18
  396. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-percentage/pega-dxil-my-percentage.component.ts +29 -5
  397. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-time-of-day/pega-dxil-my-time-of-day.component.html +1 -0
  398. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-time-of-day/pega-dxil-my-time-of-day.component.ts +2 -0
  399. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-url/pega-dxil-my-url.component.html +1 -0
  400. package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-url/pega-dxil-my-url.component.ts +2 -0
  401. package/tests/assets/sdk-a/components/createAll/custom-sdk/template/pega-dxil-my-two-column-form/pega-dxil-my-two-column-form.component.scss +1 -1
  402. package/tests/assets/sdk-a/components/createAll/custom-sdk/widget/pega-dxil-my-case-widget/pega-dxil-my-case-widget.component.ts +2 -2
  403. package/tests/assets/sdk-a/components/createAll/custom-sdk/widget/pega-dxil-my-page-case-widget/pega-dxil-my-page-case-widget.component.ts +7 -5
  404. package/tests/assets/sdk-a/components/createAll/custom-sdk/widget/pega-dxil-my-page-widget/demo.stories.tsx +22 -5
  405. package/tests/assets/sdk-a/components/createAll/custom-sdk/widget/pega-dxil-my-page-widget/mock.ts +25 -0
  406. package/tests/assets/sdk-a/components/createAll/custom-sdk/widget/pega-dxil-my-page-widget/pega-dxil-my-page-widget.component.html +11 -1
  407. package/tests/assets/sdk-a/components/createAll/custom-sdk/widget/pega-dxil-my-page-widget/pega-dxil-my-page-widget.component.ts +93 -1
  408. package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/banner/banner.component.html +28 -0
  409. package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/banner/banner.component.scss +64 -0
  410. package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/banner/banner.component.spec.ts +22 -0
  411. package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/banner/banner.component.ts +26 -0
  412. package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/material-case-summary/material-case-summary.component.html +5 -2
  413. package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/material-case-summary/material-case-summary.component.ts +3 -1
  414. package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/material-vertical-tabs/material-vertical-tabs.component.html +1 -1
  415. package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/operator/operator.component.ts +6 -4
  416. package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/wss-quick-create/wss-quick-create.component.html +13 -0
  417. package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/wss-quick-create/wss-quick-create.component.scss +43 -0
  418. package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/wss-quick-create/wss-quick-create.component.spec.ts +22 -0
  419. package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/wss-quick-create/wss-quick-create.component.ts +15 -0
  420. package/tests/assets/sdk-a/components/createAll/override-sdk/field/auto-complete/auto-complete.component.ts +1 -1
  421. package/tests/assets/sdk-a/components/createAll/override-sdk/field/cancel-alert/cancel-alert.component.ts +0 -2
  422. package/tests/assets/sdk-a/components/createAll/override-sdk/field/check-box/check-box.component.html +16 -15
  423. package/tests/assets/sdk-a/components/createAll/override-sdk/field/check-box/check-box.component.scss +14 -1
  424. package/tests/assets/sdk-a/components/createAll/override-sdk/field/check-box/check-box.component.ts +127 -44
  425. package/tests/assets/sdk-a/components/createAll/override-sdk/field/currency/currency.component.html +15 -6
  426. package/tests/assets/sdk-a/components/createAll/override-sdk/field/currency/currency.component.ts +36 -18
  427. package/tests/assets/sdk-a/components/createAll/override-sdk/field/date-time/date-time.component.html +5 -5
  428. package/tests/assets/sdk-a/components/createAll/override-sdk/field/date-time/date-time.component.ts +8 -39
  429. package/tests/assets/sdk-a/components/createAll/override-sdk/field/decimal/decimal.component.html +14 -4
  430. package/tests/assets/sdk-a/components/createAll/override-sdk/field/decimal/decimal.component.ts +42 -5
  431. package/tests/assets/sdk-a/components/createAll/override-sdk/field/dropdown/dropdown.component.ts +0 -3
  432. package/tests/assets/sdk-a/components/createAll/override-sdk/field/group/group.component.html +1 -1
  433. package/tests/assets/sdk-a/components/createAll/override-sdk/field/group/group.component.ts +4 -0
  434. package/tests/assets/sdk-a/components/createAll/override-sdk/field/percentage/percentage.component.html +15 -4
  435. package/tests/assets/sdk-a/components/createAll/override-sdk/field/percentage/percentage.component.ts +29 -5
  436. package/tests/assets/sdk-a/components/createAll/override-sdk/field/radio-buttons/radio-buttons.component.ts +0 -3
  437. package/tests/assets/sdk-a/components/createAll/override-sdk/field/rich-text/rich-text.component.html +1 -1
  438. package/tests/assets/sdk-a/components/createAll/override-sdk/field/scalar-list/scalar-list.component.ts +2 -1
  439. package/tests/assets/sdk-a/components/createAll/override-sdk/field/text-area/text-area.component.ts +0 -2
  440. package/tests/assets/sdk-a/components/createAll/override-sdk/field/time/time.component.html +1 -0
  441. package/tests/assets/sdk-a/components/createAll/override-sdk/field/time/time.component.ts +2 -0
  442. package/tests/assets/sdk-a/components/createAll/override-sdk/field/url/url.component.html +1 -0
  443. package/tests/assets/sdk-a/components/createAll/override-sdk/field/url/url.component.ts +2 -0
  444. package/tests/assets/sdk-a/components/createAll/override-sdk/field/user-reference/user-reference.component.html +50 -45
  445. package/tests/assets/sdk-a/components/createAll/override-sdk/field/user-reference/user-reference.component.ts +33 -15
  446. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/assignment/assignment.component.ts +31 -7
  447. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/dashboard-filter/dashboard-filter.component.html +35 -0
  448. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/dashboard-filter/dashboard-filter.component.scss +14 -0
  449. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/dashboard-filter/dashboard-filter.component.spec.ts +24 -0
  450. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/dashboard-filter/dashboard-filter.component.ts +89 -0
  451. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/defer-load/defer-load.component.ts +5 -8
  452. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/flow-container/flow-container.component.html +40 -0
  453. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/flow-container/flow-container.component.scss +1 -0
  454. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/flow-container/flow-container.component.spec.ts +24 -0
  455. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/flow-container/flow-container.component.ts +627 -0
  456. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/flow-container/helpers.ts +79 -0
  457. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/hybrid-view-container/hybrid-view-container.component.html +1 -0
  458. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/hybrid-view-container/hybrid-view-container.component.scss +0 -0
  459. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/hybrid-view-container/hybrid-view-container.component.spec.ts +24 -0
  460. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/hybrid-view-container/hybrid-view-container.component.ts +24 -0
  461. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/modal-view-container/modal-view-container.component.html +35 -0
  462. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/modal-view-container/modal-view-container.component.scss +1 -0
  463. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/modal-view-container/modal-view-container.component.spec.ts +24 -0
  464. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/modal-view-container/modal-view-container.component.ts +393 -0
  465. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/multi-step/multi-step.component.html +1 -1
  466. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/multi-step/multi-step.component.scss +1 -0
  467. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/navbar/navbar.component.html +4 -4
  468. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/navbar/navbar.component.ts +6 -3
  469. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/preview-view-container/preview-view-container.component.html +1 -0
  470. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/preview-view-container/preview-view-container.component.scss +0 -0
  471. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/preview-view-container/preview-view-container.component.spec.ts +24 -0
  472. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/preview-view-container/preview-view-container.component.ts +35 -0
  473. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/reference/reference.component.html +1 -0
  474. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/reference/reference.component.scss +0 -0
  475. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/reference/reference.component.ts +165 -0
  476. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/root-container/root-container.component.html +36 -0
  477. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/root-container/root-container.component.scss +18 -0
  478. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/root-container/root-container.component.spec.ts +24 -0
  479. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/root-container/root-container.component.ts +256 -0
  480. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/view-container/view-container.component.html +31 -0
  481. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/view-container/view-container.component.scss +1 -0
  482. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/view-container/view-container.component.spec.ts +24 -0
  483. package/tests/assets/sdk-a/components/createAll/override-sdk/infra/view-container/view-container.component.ts +288 -0
  484. package/tests/assets/sdk-a/components/createAll/override-sdk/template/banner-page/banner-page.component.html +12 -0
  485. package/tests/assets/sdk-a/components/createAll/override-sdk/template/banner-page/banner-page.component.scss +0 -0
  486. package/tests/assets/sdk-a/components/createAll/override-sdk/template/banner-page/banner-page.component.spec.ts +22 -0
  487. package/tests/assets/sdk-a/components/createAll/override-sdk/template/banner-page/banner-page.component.ts +65 -0
  488. package/tests/assets/sdk-a/components/createAll/override-sdk/template/case-summary/case-summary.component.ts +37 -3
  489. package/tests/assets/sdk-a/components/createAll/override-sdk/template/case-view/case-view.component.html +3 -3
  490. package/tests/assets/sdk-a/components/createAll/override-sdk/template/case-view/case-view.component.scss +2 -0
  491. package/tests/assets/sdk-a/components/createAll/override-sdk/template/case-view/case-view.component.ts +0 -6
  492. package/tests/assets/sdk-a/components/createAll/override-sdk/template/data-reference/data-reference.component.ts +1 -3
  493. package/tests/assets/sdk-a/components/createAll/override-sdk/template/dynamic-tabs/config-ext.json +37 -0
  494. package/tests/assets/sdk-a/components/createAll/override-sdk/template/dynamic-tabs/dynamic-tabs.component.html +5 -0
  495. package/tests/assets/sdk-a/components/createAll/override-sdk/template/dynamic-tabs/dynamic-tabs.component.scss +0 -0
  496. package/tests/assets/sdk-a/components/createAll/override-sdk/template/dynamic-tabs/dynamic-tabs.component.spec.ts +22 -0
  497. package/tests/assets/sdk-a/components/createAll/override-sdk/template/dynamic-tabs/dynamic-tabs.component.ts +77 -0
  498. package/tests/assets/sdk-a/components/createAll/override-sdk/template/field-group-template/field-group-template.component.ts +4 -12
  499. package/tests/assets/sdk-a/components/createAll/override-sdk/template/field-value-list/field-value-list.component.html +7 -2
  500. package/tests/assets/sdk-a/components/createAll/override-sdk/template/field-value-list/field-value-list.component.ts +1 -0
  501. package/tests/assets/sdk-a/components/createAll/override-sdk/template/list-view/list-view.component.html +6 -6
  502. package/tests/assets/sdk-a/components/createAll/override-sdk/template/list-view/list-view.component.ts +35 -27
  503. package/tests/assets/sdk-a/components/createAll/override-sdk/template/list-view/listViewHelpers.ts +0 -1
  504. package/tests/assets/sdk-a/components/createAll/override-sdk/template/repeating-structures/repeating-structures.component.ts +1 -2
  505. package/tests/assets/sdk-a/components/createAll/override-sdk/template/simple-table/simple-table.component.ts +0 -2
  506. package/tests/assets/sdk-a/components/createAll/override-sdk/template/simple-table-manual/helpers.ts +1 -1
  507. package/tests/assets/sdk-a/components/createAll/override-sdk/template/simple-table-manual/simple-table-manual.component.html +1 -1
  508. package/tests/assets/sdk-a/components/createAll/override-sdk/template/simple-table-manual/simple-table-manual.component.ts +48 -16
  509. package/tests/assets/sdk-a/components/createAll/override-sdk/template/simple-table-select/simple-table-select.component.ts +2 -4
  510. package/tests/assets/sdk-a/components/createAll/override-sdk/template/wss-nav-bar/wss-nav-bar.component.html +32 -0
  511. package/tests/assets/sdk-a/components/createAll/override-sdk/template/wss-nav-bar/wss-nav-bar.component.scss +164 -0
  512. package/tests/assets/sdk-a/components/createAll/override-sdk/template/wss-nav-bar/wss-nav-bar.component.spec.ts +22 -0
  513. package/tests/assets/sdk-a/components/createAll/override-sdk/template/wss-nav-bar/wss-nav-bar.component.ts +173 -0
  514. package/tests/assets/sdk-a/components/createAll/override-sdk/widget/attachment/attachment.component.html +50 -26
  515. package/tests/assets/sdk-a/components/createAll/override-sdk/widget/attachment/attachment.component.scss +118 -0
  516. package/tests/assets/sdk-a/components/createAll/override-sdk/widget/attachment/attachment.component.ts +256 -501
  517. package/tests/assets/sdk-a/components/createAll/override-sdk/widget/case-history/case-history.component.ts +1 -2
  518. package/tests/assets/sdk-a/components/createAll/override-sdk/widget/feed-container/feed-container.component.ts +0 -4
  519. package/tests/assets/sdk-a/components/createAll/override-sdk/widget/file-utility/file-utility.component.html +2 -2
  520. package/tests/assets/sdk-a/components/createAll/override-sdk/widget/file-utility/file-utility.component.ts +13 -17
  521. package/tests/assets/sdk-a/components/createAll/override-sdk/widget/list-utility/list-utility.component.html +1 -1
  522. package/tests/assets/sdk-a/components/createAll/override-sdk/widget/quick-create/quick-create.component.html +1 -0
  523. package/tests/assets/sdk-a/components/createAll/override-sdk/widget/quick-create/quick-create.component.scss +0 -0
  524. package/tests/assets/sdk-a/components/createAll/override-sdk/widget/quick-create/quick-create.component.spec.ts +22 -0
  525. package/tests/assets/sdk-a/components/createAll/override-sdk/widget/quick-create/quick-create.component.ts +96 -0
  526. package/tests/assets/sdk-a/components/createAll/override-sdk/widget/todo/todo.component.html +4 -4
  527. package/tests/assets/sdk-a/components/createAll/override-sdk/widget/todo/todo.component.ts +6 -5
  528. package/tests/assets/sdk-r/components/create/override-sdk/field/Phone/Phone.tsx +16 -7
  529. package/tests/assets/sdk-r/components/create/override-sdk/infra/Assignment/Assignment.tsx +26 -0
  530. package/tests/assets/sdk-r/components/create/override-sdk/template/ListView/ListView.tsx +16 -29
  531. package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyForm/demo.stories.tsx +73 -8
  532. package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyForm/index.tsx +3 -1
  533. package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +95 -15
  534. package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnForm/index.tsx +1 -1
  535. package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPhone/index.tsx +16 -7
  536. package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyDetails/mock.ts +18 -1
  537. package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyForm/demo.stories.tsx +13 -0
  538. package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyCaseWidget/demo.stories.tsx +20 -20
  539. package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +20 -20
  540. package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageWidget/demo.stories.tsx +45 -2
  541. package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageWidget/index.tsx +168 -3
  542. package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageWidget/mock.ts +25 -0
  543. package/tests/assets/sdk-r/components/createAll/override-sdk/field/Phone/Phone.tsx +16 -7
  544. package/tests/assets/sdk-r/components/createAll/override-sdk/infra/Assignment/Assignment.tsx +26 -0
  545. package/tests/assets/sdk-r/components/createAll/override-sdk/template/ListView/ListView.tsx +16 -29
  546. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/Boolean.js +0 -38
  547. package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/FormattedText.jsx +0 -41
  548. /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/{component-constants.js → component-constants.ts} +0 -0
  549. /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/{format-constants.js → format-constants.ts} +0 -0
@@ -29,7 +29,6 @@ export class CaseHistoryComponent implements OnInit {
29
29
  ngOnInit(): void {
30
30
  this.configProps$ = this.pConn$.getConfigProps();
31
31
 
32
- // @ts-ignore - second parameter pageReference for getValue method should be optional
33
32
  const caseID = this.pConn$.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);
34
33
  const dataViewName = 'D_pyWorkHistory';
35
34
  const context = this.pConn$.getContextName();
@@ -46,7 +45,7 @@ export class CaseHistoryComponent implements OnInit {
46
45
  this.fields$ = [
47
46
  { label: this.pConn$.getLocalizedValue('Date', '', ''), type: 'DateTime', fieldName: 'pxTimeCreated' },
48
47
  { label: this.pConn$.getLocalizedValue('Description', '', ''), type: 'TextInput', fieldName: 'pyMessageKey' },
49
- { label: this.pConn$.getLocalizedValue('User', '', ''), type: 'TextInput', fieldName: 'pyPerformer' }
48
+ { label: this.pConn$.getLocalizedValue('Performed by', '', ''), type: 'TextInput', fieldName: 'pyPerformer' }
50
49
  ];
51
50
 
52
51
  const tableDataResults = this.updateData(historyJSON.data.data, this.fields$);
@@ -387,7 +387,6 @@ export class FeedContainerComponent implements OnInit, OnDestroy {
387
387
  if (bUpdateSelf) {
388
388
  this.updateSelf();
389
389
  } else {
390
- // @ts-ignore - parameter “contextName” for getDataObject method should be optional
391
390
  const newPulseData = this.pConn$.getDataObject().pulse;
392
391
 
393
392
  if (!isEqual(newPulseData, this.pulseData)) {
@@ -395,7 +394,6 @@ export class FeedContainerComponent implements OnInit, OnDestroy {
395
394
  }
396
395
  }
397
396
 
398
- // @ts-ignore - parameter “contextName” for getDataObject method should be optional
399
397
  this.pulseData = this.pConn$.getDataObject().pulse;
400
398
  }
401
399
 
@@ -406,10 +404,8 @@ export class FeedContainerComponent implements OnInit, OnDestroy {
406
404
  getMessageData() {
407
405
  const messageIDs = (this.pConn$.getConfigProps() as any).messageIDs;
408
406
  const userName = (this.pConn$.getConfigProps() as any).currentUser;
409
- // @ts-ignore - second parameter pageReference for getValue method should be optional
410
407
  const imageKey = this.pConn$.getValue('OperatorID.pyImageInsKey');
411
408
 
412
- // @ts-ignore - parameter “contextName” for getDataObject method should be optional
413
409
  const oData: any = this.pConn$.getDataObject();
414
410
 
415
411
  if (messageIDs && messageIDs.length > 0) {
@@ -41,7 +41,7 @@
41
41
 
42
42
  <div *ngIf="bShowLinkModal$" class="psdk-dialog-background">
43
43
  <div class="psdk-modal-link-top">
44
- <h3>{{ pConn$.getLocalizedValue('Add local link', '', '') }}</h3>
44
+ <h3>{{ pConn$.getLocalizedValue('Add links', '', '') }}</h3>
45
45
  <div class="psdk-modal-link-entry">
46
46
  <div class="psdk-modal-body">
47
47
  <div class="psdk-modal-links-row">
@@ -61,7 +61,7 @@
61
61
  </div>
62
62
 
63
63
  <div class="psdk-modal-link-add">
64
- <button mat-raised-button color="primary" (click)="_addLink()">{{ pConn$.getLocalizedValue('Add Link', '', '') }}</button>
64
+ <button mat-raised-button color="primary" (click)="_addLink()">{{ pConn$.getLocalizedValue('Add link', '', '') }}</button>
65
65
  </div>
66
66
  </div>
67
67
 
@@ -64,18 +64,7 @@ export class FileUtilityComponent implements OnInit, OnDestroy {
64
64
 
65
65
  currentCaseID = '';
66
66
 
67
- addAttachmentsActions: any[] = [
68
- {
69
- text: 'Add files',
70
- id: 'addNewFiles',
71
- onClick: () => this.createModal('addLocalFile')
72
- },
73
- {
74
- text: 'Add links',
75
- id: 'addNewLinks',
76
- onClick: () => this.createModal('addLocalLink')
77
- }
78
- ];
67
+ addAttachmentsActions: any;
79
68
 
80
69
  constructor(
81
70
  private angularPConnect: AngularPConnectService,
@@ -93,7 +82,18 @@ export class FileUtilityComponent implements OnInit, OnDestroy {
93
82
  this.lu_icon$ = 'paper-clip';
94
83
 
95
84
  this.closeSvgIcon$ = this.utils.getImageSrc('times', this.utils.getSDKStaticContentUrl());
96
-
85
+ this.addAttachmentsActions = [
86
+ {
87
+ text: this.pConn$.getLocalizedValue('Add files', '', ''),
88
+ id: 'addNewFiles',
89
+ onClick: () => this.createModal('addLocalFile')
90
+ },
91
+ {
92
+ text: this.pConn$.getLocalizedValue('Add links', '', ''),
93
+ id: 'addNewLinks',
94
+ onClick: () => this.createModal('addLocalLink')
95
+ }
96
+ ];
97
97
  // const onViewAllCallback = () => this.onViewAll(this.arFullListAttachments);
98
98
 
99
99
  this.lu_onViewAllFunction = { onClick: this.onViewAll.bind(this) };
@@ -142,7 +142,6 @@ export class FileUtilityComponent implements OnInit, OnDestroy {
142
142
 
143
143
  onAttachFiles(files) {
144
144
  const attachmentUtils = PCore.getAttachmentUtils();
145
- // @ts-ignore - second parameter pageReference for getValue method should be optional
146
145
  const caseID = this.pConn$.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);
147
146
 
148
147
  if (files.length > 0) {
@@ -185,7 +184,6 @@ export class FileUtilityComponent implements OnInit, OnDestroy {
185
184
 
186
185
  onAttachLinks(links) {
187
186
  const attachmentUtils = PCore.getAttachmentUtils();
188
- // @ts-ignore - second parameter pageReference for getValue method should be optional
189
187
  const caseID = this.pConn$.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);
190
188
 
191
189
  if (links.length > 0) {
@@ -711,7 +709,6 @@ export class FileUtilityComponent implements OnInit, OnDestroy {
711
709
  }
712
710
 
713
711
  getCaseID() {
714
- // @ts-ignore - second parameter pageReference for getValue method should be optional
715
712
  return this.pConn$.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID) || '';
716
713
  }
717
714
 
@@ -760,7 +757,6 @@ export class FileUtilityComponent implements OnInit, OnDestroy {
760
757
  }
761
758
 
762
759
  caseHasChanged(): boolean {
763
- // @ts-ignore - second parameter pageReference for getValue method should be optional
764
760
  const caseID = this.pConn$.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);
765
761
  if (this.currentCaseID !== caseID) {
766
762
  this.currentCaseID = caseID;
@@ -8,7 +8,7 @@
8
8
  <div class="psdk-utility-count" id="attachments-count">{{ count$ }}</div>
9
9
  <div style="flex-grow: 1"></div>
10
10
  <div class="header-icon">
11
- <button mat-icon-button [matMenuTriggerFor]="utilityMenu">
11
+ <button id="file-menu" mat-icon-button [matMenuTriggerFor]="utilityMenu">
12
12
  <img class="psdk-utility-card-actions-svg-icon" src="{{ settingsSvgIcon$ }}" />
13
13
  </button>
14
14
  <mat-menu #utilityMenu="matMenu" overlapTrigger="false">
@@ -0,0 +1 @@
1
+ <component-mapper name="WssQuickCreate" [props]="{ heading$, actions$: cases$ }"></component-mapper>
@@ -0,0 +1,22 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { QuickCreateComponent } from './quick-create.component';
4
+
5
+ describe('QuickCreateComponent', () => {
6
+ let component: QuickCreateComponent;
7
+ let fixture: ComponentFixture<QuickCreateComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [QuickCreateComponent]
12
+ }).compileComponents();
13
+
14
+ fixture = TestBed.createComponent(QuickCreateComponent);
15
+ component = fixture.componentInstance;
16
+ fixture.detectChanges();
17
+ });
18
+
19
+ it('should create', () => {
20
+ expect(component).toBeTruthy();
21
+ });
22
+ });
@@ -0,0 +1,96 @@
1
+ import { Component, Input, OnChanges, OnInit, SimpleChanges, forwardRef } from '@angular/core';
2
+ import { Utils } from '@pega/angular-sdk-components';
3
+ import { CommonModule } from '@angular/common';
4
+ import { ComponentMapperComponent } from '@pega/angular-sdk-components';
5
+
6
+ interface QuickCreateProps {
7
+ // If any, enter additional props that only exist on this component
8
+ heading?: string;
9
+ showCaseIcons?: boolean;
10
+ classFilter?: any;
11
+ }
12
+
13
+ @Component({
14
+ selector: 'app-quick-create',
15
+ templateUrl: './quick-create.component.html',
16
+ styleUrls: ['./quick-create.component.scss'],
17
+ standalone: true,
18
+ imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
19
+ })
20
+ export class QuickCreateComponent implements OnInit, OnChanges {
21
+ @Input() pConn$: typeof PConnect;
22
+ @Input() formGroup$: any;
23
+
24
+ configProps$: QuickCreateProps;
25
+ arChildren$: any[];
26
+ heading$?: string;
27
+ showCaseIcons$?: boolean;
28
+ classFilter$: any;
29
+ cases$: any = [];
30
+
31
+ constructor(private utils: Utils) {}
32
+
33
+ createCase(className) {
34
+ this.pConn$
35
+ .getActionsApi()
36
+ .createWork(className, {} as any)
37
+ .catch(error => {
38
+ console.log('Error in case creation: ', error?.message);
39
+ });
40
+ }
41
+
42
+ initComponent() {
43
+ this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as QuickCreateProps;
44
+
45
+ this.heading$ = this.configProps$.heading;
46
+ this.showCaseIcons$ = this.configProps$.showCaseIcons;
47
+ this.classFilter$ = this.configProps$.classFilter;
48
+
49
+ const envInfo = PCore.getEnvironmentInfo();
50
+ if (
51
+ this.classFilter$ &&
52
+ envInfo.environmentInfoObject &&
53
+ envInfo.environmentInfoObject.pyCaseTypeList &&
54
+ envInfo.environmentInfoObject.pyCaseTypeList.length > 0
55
+ ) {
56
+ this.classFilter$.forEach(item => {
57
+ let icon = this.utils.getImageSrc('polaris-solid', this.utils.getSDKStaticContentUrl());
58
+ let label = '';
59
+ (envInfo.environmentInfoObject as any).pyCaseTypeList.forEach(casetype => {
60
+ if (casetype.pyWorkTypeImplementationClassName === item) {
61
+ icon = casetype.pxIcon && this.utils.getImageSrc(casetype?.pxIcon, this.utils.getSDKStaticContentUrl());
62
+ label = casetype.pyWorkTypeName ?? '';
63
+ }
64
+ });
65
+ if (label !== '') {
66
+ this.cases$.push({
67
+ label,
68
+ onClick: () => {
69
+ this.createCase(item);
70
+ },
71
+ ...(this.showCaseIcons$ && { icon })
72
+ });
73
+ }
74
+ });
75
+ }
76
+ }
77
+
78
+ ngOnInit() {
79
+ // console.log(`ngOnInit (no registerAndSubscribe!): Region`);
80
+ // this.updateSelf();
81
+
82
+ this.initComponent();
83
+ }
84
+
85
+ ngOnChanges(changes: SimpleChanges): void {
86
+ const { pConn$ } = changes;
87
+
88
+ if (pConn$.previousValue && pConn$.previousValue !== pConn$.currentValue) {
89
+ this.updateSelf();
90
+ }
91
+ }
92
+
93
+ updateSelf() {
94
+ this.initComponent();
95
+ }
96
+ }
@@ -15,7 +15,7 @@
15
15
  <div class="psdk-todo-assignment-title">{{ getAssignmentName(assignment) }}</div>
16
16
  <div class="psdk-todo-assignment-data">
17
17
  <div class="psdk-todo-assignment-task">
18
- Task in
18
+ {{ localizedVal('Task in', localeCategory) }}
19
19
  <button class="psdk-todo-id" style="cursor: pointer" (click)="clickGo(assignment)">
20
20
  {{ assignment.name }} {{ getID(assignment) }}
21
21
  </button>
@@ -26,7 +26,7 @@
26
26
  </div>
27
27
  </div>
28
28
  </div>
29
- <div class="psdk-todo-assignment-action">
29
+ <div class="psdk-todo-assignment-action" *ngIf="!isConfirm || canPerform">
30
30
  <button mat-flat-button color="primary" (click)="clickGo(assignment)">{{ localizedVal('Go', localeCategory) }}</button>
31
31
  </div>
32
32
  </div>
@@ -37,11 +37,11 @@
37
37
 
38
38
  <div *ngIf="assignmentCount$ > 3">
39
39
  <div *ngIf="bShowMore$; else showLess" class="psdk-todo-show-more">
40
- <button mat-stroked-button (click)="_showMore()">Show more</button>
40
+ <button mat-stroked-button (click)="_showMore()">{{ showMoreLocalizedValue === 'show_more' ? 'Show more' : showMoreLocalizedValue }}</button>
41
41
  </div>
42
42
  <ng-template #showLess>
43
43
  <div class="psdk-todo-show-more">
44
- <button mat-stroked-button (click)="_showLess()">Show less</button>
44
+ <button mat-stroked-button (click)="_showLess()">{{ showlessLocalizedValue === 'show_less' ? 'Show less' : showlessLocalizedValue }}</button>
45
45
  </div>
46
46
  </ng-template>
47
47
  </div>
@@ -48,6 +48,7 @@ export class TodoComponent implements OnInit, OnDestroy, OnChanges {
48
48
  localeCategory = 'Todo';
49
49
  showlessLocalizedValue = this.localizedVal('show_less', 'CosmosFields');
50
50
  showMoreLocalizedValue = this.localizedVal('show_more', 'CosmosFields');
51
+ canPerform: boolean;
51
52
 
52
53
  constructor(
53
54
  private psService: ProgressSpinnerService,
@@ -105,11 +106,9 @@ export class TodoComponent implements OnInit, OnDestroy, OnChanges {
105
106
  }
106
107
 
107
108
  updateWorkList(key) {
108
- (
109
- PCore.getDataApiUtils()
110
- // @ts-ignore - 2nd parameter "payload" and 3rd parameter "context" should be optional in getData method
111
- .getData(key) as Promise<any>
112
- )
109
+ PCore.getDataApiUtils()
110
+ // @ts-ignore - 2nd parameter "payload" and 3rd parameter "context" should be optional in getData method
111
+ .getData(key)
113
112
  .then(responseData => {
114
113
  const dataObject = {};
115
114
  dataObject[key] = {
@@ -151,6 +150,8 @@ export class TodoComponent implements OnInit, OnDestroy, OnChanges {
151
150
  }
152
151
  }
153
152
 
153
+ this.canPerform = this.arAssignments$?.[0]?.canPerform === 'true' || this.arAssignments$?.[0]?.canPerform === true;
154
+
154
155
  this.currentUser$ = PCore.getEnvironmentInfo().getOperatorName();
155
156
  this.currentUserInitials$ = this.utils.getInitials(this.currentUser$);
156
157
  }
@@ -1,7 +1,9 @@
1
1
  import MuiPhoneNumber from 'material-ui-phone-number';
2
+ import { useEffect, useState } from 'react';
2
3
 
3
4
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
4
5
  import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
6
+ import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
5
7
 
6
8
  interface PhoneProps extends PConnFieldProps {
7
9
  // If any, enter additional props that only exist on Phone here
@@ -12,6 +14,7 @@ export default function Phone(props: PhoneProps) {
12
14
  const FieldValueList = getComponentFromMap('FieldValueList');
13
15
 
14
16
  const {
17
+ getPConnect,
15
18
  label,
16
19
  required,
17
20
  disabled,
@@ -19,7 +22,6 @@ export default function Phone(props: PhoneProps) {
19
22
  validatemessage,
20
23
  status,
21
24
  onChange,
22
- onBlur,
23
25
  readOnly,
24
26
  testId,
25
27
  helperText,
@@ -27,6 +29,14 @@ export default function Phone(props: PhoneProps) {
27
29
  hideLabel,
28
30
  placeholder
29
31
  } = props;
32
+
33
+ const pConn = getPConnect();
34
+ const actions = pConn.getActionsApi();
35
+ const propName = (pConn.getStateProps() as any).value;
36
+
37
+ const [inputValue, setInputValue] = useState(value);
38
+ useEffect(() => setInputValue(value), [value]);
39
+
30
40
  const helperTextToDisplay = validatemessage || helperText;
31
41
 
32
42
  let testProp = {};
@@ -69,15 +79,14 @@ export default function Phone(props: PhoneProps) {
69
79
  }
70
80
 
71
81
  const handleChange = inputVal => {
72
- let phoneValue = inputVal && inputVal.replace(/\D+/g, '');
73
- phoneValue = `+${phoneValue}`;
74
- onChange({ value: phoneValue });
82
+ setInputValue(inputVal);
75
83
  };
76
84
 
77
85
  const handleBlur = event => {
78
86
  const phoneValue = event?.target?.value;
79
- event.target.value = `+${phoneValue && phoneValue.replace(/\D+/g, '')}`;
80
- onBlur(event);
87
+ let phoneNumber = phoneValue.split(' ').slice(1).join();
88
+ phoneNumber = phoneNumber ? `+${phoneValue && phoneValue.replace(/\D+/g, '')}` : '';
89
+ handleEvent(actions, 'changeNblur', propName, phoneNumber);
81
90
  };
82
91
 
83
92
  return (
@@ -94,7 +103,7 @@ export default function Phone(props: PhoneProps) {
94
103
  onBlur={!readOnly ? handleBlur : undefined}
95
104
  error={status === 'error'}
96
105
  label={label}
97
- value={value}
106
+ value={inputValue}
98
107
  InputProps={{ ...testProp }}
99
108
  />
100
109
  );
@@ -41,6 +41,8 @@ export default function Assignment(props: PropsWithChildren<AssignmentProps>) {
41
41
  const cancelAssignment = actionsAPI.cancelAssignment.bind(actionsAPI);
42
42
  const saveAssignment = actionsAPI.saveAssignment?.bind(actionsAPI);
43
43
  const cancelCreateStageAssignment = actionsAPI.cancelCreateStageAssignment.bind(actionsAPI);
44
+ const approveCase = actionsAPI.approveCase?.bind(actionsAPI);
45
+ const rejectCase = actionsAPI.rejectCase?.bind(actionsAPI);
44
46
  // const showPage = actionsAPI.showPage.bind(actionsAPI);
45
47
 
46
48
  const [showSnackbar, setShowSnackbar] = useState(false);
@@ -212,6 +214,18 @@ export default function Assignment(props: PropsWithChildren<AssignmentProps>) {
212
214
  break;
213
215
  }
214
216
 
217
+ case 'rejectCase': {
218
+ const rejectPromise = rejectCase(itemKey);
219
+
220
+ rejectPromise
221
+ .then(() => {})
222
+ .catch(() => {
223
+ showToast(`${localizedVal('Rejection failed!', localeCategory)}`);
224
+ });
225
+
226
+ break;
227
+ }
228
+
215
229
  default:
216
230
  break;
217
231
  }
@@ -230,6 +244,18 @@ export default function Assignment(props: PropsWithChildren<AssignmentProps>) {
230
244
  break;
231
245
  }
232
246
 
247
+ case 'approveCase': {
248
+ const approvePromise = approveCase(itemKey);
249
+
250
+ approvePromise
251
+ .then(() => {})
252
+ .catch(() => {
253
+ showToast(`${localizedVal('Approve failed!', localeCategory)}`);
254
+ });
255
+
256
+ break;
257
+ }
258
+
233
259
  default:
234
260
  break;
235
261
  }
@@ -65,7 +65,6 @@ interface ListViewProps extends PConnProps {
65
65
  const SELECTION_MODE = { SINGLE: 'single', MULTI: 'multi' };
66
66
 
67
67
  let myRows: any[];
68
- let myDisplayColumnList: any[];
69
68
 
70
69
  let menuColumnId = '';
71
70
  let menuColumnType = '';
@@ -119,6 +118,7 @@ export default function ListView(props: ListViewProps) {
119
118
  const rowID = compositeKeys && compositeKeys?.length === 1 ? compositeKeys[0] : defRowID;
120
119
 
121
120
  const [arRows, setRows] = useState<any[]>([]);
121
+ const [rowsData, setRowsData] = useState<any[]>([]);
122
122
  const [arColumns, setColumns] = useState<any[]>([]);
123
123
  const [response, setResponse] = useState<any[]>([]);
124
124
 
@@ -291,16 +291,6 @@ export default function ListView(props: ListViewProps) {
291
291
  });
292
292
  }
293
293
 
294
- function getMyColumnList(arCols: any[]): string[] {
295
- const myColList: string[] = [];
296
-
297
- arCols.forEach(col => {
298
- myColList.push(col.id);
299
- });
300
-
301
- return myColList;
302
- }
303
-
304
294
  /** Will return field from a filter expression */
305
295
  function getFieldFromFilter(filter, dateRange = false) {
306
296
  let fieldValue;
@@ -543,8 +533,8 @@ export default function ListView(props: ListViewProps) {
543
533
 
544
534
  // store globally, so can be searched, filtered, etc.
545
535
  myRows = usingDataResults;
546
- myDisplayColumnList = getMyColumnList(myColumns);
547
536
 
537
+ setRowsData(myRows);
548
538
  // At this point, if we have data ready to render and haven't been asked
549
539
  // to NOT call setRows and setColumns, call them
550
540
  if (bCallSetRowsColumns) {
@@ -604,24 +594,22 @@ export default function ListView(props: ListViewProps) {
604
594
  }, [listContext]);
605
595
 
606
596
  function searchFilter(value: string, rows: any[]) {
597
+ const cols = arColumns.map(ele => {
598
+ return ele.id;
599
+ });
600
+
607
601
  function filterArray(el: any): boolean {
608
- const bReturn = false;
609
- for (const key of Object.keys(el)) {
610
- // only search columsn that are displayed (pzInsKey and pxRefObjectClass are added and may or may not be displayed)
611
- if (myDisplayColumnList.includes(key)) {
612
- let myVal = el[key];
613
- if (myVal !== null) {
614
- if (typeof myVal !== 'string') {
615
- myVal = myVal.toString();
616
- }
617
- if (myVal.toLowerCase().indexOf(value.toLowerCase()) >= 0) {
618
- return true;
619
- }
602
+ return Object.keys(el).some(key => {
603
+ // only search columns that are displayed (pzInsKey and pxRefObjectClass are added and may or may not be displayed)
604
+ if (cols.includes(key)) {
605
+ const myVal = el[key];
606
+ if (myVal !== null && typeof myVal !== 'undefined') {
607
+ const strVal = String(myVal); // Ensure myVal is a string
608
+ return strVal.toLowerCase().includes(value.toLowerCase());
620
609
  }
621
610
  }
622
- }
623
-
624
- return bReturn;
611
+ return false;
612
+ });
625
613
  }
626
614
 
627
615
  rows = rows.filter(filterArray);
@@ -631,8 +619,7 @@ export default function ListView(props: ListViewProps) {
631
619
 
632
620
  function _onSearch(event: any) {
633
621
  const searchValue = event.target.value;
634
-
635
- const filteredRows = searchFilter(searchValue, myRows.slice());
622
+ const filteredRows = searchFilter(searchValue, rowsData?.slice());
636
623
 
637
624
  setRows(filteredRows);
638
625
  }
@@ -5,7 +5,7 @@ import { useState } from 'react';
5
5
  import type { Meta, StoryObj } from '@storybook/react';
6
6
 
7
7
  import PegaDxilMyForm from './index';
8
- import { DateInput, Input, FieldValueList, Text } from '@pega/cosmos-react-core';
8
+ import { DateInput, Input, FieldValueList, Text, EmptyState } from '@pega/cosmos-react-core';
9
9
  import { PhoneInput as CosmosPhone } from '@pega/cosmos-react-core';
10
10
  import { pyReviewRaw, regionChildrenResolved } from './mock';
11
11
 
@@ -22,7 +22,7 @@ export default meta;
22
22
  type Story = StoryObj<typeof PegaDxilMyForm>;
23
23
 
24
24
  const renderField = resolvedProps => {
25
- const { displayMode, value = '', label = '', key } = resolvedProps;
25
+ const { displayMode, value = '', label = '', key, readOnly } = resolvedProps;
26
26
 
27
27
  // eslint-disable-next-line react-hooks/rules-of-hooks
28
28
  const [inputValue, setInputValue] = useState(value);
@@ -128,6 +128,43 @@ const renderField = resolvedProps => {
128
128
  </Text>
129
129
  );
130
130
  }
131
+ if (readOnly) {
132
+ return (
133
+ <EmptyState
134
+ key={Math.random()}
135
+ getPConnect={() => {
136
+ return {
137
+ getChildren: () => {
138
+ return [
139
+ {
140
+ getPConnect: () => {
141
+ return {
142
+ getRawMetadata: () => {
143
+ return {};
144
+ },
145
+ resolveConfigProps: props => {
146
+ return props;
147
+ },
148
+ getConfigProps: () => {
149
+ return {
150
+ value: '',
151
+ label,
152
+ displayMode: 'LABELS_LEFT'
153
+ };
154
+ },
155
+ getComponent: () => {
156
+ return val;
157
+ }
158
+ };
159
+ }
160
+ }
161
+ ];
162
+ }
163
+ };
164
+ }}
165
+ />
166
+ );
167
+ }
131
168
  return (
132
169
  <FieldValueList
133
170
  variant={variant}
@@ -138,7 +175,10 @@ const renderField = resolvedProps => {
138
175
  };
139
176
 
140
177
  export const BasePegaDxilMyForm: Story = args => {
178
+ const { readOnly } = args;
179
+
141
180
  const props = {
181
+ readOnly,
142
182
  getPConnect: () => {
143
183
  return {
144
184
  getChildren: () => {
@@ -151,17 +191,41 @@ export const BasePegaDxilMyForm: Story = args => {
151
191
  // eslint-disable-next-line default-case
152
192
  switch (config.config.value) {
153
193
  case '@P .FirstName':
154
- return renderField(regionChildrenResolved[0]);
194
+ return renderField({
195
+ ...regionChildrenResolved[0],
196
+ displayMode: readOnly ? 'LABELS_LEFT' : '',
197
+ readOnly
198
+ });
155
199
  case '@P .MiddleName':
156
- return renderField(regionChildrenResolved[1]);
200
+ return renderField({
201
+ ...regionChildrenResolved[1],
202
+ displayMode: readOnly ? 'LABELS_LEFT' : '',
203
+ readOnly
204
+ });
157
205
  case '@P .LastName':
158
- return renderField(regionChildrenResolved[2]);
206
+ return renderField({
207
+ ...regionChildrenResolved[2],
208
+ displayMode: readOnly ? 'LABELS_LEFT' : '',
209
+ readOnly
210
+ });
159
211
  case '@P .Email':
160
- return renderField(regionChildrenResolved[3]);
212
+ return renderField({
213
+ ...regionChildrenResolved[3],
214
+ displayMode: readOnly ? 'LABELS_LEFT' : '',
215
+ readOnly
216
+ });
161
217
  case '@P .PhoneNumber':
162
- return renderField(regionChildrenResolved[4]);
218
+ return renderField({
219
+ ...regionChildrenResolved[4],
220
+ displayMode: readOnly ? 'LABELS_LEFT' : '',
221
+ readOnly
222
+ });
163
223
  case '@P .ServiceDate':
164
- return renderField(regionChildrenResolved[5]);
224
+ return renderField({
225
+ ...regionChildrenResolved[5],
226
+ displayMode: readOnly ? 'LABELS_LEFT' : '',
227
+ readOnly
228
+ });
165
229
  }
166
230
  }
167
231
  };
@@ -180,6 +244,7 @@ export const BasePegaDxilMyForm: Story = args => {
180
244
  };
181
245
 
182
246
  BasePegaDxilMyForm.args = {
247
+ readOnly: false,
183
248
  showLabel: true,
184
249
  label: 'Form template',
185
250
  NumCols: 1,