@pega/custom-dx-components 0.25.7 → 0.25.9

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 (191) hide show
  1. package/package.json +1 -1
  2. package/src/tasks/build-jest-assets/index.js +2 -2
  3. package/src/tasks/create/templates/Constellation/Field/Boolean/config.json.mustache +25 -0
  4. package/src/tasks/create/templates/Constellation/Field/Date/config.json.mustache +25 -0
  5. package/src/tasks/create/templates/Constellation/Field/DateTime/config.json.mustache +25 -0
  6. package/src/tasks/create/templates/Constellation/Field/Decimal/config.json.mustache +25 -0
  7. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/config.json.mustache +25 -0
  8. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/config.json.mustache +25 -0
  9. package/src/tasks/create/templates/Constellation/Field/Integer/config.json.mustache +25 -0
  10. package/src/tasks/create/templates/Constellation/Field/Picklist/config.json.mustache +25 -0
  11. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/config.json.mustache +25 -0
  12. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/config.json.mustache +25 -0
  13. package/src/tasks/create/templates/Constellation/Field/Text-Email/config.json.mustache +25 -0
  14. package/src/tasks/create/templates/Constellation/Field/Text-Input/config.json.mustache +25 -0
  15. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/config.json.mustache +25 -0
  16. package/src/tasks/create/templates/Constellation/Field/Text-Phone/config.json.mustache +25 -0
  17. package/src/tasks/create/templates/Constellation/Field/Text-URL/config.json.mustache +25 -0
  18. package/src/tasks/create/templates/Constellation/Field/TimeofDay/config.json.mustache +25 -0
  19. package/src/tasks/init/template/package.json.mustache +2 -2
  20. package/tests/assets/library/components/create/Pega_DXIL_MyTestText/demo.test.tsx +19 -0
  21. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +25 -0
  22. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.test.tsx +19 -0
  23. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.tsx +5 -4
  24. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.test.tsx +28 -0
  25. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +25 -0
  26. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.test.tsx +23 -0
  27. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +25 -0
  28. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/demo.stories.tsx +2 -2
  29. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/demo.test.tsx +52 -0
  30. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +25 -0
  31. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.tsx +3 -2
  32. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.test.tsx +72 -0
  33. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +25 -0
  34. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.test.tsx +21 -0
  35. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +4 -3
  36. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.test.tsx +47 -0
  37. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +25 -0
  38. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.test.tsx +20 -0
  39. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/demo.test.tsx +40 -0
  40. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +2 -2
  41. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.test.tsx +27 -0
  42. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +25 -0
  43. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.test.tsx +18 -0
  44. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx +6 -2
  45. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/demo.test.tsx +24 -0
  46. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +4 -3
  47. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.test.tsx +29 -0
  48. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx +4 -2
  49. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.test.tsx +36 -0
  50. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.tsx +4 -1
  51. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +25 -0
  52. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.test.tsx +21 -0
  53. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +25 -0
  54. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.test.tsx +18 -0
  55. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +25 -0
  56. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.test.tsx +23 -0
  57. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +25 -0
  58. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.test.tsx +25 -0
  59. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +25 -0
  60. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/demo.test.tsx +29 -0
  61. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +25 -0
  62. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/demo.test.tsx +33 -0
  63. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/demo.test.tsx +19 -0
  64. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +25 -0
  65. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.test.tsx +20 -0
  66. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +25 -0
  67. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.test.tsx +33 -0
  68. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +3 -3
  69. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.test.tsx +58 -0
  70. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.test.tsx +56 -0
  71. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +25 -0
  72. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/demo.test.tsx +20 -0
  73. package/tests/assets/original/components/create/Pega_DXIL_MyTestText/demo.test.tsx +19 -0
  74. package/tests/assets/original/components/create/shared/Avatar.tsx +76 -0
  75. package/tests/assets/original/components/create/shared/Operator.tsx +215 -0
  76. package/tests/assets/original/components/create/shared/PConnProps.d.ts +46 -0
  77. package/tests/assets/original/components/create/shared/create-nonce.ts +6 -0
  78. package/tests/assets/original/components/create/shared/suggestions-handler.ts +9 -0
  79. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +25 -0
  80. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.test.tsx +19 -0
  81. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.tsx +5 -4
  82. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.test.tsx +28 -0
  83. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +25 -0
  84. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.test.tsx +23 -0
  85. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +25 -0
  86. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/demo.stories.tsx +2 -2
  87. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/demo.test.tsx +52 -0
  88. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +25 -0
  89. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.tsx +3 -2
  90. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.test.tsx +72 -0
  91. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +25 -0
  92. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.test.tsx +21 -0
  93. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +4 -3
  94. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.test.tsx +47 -0
  95. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +25 -0
  96. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.test.tsx +20 -0
  97. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/demo.test.tsx +40 -0
  98. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +2 -2
  99. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.test.tsx +27 -0
  100. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +25 -0
  101. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.test.tsx +18 -0
  102. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx +6 -2
  103. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/demo.test.tsx +24 -0
  104. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +4 -3
  105. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.test.tsx +29 -0
  106. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx +4 -2
  107. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.test.tsx +36 -0
  108. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.tsx +4 -1
  109. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +25 -0
  110. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.test.tsx +21 -0
  111. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +25 -0
  112. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.test.tsx +18 -0
  113. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +25 -0
  114. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.test.tsx +23 -0
  115. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +25 -0
  116. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.test.tsx +25 -0
  117. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +25 -0
  118. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/demo.test.tsx +29 -0
  119. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +25 -0
  120. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/demo.test.tsx +33 -0
  121. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/demo.test.tsx +19 -0
  122. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +25 -0
  123. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.test.tsx +20 -0
  124. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +25 -0
  125. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.test.tsx +33 -0
  126. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +3 -3
  127. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.test.tsx +58 -0
  128. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.test.tsx +56 -0
  129. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +25 -0
  130. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/demo.test.tsx +20 -0
  131. package/tests/assets/original/components/createAll/Constellation/shared/Avatar.tsx +76 -0
  132. package/tests/assets/original/components/createAll/Constellation/shared/Operator.tsx +215 -0
  133. package/tests/assets/original/components/createAll/Constellation/shared/PConnProps.d.ts +46 -0
  134. package/tests/assets/original/components/createAll/Constellation/shared/create-nonce.ts +6 -0
  135. package/tests/assets/original/components/createAll/Constellation/shared/suggestions-handler.ts +9 -0
  136. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/config.json +25 -0
  137. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/demo.test.tsx +19 -0
  138. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.tsx +5 -4
  139. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.test.tsx +28 -0
  140. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/config.json +25 -0
  141. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.test.tsx +23 -0
  142. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/config.json +25 -0
  143. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.stories.tsx +2 -2
  144. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.test.tsx +52 -0
  145. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/config.json +25 -0
  146. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.tsx +3 -2
  147. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.test.tsx +72 -0
  148. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/config.json +25 -0
  149. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.test.tsx +21 -0
  150. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.tsx +4 -3
  151. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.test.tsx +47 -0
  152. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/config.json +25 -0
  153. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.test.tsx +20 -0
  154. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.test.tsx +40 -0
  155. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +3 -2
  156. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/demo.test.tsx +27 -0
  157. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/config.json +25 -0
  158. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.test.tsx +18 -0
  159. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.tsx +6 -2
  160. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.test.tsx +24 -0
  161. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +4 -3
  162. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.test.tsx +19 -0
  163. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.stories.tsx +4 -2
  164. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.test.tsx +36 -0
  165. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/config.json +25 -0
  166. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.test.tsx +21 -0
  167. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/config.json +25 -0
  168. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.test.tsx +18 -0
  169. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/config.json +25 -0
  170. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.test.tsx +23 -0
  171. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/config.json +25 -0
  172. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/demo.test.tsx +25 -0
  173. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/config.json +25 -0
  174. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/demo.test.tsx +29 -0
  175. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/config.json +25 -0
  176. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/demo.test.tsx +33 -0
  177. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/demo.test.tsx +19 -0
  178. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/config.json +25 -0
  179. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.test.tsx +20 -0
  180. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/config.json +25 -0
  181. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/demo.test.tsx +33 -0
  182. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +3 -3
  183. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.test.tsx +58 -0
  184. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.test.tsx +56 -0
  185. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/config.json +25 -0
  186. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.test.tsx +20 -0
  187. package/tests/assets/original/components/createAll/Launchpad/shared/Avatar.tsx +76 -0
  188. package/tests/assets/original/components/createAll/Launchpad/shared/Operator.tsx +215 -0
  189. package/tests/assets/original/components/createAll/Launchpad/shared/PConnProps.d.ts +46 -0
  190. package/tests/assets/original/components/createAll/Launchpad/shared/create-nonce.ts +6 -0
  191. package/tests/assets/original/components/createAll/Launchpad/shared/suggestions-handler.ts +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/custom-dx-components",
3
- "version": "0.25.7",
3
+ "version": "0.25.9",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -151,7 +151,7 @@ const createJestLibraryAssets = async(isLaunchPad = false) => {
151
151
  // initially delete local assets
152
152
  await deleteAssets();
153
153
 
154
- let args = ['', '', '', 'DXIL', '0.0.1', 'N'];
154
+ let args = ['', '', '', 'DXIL', '0.0.1', 'N', 'Original'];
155
155
  let myOptions = {};
156
156
  myOptions["params"] = args;
157
157
 
@@ -200,7 +200,7 @@ const createJestLibraryAssets = async(isLaunchPad = false) => {
200
200
  await copyAssets(createPath);
201
201
  await deleteAssets();
202
202
 
203
- args = [ '','', '', 'Pega_DXIL', '0.0.1-dev'];
203
+ args = [ '','', '', 'Pega_DXIL', '0.0.1-dev', 'Y'];
204
204
  myOptions = {};
205
205
  myOptions["params"] = args;
206
206
 
@@ -15,6 +15,31 @@
15
15
  "name": "label",
16
16
  "label": "Field label",
17
17
  "format": "TEXT"
18
+ },
19
+ {
20
+ "name": "labelOption",
21
+ "label": "Field label",
22
+ "format": "SELECT",
23
+ "defaultValue": "custom",
24
+ "visibility": "@PLATFORMNAME != 'launchpad'",
25
+ "source": [
26
+ {
27
+ "key": "default",
28
+ "value": "Default"
29
+ },
30
+ {
31
+ "key": "custom",
32
+ "value": "Custom"
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ "name": "label",
38
+ "label": "Custom field label",
39
+ "format": "VALUEINPUT",
40
+ "required": true,
41
+ "ruleType": "Paragraph",
42
+ "visibility": "@PLATFORMNAME != 'launchpad'"
18
43
  },
19
44
  {
20
45
  "name": "hideLabel",
@@ -17,6 +17,31 @@
17
17
  "format": "TEXT",
18
18
  "required": true
19
19
  },
20
+ {
21
+ "name": "labelOption",
22
+ "label": "Field label",
23
+ "format": "SELECT",
24
+ "defaultValue": "custom",
25
+ "visibility": "@PLATFORMNAME != 'launchpad'",
26
+ "source": [
27
+ {
28
+ "key": "default",
29
+ "value": "Default"
30
+ },
31
+ {
32
+ "key": "custom",
33
+ "value": "Custom"
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "name": "label",
39
+ "label": "Custom field label",
40
+ "format": "VALUEINPUT",
41
+ "required": true,
42
+ "ruleType": "Paragraph",
43
+ "visibility": "@PLATFORMNAME != 'launchpad'"
44
+ },
20
45
  {
21
46
  "name": "readOnly",
22
47
  "label": "Edit mode",
@@ -17,6 +17,31 @@
17
17
  "format": "TEXT",
18
18
  "required": true
19
19
  },
20
+ {
21
+ "name": "labelOption",
22
+ "label": "Field label",
23
+ "format": "SELECT",
24
+ "defaultValue": "custom",
25
+ "visibility": "@PLATFORMNAME != 'launchpad'",
26
+ "source": [
27
+ {
28
+ "key": "default",
29
+ "value": "Default"
30
+ },
31
+ {
32
+ "key": "custom",
33
+ "value": "Custom"
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "name": "label",
39
+ "label": "Custom field label",
40
+ "format": "VALUEINPUT",
41
+ "required": true,
42
+ "ruleType": "Paragraph",
43
+ "visibility": "@PLATFORMNAME != 'launchpad'"
44
+ },
20
45
  {
21
46
  "name": "readOnly",
22
47
  "label": "Edit mode",
@@ -17,6 +17,31 @@
17
17
  "format": "TEXT",
18
18
  "required": true
19
19
  },
20
+ {
21
+ "name": "labelOption",
22
+ "label": "Field label",
23
+ "format": "SELECT",
24
+ "defaultValue": "custom",
25
+ "visibility": "@PLATFORMNAME != 'launchpad'",
26
+ "source": [
27
+ {
28
+ "key": "default",
29
+ "value": "Default"
30
+ },
31
+ {
32
+ "key": "custom",
33
+ "value": "Custom"
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "name": "label",
39
+ "label": "Custom field label",
40
+ "format": "VALUEINPUT",
41
+ "required": true,
42
+ "ruleType": "Paragraph",
43
+ "visibility": "@PLATFORMNAME != 'launchpad'"
44
+ },
20
45
  {
21
46
  "name": "readOnly",
22
47
  "label": "Edit mode",
@@ -17,6 +17,31 @@
17
17
  "format": "TEXT",
18
18
  "required": true
19
19
  },
20
+ {
21
+ "name": "labelOption",
22
+ "label": "Field label",
23
+ "format": "SELECT",
24
+ "defaultValue": "custom",
25
+ "visibility": "@PLATFORMNAME != 'launchpad'",
26
+ "source": [
27
+ {
28
+ "key": "default",
29
+ "value": "Default"
30
+ },
31
+ {
32
+ "key": "custom",
33
+ "value": "Custom"
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "name": "label",
39
+ "label": "Custom field label",
40
+ "format": "VALUEINPUT",
41
+ "required": true,
42
+ "ruleType": "Paragraph",
43
+ "visibility": "@PLATFORMNAME != 'launchpad'"
44
+ },
20
45
  {
21
46
  "name": "readOnly",
22
47
  "label": "Edit mode",
@@ -17,6 +17,31 @@
17
17
  "format": "TEXT",
18
18
  "required": true
19
19
  },
20
+ {
21
+ "name": "labelOption",
22
+ "label": "Field label",
23
+ "format": "SELECT",
24
+ "defaultValue": "custom",
25
+ "visibility": "@PLATFORMNAME != 'launchpad'",
26
+ "source": [
27
+ {
28
+ "key": "default",
29
+ "value": "Default"
30
+ },
31
+ {
32
+ "key": "custom",
33
+ "value": "Custom"
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "name": "label",
39
+ "label": "Custom field label",
40
+ "format": "VALUEINPUT",
41
+ "required": true,
42
+ "ruleType": "Paragraph",
43
+ "visibility": "@PLATFORMNAME != 'launchpad'"
44
+ },
20
45
  {
21
46
  "name": "readOnly",
22
47
  "label": "Edit mode",
@@ -19,6 +19,31 @@
19
19
  "format": "TEXT",
20
20
  "required": true
21
21
  },
22
+ {
23
+ "name": "labelOption",
24
+ "label": "Field label",
25
+ "format": "SELECT",
26
+ "defaultValue": "custom",
27
+ "visibility": "@PLATFORMNAME != 'launchpad'",
28
+ "source": [
29
+ {
30
+ "key": "default",
31
+ "value": "Default"
32
+ },
33
+ {
34
+ "key": "custom",
35
+ "value": "Custom"
36
+ }
37
+ ]
38
+ },
39
+ {
40
+ "name": "label",
41
+ "label": "Custom field label",
42
+ "format": "VALUEINPUT",
43
+ "required": true,
44
+ "ruleType": "Paragraph",
45
+ "visibility": "@PLATFORMNAME != 'launchpad'"
46
+ },
22
47
  {
23
48
  "name": "readOnly",
24
49
  "label": "Edit mode",
@@ -17,6 +17,31 @@
17
17
  "format": "TEXT",
18
18
  "required": true
19
19
  },
20
+ {
21
+ "name": "labelOption",
22
+ "label": "Field label",
23
+ "format": "SELECT",
24
+ "defaultValue": "custom",
25
+ "visibility": "@PLATFORMNAME != 'launchpad'",
26
+ "source": [
27
+ {
28
+ "key": "default",
29
+ "value": "Default"
30
+ },
31
+ {
32
+ "key": "custom",
33
+ "value": "Custom"
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "name": "label",
39
+ "label": "Custom field label",
40
+ "format": "VALUEINPUT",
41
+ "required": true,
42
+ "ruleType": "Paragraph",
43
+ "visibility": "@PLATFORMNAME != 'launchpad'"
44
+ },
20
45
  {
21
46
  "name": "readOnly",
22
47
  "label": "Edit mode",
@@ -17,6 +17,31 @@
17
17
  "format": "TEXT",
18
18
  "required": true
19
19
  },
20
+ {
21
+ "name": "labelOption",
22
+ "label": "Field label",
23
+ "format": "SELECT",
24
+ "defaultValue": "custom",
25
+ "visibility": "@PLATFORMNAME != 'launchpad'",
26
+ "source": [
27
+ {
28
+ "key": "default",
29
+ "value": "Default"
30
+ },
31
+ {
32
+ "key": "custom",
33
+ "value": "Custom"
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "name": "label",
39
+ "label": "Custom field label",
40
+ "format": "VALUEINPUT",
41
+ "required": true,
42
+ "ruleType": "Paragraph",
43
+ "visibility": "@PLATFORMNAME != 'launchpad'"
44
+ },
20
45
  {
21
46
  "name": "readOnly",
22
47
  "label": "Edit mode",
@@ -17,6 +17,31 @@
17
17
  "format": "TEXT",
18
18
  "required": true
19
19
  },
20
+ {
21
+ "name": "labelOption",
22
+ "label": "Field label",
23
+ "format": "SELECT",
24
+ "defaultValue": "custom",
25
+ "visibility": "@PLATFORMNAME != 'launchpad'",
26
+ "source": [
27
+ {
28
+ "key": "default",
29
+ "value": "Default"
30
+ },
31
+ {
32
+ "key": "custom",
33
+ "value": "Custom"
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "name": "label",
39
+ "label": "Custom field label",
40
+ "format": "VALUEINPUT",
41
+ "required": true,
42
+ "ruleType": "Paragraph",
43
+ "visibility": "@PLATFORMNAME != 'launchpad'"
44
+ },
20
45
  {
21
46
  "name": "readOnly",
22
47
  "label": "Edit mode",
@@ -17,6 +17,31 @@
17
17
  "format": "TEXT",
18
18
  "required": true
19
19
  },
20
+ {
21
+ "name": "labelOption",
22
+ "label": "Field label",
23
+ "format": "SELECT",
24
+ "defaultValue": "custom",
25
+ "visibility": "@PLATFORMNAME != 'launchpad'",
26
+ "source": [
27
+ {
28
+ "key": "default",
29
+ "value": "Default"
30
+ },
31
+ {
32
+ "key": "custom",
33
+ "value": "Custom"
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "name": "label",
39
+ "label": "Custom field label",
40
+ "format": "VALUEINPUT",
41
+ "required": true,
42
+ "ruleType": "Paragraph",
43
+ "visibility": "@PLATFORMNAME != 'launchpad'"
44
+ },
20
45
  {
21
46
  "name": "readOnly",
22
47
  "label": "Edit mode",
@@ -17,6 +17,31 @@
17
17
  "format": "TEXT",
18
18
  "required": true
19
19
  },
20
+ {
21
+ "name": "labelOption",
22
+ "label": "Field label",
23
+ "format": "SELECT",
24
+ "defaultValue": "custom",
25
+ "visibility": "@PLATFORMNAME != 'launchpad'",
26
+ "source": [
27
+ {
28
+ "key": "default",
29
+ "value": "Default"
30
+ },
31
+ {
32
+ "key": "custom",
33
+ "value": "Custom"
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "name": "label",
39
+ "label": "Custom field label",
40
+ "format": "VALUEINPUT",
41
+ "required": true,
42
+ "ruleType": "Paragraph",
43
+ "visibility": "@PLATFORMNAME != 'launchpad'"
44
+ },
20
45
  {
21
46
  "name": "readOnly",
22
47
  "label": "Edit mode",
@@ -17,6 +17,31 @@
17
17
  "format": "TEXT",
18
18
  "required": true
19
19
  },
20
+ {
21
+ "name": "labelOption",
22
+ "label": "Field label",
23
+ "format": "SELECT",
24
+ "defaultValue": "custom",
25
+ "visibility": "@PLATFORMNAME != 'launchpad'",
26
+ "source": [
27
+ {
28
+ "key": "default",
29
+ "value": "Default"
30
+ },
31
+ {
32
+ "key": "custom",
33
+ "value": "Custom"
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "name": "label",
39
+ "label": "Custom field label",
40
+ "format": "VALUEINPUT",
41
+ "required": true,
42
+ "ruleType": "Paragraph",
43
+ "visibility": "@PLATFORMNAME != 'launchpad'"
44
+ },
20
45
  {
21
46
  "name": "readOnly",
22
47
  "label": "Edit mode",
@@ -17,6 +17,31 @@
17
17
  "format": "TEXT",
18
18
  "required": true
19
19
  },
20
+ {
21
+ "name": "labelOption",
22
+ "label": "Field label",
23
+ "format": "SELECT",
24
+ "defaultValue": "custom",
25
+ "visibility": "@PLATFORMNAME != 'launchpad'",
26
+ "source": [
27
+ {
28
+ "key": "default",
29
+ "value": "Default"
30
+ },
31
+ {
32
+ "key": "custom",
33
+ "value": "Custom"
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "name": "label",
39
+ "label": "Custom field label",
40
+ "format": "VALUEINPUT",
41
+ "required": true,
42
+ "ruleType": "Paragraph",
43
+ "visibility": "@PLATFORMNAME != 'launchpad'"
44
+ },
20
45
  {
21
46
  "name": "readOnly",
22
47
  "label": "Edit mode",
@@ -17,6 +17,31 @@
17
17
  "format": "TEXT",
18
18
  "required": true
19
19
  },
20
+ {
21
+ "name": "labelOption",
22
+ "label": "Field label",
23
+ "format": "SELECT",
24
+ "defaultValue": "custom",
25
+ "visibility": "@PLATFORMNAME != 'launchpad'",
26
+ "source": [
27
+ {
28
+ "key": "default",
29
+ "value": "Default"
30
+ },
31
+ {
32
+ "key": "custom",
33
+ "value": "Custom"
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "name": "label",
39
+ "label": "Custom field label",
40
+ "format": "VALUEINPUT",
41
+ "required": true,
42
+ "ruleType": "Paragraph",
43
+ "visibility": "@PLATFORMNAME != 'launchpad'"
44
+ },
20
45
  {
21
46
  "name": "readOnly",
22
47
  "label": "Edit mode",
@@ -17,6 +17,31 @@
17
17
  "format": "TEXT",
18
18
  "required": true
19
19
  },
20
+ {
21
+ "name": "labelOption",
22
+ "label": "Field label",
23
+ "format": "SELECT",
24
+ "defaultValue": "custom",
25
+ "visibility": "@PLATFORMNAME != 'launchpad'",
26
+ "source": [
27
+ {
28
+ "key": "default",
29
+ "value": "Default"
30
+ },
31
+ {
32
+ "key": "custom",
33
+ "value": "Custom"
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "name": "label",
39
+ "label": "Custom field label",
40
+ "format": "VALUEINPUT",
41
+ "required": true,
42
+ "ruleType": "Paragraph",
43
+ "visibility": "@PLATFORMNAME != 'launchpad'"
44
+ },
20
45
  {
21
46
  "name": "readOnly",
22
47
  "label": "Edit mode",
@@ -106,7 +106,7 @@
106
106
  "@babel/preset-react": "^7.26.3",
107
107
  "@babel/preset-typescript": "^7.26.0",
108
108
  "@pega/configs": "^0.16.2",
109
- "@pega/custom-dx-components": "~0.25.7",
109
+ "@pega/custom-dx-components": "~0.25.9",
110
110
  "@pega/pcore-pconnect-typedefs": "^4.1.0-alpha.1",
111
111
  "@storybook/addon-actions": "^7.6.19",
112
112
  "@storybook/addon-essentials": "^7.6.19",
@@ -152,6 +152,6 @@
152
152
  "storybook": "^7.6.19",
153
153
  "stylelint": "^16.10.0",
154
154
  "ts-jest": "^29.2.5",
155
- "typescript": "~5.3.3"
155
+ "typescript": "~5.5.4"
156
156
  }
157
157
  }
@@ -0,0 +1,19 @@
1
+ // import { expect, test } from '@jest/globals';
2
+ import { render, screen } from '@testing-library/react';
3
+ import { composeStories } from '@storybook/react';
4
+ import '@testing-library/jest-dom';
5
+
6
+ import * as DemoStories from './demo.stories';
7
+
8
+ const { BasePegaDxilMyTestText } = composeStories(DemoStories);
9
+
10
+ test('renders PegaDxilMyTestText', async () => {
11
+ render(<BasePegaDxilMyTestText />);
12
+ expect(await screen.findByText('Text Sample')).toBeVisible();
13
+
14
+
15
+ const textElement = (screen.getByTestId('Text-12345678:input:control') as HTMLInputElement);
16
+ expect(textElement.value).toBe('');
17
+
18
+ expect(textElement).toHaveAttribute('placeholder', 'Text Placeholder');
19
+ });
@@ -15,6 +15,31 @@
15
15
  "name": "label",
16
16
  "label": "Field label",
17
17
  "format": "TEXT"
18
+ },
19
+ {
20
+ "name": "labelOption",
21
+ "label": "Field label",
22
+ "format": "SELECT",
23
+ "defaultValue": "custom",
24
+ "visibility": "@PLATFORMNAME != 'launchpad'",
25
+ "source": [
26
+ {
27
+ "key": "default",
28
+ "value": "Default"
29
+ },
30
+ {
31
+ "key": "custom",
32
+ "value": "Custom"
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ "name": "label",
38
+ "label": "Custom field label",
39
+ "format": "VALUEINPUT",
40
+ "required": true,
41
+ "ruleType": "Paragraph",
42
+ "visibility": "@PLATFORMNAME != 'launchpad'"
18
43
  },
19
44
  {
20
45
  "name": "hideLabel",
@@ -0,0 +1,19 @@
1
+ // import { expect, test } from '@jest/globals';
2
+ import { render, screen, fireEvent } from '@testing-library/react';
3
+ import { composeStories } from '@storybook/react';
4
+ import '@testing-library/jest-dom';
5
+
6
+ import * as DemoStories from './demo.stories';
7
+
8
+ const { BasePegaDxilMyBoolean } = composeStories(DemoStories);
9
+
10
+ test('renders PegaDxilMyBoolean', async () => {
11
+ render(<BasePegaDxilMyBoolean />);
12
+ expect(await screen.findByText('Boolean caption')).toBeVisible();
13
+ expect(await screen.findByText('Boolean label')).toBeVisible();
14
+ expect(await screen.findByText('Test helper text')).toBeVisible();
15
+ const checkboxElement = screen.getByRole('checkbox');
16
+ expect(checkboxElement).toBeChecked();
17
+ fireEvent.click(checkboxElement);
18
+ expect(checkboxElement).not.toBeChecked();
19
+ });
@@ -15,7 +15,7 @@ export default meta;
15
15
  type Story = StoryObj<typeof PegaDxilMyCaseWidget>;
16
16
 
17
17
  if (!window.PCore) {
18
- window.PCore = {};
18
+ window.PCore = {} as any;
19
19
  }
20
20
 
21
21
  export const BasePegaDxilMyCaseWidget: Story = (args: any) => {
@@ -25,7 +25,7 @@ export const BasePegaDxilMyCaseWidget: Story = (args: any) => {
25
25
  CASE_INFO: {
26
26
  CASE_INFO_ID: 'caseInfo.ID'
27
27
  }
28
- };
28
+ } as any;
29
29
  };
30
30
 
31
31
  window.PCore.getLocaleUtils = () => {
@@ -33,17 +33,18 @@ export const BasePegaDxilMyCaseWidget: Story = (args: any) => {
33
33
  getLocaleValue: (value: any) => {
34
34
  return value;
35
35
  }
36
- };
36
+ } as any;
37
37
  };
38
38
 
39
39
  window.PCore.getDataApiUtils = () => {
40
40
  return {
41
41
  getData: () => {
42
42
  return new Promise(resolve => {
43
+ // @ts-ignore
43
44
  resolve(historyData);
44
45
  });
45
46
  }
46
- };
47
+ } as any;
47
48
  };
48
49
 
49
50
  const props = {