@pega/sdk 0.0.1

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 (465) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +111 -0
  3. package/SECURITY.md +10 -0
  4. package/dist/index.js +753 -0
  5. package/package.json +41 -0
  6. package/templates/angular-sdk-reference/.github/AGENTS.md +23 -0
  7. package/templates/angular-sdk-reference/.github/copilot-instructions.md +40 -0
  8. package/templates/angular-sdk-reference/.github/skills/pega-sdk-component.md +48 -0
  9. package/templates/angular-sdk-reference/angular.json +34 -0
  10. package/templates/angular-sdk-reference/package.json +31 -0
  11. package/templates/angular-sdk-reference/sdk-config.json +26 -0
  12. package/templates/angular-sdk-reference/src/app/app.component.ts +54 -0
  13. package/templates/angular-sdk-reference/src/index.html +12 -0
  14. package/templates/angular-sdk-reference/src/main.ts +4 -0
  15. package/templates/angular-sdk-reference/src/styles.css +19 -0
  16. package/templates/angular-sdk-reference/tsconfig.json +32 -0
  17. package/templates/react-native-sdk-reference/.github/AGENTS.md +23 -0
  18. package/templates/react-native-sdk-reference/.github/copilot-instructions.md +40 -0
  19. package/templates/react-native-sdk-reference/.github/skills/pega-sdk-component.md +48 -0
  20. package/templates/react-native-sdk-reference/App.tsx +51 -0
  21. package/templates/react-native-sdk-reference/app.json +11 -0
  22. package/templates/react-native-sdk-reference/package.json +22 -0
  23. package/templates/react-native-sdk-reference/sdk-config.json +14 -0
  24. package/templates/react-native-sdk-reference/tsconfig.json +12 -0
  25. package/templates/react-sdk-reference/.github/copilot-instructions.md +185 -0
  26. package/templates/react-sdk-reference/.github/instructions/component-map.instructions.md +40 -0
  27. package/templates/react-sdk-reference/.github/instructions/dse-component.instructions.md +77 -0
  28. package/templates/react-sdk-reference/.github/instructions/field-component.instructions.md +73 -0
  29. package/templates/react-sdk-reference/.github/instructions/template-component.instructions.md +94 -0
  30. package/templates/react-sdk-reference/.github/instructions/widget-component.instructions.md +89 -0
  31. package/templates/react-sdk-reference/.github/prompts/add-component.prompt.md +21 -0
  32. package/templates/react-sdk-reference/.github/prompts/component-manifest.json +111 -0
  33. package/templates/react-sdk-reference/.github/prompts/identify-components.prompt.md +110 -0
  34. package/templates/react-sdk-reference/.github/prompts/replace-all-fields.prompt.md +48 -0
  35. package/templates/react-sdk-reference/.github/prompts/replace-component.prompt.md +81 -0
  36. package/templates/react-sdk-reference/.github/prompts/replace-design-system.prompt.md +524 -0
  37. package/templates/react-sdk-reference/.github/prompts/replace-field.prompt.md +41 -0
  38. package/templates/react-sdk-reference/.github/prompts/swap-design-system.prompt.md +49 -0
  39. package/templates/react-sdk-reference/.github/skills/component-contracts.md +140 -0
  40. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/AlertBanner.md +135 -0
  41. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/Banner.md +149 -0
  42. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/CaseSummaryFields.md +154 -0
  43. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/DetailsFields.md +144 -0
  44. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/FieldGroup.md +131 -0
  45. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/FieldGroupList.md +111 -0
  46. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/FieldValueList.md +115 -0
  47. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/Operator.md +149 -0
  48. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/Pulse.md +83 -0
  49. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/RichTextEditor.md +206 -0
  50. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/WssQuickCreate.md +135 -0
  51. package/templates/react-sdk-reference/.github/skills/design-system-extension.md +249 -0
  52. package/templates/react-sdk-reference/.github/skills/field-components.md +262 -0
  53. package/templates/react-sdk-reference/.github/skills/field-skills/AutoComplete.md +112 -0
  54. package/templates/react-sdk-reference/.github/skills/field-skills/CancelAlert.md +203 -0
  55. package/templates/react-sdk-reference/.github/skills/field-skills/Checkbox.md +158 -0
  56. package/templates/react-sdk-reference/.github/skills/field-skills/Currency.md +106 -0
  57. package/templates/react-sdk-reference/.github/skills/field-skills/Date.md +99 -0
  58. package/templates/react-sdk-reference/.github/skills/field-skills/DateTime.md +103 -0
  59. package/templates/react-sdk-reference/.github/skills/field-skills/Decimal.md +98 -0
  60. package/templates/react-sdk-reference/.github/skills/field-skills/Dropdown.md +114 -0
  61. package/templates/react-sdk-reference/.github/skills/field-skills/Email.md +107 -0
  62. package/templates/react-sdk-reference/.github/skills/field-skills/Group.md +90 -0
  63. package/templates/react-sdk-reference/.github/skills/field-skills/Integer.md +87 -0
  64. package/templates/react-sdk-reference/.github/skills/field-skills/Location.md +136 -0
  65. package/templates/react-sdk-reference/.github/skills/field-skills/Multiselect.md +164 -0
  66. package/templates/react-sdk-reference/.github/skills/field-skills/ObjectReference.md +164 -0
  67. package/templates/react-sdk-reference/.github/skills/field-skills/Percentage.md +92 -0
  68. package/templates/react-sdk-reference/.github/skills/field-skills/Phone.md +110 -0
  69. package/templates/react-sdk-reference/.github/skills/field-skills/RadioButtons.md +146 -0
  70. package/templates/react-sdk-reference/.github/skills/field-skills/RichText.md +138 -0
  71. package/templates/react-sdk-reference/.github/skills/field-skills/ScalarList.md +124 -0
  72. package/templates/react-sdk-reference/.github/skills/field-skills/SelectableCard.md +216 -0
  73. package/templates/react-sdk-reference/.github/skills/field-skills/SemanticLink.md +148 -0
  74. package/templates/react-sdk-reference/.github/skills/field-skills/TextArea.md +96 -0
  75. package/templates/react-sdk-reference/.github/skills/field-skills/TextContent.md +101 -0
  76. package/templates/react-sdk-reference/.github/skills/field-skills/TextInput.md +104 -0
  77. package/templates/react-sdk-reference/.github/skills/field-skills/Time.md +88 -0
  78. package/templates/react-sdk-reference/.github/skills/field-skills/URL.md +85 -0
  79. package/templates/react-sdk-reference/.github/skills/field-skills/UserReference.md +180 -0
  80. package/templates/react-sdk-reference/.github/skills/run-and-verify.md +68 -0
  81. package/templates/react-sdk-reference/.github/skills/swap-design-system.md +105 -0
  82. package/templates/react-sdk-reference/.github/skills/template-components.md +285 -0
  83. package/templates/react-sdk-reference/.github/skills/template-skills/AdvancedSearch.md +144 -0
  84. package/templates/react-sdk-reference/.github/skills/template-skills/AppShell.md +122 -0
  85. package/templates/react-sdk-reference/.github/skills/template-skills/BannerPage.md +83 -0
  86. package/templates/react-sdk-reference/.github/skills/template-skills/CaseSummary.md +100 -0
  87. package/templates/react-sdk-reference/.github/skills/template-skills/CaseView.md +131 -0
  88. package/templates/react-sdk-reference/.github/skills/template-skills/CaseViewActionsMenu.md +126 -0
  89. package/templates/react-sdk-reference/.github/skills/template-skills/Confirmation.md +107 -0
  90. package/templates/react-sdk-reference/.github/skills/template-skills/DataReference.md +120 -0
  91. package/templates/react-sdk-reference/.github/skills/template-skills/DefaultForm.md +102 -0
  92. package/templates/react-sdk-reference/.github/skills/template-skills/DefaultPage.md +110 -0
  93. package/templates/react-sdk-reference/.github/skills/template-skills/Details.md +88 -0
  94. package/templates/react-sdk-reference/.github/skills/template-skills/DetailsSubTabs.md +95 -0
  95. package/templates/react-sdk-reference/.github/skills/template-skills/DetailsThreeColumn.md +78 -0
  96. package/templates/react-sdk-reference/.github/skills/template-skills/DetailsTwoColumn.md +78 -0
  97. package/templates/react-sdk-reference/.github/skills/template-skills/DynamicTabs.md +101 -0
  98. package/templates/react-sdk-reference/.github/skills/template-skills/FieldGroupTemplate.md +109 -0
  99. package/templates/react-sdk-reference/.github/skills/template-skills/HierarchicalForm.md +113 -0
  100. package/templates/react-sdk-reference/.github/skills/template-skills/InlineDashboard.md +104 -0
  101. package/templates/react-sdk-reference/.github/skills/template-skills/InlineDashboardPage.md +85 -0
  102. package/templates/react-sdk-reference/.github/skills/template-skills/ListPage.md +68 -0
  103. package/templates/react-sdk-reference/.github/skills/template-skills/ListView.md +139 -0
  104. package/templates/react-sdk-reference/.github/skills/template-skills/MultiReferenceReadOnly.md +80 -0
  105. package/templates/react-sdk-reference/.github/skills/template-skills/NarrowWide.md +141 -0
  106. package/templates/react-sdk-reference/.github/skills/template-skills/OneColumn.md +109 -0
  107. package/templates/react-sdk-reference/.github/skills/template-skills/PromotedFilters.md +124 -0
  108. package/templates/react-sdk-reference/.github/skills/template-skills/SelfServiceCaseView.md +135 -0
  109. package/templates/react-sdk-reference/.github/skills/template-skills/SimpleTable.md +127 -0
  110. package/templates/react-sdk-reference/.github/skills/template-skills/SingleReferenceReadOnly.md +103 -0
  111. package/templates/react-sdk-reference/.github/skills/template-skills/SubTabs.md +79 -0
  112. package/templates/react-sdk-reference/.github/skills/template-skills/TwoColumn.md +131 -0
  113. package/templates/react-sdk-reference/.github/skills/template-skills/WideNarrow.md +150 -0
  114. package/templates/react-sdk-reference/.github/skills/template-skills/WssNavBar.md +135 -0
  115. package/templates/react-sdk-reference/.github/skills/widget-components.md +234 -0
  116. package/templates/react-sdk-reference/.github/skills/widget-skills/AppAnnouncement.md +82 -0
  117. package/templates/react-sdk-reference/.github/skills/widget-skills/Attachment.md +146 -0
  118. package/templates/react-sdk-reference/.github/skills/widget-skills/CaseHistory.md +107 -0
  119. package/templates/react-sdk-reference/.github/skills/widget-skills/FileUtility.md +200 -0
  120. package/templates/react-sdk-reference/.github/skills/widget-skills/Followers.md +99 -0
  121. package/templates/react-sdk-reference/.github/skills/widget-skills/QuickCreate.md +114 -0
  122. package/templates/react-sdk-reference/.github/skills/widget-skills/SummaryItem.md +167 -0
  123. package/templates/react-sdk-reference/.github/skills/widget-skills/ToDo.md +190 -0
  124. package/templates/react-sdk-reference/AGENTS.md +59 -0
  125. package/templates/react-sdk-reference/assets/icons/analytics-good-solid.svg +3 -0
  126. package/templates/react-sdk-reference/assets/icons/cart-solid.svg +3 -0
  127. package/templates/react-sdk-reference/assets/icons/headset.svg +3 -0
  128. package/templates/react-sdk-reference/assets/icons/mobile-phone-solid.svg +3 -0
  129. package/templates/react-sdk-reference/assets/icons/money-solid.svg +3 -0
  130. package/templates/react-sdk-reference/assets/icons/multi-device-solid.svg +3 -0
  131. package/templates/react-sdk-reference/index.html +36 -0
  132. package/templates/react-sdk-reference/package.json +52 -0
  133. package/templates/react-sdk-reference/sdk-config.json +26 -0
  134. package/templates/react-sdk-reference/src/AppSelector.tsx +18 -0
  135. package/templates/react-sdk-reference/src/FallbackComponent.tsx +40 -0
  136. package/templates/react-sdk-reference/src/MashupApp.styles.ts +105 -0
  137. package/templates/react-sdk-reference/src/MashupApp.tsx +254 -0
  138. package/templates/react-sdk-reference/src/PortalApp.tsx +175 -0
  139. package/templates/react-sdk-reference/src/components/component-map.ts +255 -0
  140. package/templates/react-sdk-reference/src/components/designSystemExtension/AlertBanner/AlertBanner.css +46 -0
  141. package/templates/react-sdk-reference/src/components/designSystemExtension/AlertBanner/AlertBanner.tsx +91 -0
  142. package/templates/react-sdk-reference/src/components/designSystemExtension/AlertBanner/index.tsx +1 -0
  143. package/templates/react-sdk-reference/src/components/designSystemExtension/Banner/Banner.css +39 -0
  144. package/templates/react-sdk-reference/src/components/designSystemExtension/Banner/Banner.tsx +53 -0
  145. package/templates/react-sdk-reference/src/components/designSystemExtension/Banner/index.tsx +1 -0
  146. package/templates/react-sdk-reference/src/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +16 -0
  147. package/templates/react-sdk-reference/src/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +270 -0
  148. package/templates/react-sdk-reference/src/components/designSystemExtension/CaseSummaryFields/index.tsx +1 -0
  149. package/templates/react-sdk-reference/src/components/designSystemExtension/DetailsFields/DetailsFields.tsx +164 -0
  150. package/templates/react-sdk-reference/src/components/designSystemExtension/DetailsFields/index.tsx +1 -0
  151. package/templates/react-sdk-reference/src/components/designSystemExtension/FieldGroup/FieldGroup.tsx +79 -0
  152. package/templates/react-sdk-reference/src/components/designSystemExtension/FieldGroup/index.tsx +1 -0
  153. package/templates/react-sdk-reference/src/components/designSystemExtension/FieldGroupList/FieldGroupList.tsx +58 -0
  154. package/templates/react-sdk-reference/src/components/designSystemExtension/FieldGroupList/index.tsx +1 -0
  155. package/templates/react-sdk-reference/src/components/designSystemExtension/FieldValueList/FieldValueList.tsx +84 -0
  156. package/templates/react-sdk-reference/src/components/designSystemExtension/FieldValueList/index.tsx +1 -0
  157. package/templates/react-sdk-reference/src/components/designSystemExtension/Operator/Operator.tsx +220 -0
  158. package/templates/react-sdk-reference/src/components/designSystemExtension/Operator/index.tsx +1 -0
  159. package/templates/react-sdk-reference/src/components/designSystemExtension/Pulse/Pulse.tsx +33 -0
  160. package/templates/react-sdk-reference/src/components/designSystemExtension/Pulse/index.tsx +1 -0
  161. package/templates/react-sdk-reference/src/components/designSystemExtension/RichTextEditor/RichTextEditor.tsx +201 -0
  162. package/templates/react-sdk-reference/src/components/designSystemExtension/RichTextEditor/index.tsx +1 -0
  163. package/templates/react-sdk-reference/src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.css +33 -0
  164. package/templates/react-sdk-reference/src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx +48 -0
  165. package/templates/react-sdk-reference/src/components/designSystemExtension/WssQuickCreate/index.tsx +1 -0
  166. package/templates/react-sdk-reference/src/components/field/AutoComplete/AutoComplete.tsx +218 -0
  167. package/templates/react-sdk-reference/src/components/field/AutoComplete/config-ext.json +10 -0
  168. package/templates/react-sdk-reference/src/components/field/AutoComplete/index.tsx +1 -0
  169. package/templates/react-sdk-reference/src/components/field/CancelAlert/CancelAlert.css +24 -0
  170. package/templates/react-sdk-reference/src/components/field/CancelAlert/CancelAlert.tsx +148 -0
  171. package/templates/react-sdk-reference/src/components/field/CancelAlert/index.tsx +1 -0
  172. package/templates/react-sdk-reference/src/components/field/Checkbox/Checkbox.tsx +263 -0
  173. package/templates/react-sdk-reference/src/components/field/Checkbox/config-ext.json +9 -0
  174. package/templates/react-sdk-reference/src/components/field/Checkbox/index.tsx +1 -0
  175. package/templates/react-sdk-reference/src/components/field/Currency/Currency.tsx +111 -0
  176. package/templates/react-sdk-reference/src/components/field/Currency/config-ext.json +9 -0
  177. package/templates/react-sdk-reference/src/components/field/Currency/currency-utils.ts +67 -0
  178. package/templates/react-sdk-reference/src/components/field/Currency/index.tsx +1 -0
  179. package/templates/react-sdk-reference/src/components/field/Date/Date.tsx +94 -0
  180. package/templates/react-sdk-reference/src/components/field/Date/config-ext.json +9 -0
  181. package/templates/react-sdk-reference/src/components/field/Date/index.tsx +1 -0
  182. package/templates/react-sdk-reference/src/components/field/DateTime/DateTime.tsx +101 -0
  183. package/templates/react-sdk-reference/src/components/field/DateTime/config-ext.json +8 -0
  184. package/templates/react-sdk-reference/src/components/field/DateTime/index.tsx +1 -0
  185. package/templates/react-sdk-reference/src/components/field/Decimal/Decimal.tsx +122 -0
  186. package/templates/react-sdk-reference/src/components/field/Decimal/config-ext.json +8 -0
  187. package/templates/react-sdk-reference/src/components/field/Decimal/index.tsx +1 -0
  188. package/templates/react-sdk-reference/src/components/field/Dropdown/Dropdown.tsx +238 -0
  189. package/templates/react-sdk-reference/src/components/field/Dropdown/config-ext.json +8 -0
  190. package/templates/react-sdk-reference/src/components/field/Dropdown/index.tsx +1 -0
  191. package/templates/react-sdk-reference/src/components/field/Email/Email.tsx +96 -0
  192. package/templates/react-sdk-reference/src/components/field/Email/config-ext.json +8 -0
  193. package/templates/react-sdk-reference/src/components/field/Email/index.tsx +1 -0
  194. package/templates/react-sdk-reference/src/components/field/Group/Group.tsx +41 -0
  195. package/templates/react-sdk-reference/src/components/field/Group/config-ext.json +7 -0
  196. package/templates/react-sdk-reference/src/components/field/Group/index.tsx +1 -0
  197. package/templates/react-sdk-reference/src/components/field/Integer/Integer.tsx +100 -0
  198. package/templates/react-sdk-reference/src/components/field/Integer/config-ext.json +8 -0
  199. package/templates/react-sdk-reference/src/components/field/Integer/index.tsx +1 -0
  200. package/templates/react-sdk-reference/src/components/field/Location/Location.css +4 -0
  201. package/templates/react-sdk-reference/src/components/field/Location/Location.tsx +258 -0
  202. package/templates/react-sdk-reference/src/components/field/Location/config-ext.json +8 -0
  203. package/templates/react-sdk-reference/src/components/field/Location/index.tsx +1 -0
  204. package/templates/react-sdk-reference/src/components/field/Multiselect/Multiselect.tsx +238 -0
  205. package/templates/react-sdk-reference/src/components/field/Multiselect/index.tsx +1 -0
  206. package/templates/react-sdk-reference/src/components/field/Multiselect/utils.ts +230 -0
  207. package/templates/react-sdk-reference/src/components/field/ObjectReference/ObjectReference.tsx +235 -0
  208. package/templates/react-sdk-reference/src/components/field/ObjectReference/index.tsx +1 -0
  209. package/templates/react-sdk-reference/src/components/field/ObjectReference/utils.ts +111 -0
  210. package/templates/react-sdk-reference/src/components/field/Percentage/Percentage.tsx +112 -0
  211. package/templates/react-sdk-reference/src/components/field/Percentage/config-ext.json +8 -0
  212. package/templates/react-sdk-reference/src/components/field/Percentage/index.tsx +1 -0
  213. package/templates/react-sdk-reference/src/components/field/Phone/Phone.tsx +113 -0
  214. package/templates/react-sdk-reference/src/components/field/Phone/config-ext.json +8 -0
  215. package/templates/react-sdk-reference/src/components/field/Phone/index.tsx +1 -0
  216. package/templates/react-sdk-reference/src/components/field/RadioButtons/RadioButtons.tsx +158 -0
  217. package/templates/react-sdk-reference/src/components/field/RadioButtons/config-ext.json +8 -0
  218. package/templates/react-sdk-reference/src/components/field/RadioButtons/index.tsx +1 -0
  219. package/templates/react-sdk-reference/src/components/field/RichText/RichText.css +79 -0
  220. package/templates/react-sdk-reference/src/components/field/RichText/RichText.tsx +98 -0
  221. package/templates/react-sdk-reference/src/components/field/RichText/config-ext.json +10 -0
  222. package/templates/react-sdk-reference/src/components/field/RichText/index.tsx +1 -0
  223. package/templates/react-sdk-reference/src/components/field/ScalarList/ScalarList.tsx +63 -0
  224. package/templates/react-sdk-reference/src/components/field/ScalarList/config-ext.json +7 -0
  225. package/templates/react-sdk-reference/src/components/field/ScalarList/index.tsx +1 -0
  226. package/templates/react-sdk-reference/src/components/field/SelectableCard/SelectableCard.tsx +189 -0
  227. package/templates/react-sdk-reference/src/components/field/SelectableCard/index.tsx +1 -0
  228. package/templates/react-sdk-reference/src/components/field/SelectableCard/utils.tsx +223 -0
  229. package/templates/react-sdk-reference/src/components/field/SemanticLink/SemanticLink.tsx +208 -0
  230. package/templates/react-sdk-reference/src/components/field/SemanticLink/config-ext.json +7 -0
  231. package/templates/react-sdk-reference/src/components/field/SemanticLink/index.tsx +1 -0
  232. package/templates/react-sdk-reference/src/components/field/SemanticLink/utils.ts +49 -0
  233. package/templates/react-sdk-reference/src/components/field/TextArea/TextArea.tsx +94 -0
  234. package/templates/react-sdk-reference/src/components/field/TextArea/config-ext.json +8 -0
  235. package/templates/react-sdk-reference/src/components/field/TextArea/index.tsx +1 -0
  236. package/templates/react-sdk-reference/src/components/field/TextContent/TextContent.tsx +46 -0
  237. package/templates/react-sdk-reference/src/components/field/TextContent/config-ext.json +7 -0
  238. package/templates/react-sdk-reference/src/components/field/TextContent/index.tsx +1 -0
  239. package/templates/react-sdk-reference/src/components/field/TextInput/TextInput.tsx +92 -0
  240. package/templates/react-sdk-reference/src/components/field/TextInput/config-ext.json +8 -0
  241. package/templates/react-sdk-reference/src/components/field/TextInput/index.tsx +1 -0
  242. package/templates/react-sdk-reference/src/components/field/Time/Time.tsx +79 -0
  243. package/templates/react-sdk-reference/src/components/field/Time/config-ext.json +8 -0
  244. package/templates/react-sdk-reference/src/components/field/Time/index.tsx +1 -0
  245. package/templates/react-sdk-reference/src/components/field/URL/URL.tsx +89 -0
  246. package/templates/react-sdk-reference/src/components/field/URL/config-ext.json +8 -0
  247. package/templates/react-sdk-reference/src/components/field/URL/index.tsx +1 -0
  248. package/templates/react-sdk-reference/src/components/field/UserReference/UserReference.tsx +198 -0
  249. package/templates/react-sdk-reference/src/components/field/UserReference/UserReferenceUtils.ts +13 -0
  250. package/templates/react-sdk-reference/src/components/field/UserReference/config-ext.json +7 -0
  251. package/templates/react-sdk-reference/src/components/field/UserReference/index.tsx +1 -0
  252. package/templates/react-sdk-reference/src/components/helpers/attachmentShared.ts +6 -0
  253. package/templates/react-sdk-reference/src/components/helpers/case-utils.tsx +99 -0
  254. package/templates/react-sdk-reference/src/components/helpers/common-utils.ts +26 -0
  255. package/templates/react-sdk-reference/src/components/helpers/data_page.ts +20 -0
  256. package/templates/react-sdk-reference/src/components/helpers/date-format-utils.ts +76 -0
  257. package/templates/react-sdk-reference/src/components/helpers/event-utils.ts +20 -0
  258. package/templates/react-sdk-reference/src/components/helpers/field-group-utils.ts +63 -0
  259. package/templates/react-sdk-reference/src/components/helpers/formatters/Boolean.ts +21 -0
  260. package/templates/react-sdk-reference/src/components/helpers/formatters/Currency.ts +77 -0
  261. package/templates/react-sdk-reference/src/components/helpers/formatters/CurrencyMap.ts +913 -0
  262. package/templates/react-sdk-reference/src/components/helpers/formatters/Date.ts +71 -0
  263. package/templates/react-sdk-reference/src/components/helpers/formatters/common.ts +14 -0
  264. package/templates/react-sdk-reference/src/components/helpers/formatters/index.ts +130 -0
  265. package/templates/react-sdk-reference/src/components/helpers/instructions-utils.ts +38 -0
  266. package/templates/react-sdk-reference/src/components/helpers/object-utils.ts +10 -0
  267. package/templates/react-sdk-reference/src/components/helpers/reactContextHelpers.ts +3 -0
  268. package/templates/react-sdk-reference/src/components/helpers/simpleTableHelpers.ts +452 -0
  269. package/templates/react-sdk-reference/src/components/helpers/state-utils.tsx +43 -0
  270. package/templates/react-sdk-reference/src/components/helpers/template-utils.ts +76 -0
  271. package/templates/react-sdk-reference/src/components/helpers/utils.ts +349 -0
  272. package/templates/react-sdk-reference/src/components/helpers/versionHelpers.ts +14 -0
  273. package/templates/react-sdk-reference/src/components/index.ts +8 -0
  274. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/AdvancedSearch.tsx +86 -0
  275. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/SearchGroup/persistUtils.ts +52 -0
  276. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/SearchGroups/SearchGroups.tsx +329 -0
  277. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/SearchGroups/hooks.ts +37 -0
  278. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/SearchGroups/index.tsx +1 -0
  279. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/SearchGroups/utils.ts +29 -0
  280. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/TemplateContext.ts +11 -0
  281. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/config-ext.json +9 -0
  282. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/index.tsx +1 -0
  283. package/templates/react-sdk-reference/src/components/template/AppShell/AppShell.css +35 -0
  284. package/templates/react-sdk-reference/src/components/template/AppShell/AppShell.tsx +259 -0
  285. package/templates/react-sdk-reference/src/components/template/AppShell/index.tsx +1 -0
  286. package/templates/react-sdk-reference/src/components/template/BannerPage/BannerPage.tsx +54 -0
  287. package/templates/react-sdk-reference/src/components/template/BannerPage/config-ext.json +9 -0
  288. package/templates/react-sdk-reference/src/components/template/BannerPage/index.tsx +1 -0
  289. package/templates/react-sdk-reference/src/components/template/CaseSummary/CaseSummary.tsx +79 -0
  290. package/templates/react-sdk-reference/src/components/template/CaseSummary/config-ext.json +8 -0
  291. package/templates/react-sdk-reference/src/components/template/CaseSummary/index.tsx +1 -0
  292. package/templates/react-sdk-reference/src/components/template/CaseView/CaseView.tsx +261 -0
  293. package/templates/react-sdk-reference/src/components/template/CaseView/config-ext.json +8 -0
  294. package/templates/react-sdk-reference/src/components/template/CaseView/index.tsx +1 -0
  295. package/templates/react-sdk-reference/src/components/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx +117 -0
  296. package/templates/react-sdk-reference/src/components/template/CaseViewActionsMenu/index.tsx +1 -0
  297. package/templates/react-sdk-reference/src/components/template/Confirmation/Confirmation.tsx +102 -0
  298. package/templates/react-sdk-reference/src/components/template/Confirmation/config-ext.json +11 -0
  299. package/templates/react-sdk-reference/src/components/template/Confirmation/index.tsx +1 -0
  300. package/templates/react-sdk-reference/src/components/template/DataReference/DataReference.tsx +590 -0
  301. package/templates/react-sdk-reference/src/components/template/DataReference/DataReferenceAdvancedSearchContext.ts +10 -0
  302. package/templates/react-sdk-reference/src/components/template/DataReference/SearchForm.tsx +213 -0
  303. package/templates/react-sdk-reference/src/components/template/DataReference/config-ext.json +8 -0
  304. package/templates/react-sdk-reference/src/components/template/DataReference/index.tsx +1 -0
  305. package/templates/react-sdk-reference/src/components/template/DataReference/utils.ts +90 -0
  306. package/templates/react-sdk-reference/src/components/template/DefaultForm/DefaultForm.css +34 -0
  307. package/templates/react-sdk-reference/src/components/template/DefaultForm/DefaultForm.tsx +74 -0
  308. package/templates/react-sdk-reference/src/components/template/DefaultForm/config-ext.json +8 -0
  309. package/templates/react-sdk-reference/src/components/template/DefaultForm/index.tsx +1 -0
  310. package/templates/react-sdk-reference/src/components/template/DefaultForm/utils/index.ts +26 -0
  311. package/templates/react-sdk-reference/src/components/template/DefaultPage/DefaultPage.tsx +108 -0
  312. package/templates/react-sdk-reference/src/components/template/DefaultPage/index.tsx +1 -0
  313. package/templates/react-sdk-reference/src/components/template/Details/Details/Details.tsx +74 -0
  314. package/templates/react-sdk-reference/src/components/template/Details/Details/index.tsx +1 -0
  315. package/templates/react-sdk-reference/src/components/template/Details/DetailsSubTabs/DetailsSubTabs.tsx +58 -0
  316. package/templates/react-sdk-reference/src/components/template/Details/DetailsSubTabs/config-ext.json +8 -0
  317. package/templates/react-sdk-reference/src/components/template/Details/DetailsSubTabs/index.tsx +1 -0
  318. package/templates/react-sdk-reference/src/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.tsx +79 -0
  319. package/templates/react-sdk-reference/src/components/template/Details/DetailsThreeColumn/config-ext.json +8 -0
  320. package/templates/react-sdk-reference/src/components/template/Details/DetailsThreeColumn/index.tsx +1 -0
  321. package/templates/react-sdk-reference/src/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.tsx +79 -0
  322. package/templates/react-sdk-reference/src/components/template/Details/DetailsTwoColumn/config-ext.json +8 -0
  323. package/templates/react-sdk-reference/src/components/template/Details/DetailsTwoColumn/index.tsx +1 -0
  324. package/templates/react-sdk-reference/src/components/template/Details/DynamicTabs/DynamicTabs.tsx +79 -0
  325. package/templates/react-sdk-reference/src/components/template/Details/DynamicTabs/config.json +36 -0
  326. package/templates/react-sdk-reference/src/components/template/Details/DynamicTabs/index.tsx +1 -0
  327. package/templates/react-sdk-reference/src/components/template/FieldGroupTemplate/FieldGroupTemplate.tsx +116 -0
  328. package/templates/react-sdk-reference/src/components/template/FieldGroupTemplate/index.tsx +1 -0
  329. package/templates/react-sdk-reference/src/components/template/HierarchicalForm/HierarchicalForm.tsx +58 -0
  330. package/templates/react-sdk-reference/src/components/template/HierarchicalForm/hooks.ts +293 -0
  331. package/templates/react-sdk-reference/src/components/template/HierarchicalForm/index.tsx +1 -0
  332. package/templates/react-sdk-reference/src/components/template/InlineDashboard/InlineDashboard.tsx +72 -0
  333. package/templates/react-sdk-reference/src/components/template/InlineDashboard/index.tsx +1 -0
  334. package/templates/react-sdk-reference/src/components/template/InlineDashboardPage/InlineDashboardPage.tsx +39 -0
  335. package/templates/react-sdk-reference/src/components/template/InlineDashboardPage/config-ext.json +9 -0
  336. package/templates/react-sdk-reference/src/components/template/InlineDashboardPage/index.tsx +1 -0
  337. package/templates/react-sdk-reference/src/components/template/ListPage/ListPage.tsx +16 -0
  338. package/templates/react-sdk-reference/src/components/template/ListPage/config-ext.json +7 -0
  339. package/templates/react-sdk-reference/src/components/template/ListPage/index.tsx +1 -0
  340. package/templates/react-sdk-reference/src/components/template/ListView/DefaultViewMeta.ts +220 -0
  341. package/templates/react-sdk-reference/src/components/template/ListView/ListView.css +10 -0
  342. package/templates/react-sdk-reference/src/components/template/ListView/ListView.tsx +1391 -0
  343. package/templates/react-sdk-reference/src/components/template/ListView/config-ext.json +8 -0
  344. package/templates/react-sdk-reference/src/components/template/ListView/hooks.ts +93 -0
  345. package/templates/react-sdk-reference/src/components/template/ListView/index.tsx +1 -0
  346. package/templates/react-sdk-reference/src/components/template/ListView/utils.ts +781 -0
  347. package/templates/react-sdk-reference/src/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.tsx +52 -0
  348. package/templates/react-sdk-reference/src/components/template/MultiReferenceReadOnly/index.tsx +1 -0
  349. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWide/NarrowWide.css +19 -0
  350. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWide/NarrowWide.tsx +37 -0
  351. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWide/index.tsx +1 -0
  352. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.tsx +85 -0
  353. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideDetails/config-ext.json +8 -0
  354. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideDetails/index.tsx +1 -0
  355. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.css +19 -0
  356. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.tsx +22 -0
  357. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideForm/config-ext.json +8 -0
  358. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideForm/index.tsx +1 -0
  359. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.tsx +28 -0
  360. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWidePage/config-ext.json +8 -0
  361. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWidePage/index.tsx +1 -0
  362. package/templates/react-sdk-reference/src/components/template/ObjectPage/index.tsx +1 -0
  363. package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumn/OneColumn.tsx +32 -0
  364. package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumn/config-ext.json +8 -0
  365. package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumn/index.tsx +1 -0
  366. package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumnPage/OneColumnPage.tsx +17 -0
  367. package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumnPage/config-ext.json +8 -0
  368. package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumnPage/index.tsx +1 -0
  369. package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumnTab/OneColumnTab.tsx +11 -0
  370. package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumnTab/config-ext.json +8 -0
  371. package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumnTab/index.tsx +1 -0
  372. package/templates/react-sdk-reference/src/components/template/PromotedFilters/PromotedFilters.css +7 -0
  373. package/templates/react-sdk-reference/src/components/template/PromotedFilters/PromotedFilters.tsx +204 -0
  374. package/templates/react-sdk-reference/src/components/template/PromotedFilters/index.tsx +1 -0
  375. package/templates/react-sdk-reference/src/components/template/SelfServiceCaseView/SelfServiceCaseView.tsx +153 -0
  376. package/templates/react-sdk-reference/src/components/template/SelfServiceCaseView/index.tsx +1 -0
  377. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTable/SimpleTable.tsx +126 -0
  378. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTable/config-ext.json +7 -0
  379. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTable/index.tsx +1 -0
  380. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx +985 -0
  381. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableManual/index.tsx +1 -0
  382. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.tsx +122 -0
  383. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableSelect/index.tsx +1 -0
  384. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableSelectReadonly/SimpleTableSelectReadonly.tsx +207 -0
  385. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableSelectReadonly/index.tsx +1 -0
  386. package/templates/react-sdk-reference/src/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.tsx +71 -0
  387. package/templates/react-sdk-reference/src/components/template/SingleReferenceReadOnly/index.tsx +1 -0
  388. package/templates/react-sdk-reference/src/components/template/SubTabs/SubTabs.tsx +46 -0
  389. package/templates/react-sdk-reference/src/components/template/SubTabs/config-ext.json +8 -0
  390. package/templates/react-sdk-reference/src/components/template/SubTabs/index.tsx +1 -0
  391. package/templates/react-sdk-reference/src/components/template/SubTabs/tabUtils.ts +185 -0
  392. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumn/TwoColumn.css +12 -0
  393. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumn/TwoColumn.tsx +54 -0
  394. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumn/config-ext.json +8 -0
  395. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumn/index.tsx +1 -0
  396. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.tsx +17 -0
  397. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumnPage/config-ext.json +8 -0
  398. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumnPage/index.tsx +1 -0
  399. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.css +12 -0
  400. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.tsx +54 -0
  401. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumnTab/config-ext.json +8 -0
  402. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumnTab/index.tsx +1 -0
  403. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrow/WideNarrow.css +19 -0
  404. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrow/WideNarrow.tsx +37 -0
  405. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrow/index.tsx +1 -0
  406. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.tsx +96 -0
  407. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowDetails/config-ext.json +8 -0
  408. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowDetails/index.tsx +1 -0
  409. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.css +19 -0
  410. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.tsx +22 -0
  411. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowForm/config-ext.json +8 -0
  412. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowForm/index.tsx +1 -0
  413. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.tsx +28 -0
  414. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowPage/config-ext.json +8 -0
  415. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowPage/index.tsx +1 -0
  416. package/templates/react-sdk-reference/src/components/template/WssNavBar/WssNavBar.css +11 -0
  417. package/templates/react-sdk-reference/src/components/template/WssNavBar/WssNavBar.tsx +160 -0
  418. package/templates/react-sdk-reference/src/components/template/WssNavBar/index.tsx +1 -0
  419. package/templates/react-sdk-reference/src/components/template/utils.tsx +58 -0
  420. package/templates/react-sdk-reference/src/components/widget/AppAnnouncement/AppAnnouncement.tsx +60 -0
  421. package/templates/react-sdk-reference/src/components/widget/AppAnnouncement/config-ext.json +8 -0
  422. package/templates/react-sdk-reference/src/components/widget/AppAnnouncement/index.tsx +1 -0
  423. package/templates/react-sdk-reference/src/components/widget/Attachment/Attachment.css +95 -0
  424. package/templates/react-sdk-reference/src/components/widget/Attachment/Attachment.tsx +541 -0
  425. package/templates/react-sdk-reference/src/components/widget/Attachment/Attachment.types.ts +96 -0
  426. package/templates/react-sdk-reference/src/components/widget/Attachment/AttachmentUtils.ts +316 -0
  427. package/templates/react-sdk-reference/src/components/widget/Attachment/index.tsx +1 -0
  428. package/templates/react-sdk-reference/src/components/widget/CaseHistory/CaseHistory.tsx +171 -0
  429. package/templates/react-sdk-reference/src/components/widget/CaseHistory/config-ext.json +8 -0
  430. package/templates/react-sdk-reference/src/components/widget/CaseHistory/index.tsx +1 -0
  431. package/templates/react-sdk-reference/src/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.css +13 -0
  432. package/templates/react-sdk-reference/src/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx +32 -0
  433. package/templates/react-sdk-reference/src/components/widget/FileUtility/ActionButtonsForFileUtil/index.tsx +1 -0
  434. package/templates/react-sdk-reference/src/components/widget/FileUtility/FileUtility/FileUtility.css +118 -0
  435. package/templates/react-sdk-reference/src/components/widget/FileUtility/FileUtility/FileUtility.tsx +653 -0
  436. package/templates/react-sdk-reference/src/components/widget/FileUtility/FileUtility/config-ext.json +8 -0
  437. package/templates/react-sdk-reference/src/components/widget/FileUtility/FileUtility/index.tsx +1 -0
  438. package/templates/react-sdk-reference/src/components/widget/Followers/Followers.tsx +43 -0
  439. package/templates/react-sdk-reference/src/components/widget/Followers/config-ext.json +8 -0
  440. package/templates/react-sdk-reference/src/components/widget/Followers/index.tsx +1 -0
  441. package/templates/react-sdk-reference/src/components/widget/QuickCreate/QuickCreate.tsx +88 -0
  442. package/templates/react-sdk-reference/src/components/widget/QuickCreate/config-ext.json +9 -0
  443. package/templates/react-sdk-reference/src/components/widget/QuickCreate/index.tsx +1 -0
  444. package/templates/react-sdk-reference/src/components/widget/SummaryItem/SummaryItem.css +76 -0
  445. package/templates/react-sdk-reference/src/components/widget/SummaryItem/SummaryItem.tsx +89 -0
  446. package/templates/react-sdk-reference/src/components/widget/SummaryItem/index.tsx +1 -0
  447. package/templates/react-sdk-reference/src/components/widget/SummaryList/SummaryList.tsx +23 -0
  448. package/templates/react-sdk-reference/src/components/widget/SummaryList/index.tsx +1 -0
  449. package/templates/react-sdk-reference/src/components/widget/ToDo/ToDo.css +81 -0
  450. package/templates/react-sdk-reference/src/components/widget/ToDo/ToDo.tsx +507 -0
  451. package/templates/react-sdk-reference/src/components/widget/ToDo/config-ext.json +8 -0
  452. package/templates/react-sdk-reference/src/components/widget/ToDo/index.tsx +1 -0
  453. package/templates/react-sdk-reference/src/main.tsx +13 -0
  454. package/templates/react-sdk-reference/src/mui-theme-augmentation.d.ts +6 -0
  455. package/templates/react-sdk-reference/tsconfig.json +24 -0
  456. package/templates/react-sdk-reference/vite.config.ts +65 -0
  457. package/templates/wc-sdk-reference/.github/AGENTS.md +23 -0
  458. package/templates/wc-sdk-reference/.github/copilot-instructions.md +40 -0
  459. package/templates/wc-sdk-reference/.github/skills/pega-sdk-component.md +48 -0
  460. package/templates/wc-sdk-reference/index.html +21 -0
  461. package/templates/wc-sdk-reference/package.json +19 -0
  462. package/templates/wc-sdk-reference/sdk-config.json +19 -0
  463. package/templates/wc-sdk-reference/src/index.ts +98 -0
  464. package/templates/wc-sdk-reference/tsconfig.json +21 -0
  465. package/templates/wc-sdk-reference/vite.config.ts +8 -0
