@pega/custom-dx-components 24.2.16 → 25.1.10-alpha-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 (466) hide show
  1. package/package.json +37 -35
  2. package/src/cli.js +6 -0
  3. package/src/constants.js +11 -3
  4. package/src/tasks/authenticate/index.js +5 -0
  5. package/src/tasks/build-all/index.js +20 -1
  6. package/src/tasks/build-jest-assets/index.js +7 -8
  7. package/src/tasks/build-lib/helper.js +39 -20
  8. package/src/tasks/build-lib/index.js +40 -18
  9. package/src/tasks/create/index.js +5 -1
  10. package/src/tasks/create/templates/Constellation/Field/Boolean/config.json.mustache +26 -0
  11. package/src/tasks/create/templates/Constellation/Field/Boolean/create-nonce.ts.mustache +1 -0
  12. package/src/tasks/create/templates/Constellation/Field/Boolean/demo.test.tsx.mustache +19 -0
  13. package/src/tasks/create/templates/Constellation/Field/Date/config.json.mustache +26 -0
  14. package/src/tasks/create/templates/Constellation/Field/Date/create-nonce.ts.mustache +1 -0
  15. package/src/tasks/create/templates/Constellation/Field/Date/date.ts.mustache +0 -24
  16. package/src/tasks/create/templates/Constellation/Field/Date/demo.test.tsx.mustache +52 -0
  17. package/src/tasks/create/templates/Constellation/Field/DateTime/config.json.mustache +26 -0
  18. package/src/tasks/create/templates/Constellation/Field/DateTime/create-nonce.ts.mustache +1 -0
  19. package/src/tasks/create/templates/Constellation/Field/DateTime/demo.stories.tsx.mustache +1 -0
  20. package/src/tasks/create/templates/Constellation/Field/DateTime/demo.test.tsx.mustache +72 -0
  21. package/src/tasks/create/templates/Constellation/Field/Decimal/config.json.mustache +26 -0
  22. package/src/tasks/create/templates/Constellation/Field/Decimal/create-nonce.ts.mustache +1 -0
  23. package/src/tasks/create/templates/Constellation/Field/Decimal/demo.test.tsx.mustache +21 -0
  24. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/config.json.mustache +26 -0
  25. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/create-nonce.ts.mustache +1 -0
  26. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/demo.test.tsx.mustache +23 -0
  27. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/config.json.mustache +26 -0
  28. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/create-nonce.ts.mustache +1 -0
  29. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/demo.test.tsx.mustache +18 -0
  30. package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/config.json.mustache +1 -0
  31. package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/create-nonce.ts.mustache +1 -0
  32. package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/demo.test.tsx.mustache +27 -0
  33. package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/localizations.json.mustache +10 -0
  34. package/src/tasks/create/templates/Constellation/Field/Integer/config.json.mustache +26 -0
  35. package/src/tasks/create/templates/Constellation/Field/Integer/create-nonce.ts.mustache +1 -0
  36. package/src/tasks/create/templates/Constellation/Field/Integer/demo.test.tsx.mustache +18 -0
  37. package/src/tasks/create/templates/Constellation/Field/Picklist/config.json.mustache +26 -0
  38. package/src/tasks/create/templates/Constellation/Field/Picklist/create-nonce.ts.mustache +1 -0
  39. package/src/tasks/create/templates/Constellation/Field/Picklist/demo.test.tsx.mustache +25 -0
  40. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/config.json.mustache +26 -0
  41. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/create-nonce.ts.mustache +1 -0
  42. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/demo.test.tsx.mustache +33 -0
  43. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/index.tsx.mustache +7 -0
  44. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/localizations.json.mustache +5 -0
  45. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/repeat-utils.ts.mustache +0 -4
  46. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/config.json.mustache +26 -0
  47. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/create-nonce.ts.mustache +1 -0
  48. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/demo.test.tsx.mustache +29 -0
  49. package/src/tasks/create/templates/Constellation/Field/Text/config.json.mustache +1 -0
  50. package/src/tasks/create/templates/Constellation/Field/Text/create-nonce.ts.mustache +1 -0
  51. package/src/tasks/create/templates/Constellation/Field/Text/demo.test.tsx.mustache +19 -0
  52. package/src/tasks/create/templates/Constellation/Field/Text-Email/config.json.mustache +26 -0
  53. package/src/tasks/create/templates/Constellation/Field/Text-Email/create-nonce.ts.mustache +1 -0
  54. package/src/tasks/create/templates/Constellation/Field/Text-Email/demo.test.tsx.mustache +20 -0
  55. package/src/tasks/create/templates/Constellation/Field/Text-Input/config.json.mustache +26 -0
  56. package/src/tasks/create/templates/Constellation/Field/Text-Input/create-nonce.ts.mustache +1 -0
  57. package/src/tasks/create/templates/Constellation/Field/Text-Input/demo.test.tsx.mustache +20 -0
  58. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/config.json.mustache +26 -0
  59. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/create-nonce.ts.mustache +1 -0
  60. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/demo.test.tsx.mustache +21 -0
  61. package/src/tasks/create/templates/Constellation/Field/Text-Phone/config.json.mustache +26 -0
  62. package/src/tasks/create/templates/Constellation/Field/Text-Phone/create-nonce.ts.mustache +1 -0
  63. package/src/tasks/create/templates/Constellation/Field/Text-Phone/demo.test.tsx.mustache +23 -0
  64. package/src/tasks/create/templates/Constellation/Field/Text-URL/config.json.mustache +26 -0
  65. package/src/tasks/create/templates/Constellation/Field/Text-URL/create-nonce.ts.mustache +1 -0
  66. package/src/tasks/create/templates/Constellation/Field/Text-URL/demo.test.tsx.mustache +20 -0
  67. package/src/tasks/create/templates/Constellation/Field/TimeofDay/config.json.mustache +26 -0
  68. package/src/tasks/create/templates/Constellation/Field/TimeofDay/create-nonce.ts.mustache +1 -0
  69. package/src/tasks/create/templates/Constellation/Field/TimeofDay/demo.test.tsx.mustache +33 -0
  70. package/src/tasks/create/templates/Constellation/Template/DETAILS/config.json.mustache +1 -0
  71. package/src/tasks/create/templates/Constellation/Template/DETAILS/create-nonce.ts.mustache +1 -0
  72. package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.tsx.mustache +1 -0
  73. package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.test.tsx.mustache +47 -0
  74. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/config.json.mustache +1 -0
  75. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/create-nonce.ts.mustache +1 -0
  76. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.test.tsx.mustache +58 -0
  77. package/src/tasks/create/templates/Constellation/Template/FORM/config.json.mustache +1 -0
  78. package/src/tasks/create/templates/Constellation/Template/FORM/create-nonce.ts.mustache +1 -0
  79. package/src/tasks/create/templates/Constellation/Template/FORM/demo.test.tsx.mustache +40 -0
  80. package/src/tasks/create/templates/Constellation/Template/FORM-region/config.json.mustache +1 -0
  81. package/src/tasks/create/templates/Constellation/Template/FORM-region/create-nonce.ts.mustache +1 -0
  82. package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.test.tsx.mustache +56 -0
  83. package/src/tasks/create/templates/Constellation/Template/PAGE/config.json.mustache +1 -0
  84. package/src/tasks/create/templates/Constellation/Template/PAGE/create-nonce.ts.mustache +1 -0
  85. package/src/tasks/create/templates/Constellation/Template/PAGE/demo.stories.tsx.mustache +4 -0
  86. package/src/tasks/create/templates/Constellation/Template/PAGE/demo.test.tsx.mustache +24 -0
  87. package/src/tasks/create/templates/Constellation/Widget/CASE/config.json.mustache +1 -0
  88. package/src/tasks/create/templates/Constellation/Widget/CASE/create-nonce.ts.mustache +1 -0
  89. package/src/tasks/create/templates/Constellation/Widget/CASE/demo.stories.tsx.mustache +1 -0
  90. package/src/tasks/create/templates/Constellation/Widget/CASE/demo.test.tsx.mustache +28 -0
  91. package/src/tasks/create/templates/Constellation/Widget/CASE/localizations.json.mustache +8 -0
  92. package/src/tasks/create/templates/Constellation/Widget/PAGE/config.json.mustache +1 -0
  93. package/src/tasks/create/templates/Constellation/Widget/PAGE/create-nonce.ts.mustache +1 -0
  94. package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.stories.tsx.mustache +2 -0
  95. package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.test.tsx.mustache +36 -0
  96. package/src/tasks/create/templates/Constellation/Widget/PAGE/index.tsx.mustache +4 -1
  97. package/src/tasks/create/templates/Constellation/Widget/PAGE/localizations.json.mustache +10 -0
  98. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/config.json.mustache +1 -0
  99. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/create-nonce.ts.mustache +1 -0
  100. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.stories.tsx.mustache +1 -0
  101. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.test.tsx.mustache +29 -0
  102. package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/config.json.mustache +1 -0
  103. package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/create-nonce.ts.mustache +1 -0
  104. package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/demo.stories.tsx.mustache +1 -0
  105. package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/demo.test.tsx.mustache +27 -0
  106. package/src/tasks/create/templates/Launchpad/Widget/CASE/config.json.mustache +1 -0
  107. package/src/tasks/create/templates/Launchpad/Widget/CASE/create-nonce.ts.mustache +1 -0
  108. package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.stories.tsx.mustache +1 -0
  109. package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.test.tsx.mustache +28 -0
  110. package/src/tasks/create/templates/Launchpad/Widget/PAGE/config.json.mustache +1 -0
  111. package/src/tasks/create/templates/Launchpad/Widget/PAGE/create-nonce.ts.mustache +1 -0
  112. package/src/tasks/create/templates/Launchpad/Widget/PAGE/demo.stories.tsx.mustache +2 -0
  113. package/src/tasks/create/templates/Launchpad/Widget/PAGE/demo.test.tsx.mustache +36 -0
  114. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/config.json.mustache +1 -0
  115. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/create-nonce.ts.mustache +1 -0
  116. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.stories.tsx.mustache +1 -0
  117. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.test.tsx.mustache +19 -0
  118. package/src/tasks/create-all/index.js +5 -1
  119. package/src/tasks/create-lib/helper.js +6 -2
  120. package/src/tasks/create-lib/index.js +18 -6
  121. package/src/tasks/create-version/helper.js +30 -0
  122. package/src/tasks/create-version/index.js +27 -8
  123. package/src/tasks/delete/helper.js +6 -2
  124. package/src/tasks/delete/index.js +5 -1
  125. package/src/tasks/delete-lib/helper.js +0 -1
  126. package/src/tasks/delete-lib/index.js +10 -11
  127. package/src/tasks/delete-pub/helper.js +142 -1
  128. package/src/tasks/delete-pub/index.js +75 -10
  129. package/src/tasks/delete-version/index.js +8 -2
  130. package/src/tasks/export-archive/helper.js +47 -3
  131. package/src/tasks/export-archive/index.js +70 -44
  132. package/src/tasks/import-archive/helper.js +249 -4
  133. package/src/tasks/import-archive/index.js +476 -40
  134. package/src/tasks/import-comp/helper.js +26 -3
  135. package/src/tasks/import-comp/index.js +78 -117
  136. package/src/tasks/index.js +1 -0
  137. package/src/tasks/init/template/.eslintrc.json +1 -1
  138. package/src/tasks/init/template/.storybook/{main.js → main.ts} +4 -3
  139. package/src/tasks/init/template/.storybook/manager.ts +6 -0
  140. package/src/tasks/init/template/.storybook/preview.tsx +4 -1
  141. package/src/tasks/init/template/.storybook/theme.js +1 -1
  142. package/src/tasks/init/template/babel.config.cjs +18 -9
  143. package/src/tasks/init/template/jest.config.cjs +29 -4
  144. package/src/tasks/init/template/package.json.mustache +54 -35
  145. package/src/tasks/init/template/setupFiles.ts +5 -0
  146. package/src/tasks/init/template/setupTests.ts +99 -0
  147. package/src/tasks/init/template/tasks.config.json +1 -1
  148. package/src/tasks/init/template/tsconfig.json +4 -1
  149. package/src/tasks/list/helper.js +21 -2
  150. package/src/tasks/list-lib/index.js +10 -1
  151. package/src/tasks/list-pub/helper.js +102 -1
  152. package/src/tasks/list-pub/index.js +108 -36
  153. package/src/tasks/move/index.js +1 -1
  154. package/src/tasks/promote-webpack/index.js +0 -3
  155. package/src/tasks/publish/helper.js +9 -7
  156. package/src/tasks/publish/index.js +85 -16
  157. package/src/tasks/publish-all/index.js +12 -1
  158. package/src/tasks/publish-archive/helper.js +58 -0
  159. package/src/tasks/publish-archive/index.js +238 -0
  160. package/src/tasks/publish-lib/index.js +277 -69
  161. package/src/tasks/rename/index.js +9 -1
  162. package/src/tasks/rename-lib/index.js +10 -1
  163. package/src/tasks/restore/index.js +84 -0
  164. package/src/tasks/set-perm/index.js +1 -2
  165. package/src/tasks/show-help/index.js +34 -13
  166. package/src/tasks/show-status/index.js +34 -11
  167. package/src/tasks/store/index.js +39 -18
  168. package/src/tasks/switch-lib/helper.js +0 -1
  169. package/src/tasks/switch-lib/index.js +13 -9
  170. package/src/tasks/switch-version/index.js +11 -6
  171. package/src/tasks/validator/index.js +1 -1
  172. package/src/util.js +463 -114
  173. package/tests/assets/library/components/create/Pega_DXIL_MyTestText/config.json +2 -1
  174. package/tests/assets/library/components/create/Pega_DXIL_MyTestText/demo.test.tsx +19 -0
  175. package/tests/assets/library/components/create/shared/create-nonce.ts +1 -0
  176. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +27 -1
  177. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.test.tsx +19 -0
  178. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +2 -1
  179. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.tsx +1 -0
  180. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.test.tsx +28 -0
  181. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/localizations.json +8 -0
  182. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +27 -1
  183. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.test.tsx +23 -0
  184. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +27 -1
  185. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/date.ts +0 -24
  186. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/demo.test.tsx +52 -0
  187. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +27 -1
  188. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.tsx +1 -0
  189. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.test.tsx +72 -0
  190. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +27 -1
  191. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.test.tsx +21 -0
  192. package/tests/assets/library/components/{create/shared → createAll/Constellation/Pega_DXIL_MyDetails}/Avatar.tsx +1 -1
  193. package/tests/assets/library/components/createAll/Constellation/{shared → Pega_DXIL_MyDetails}/Operator.tsx +1 -1
  194. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +2 -1
  195. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +2 -1
  196. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.test.tsx +47 -0
  197. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +27 -1
  198. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.test.tsx +20 -0
  199. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +2 -1
  200. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/demo.test.tsx +40 -0
  201. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +2 -1
  202. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.test.tsx +27 -0
  203. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/localizations.json +10 -0
  204. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +27 -1
  205. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.test.tsx +18 -0
  206. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +2 -1
  207. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx +4 -0
  208. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/demo.test.tsx +24 -0
  209. package/tests/assets/library/components/createAll/Constellation/{shared → Pega_DXIL_MyPageCaseWidget}/Avatar.tsx +3 -4
  210. package/tests/assets/library/components/{create/shared → createAll/Constellation/Pega_DXIL_MyPageCaseWidget}/Operator.tsx +3 -3
  211. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +2 -1
  212. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +1 -0
  213. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.test.tsx +29 -0
  214. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/index.tsx +1 -1
  215. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +2 -1
  216. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx +2 -0
  217. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.test.tsx +36 -0
  218. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.tsx +4 -1
  219. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/localizations.json +10 -0
  220. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +27 -1
  221. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.test.tsx +21 -0
  222. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +27 -1
  223. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.test.tsx +18 -0
  224. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +27 -1
  225. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.test.tsx +23 -0
  226. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +27 -1
  227. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.test.tsx +25 -0
  228. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +27 -1
  229. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/demo.test.tsx +29 -0
  230. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +27 -1
  231. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/demo.test.tsx +33 -0
  232. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/index.tsx +7 -0
  233. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/localizations.json +5 -0
  234. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/repeat-utils.ts +0 -4
  235. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/config.json +2 -1
  236. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/demo.test.tsx +19 -0
  237. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +27 -1
  238. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.test.tsx +20 -0
  239. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +27 -1
  240. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.test.tsx +33 -0
  241. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/Avatar.tsx +76 -0
  242. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/Operator.tsx +215 -0
  243. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +2 -1
  244. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +1 -1
  245. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.test.tsx +58 -0
  246. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +2 -1
  247. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.test.tsx +56 -0
  248. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +27 -1
  249. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/demo.test.tsx +20 -0
  250. package/tests/assets/library/components/createAll/Constellation/shared/create-nonce.ts +1 -0
  251. package/tests/assets/original/components/create/Pega_DXIL_MyTestText/config.json +1 -0
  252. package/tests/assets/original/components/create/Pega_DXIL_MyTestText/create-nonce.ts +1 -0
  253. package/tests/assets/original/components/create/Pega_DXIL_MyTestText/demo.test.tsx +19 -0
  254. package/tests/assets/original/components/create/shared/PConnProps.d.ts +46 -0
  255. package/tests/assets/original/components/create/shared/create-nonce.ts +7 -0
  256. package/tests/assets/original/components/create/shared/suggestions-handler.ts +9 -0
  257. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +26 -0
  258. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/create-nonce.ts +1 -0
  259. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.test.tsx +19 -0
  260. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +1 -0
  261. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/create-nonce.ts +1 -0
  262. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.tsx +1 -0
  263. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.test.tsx +28 -0
  264. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/localizations.json +8 -0
  265. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +26 -0
  266. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/create-nonce.ts +1 -0
  267. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.test.tsx +23 -0
  268. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +26 -0
  269. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/create-nonce.ts +1 -0
  270. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/date.ts +0 -24
  271. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/demo.test.tsx +52 -0
  272. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +26 -0
  273. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/create-nonce.ts +1 -0
  274. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.tsx +1 -0
  275. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.test.tsx +72 -0
  276. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +26 -0
  277. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/create-nonce.ts +1 -0
  278. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.test.tsx +21 -0
  279. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +1 -0
  280. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/create-nonce.ts +1 -0
  281. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +1 -0
  282. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.test.tsx +47 -0
  283. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +26 -0
  284. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/create-nonce.ts +1 -0
  285. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.test.tsx +20 -0
  286. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +1 -0
  287. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/create-nonce.ts +1 -0
  288. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/demo.test.tsx +40 -0
  289. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +1 -0
  290. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/create-nonce.ts +1 -0
  291. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.test.tsx +27 -0
  292. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/localizations.json +10 -0
  293. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +26 -0
  294. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/create-nonce.ts +1 -0
  295. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.test.tsx +18 -0
  296. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +1 -0
  297. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/create-nonce.ts +1 -0
  298. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx +4 -0
  299. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/demo.test.tsx +24 -0
  300. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +1 -0
  301. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/create-nonce.ts +1 -0
  302. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +1 -0
  303. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.test.tsx +29 -0
  304. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +1 -0
  305. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/create-nonce.ts +1 -0
  306. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx +2 -0
  307. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.test.tsx +36 -0
  308. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.tsx +4 -1
  309. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/localizations.json +10 -0
  310. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +26 -0
  311. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/create-nonce.ts +1 -0
  312. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.test.tsx +21 -0
  313. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +26 -0
  314. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/create-nonce.ts +1 -0
  315. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.test.tsx +18 -0
  316. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +26 -0
  317. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/create-nonce.ts +1 -0
  318. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.test.tsx +23 -0
  319. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +26 -0
  320. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/create-nonce.ts +1 -0
  321. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.test.tsx +25 -0
  322. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +26 -0
  323. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/create-nonce.ts +1 -0
  324. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/demo.test.tsx +29 -0
  325. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +26 -0
  326. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/create-nonce.ts +1 -0
  327. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/demo.test.tsx +33 -0
  328. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/index.tsx +7 -0
  329. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/localizations.json +5 -0
  330. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/repeat-utils.ts +0 -4
  331. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/config.json +1 -0
  332. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/create-nonce.ts +1 -0
  333. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/demo.test.tsx +19 -0
  334. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +26 -0
  335. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/create-nonce.ts +1 -0
  336. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.test.tsx +20 -0
  337. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +26 -0
  338. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/create-nonce.ts +1 -0
  339. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.test.tsx +33 -0
  340. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +1 -0
  341. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/create-nonce.ts +1 -0
  342. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.test.tsx +58 -0
  343. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +1 -0
  344. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/create-nonce.ts +1 -0
  345. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.test.tsx +56 -0
  346. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +26 -0
  347. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/create-nonce.ts +1 -0
  348. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/demo.test.tsx +20 -0
  349. package/tests/assets/original/components/createAll/Constellation/shared/PConnProps.d.ts +46 -0
  350. package/tests/assets/original/components/createAll/Constellation/shared/create-nonce.ts +7 -0
  351. package/tests/assets/original/components/createAll/Constellation/shared/suggestions-handler.ts +9 -0
  352. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/config.json +26 -0
  353. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/create-nonce.ts +1 -0
  354. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/demo.test.tsx +19 -0
  355. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/config.json +1 -0
  356. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/create-nonce.ts +1 -0
  357. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.tsx +1 -0
  358. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.test.tsx +28 -0
  359. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/config.json +26 -0
  360. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/create-nonce.ts +1 -0
  361. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.test.tsx +23 -0
  362. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/config.json +26 -0
  363. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/create-nonce.ts +1 -0
  364. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/date.ts +0 -24
  365. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.test.tsx +52 -0
  366. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/config.json +26 -0
  367. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/create-nonce.ts +1 -0
  368. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.tsx +1 -0
  369. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.test.tsx +72 -0
  370. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/config.json +26 -0
  371. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/create-nonce.ts +1 -0
  372. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.test.tsx +21 -0
  373. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/config.json +1 -0
  374. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/create-nonce.ts +1 -0
  375. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.tsx +1 -0
  376. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.test.tsx +47 -0
  377. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/config.json +26 -0
  378. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/create-nonce.ts +1 -0
  379. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.test.tsx +20 -0
  380. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/config.json +1 -0
  381. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/create-nonce.ts +1 -0
  382. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.test.tsx +40 -0
  383. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/config.json +1 -0
  384. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/create-nonce.ts +1 -0
  385. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +1 -0
  386. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/demo.test.tsx +27 -0
  387. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/config.json +26 -0
  388. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/create-nonce.ts +1 -0
  389. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.test.tsx +18 -0
  390. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/config.json +1 -0
  391. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/create-nonce.ts +1 -0
  392. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.tsx +4 -0
  393. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.test.tsx +24 -0
  394. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/config.json +1 -0
  395. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/create-nonce.ts +1 -0
  396. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +1 -0
  397. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.test.tsx +19 -0
  398. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/config.json +1 -0
  399. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/create-nonce.ts +1 -0
  400. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.stories.tsx +2 -0
  401. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.test.tsx +36 -0
  402. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/config.json +26 -0
  403. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/create-nonce.ts +1 -0
  404. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.test.tsx +21 -0
  405. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/config.json +26 -0
  406. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/create-nonce.ts +1 -0
  407. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.test.tsx +18 -0
  408. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/config.json +26 -0
  409. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/create-nonce.ts +1 -0
  410. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.test.tsx +23 -0
  411. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/config.json +26 -0
  412. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/create-nonce.ts +1 -0
  413. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/demo.test.tsx +25 -0
  414. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/config.json +26 -0
  415. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/create-nonce.ts +1 -0
  416. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/demo.test.tsx +29 -0
  417. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/config.json +26 -0
  418. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/create-nonce.ts +1 -0
  419. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/demo.test.tsx +33 -0
  420. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/index.tsx +7 -0
  421. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/localizations.json +5 -0
  422. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/repeat-utils.ts +0 -4
  423. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/config.json +1 -0
  424. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/create-nonce.ts +1 -0
  425. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/demo.test.tsx +19 -0
  426. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/config.json +26 -0
  427. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/create-nonce.ts +1 -0
  428. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.test.tsx +20 -0
  429. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/config.json +26 -0
  430. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/create-nonce.ts +1 -0
  431. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/demo.test.tsx +33 -0
  432. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/config.json +1 -0
  433. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/create-nonce.ts +1 -0
  434. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.test.tsx +58 -0
  435. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/config.json +1 -0
  436. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/create-nonce.ts +1 -0
  437. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.test.tsx +56 -0
  438. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/config.json +26 -0
  439. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/create-nonce.ts +1 -0
  440. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.test.tsx +20 -0
  441. package/tests/assets/original/components/createAll/Launchpad/shared/PConnProps.d.ts +46 -0
  442. package/tests/assets/original/components/createAll/Launchpad/shared/create-nonce.ts +7 -0
  443. package/tests/assets/original/components/createAll/Launchpad/shared/suggestions-handler.ts +9 -0
  444. package/tests/functional/localCreateAllListDeleteAll.test.js +12 -8
  445. package/tests/functional/localCreateBuildAllDeleteAll.test.js +12 -8
  446. package/tests/functional/localCreateBuildDelete.test.js +12 -8
  447. package/tests/functional/localCreateListDelete.test.js +14 -9
  448. package/tests/functional/localCreatePublishAllDeleteAll.test.js +13 -9
  449. package/tests/functional/localCreatePublishDelete.test.js +12 -8
  450. package/tests/functional/localCreateRenameDelete.test.js +12 -8
  451. package/tests/functional/localLibCreateLibAlreadyDeleteLib.test.js +14 -14
  452. package/tests/functional/localLibCreateLibBuildLibDeleteLib.test.js +17 -17
  453. package/tests/functional/localLibCreateLibBuildLibListPubDeleteLib.test.js +20 -20
  454. package/tests/functional/localLibCreateLibDeleteLib.test.js +17 -17
  455. package/tests/functional/localLibCreateLibExportImportLib.test.js +27 -27
  456. package/tests/functional/localLibCreateLibExportLib.test.js +19 -19
  457. package/tests/functional/localLibCreateLibImportCompDeleteLib.test.js +14 -14
  458. package/tests/functional/localLibCreateLibListDeleteLib.test.js +22 -22
  459. package/tests/functional/localLibCreateLibListMoveDeleteLib.test.js +31 -31
  460. package/tests/functional/localLibCreateLibListSwitchDeleteLib.test.js +20 -20
  461. package/tests/functional/localLibCreateLibStatusDeleteLib.test.js +13 -29
  462. package/tests/functional/localLibCreateLibStoreRestoreDeleteLib.test.js +376 -0
  463. package/tests/functional/localLibCreateLibValidateDeleteLib.test.js +18 -18
  464. package/tests/functional/localLibCreateLibVersionDeleteLib.test.js +27 -27
  465. package/tests/functional/localPromoteRevertWP.test.js +9 -8
  466. package/tests/functional/localLibCreateLibPermDeleteLib.test.js +0 -144