@@ -0,0 +1,68 @@
1
+ # Skill: Run and Verify
2
+
3
+ Build the application, run the dev server, and verify changes work correctly.
4
+
5
+ ---
6
+
7
+ ## Build Verification
8
+
9
+ ### If inside the pega-sdk monorepo:
10
+
11
+ ```bash
12
+ # Full build (all packages + samples)
13
+ cd /path/to/pega-sdk
14
+ npm run build
15
+
16
+ # Force rebuild sdk-react (if you modified it)
17
+ npx nx run sdk-react:build --skip-nx-cache
18
+ ```
19
+
20
+ ### If standalone repo:
21
+
22
+ ```bash
23
+ npm run build
24
+ ```
25
+
26
+ ### What to check:
27
+ - Zero TypeScript errors
28
+ - Zero build warnings related to missing imports
29
+ - Output bundle is generated
30
+
31
+ ---
32
+
33
+ ## Dev Server
34
+
35
+ ```bash
36
+ npm run dev
37
+ # Opens on http://localhost:3500
38
+ ```
39
+
40
+ ### What to verify:
41
+ 1. App loads without console errors
42
+ 2. "Create Case" button appears after auth
43
+ 3. Clicking "Create Case" renders the form
44
+ 4. Field inputs accept keyboard input
45
+ 5. Tabbing between fields triggers blur (values persist)
46
+ 6. Validation errors appear when required fields are empty
47
+ 7. Form submission works (assignment completes)
48
+
49
+ ---
50
+
51
+ ## Common Issues
52
+
53
+ | Symptom | Cause | Fix |
54
+ |---------|-------|-----|
55
+ | "X is not registered" console error | Component missing from `component-map.ts` | Add the import + map entry |
56
+ | Field value doesn't persist after blur | `handleEvent` not called on blur | Add `onBlur` handler calling `handleEvent(actions, 'changeNblur', propName, value)` |
57
+ | Read-only view shows nothing | Missing `displayMode` handling | Add the `DISPLAY_ONLY` / `STACKED_LARGE_VAL` checks |
58
+ | TypeScript error on `getPConnect` | Wrong props interface | Extend `PConnFieldProps` or `PConnProps` from `@pega/sdk-react` |
59
+ | Build fails on CSS import | Missing CSS loader config | Ensure Vite config handles `.css` imports |
60
+ | "Cannot read property of undefined" on theme | Design system provider missing | Wrap app in the design system's ThemeProvider/Provider |
61
+
62
+ ---
63
+
64
+ ## Quick Lint Check
65
+
66
+ ```bash
67
+ npx tsc --noEmit # TypeScript only, no output
68
+ ```
@@ -0,0 +1,105 @@
1
+ # Skill: Swap Design System
2
+
3
+ Replace the entire MUI design system in this application with a customer-specified design system. This is a large-scale refactor that touches all component categories.
4
+
5
+ ---
6
+
7
+ ## Prerequisites
8
+
9
+ - Customer has chosen a target design system (e.g., Chakra UI, Radix/Shadcn, Ant Design, Mantine, etc.)
10
+ - The target package is available on npm
11
+
12
+ ---
13
+
14
+ ## Procedure
15
+
16
+ ### Phase 1: Setup
17
+
18
+ 1. Install the target design system package(s)
19
+ 2. Install any required peer dependencies (e.g., emotion for Chakra, tailwind for Shadcn)
20
+ 3. Set up the design system's provider/theme in `src/MashupApp.tsx` (replace MUI's ThemeProvider)
21
+
22
+ ### Phase 2: Replace FieldValueList First
23
+
24
+ `src/components/designSystemExtension/FieldValueList/` is used by EVERY field component for display modes. Replace this first so field replacements work immediately.
25
+
26
+ Required props interface:
27
+
28
+ ```typescript
29
+ interface FieldValueListProps {
30
+ name?: string;
31
+ value?: string;
32
+ variant?: 'stacked' | 'inline';
33
+ }
34
+ ```
35
+
36
+ ### Phase 3: Replace Field Components
37
+
38
+ For each field in `src/components/field/`:
39
+
40
+ 1. Replace MUI input with target design system equivalent
41
+ 2. Keep: `getPConnect()`, `handleEvent(actions, 'changeNblur', propName, value)` on blur
42
+ 3. Keep: `displayMode` handling (returns FieldValueList)
43
+ 4. Keep: validation display (`validatemessage` when `status === 'error'`)
44
+ 5. Keep: `data-test-id={testId}`
45
+
46
+ ### Phase 4: Replace Template Components
47
+
48
+ For each template in `src/components/template/`:
49
+
50
+ 1. Replace MUI Grid/Box/Tabs with target layout primitives
51
+ 2. Keep: children rendering logic (either React children or PConnect children)
52
+ 3. Keep: `templateCol` parsing for column ratios
53
+
54
+ ### Phase 5: Replace Widget Components
55
+
56
+ For each widget in `src/components/widget/`:
57
+
58
+ 1. Replace MUI Card/List/Table/Button with target equivalents
59
+ 2. Keep: ALL `PCore.*` API calls (data fetching, attachments, pub/sub)
60
+ 3. Keep: Loading and error state handling
61
+
62
+ ### Phase 6: Replace DSE Components
63
+
64
+ For each DSE in `src/components/designSystemExtension/`:
65
+
66
+ 1. Replace MUI Alert/Typography/Chip with target equivalents
67
+ 2. Keep: Same prop interfaces (other components depend on these)
68
+
69
+ ### Phase 7: Replace Infra Components
70
+
71
+ For each infra component in `src/components/infra/`:
72
+
73
+ 1. Replace MUI AppBar/Stepper/Tabs with target equivalents
74
+ 2. Keep: SDK integration logic
75
+
76
+ ### Phase 8: Clean Up
77
+
78
+ 1. Remove all `@mui/*` packages from `package.json`
79
+ 2. Remove MUI-specific theme configuration
80
+ 3. Run `npm run build` — fix any TypeScript errors
81
+ 4. Run `npm run dev` — verify components render
82
+
83
+ ---
84
+
85
+ ## Critical Invariants (NEVER change these)
86
+
87
+ - `src/components/helpers/event-utils.ts` — event handler utility
88
+ - `src/components/component-map.ts` structure (only change imports)
89
+ - `...sdkComponents` spread in the component map
90
+ - `@pega/sdk-react` imports
91
+ - `getPConnect()` prop extraction pattern
92
+ - `handleEvent(actions, 'changeNblur', propName, value)` calls
93
+ - `PCore.*` API calls in widgets
94
+
95
+ ---
96
+
97
+ ## Verification
98
+
99
+ After completing all phases:
100
+
101
+ 1. `npm run build` — must pass with zero errors
102
+ 2. `npm run dev` — app should load, create case, render form
103
+ 3. Field inputs should accept values and persist on blur
104
+ 4. Read-only views should show FieldValueList
105
+ 5. Validation messages should appear on error
@@ -0,0 +1,285 @@
1
+ # Skill: Template Components
2
+
3
+ Create or replace template components (layouts and page structures) in the react-sdk-reference application. Template components arrange child components into visual layouts (columns, tabs, forms, pages).
4
+
5
+ ---
6
+
7
+ ## Architecture Overview
8
+
9
+ ```
10
+ src/components/template/<ComponentName>/
11
+ ├── <ComponentName>.tsx # Component implementation
12
+ ├── index.tsx # Re-export (if present)
13
+ ├── <ComponentName>.css # Styles (CSS file, optional)
14
+ ├── utils.ts # Template-specific utilities (optional)
15
+ └── config-ext.json # Metadata (optional)
16
+ ```
17
+
18
+ Some templates have nested sub-templates:
19
+
20
+ ```
21
+ src/components/template/TwoColumn/
22
+ ├── TwoColumn/TwoColumn.tsx
23
+ ├── TwoColumnPage/TwoColumnPage.tsx
24
+ └── TwoColumnTab/TwoColumnTab.tsx
25
+ ```
26
+
27
+ ---
28
+
29
+ ## Props Interface
30
+
31
+ Template components extend `PConnProps`:
32
+
33
+ ```typescript
34
+ import type { PConnProps } from '../../../types/PConnProps';
35
+
36
+ interface PConnProps {
37
+ getPConnect: () => typeof PConnect;
38
+ }
39
+ ```
40
+
41
+ Templates typically receive children through `getPConnect().getChildren()` rather than React `children` prop, though layout templates (TwoColumn, OneColumn) receive React children directly.
42
+
43
+ ---
44
+
45
+ ## Implementation Patterns
46
+
47
+ ### Layout Template (renders React children in grid)
48
+
49
+ Used for: TwoColumn, OneColumn, NarrowWide, WideNarrow
50
+
51
+ ```typescript
52
+ import type { PropsWithChildren, ReactElement } from 'react';
53
+ import Grid, { type GridSize } from '@mui/material/Grid';
54
+ import type { PConnProps } from '../../../types/PConnProps';
55
+
56
+ interface TwoColumnProps extends PConnProps {
57
+ templateCol?: string; // e.g. "1fr 1fr", "2fr 1fr"
58
+ }
59
+
60
+ export default function TwoColumn(props: PropsWithChildren<TwoColumnProps>) {
61
+ const { children, templateCol = '1fr 1fr' } = props;
62
+ const childrenToRender = children as ReactElement[];
63
+
64
+ // Parse templateCol to calculate grid sizes
65
+ const colArray = templateCol.replaceAll(/[a-z]+/g, '').split(/\s/).map(Number);
66
+ const totalCols = colArray.reduce((v, itm) => itm + v, 0);
67
+ const ratio = 12 / totalCols;
68
+ const aSize = (ratio * colArray[0]) as GridSize;
69
+ const bSize = (ratio * colArray[1]) as GridSize;
70
+
71
+ return (
72
+ <Grid container spacing={1}>
73
+ <Grid size={{ xs: 12, md: aSize }}>{childrenToRender[0]}</Grid>
74
+ <Grid size={{ xs: 12, md: bSize }}>{childrenToRender[1]}</Grid>
75
+ </Grid>
76
+ );
77
+ }
78
+ ```
79
+
80
+ ### Form Template (renders children via PConnect bridge)
81
+
82
+ Used for: DefaultForm, HierarchicalForm
83
+
84
+ ```typescript
85
+ import { createElement } from 'react';
86
+ import createPConnectComponent from '../../helpers/react_pconnect';
87
+ import connectToState from '../../helpers/state-utils';
88
+ import type { PConnProps } from '../../../types/PConnProps';
89
+
90
+ interface DefaultFormProps extends PConnProps {
91
+ NumCols: string;
92
+ instructions: string;
93
+ }
94
+
95
+ export default function DefaultForm(props: DefaultFormProps) {
96
+ const { getPConnect, NumCols = '1' } = props;
97
+
98
+ // Get children from the first region
99
+ const arChildren = getPConnect().getChildren()[0].getPConnect().getChildren();
100
+
101
+ // Wrap each child in a PConnect component
102
+ const dfChildren = arChildren?.map((kid, i) => (
103
+ createElement(createPConnectComponent(), { ...kid, key: `child-${i}` })
104
+ ));
105
+
106
+ return <div className={`form-${NumCols}-col`}>{dfChildren}</div>;
107
+ }
108
+ ```
109
+
110
+ ### Page Template (renders regions from PConnect children)
111
+
112
+ Used for: CaseView, DefaultPage, ObjectPage
113
+
114
+ ```typescript
115
+ import { createElement } from 'react';
116
+ import createPConnectComponent from '../../helpers/react_pconnect';
117
+ import type { PConnProps } from '../../../types/PConnProps';
118
+
119
+ interface CaseViewProps extends PConnProps {
120
+ header?: string;
121
+ subheader?: string;
122
+ }
123
+
124
+ export default function CaseView(props: CaseViewProps) {
125
+ const { getPConnect, header } = props;
126
+ const pConn = getPConnect();
127
+ const children = pConn.getChildren();
128
+
129
+ return (
130
+ <div>
131
+ <h2>{header}</h2>
132
+ {children.map((child, index) => (
133
+ createElement(createPConnectComponent(), { ...child, key: `region-${index}` })
134
+ ))}
135
+ </div>
136
+ );
137
+ }
138
+ ```
139
+
140
+ ---
141
+
142
+ ## Rendering Children
143
+
144
+ Templates use two patterns to render child components:
145
+
146
+ ### 1. React children (layout templates)
147
+
148
+ ```typescript
149
+ // TwoColumn, OneColumn, etc. receive children as React props
150
+ const { children } = props;
151
+ const childrenToRender = children as ReactElement[];
152
+ ```
153
+
154
+ ### 2. PConnect children (form/page templates)
155
+
156
+ ```typescript
157
+ import { createElement } from 'react';
158
+ import createPConnectComponent from '../../helpers/react_pconnect';
159
+
160
+ // Get child PConnect objects
161
+ const children = getPConnect().getChildren();
162
+
163
+ // Render each child through the PConnect bridge
164
+ children.map((child, i) =>
165
+ createElement(createPConnectComponent(), { ...child, key: `child-${i}` }),
166
+ );
167
+ ```
168
+
169
+ ### 3. State-connected children (DefaultForm pattern)
170
+
171
+ ```typescript
172
+ import connectToState from '../../helpers/state-utils';
173
+ import createPConnectComponent from '../../helpers/react_pconnect';
174
+
175
+ // connectToState HOC subscribes to Redux store for visibility/props
176
+ const Child = connectToState(mapStateToProps)((props) => {
177
+ const { key, visibility, ...rest } = props;
178
+ return createElement(createPConnectComponent(), { ...rest, key, visibility });
179
+ });
180
+ ```
181
+
182
+ ---
183
+
184
+ ## Helper Utilities
185
+
186
+ ### `createPConnectComponent` (from `../../helpers/react_pconnect`)
187
+
188
+ Factory that returns the PConnect bridge component. Used to render child PConnect objects:
189
+
190
+ ```typescript
191
+ import createPConnectComponent from '../../helpers/react_pconnect';
192
+ createElement(createPConnectComponent(), childPConnectProps);
193
+ ```
194
+
195
+ ### `connectToState` (from `../../helpers/state-utils`)
196
+
197
+ HOC that connects a component to the Redux store for visibility and dynamic props:
198
+
199
+ ```typescript
200
+ import connectToState from '../../helpers/state-utils';
201
+ const ConnectedChild = connectToState(mapStateToProps)(ChildComponent);
202
+ ```
203
+
204
+ ### `getInstructions` (from `../../helpers/template-utils`)
205
+
206
+ Extracts instruction text for forms:
207
+
208
+ ```typescript
209
+ import { getInstructions } from '../../helpers/template-utils';
210
+ const instructions = getInstructions(getPConnect(), props.instructions);
211
+ ```
212
+
213
+ ---
214
+
215
+ ## Registration
216
+
217
+ Register templates in `src/components/component-map.ts`:
218
+
219
+ ```typescript
220
+ import MyTemplate from './template/MyTemplate';
221
+
222
+ // In getSampleComponentMap():
223
+ {
224
+ ...sdkComponents,
225
+ MyTemplate, // Key must match Pega component name
226
+ }
227
+ ```
228
+
229
+ For nested templates (e.g., TwoColumn/TwoColumnPage/TwoColumnTab), register each separately:
230
+
231
+ ```typescript
232
+ import TwoColumn from './template/TwoColumn/TwoColumn/TwoColumn';
233
+ import TwoColumnPage from './template/TwoColumn/TwoColumnPage';
234
+ import TwoColumnTab from './template/TwoColumn/TwoColumnTab';
235
+
236
+ {
237
+ TwoColumn,
238
+ TwoColumnPage,
239
+ TwoColumnTab,
240
+ }
241
+ ```
242
+
243
+ ---
244
+
245
+ ## Existing Template Components
246
+
247
+ | Component | Type | Description |
248
+ | ----------------------------------------------- | ---------- | ------------------------------------ |
249
+ | AdvancedSearch | Page | Advanced search with filters |
250
+ | AppShell | Page | Top-level app layout with nav |
251
+ | BannerPage | Page | Page with banner section |
252
+ | CaseSummary | Page | Case summary header |
253
+ | CaseView | Page | Main case view with regions |
254
+ | CaseViewActionsMenu | Widget | Case action dropdown menu |
255
+ | Confirmation | Page | Case completion confirmation |
256
+ | DataReference | Form | Embedded data reference lookup |
257
+ | DefaultForm | Form | Standard form layout (1/2/3 columns) |
258
+ | DefaultPage | Page | Default page structure |
259
+ | Details / DetailsTwoColumn / DetailsThreeColumn | Layout | Details region layouts |
260
+ | FieldGroupTemplate | Form | Repeating field group |
261
+ | HierarchicalForm | Form | Multi-step hierarchical form |
262
+ | InlineDashboard | Page | Inline dashboard container |
263
+ | ListPage | Page | List/table page |
264
+ | ListView | Page | Data table with filtering/sorting |
265
+ | MultiReferenceReadOnly | Display | Read-only multi-reference display |
266
+ | NarrowWide / WideNarrow | Layout | Asymmetric two-column layouts |
267
+ | ObjectPage | Page | Object detail page |
268
+ | OneColumn | Layout | Single-column layout |
269
+ | PromotedFilters | Widget | Filter bar for lists |
270
+ | SimpleTable | Table | Editable/read-only data tables |
271
+ | SingleReferenceReadOnly | Display | Read-only single reference |
272
+ | SubTabs | Navigation | Tab container |
273
+ | TwoColumn | Layout | Two-column layout |
274
+ | WssNavBar | Navigation | WSS navigation bar |
275
+
276
+ ---
277
+
278
+ ## Key Conventions
279
+
280
+ 1. **Default export** — `export default function TemplateName`.
281
+ 2. **Children from PConnect** — Use `getPConnect().getChildren()` to access child regions.
282
+ 3. **createElement pattern** — Use `createElement(createPConnectComponent(), childProps)` to render PConnect children.
283
+ 4. **CSS files** — Template-specific styles go in `<TemplateName>.css` alongside the component.
284
+ 5. **Responsive** — Use MUI Grid with `xs: 12` for mobile and `md: <size>` for desktop breakpoints.
285
+ 6. **templateCol** — Layout templates often receive a `templateCol` prop (e.g., `"1fr 1fr"`, `"2fr 1fr"`) to control column ratios.
@@ -0,0 +1,144 @@
1
+ # Skill: AdvancedSearch
2
+
3
+ Advanced search template. Renders grouped search field sections with deduplication, delegating each section to a `SearchGroups` sub-component. Also covers the `SearchGroups` sub-component.
4
+
5
+ > **Prerequisite skill:** [`template-components.md`](../template-components.md) — covers architecture, child rendering patterns, and registration conventions common to ALL template components.
6
+
7
+ ---
8
+
9
+ ## Component Purpose
10
+
11
+ Renders a multi-section advanced search form where search fields are organized into groups. Deduplicates search fields by value across groups. Each group is rendered by the `SearchGroups` sub-component. Shares search configuration via a React context (`DataReferenceAdvancedSearchContext`).
12
+
13
+ ## Pega Metadata
14
+
15
+ - **Registration key:** `AdvancedSearch` (in `component-map.ts`)
16
+ - **Category:** Search / Filter template
17
+ - **Extends:** `PConnProps`
18
+
19
+ ## Props
20
+
21
+ | Prop | Type | Required | Description |
22
+ |------|------|----------|-------------|
23
+ | `dataPageName` | `string` | Yes | Data page for search results |
24
+ | `parameters` | `object` | No | Parameters passed to the data page |
25
+ | `getPConnect` | `function` | Yes | PConnect getter |
26
+
27
+ ## Behavioral Contract
28
+
29
+ ### Search Groups from Metadata
30
+
31
+ 1. `rawViewMetadata = getPConnect().getRawMetadata()`.
32
+ 2. `searchGroups = rawViewMetadata.config.searchGroups` — array of group config objects.
33
+ 3. Each group has a `label` and a `fields` array.
34
+
35
+ ### Field Deduplication
36
+
37
+ - Track seen field values in a `Set`.
38
+ - For each field across all groups: if `field.value` already in Set, skip it.
39
+ - Else add `field.value` to Set and include the field.
40
+ - Deduplication is applied per-group in order — earlier groups take precedence.
41
+
42
+ ### Context (`DataReferenceAdvancedSearchContext`)
43
+
44
+ Provides shared config to `SearchGroups`:
45
+ ```tsx
46
+ <DataReferenceAdvancedSearchContext.Provider value={{ dataPageName, parameters, getPConnect }}>
47
+ {searchGroups.map((group) => <SearchGroups key={group.label} group={group} />)}
48
+ </DataReferenceAdvancedSearchContext.Provider>
49
+ ```
50
+
51
+ ### Render Structure
52
+
53
+ ```
54
+ <div className="psdk-advanced-search">
55
+ {searchGroups.map(group => (
56
+ <SearchGroups group={group} key={group.label} />
57
+ ))}
58
+ </div>
59
+ ```
60
+
61
+ ---
62
+
63
+ ## Sub-Component: SearchGroups
64
+
65
+ Renders a single search group section: a heading + a list of editable search fields.
66
+
67
+ ### Props
68
+
69
+ | Prop | Type | Description |
70
+ |------|------|-------------|
71
+ | `group` | `object` | `{ label: string, fields: array }` |
72
+
73
+ ### Behavioral Contract
74
+
75
+ For each field in `group.fields`:
76
+ 1. Get `firstChildPConnect = getPConnect().getChildren()[0]`.
77
+ 2. Create an editable field component: `firstChildPConnect.createComponent({ type: field.type, config: { ...field.config } })`.
78
+ 3. Render the created component alongside a `<SearchGroups>` label row.
79
+
80
+ ### Render Structure
81
+
82
+ ```
83
+ <div className="psdk-search-group">
84
+ <h4>{group.label}</h4>
85
+ {group.fields.map((field, i) => (
86
+ <div key={i} className="psdk-search-group-field">
87
+ {createdFieldComponent[i]}
88
+ </div>
89
+ ))}
90
+ </div>
91
+ ```
92
+
93
+ ## Visual Specifications
94
+
95
+ ### AdvancedSearch Container
96
+
97
+ | Element | Description |
98
+ |---------|-------------|
99
+ | Outer container | Vertical stack of search group sections |
100
+
101
+ ### SearchGroups Section
102
+
103
+ | Element | Description |
104
+ |---------|-------------|
105
+ | Group heading | `<h4>` with group label |
106
+ | Field rows | Each field rendered as a form control |
107
+
108
+ **CSS-only implementation notes:**
109
+ - Outer container: `display: flex; flex-direction: column; gap: 1.5rem`.
110
+ - Group section: `display: flex; flex-direction: column; gap: 0.75rem`.
111
+ - Group heading: `font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem`.
112
+ - Field row: `display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 0.5rem`.
113
+
114
+ ## Edge Cases & Special Logic
115
+
116
+ - `rawViewMetadata.config.searchGroups` may be undefined if the view has no search groups — default to `[]`.
117
+ - Field deduplication is by `field.value` (the property path), not by label.
118
+ - `firstChildPConnect.createComponent` — must use the correct field type from `field.type`; the created component is a live PConnect view.
119
+ - Context is required by `SearchGroups` — always wrap `SearchGroups` with the context provider.
120
+
121
+ ## Dependencies
122
+
123
+ - `DataReferenceAdvancedSearchContext` — shared context (defined in `./context` or inline)
124
+ - `PConnectComponent` from `@pega/sdk-react` — renders created field components
125
+ - `getRawMetadata()` — for search group config extraction
126
+
127
+ ## Design System Mapping
128
+
129
+ **UI control type:** Multi-section advanced search form with grouped field rows.
130
+
131
+ Listed design systems are examples only.
132
+
133
+ | Design System | Group Heading | Field Layout |
134
+ |---|---|---|
135
+ | Default (CSS only) | `<h4>` | CSS grid 2-col (label + input) |
136
+ | MUI | `<Typography variant='h6'>` | `<Grid container>` |
137
+ | Ant Design | `<Typography.Title level={5}>` | `<Form.Item>` |
138
+ | Chakra UI | `<Heading size='sm'>` | `<FormControl>` rows |
139
+ | Shadcn/ui | `<h4>` or `<Label>` | Tailwind grid |
140
+
141
+ When implementing in a specific design system:
142
+ - `DataReferenceAdvancedSearchContext` must be provided — `SearchGroups` consumes it via `useContext`
143
+ - Field deduplication by `field.value` must happen before rendering
144
+ - `createComponent` creates live editable fields — render via `createElement(PConnectComponent, fieldConfig)`