@@ -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
+ });
@@ -9,6 +9,7 @@
9
9
  "componentKey": "Pega_DXIL_MyCaseWidget",
10
10
  "type": "Widget",
11
11
  "subtype": "CASE",
12
+ "subtypeLabel": "CASE",
12
13
  "icon": "OneColumnPage.svg",
13
14
  "properties": [
14
15
  {
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -40,6 +40,7 @@ export const BasePegaDxilMyCaseWidget: Story = (args: any) => {
40
40
  return {
41
41
  getData: () => {
42
42
  return new Promise(resolve => {
43
+ // @ts-ignore
43
44
  resolve(historyData);
44
45
  });
45
46
  }
@@ -0,0 +1,28 @@
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
+
9
+
10
+ const { BasePegaDxilMyCaseWidget } = composeStories(DemoStories);
11
+
12
+ test('renders PegaDxilMyCaseWidget', async () => {
13
+ render(<BasePegaDxilMyCaseWidget />);
14
+
15
+ const caseHistoryArr = await screen.findAllByText('Case history');
16
+ expect(caseHistoryArr[0]).toBeVisible();
17
+ expect(caseHistoryArr[1]).toBeVisible();
18
+
19
+ expect(await screen.findByText('Date')).toBeVisible();
20
+ expect(await screen.findByText('Description')).toBeVisible();
21
+ expect(await screen.findByText('Performed by')).toBeVisible();
22
+
23
+ const peformedArr = await screen.findAllByText('User DigV2');
24
+ expect(peformedArr[0]).toBeVisible();
25
+ expect(peformedArr[1]).toBeVisible();
26
+
27
+
28
+ });
@@ -0,0 +1,8 @@
1
+ {
2
+ "fields": {
3
+ "Date": "Date",
4
+ "Description" : "Description",
5
+ "Performed by" : "Performed by",
6
+ "Loading case history" : "Loading case history"
7
+ }
8
+ }
@@ -9,6 +9,7 @@
9
9
  "componentKey": "Pega_DXIL_MyCurrency",
10
10
  "type": "Field",
11
11
  "subtype": "Decimal-Currency",
12
+ "subtypeLabel": "Currency",
12
13
  "icon": "images/pz-currency-active.svg",
13
14
  "properties": [
14
15
  {
@@ -17,6 +18,31 @@
17
18
  "format": "TEXT",
18
19
  "required": true
19
20
  },
21
+ {
22
+ "name": "labelOption",
23
+ "label": "Field label",
24
+ "format": "SELECT",
25
+ "defaultValue": "custom",
26
+ "visibility": "@PLATFORMNAME != 'launchpad'",
27
+ "source": [
28
+ {
29
+ "key": "default",
30
+ "value": "Default"
31
+ },
32
+ {
33
+ "key": "custom",
34
+ "value": "Custom"
35
+ }
36
+ ]
37
+ },
38
+ {
39
+ "name": "label",
40
+ "label": "Custom field label",
41
+ "format": "VALUEINPUT",
42
+ "required": true,
43
+ "ruleType": "Paragraph",
44
+ "visibility": "@PLATFORMNAME != 'launchpad'"
45
+ },
20
46
  {
21
47
  "name": "readOnly",
22
48
  "label": "Edit mode",
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -0,0 +1,23 @@
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 { BasePegaDxilMyCurrency } = composeStories(DemoStories);
9
+
10
+ test('renders PegaDxilMyCurrency', async () => {
11
+ render(<BasePegaDxilMyCurrency />);
12
+ expect(await screen.findByText('Currency Sample')).toBeVisible();
13
+ expect(await screen.findByText('Currency Helper Text')).toBeVisible();
14
+
15
+ const currencyElement = screen.getByRole('textbox');
16
+ // for some odd reason, checking the full string of "USD 0.00" doesn't pass
17
+ // expect(currencyElement).toHaveValue('USD 0.00');
18
+ const myTextAreaVal = (screen.getByRole('textbox') as HTMLInputElement).value;
19
+ expect(myTextAreaVal).toContain('USD');
20
+ expect(myTextAreaVal).toContain('0.00');
21
+
22
+ expect(currencyElement).toHaveAttribute('placeholder', 'Currency Placeholder');
23
+ });
@@ -9,6 +9,7 @@
9
9
  "componentKey": "Pega_DXIL_MyDate",
10
10
  "type": "Field",
11
11
  "subtype": "Date",
12
+ "subtypeLabel": "Date",
12
13
  "icon": "images/pz-date-time-active.svg",
13
14
  "properties": [
14
15
  {
@@ -17,6 +18,31 @@
17
18
  "format": "TEXT",
18
19
  "required": true
19
20
  },
21
+ {
22
+ "name": "labelOption",
23
+ "label": "Field label",
24
+ "format": "SELECT",
25
+ "defaultValue": "custom",
26
+ "visibility": "@PLATFORMNAME != 'launchpad'",
27
+ "source": [
28
+ {
29
+ "key": "default",
30
+ "value": "Default"
31
+ },
32
+ {
33
+ "key": "custom",
34
+ "value": "Custom"
35
+ }
36
+ ]
37
+ },
38
+ {
39
+ "name": "label",
40
+ "label": "Custom field label",
41
+ "format": "VALUEINPUT",
42
+ "required": true,
43
+ "ruleType": "Paragraph",
44
+ "visibility": "@PLATFORMNAME != 'launchpad'"
45
+ },
20
46
  {
21
47
  "name": "readOnly",
22
48
  "label": "Edit mode",
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -381,30 +381,6 @@ export function format(value, type, options) {
381
381
  let formattedValue;
382
382
 
383
383
  switch (type?.toLowerCase()) {
384
- case 'currency': {
385
- const defaultOptions = {
386
- locale: getLocale(),
387
- position: 'before',
388
- decPlaces: 2
389
- };
390
- const params = { ...defaultOptions, ...options };
391
- formattedValue = Currency.Currency(value, params);
392
- break;
393
- }
394
-
395
- case 'decimal': {
396
- const defaultOptions = { locale: getLocale(), decPlaces: 2 };
397
- const params = { ...defaultOptions, ...options };
398
- formattedValue = Currency.Decimal(value, params);
399
- break;
400
- }
401
-
402
- case 'integer': {
403
- const defaultOptions = { locale: getLocale() };
404
- const params = { ...defaultOptions, ...options };
405
- formattedValue = Currency.Integer(value, params);
406
- break;
407
- }
408
384
 
409
385
  case 'date': {
410
386
  const defaultOptions = {
@@ -0,0 +1,52 @@
1
+ // import { expect, test } from '@jest/globals';
2
+ // @ts-nocheck
3
+ import { render, screen, fireEvent } from '@testing-library/react';
4
+ import { composeStories } from '@storybook/react';
5
+ import '@testing-library/jest-dom';
6
+
7
+ import * as DemoStories from './demo.stories';
8
+
9
+ const { BasePegaDxilMyDate } = composeStories(DemoStories);
10
+
11
+ test('renders PegaDxilMyDate', async () => {
12
+ render(<BasePegaDxilMyDate/>);
13
+ expect(await screen.findByText('Date Label')).toBeVisible();
14
+ expect(await screen.findByText('Date helper text')).toBeVisible();
15
+
16
+ // const dateElement = screen.getByRole('textbox');
17
+ // for some odd reason, checking the full string of "USD 0.00" doesn't pass
18
+ // expect(currencyElement).toHaveValue('USD 0.00');
19
+ const myMonth = (screen.getByTestId(':date-input:control-month') as HTMLInputElement);
20
+ expect(myMonth.value).toContain('01');
21
+ expect(myMonth).toHaveAttribute('placeholder', 'MM');
22
+
23
+ const myDay = (screen.getByTestId(':date-input:control-day') as HTMLInputElement);
24
+ expect(myDay.value).toContain('31');
25
+ expect(myDay).toHaveAttribute('placeholder', 'DD');
26
+
27
+ const myYear = (screen.getByTestId(':date-input:control-year') as HTMLInputElement);
28
+ expect(myYear.value).toContain('2023');
29
+ expect(myYear).toHaveAttribute('placeholder', 'YYYY');
30
+
31
+ // press clear button
32
+ const clearX = screen.getByTestId(':date-input:clear-current-date') as HTMLButtonElement;
33
+ fireEvent.click(clearX);
34
+
35
+ const myClearMonth = (screen.getByTestId(':date-input:control-month') as HTMLInputElement).value;
36
+ expect(myClearMonth).toContain('');
37
+
38
+ const myClearDay = (screen.getByTestId(':date-input:control-day') as HTMLInputElement).value;
39
+ expect(myClearDay).toContain('');
40
+
41
+ const myClearYear = (screen.getByTestId(':date-input:control-year') as HTMLInputElement).value;
42
+ expect(myClearYear).toContain('');
43
+
44
+ // press date picker
45
+ const pickerButton = screen.getByTestId(':date-input:open-close-picker') as HTMLButtonElement;
46
+ fireEvent.click(pickerButton);
47
+
48
+ // because need to wait after button pressed before finding the data picker pop up, need to do this
49
+ // via "await" and "findByTestId" (as opposed to getByTestId)
50
+ const dataPickerPopUp = await screen.findByTestId(':date-input:clear-current-date');
51
+ expect(dataPickerPopUp).not.toBeNull();
52
+ });
@@ -9,6 +9,7 @@
9
9
  "componentKey": "Pega_DXIL_MyDateTime",
10
10
  "type": "Field",
11
11
  "subtype": "DateTime",
12
+ "subtypeLabel": "DateTime",
12
13
  "icon": "images/pz-text-input-active.svg",
13
14
  "properties": [
14
15
  {
@@ -17,6 +18,31 @@
17
18
  "format": "TEXT",
18
19
  "required": true
19
20
  },
21
+ {
22
+ "name": "labelOption",
23
+ "label": "Field label",
24
+ "format": "SELECT",
25
+ "defaultValue": "custom",
26
+ "visibility": "@PLATFORMNAME != 'launchpad'",
27
+ "source": [
28
+ {
29
+ "key": "default",
30
+ "value": "Default"
31
+ },
32
+ {
33
+ "key": "custom",
34
+ "value": "Custom"
35
+ }
36
+ ]
37
+ },
38
+ {
39
+ "name": "label",
40
+ "label": "Custom field label",
41
+ "format": "VALUEINPUT",
42
+ "required": true,
43
+ "ruleType": "Paragraph",
44
+ "visibility": "@PLATFORMNAME != 'launchpad'"
45
+ },
20
46
  {
21
47
  "name": "readOnly",
22
48
  "label": "Edit mode",
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -1,4 +1,5 @@
1
1
  /* eslint-disable react/jsx-no-useless-fragment */
2
+ // @ts-nocheck
2
3
  import type { Meta, StoryObj } from '@storybook/react';
3
4
  import { configProps, stateProps } from './mock';
4
5
  import PegaDxilMyDateTime from './index';
@@ -0,0 +1,72 @@
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 { BasePegaDxilMyDateTime } = composeStories(DemoStories);
9
+
10
+ test('renders PegaDxilMyDateTime', async () => {
11
+ render(<BasePegaDxilMyDateTime/>);
12
+ expect(await screen.findByText('DateTime Label')).toBeVisible();
13
+ expect(await screen.findByText('DateTime helper text')).toBeVisible();
14
+
15
+ // const dateElement = screen.getByRole('textbox');
16
+ // for some odd reason, checking the full string of "USD 0.00" doesn't pass
17
+ // expect(currencyElement).toHaveValue('USD 0.00');
18
+ const myMonth = (screen.getByTestId(':date-time-input:control-month') as HTMLInputElement);
19
+ expect(myMonth.value).toContain('01');
20
+ expect(myMonth).toHaveAttribute('placeholder', 'MM');
21
+
22
+ const myDay = (screen.getByTestId(':date-time-input:control-day') as HTMLInputElement);
23
+ expect(myDay.value).toContain('24');
24
+ expect(myDay).toHaveAttribute('placeholder', 'DD');
25
+
26
+ const myYear = (screen.getByTestId(':date-time-input:control-year') as HTMLInputElement);
27
+ expect(myYear.value).toContain('2023');
28
+ expect(myYear).toHaveAttribute('placeholder', 'YYYY');
29
+
30
+ const myHour = (screen.getByTestId(':date-time-input:control-hour') as HTMLInputElement);
31
+ expect(myHour.value).toContain('04');
32
+ expect(myHour).toHaveAttribute('placeholder', 'hh');
33
+
34
+ const myMinute = (screen.getByTestId(':date-time-input:control-minute') as HTMLInputElement);
35
+ expect(myMinute.value).toContain('45');
36
+ expect(myMinute).toHaveAttribute('placeholder', 'mm');
37
+
38
+ const myPeriod = (screen.getByTestId(':date-time-input:control-period') as HTMLSelectElement).value;
39
+ expect(myPeriod).toContain('PM');
40
+
41
+
42
+ // press clear button
43
+ const clearX = screen.getByTestId(':date-time-input:clear-current-date-and-time') as HTMLButtonElement;
44
+ fireEvent.click(clearX);
45
+
46
+ const myClearMonth = (screen.getByTestId(':date-time-input:control-month') as HTMLInputElement).value;
47
+ expect(myClearMonth).toContain('');
48
+
49
+ const myClearDay = (screen.getByTestId(':date-time-input:control-day') as HTMLInputElement).value;
50
+ expect(myClearDay).toContain('');
51
+
52
+ const myClearYear = (screen.getByTestId(':date-time-input:control-year') as HTMLInputElement).value;
53
+ expect(myClearYear).toContain('');
54
+
55
+ const myClearHour = (screen.getByTestId(':date-time-input:control-hour') as HTMLInputElement).value;
56
+ expect(myClearHour).toContain('');
57
+
58
+ const myClearMinute = (screen.getByTestId(':date-time-input:control-minute') as HTMLInputElement).value;
59
+ expect(myClearMinute).toContain('');
60
+
61
+ const myClearPeriod = (screen.getByTestId(':date-time-input:control-period') as HTMLSelectElement).value;
62
+ expect(myClearPeriod).toContain('AM');
63
+
64
+ // press date picker
65
+ const pickerButton = screen.getByTestId(':date-time-input:open-close-picker') as HTMLButtonElement;
66
+ fireEvent.click(pickerButton);
67
+
68
+ // because need to wait after button pressed before finding the data picker pop up, need to do this
69
+ // via "await" and "findByTestId" (as opposed to getByTestId)
70
+ const dataPickerPopUp = await screen.findByTestId(':date-time-input:picker:date-picker:');
71
+ expect(dataPickerPopUp).not.toBeNull();
72
+ });
@@ -9,6 +9,7 @@
9
9
  "componentKey": "Pega_DXIL_MyDecimal",
10
10
  "type": "Field",
11
11
  "subtype": "Decimal",
12
+ "subtypeLabel": "Decimal",
12
13
  "icon": "images/pz-decimal-active.svg",
13
14
  "properties": [
14
15
  {
@@ -17,6 +18,31 @@
17
18
  "format": "TEXT",
18
19
  "required": true
19
20
  },
21
+ {
22
+ "name": "labelOption",
23
+ "label": "Field label",
24
+ "format": "SELECT",
25
+ "defaultValue": "custom",
26
+ "visibility": "@PLATFORMNAME != 'launchpad'",
27
+ "source": [
28
+ {
29
+ "key": "default",
30
+ "value": "Default"
31
+ },
32
+ {
33
+ "key": "custom",
34
+ "value": "Custom"
35
+ }
36
+ ]
37
+ },
38
+ {
39
+ "name": "label",
40
+ "label": "Custom field label",
41
+ "format": "VALUEINPUT",
42
+ "required": true,
43
+ "ruleType": "Paragraph",
44
+ "visibility": "@PLATFORMNAME != 'launchpad'"
45
+ },
20
46
  {
21
47
  "name": "readOnly",
22
48
  "label": "Edit mode",
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -0,0 +1,21 @@
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 { BasePegaDxilMyDecimal } = composeStories(DemoStories);
9
+
10
+ test('renders PegaDxilMyDecimal', async () => {
11
+ render(<BasePegaDxilMyDecimal />);
12
+ expect(await screen.findByText('Decimal Sample')).toBeVisible();
13
+ expect(await screen.findByText('Decimal Helper Text')).toBeVisible();
14
+
15
+ const decimalElement = screen.getByRole('textbox');
16
+
17
+ const myTextAreaVal = (screen.getByRole('textbox') as HTMLInputElement).value;
18
+ expect(myTextAreaVal).toContain('');
19
+
20
+ expect(decimalElement).toHaveAttribute('placeholder', 'Decimal Placeholder');
21
+ });
@@ -9,6 +9,7 @@
9
9
  "componentKey": "Pega_DXIL_MyDetails",
10
10
  "type": "Template",
11
11
  "subtype": "DETAILS",
12
+ "subtypeLabel": "DETAILS",
12
13
  "icon": "OneColumnDetails.svg",
13
14
  "properties": [
14
15
  {
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -24,6 +24,7 @@ if (!window.PCore) {
24
24
  window.PCore = {} as any;
25
25
  }
26
26
 
27
+
27
28
  window.PCore.getLocaleUtils = () => {
28
29
  return {
29
30
  getLocaleValue: (value: any) => {
@@ -0,0 +1,47 @@
1
+ // import { expect, test } from '@jest/globals';
2
+ import { fireEvent, 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
+
9
+
10
+ const { BasePegaDxilMyDetails } = composeStories(DemoStories);
11
+
12
+ test('renders PegaDxilMyDetails', async () => {
13
+ render(<BasePegaDxilMyDetails />);
14
+ expect(await screen.findByText('Details template')).toBeVisible();
15
+ expect(await screen.findByText('Work Status')).toBeVisible();
16
+ expect(await screen.findByText('Case ID')).toBeVisible();
17
+ expect(await screen.findByText('Create date/time')).toBeVisible();
18
+ expect(await screen.findByText('Create Operator')).toBeVisible();
19
+
20
+ // expect(await screen.findByText('New')).toBeVisible();
21
+
22
+ expect(await screen.findByText('M-1002')).toBeVisible();
23
+ expect(await screen.findByText('December 11, 2022 at 8:06:27 PM')).toBeVisible();
24
+
25
+ expect(await screen.findByText('SLA Deadline')).toBeVisible();
26
+ expect(await screen.findByText('SLA Goal')).toBeVisible();
27
+ expect(await screen.findByText('SLA Start Time')).toBeVisible();
28
+
29
+ expect(await screen.findByText('Deadline')).toBeVisible();
30
+ expect(await screen.findByText('Goal')).toBeVisible();
31
+ expect(await screen.findByText('Start Time')).toBeVisible();
32
+
33
+ const frenchBefore = screen.queryByText('french DigV2');
34
+ expect(frenchBefore).not.toBeInTheDocument();
35
+
36
+ // admin button
37
+ const adminButton = screen.getByRole('button');
38
+ fireEvent.click(adminButton);
39
+
40
+ const frenchArr = await screen.findAllByText('french DigV2');
41
+ expect(frenchArr[0]).toBeVisible();
42
+ expect(frenchArr[1]).toBeVisible();
43
+
44
+
45
+
46
+
47
+ });
@@ -9,6 +9,7 @@
9
9
  "componentKey": "Pega_DXIL_MyEmail",
10
10
  "type": "Field",
11
11
  "subtype": "Text-Email",
12
+ "subtypeLabel": "Email",
12
13
  "icon": "images/pz-email-active.svg",
13
14
  "properties": [
14
15
  {
@@ -17,6 +18,31 @@
17
18
  "format": "TEXT",
18
19
  "required": true
19
20
  },
21
+ {
22
+ "name": "labelOption",
23
+ "label": "Field label",
24
+ "format": "SELECT",
25
+ "defaultValue": "custom",
26
+ "visibility": "@PLATFORMNAME != 'launchpad'",
27
+ "source": [
28
+ {
29
+ "key": "default",
30
+ "value": "Default"
31
+ },
32
+ {
33
+ "key": "custom",
34
+ "value": "Custom"
35
+ }
36
+ ]
37
+ },
38
+ {
39
+ "name": "label",
40
+ "label": "Custom field label",
41
+ "format": "VALUEINPUT",
42
+ "required": true,
43
+ "ruleType": "Paragraph",
44
+ "visibility": "@PLATFORMNAME != 'launchpad'"
45
+ },
20
46
  {
21
47
  "name": "readOnly",
22
48
  "label": "Edit mode",
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -0,0 +1,20 @@
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 { BasePegaDxilMyEmail } = composeStories(DemoStories);
9
+
10
+ test('renders PegaDxilMyEmail', async () => {
11
+ render(<BasePegaDxilMyEmail />);
12
+ expect(await screen.findByText('Email Sample')).toBeVisible();
13
+ expect(await screen.findByText('Email Helper Text')).toBeVisible();
14
+
15
+
16
+ const emailElement = (screen.getByTestId('email-12345678') as HTMLInputElement);
17
+ expect(emailElement.value).toBe('');
18
+
19
+ expect(emailElement).toHaveAttribute('placeholder', 'Email Placeholder');
20
+ });
@@ -9,6 +9,7 @@
9
9
  "componentKey": "Pega_DXIL_MyForm",
10
10
  "type": "Template",
11
11
  "subtype": "FORM",
12
+ "subtypeLabel": "FORM",
12
13
  "icon": "DefaultForm.svg",
13
14
  "properties": [
14
15
  {
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }