@pega/custom-dx-components 0.23.9 → 0.23.11

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 (409) hide show
  1. package/.prettierrc.json +1 -7
  2. package/jest.config.cjs +1 -1
  3. package/package.json +3 -2
  4. package/src/tasks/authenticate/index.js +1 -1
  5. package/src/tasks/build/helper.js +2 -3
  6. package/src/tasks/bundle/builder/webpack.config.js +1 -1
  7. package/src/tasks/create/index.js +29 -2
  8. package/src/tasks/create/templates/Constellation/Field/Boolean/index.jsx.mustache +2 -2
  9. package/src/tasks/create/templates/Constellation/Field/Date/index.jsx.mustache +1 -1
  10. package/src/tasks/create/templates/Constellation/Field/DateTime/index.jsx.mustache +1 -1
  11. package/src/tasks/create/templates/Constellation/Field/Decimal/index.jsx.mustache +1 -1
  12. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/index.jsx.mustache +1 -1
  13. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/index.jsx.mustache +1 -1
  14. package/src/tasks/create/templates/Constellation/Field/Integer/index.jsx.mustache +1 -1
  15. package/src/tasks/create/templates/Constellation/Field/Picklist/index.jsx.mustache +1 -1
  16. package/src/tasks/create/templates/Constellation/Field/Text/index.jsx.mustache +1 -1
  17. package/src/tasks/create/templates/Constellation/Field/Text-Email/index.jsx.mustache +1 -1
  18. package/src/tasks/create/templates/Constellation/Field/Text-Input/index.jsx.mustache +1 -1
  19. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/index.jsx.mustache +1 -1
  20. package/src/tasks/create/templates/Constellation/Field/Text-Phone/index.jsx.mustache +1 -1
  21. package/src/tasks/create/templates/Constellation/Field/Text-URL/index.jsx.mustache +1 -1
  22. package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/index.jsx.mustache +1 -1
  23. package/src/tasks/create/templates/Launchpad/Field/__components.md +3 -0
  24. package/src/tasks/create/templates/Launchpad/Template/__components.md +3 -0
  25. package/src/tasks/create/templates/Launchpad/Widget/CASE/config.json.mustache +23 -0
  26. package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.stories.jsx.mustache +78 -0
  27. package/src/tasks/create/templates/Launchpad/Widget/CASE/index.jsx.mustache +76 -0
  28. package/src/tasks/create/templates/Launchpad/Widget/CASE/mock.stories.js.mustache +390 -0
  29. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Operator.jsx.mustache +282 -0
  30. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/config.json.mustache +55 -0
  31. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.stories.jsx.mustache +74 -0
  32. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/index.jsx.mustache +82 -0
  33. package/src/tasks/create/templates/Launchpad/Widget/__components.md +3 -0
  34. package/src/tasks/create-all/index.js +106 -73
  35. package/src/tasks/delete/helper.js +90 -35
  36. package/src/tasks/delete/index.js +3 -10
  37. package/src/tasks/delete-all/helper.js +109 -58
  38. package/src/tasks/delete-all/index.js +2 -9
  39. package/src/tasks/init/index.js +1 -1
  40. package/src/tasks/init/template/.storybook/package.json +1 -0
  41. package/src/tasks/init/template/package.json.mustache +9 -8
  42. package/src/tasks/list/helper.js +93 -70
  43. package/src/tasks/list/index.js +20 -5
  44. package/src/tasks/publish/helper.js +2 -3
  45. package/src/tasks/publish/index.js +7 -15
  46. package/src/tasks/publish-all/helper.js +0 -1
  47. package/src/tasks/publish-all/index.js +12 -21
  48. package/src/tasks/revert-webpack/index.js +1 -1
  49. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Avatar.jsx +75 -0
  50. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/OneColumnPage.svg +36 -0
  51. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/mock.stories.js +51 -0
  52. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/OneColumnPage.svg +36 -0
  53. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/styles.js +14 -0
  54. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/styles.js +14 -0
  55. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/Boolean.js +38 -0
  56. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/boolean-format.js +26 -0
  57. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/config.json +145 -0
  58. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/demo.stories.jsx +61 -0
  59. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/event-utils.js +18 -0
  60. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/index.jsx +170 -0
  61. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/mock.stories.js +21 -0
  62. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/styles.js +14 -0
  63. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/OneColumnPage.svg +36 -0
  64. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/config.json +23 -0
  65. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.jsx +78 -0
  66. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/index.jsx +73 -0
  67. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/mock.stories.js +390 -0
  68. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/styles.js +14 -0
  69. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/config.json +291 -0
  70. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.stories.jsx +53 -0
  71. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/event-utils.js +18 -0
  72. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/index.jsx +296 -0
  73. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/mock.stories.js +23 -0
  74. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/styles.js +14 -0
  75. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/suggestions-handler.js +10 -0
  76. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/DateFormatter.js +61 -0
  77. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/FormattedText.jsx +41 -0
  78. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/config.json +195 -0
  79. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/date.js +439 -0
  80. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.stories.jsx +73 -0
  81. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/index.jsx +256 -0
  82. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/mock.stories.js +23 -0
  83. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/styles.js +14 -0
  84. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/suggestions-handler.js +10 -0
  85. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/config.json +256 -0
  86. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-time.js +92 -0
  87. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-utils.js +288 -0
  88. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date.js +331 -0
  89. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.jsx +73 -0
  90. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/index.jsx +254 -0
  91. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/mock.stories.js +23 -0
  92. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/styles.js +14 -0
  93. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/suggestions-handler.js +10 -0
  94. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/config.json +278 -0
  95. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.stories.jsx +49 -0
  96. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/event-utils.js +18 -0
  97. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/index.jsx +270 -0
  98. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/mock.stories.js +21 -0
  99. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/styles.js +14 -0
  100. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/suggestions-handler.js +10 -0
  101. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/OneColumnDetails.svg +22 -0
  102. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/StatusWork.jsx +26 -0
  103. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/config.json +35 -0
  104. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.jsx +132 -0
  105. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/index.jsx +83 -0
  106. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/mock.stories.js +189 -0
  107. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/styles.js +14 -0
  108. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/utils.js +152 -0
  109. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/config.json +111 -0
  110. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.stories.jsx +48 -0
  111. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/event-utils.js +18 -0
  112. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/index.jsx +231 -0
  113. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/mock.stories.js +22 -0
  114. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/styles.js +14 -0
  115. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/suggestions-handler.js +10 -0
  116. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/DefaultForm.svg +29 -0
  117. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/config.json +45 -0
  118. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.stories.jsx +166 -0
  119. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/index.jsx +42 -0
  120. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/mock.stories.js +137 -0
  121. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/styles.js +14 -0
  122. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/config.json +344 -0
  123. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.stories.jsx +49 -0
  124. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/event-utils.js +18 -0
  125. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.jsx +333 -0
  126. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/mock.stories.js +21 -0
  127. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/styles.js +14 -0
  128. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/suggestions-handler.js +10 -0
  129. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/GetNextWork.jsx +35 -0
  130. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/OneColumnPage.svg +36 -0
  131. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/config.json +32 -0
  132. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.jsx +102 -0
  133. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/index.jsx +70 -0
  134. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/localizations.json +4 -0
  135. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/mock.stories.js +94 -0
  136. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/styles.js +14 -0
  137. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/utils.js +229 -0
  138. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Avatar.jsx +75 -0
  139. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/OneColumnPage.svg +36 -0
  140. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Operator.jsx +279 -0
  141. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/config.json +55 -0
  142. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.jsx +74 -0
  143. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/index.jsx +80 -0
  144. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/mock.stories.js +51 -0
  145. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/styles.js +14 -0
  146. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/OneColumnPage.svg +36 -0
  147. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/config.json +59 -0
  148. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.stories.jsx +30 -0
  149. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/index.jsx +48 -0
  150. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/mock.stories.js +23 -0
  151. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/styles.js +14 -0
  152. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/config.json +111 -0
  153. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.stories.jsx +48 -0
  154. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/event-utils.js +18 -0
  155. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/index.jsx +231 -0
  156. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/mock.stories.js +20 -0
  157. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/styles.js +14 -0
  158. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/suggestions-handler.js +10 -0
  159. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/config.json +93 -0
  160. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.stories.jsx +49 -0
  161. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/event-utils.js +18 -0
  162. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/index.jsx +275 -0
  163. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/mock.stories.js +21 -0
  164. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/styles.js +14 -0
  165. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/suggestions-handler.js +10 -0
  166. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/config.json +123 -0
  167. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.stories.jsx +46 -0
  168. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/event-utils.js +18 -0
  169. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/index.jsx +266 -0
  170. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/mock.stories.js +37 -0
  171. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/styles.js +14 -0
  172. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/suggestions-handler.js +10 -0
  173. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/config.json +114 -0
  174. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/demo.stories.jsx +78 -0
  175. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/event-utils.js +18 -0
  176. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/index.jsx +351 -0
  177. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/mock.stories.js +67 -0
  178. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/styles.js +14 -0
  179. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/suggestions-handler.js +10 -0
  180. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/config.json +55 -0
  181. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/demo.stories.jsx +51 -0
  182. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/index.jsx +60 -0
  183. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/mock.stories.js +13 -0
  184. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/styles.js +14 -0
  185. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/StatusWork.jsx +26 -0
  186. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/config.json +111 -0
  187. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.stories.jsx +48 -0
  188. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/event-utils.js +18 -0
  189. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/index.jsx +239 -0
  190. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/mock.stories.js +21 -0
  191. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/styles.js +14 -0
  192. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/suggestions-handler.js +10 -0
  193. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/config.json +185 -0
  194. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/demo.stories.jsx +57 -0
  195. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/index.jsx +213 -0
  196. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/mock.stories.js +20 -0
  197. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/styles.js +14 -0
  198. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/suggestions-handler.js +10 -0
  199. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/time-of-day.js +288 -0
  200. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/StatusWork.jsx +26 -0
  201. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/TwoColumnDetails.svg +28 -0
  202. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/config.json +42 -0
  203. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +136 -0
  204. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/index.jsx +83 -0
  205. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/mock.stories.js +230 -0
  206. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/styles.js +14 -0
  207. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/utils.js +155 -0
  208. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/TwoColumn.svg +38 -0
  209. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/config.json +27 -0
  210. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +175 -0
  211. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/index.jsx +45 -0
  212. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/mock.stories.js +143 -0
  213. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/styles.js +14 -0
  214. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/config.json +237 -0
  215. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.stories.jsx +46 -0
  216. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/event-utils.js +18 -0
  217. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/index.jsx +232 -0
  218. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/mock.stories.js +22 -0
  219. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/styles.js +14 -0
  220. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/suggestions-handler.js +10 -0
  221. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/text-url.jsx +173 -0
  222. package/{src/tasks/init/template/test/functionTest → tests/functional}/localCreateAllListDeleteAll.test.js +13 -7
  223. package/{src/tasks/init/template/test/functionTest → tests/functional}/localCreateBuildAllDeleteAll.test.js +9 -9
  224. package/{src/tasks/init/template/test/functionTest → tests/functional}/localCreateBuildDelete.test.js +6 -6
  225. package/{src/tasks/init/template/test/functionTest → tests/functional}/localCreateListDelete.test.js +8 -8
  226. package/{src/tasks/init/template/test/functionTest → tests/functional}/localCreatePublishAllDeleteAll.test.js +9 -9
  227. package/{src/tasks/init/template/test/functionTest → tests/functional}/localCreatePublishDelete.test.js +6 -6
  228. package/{src/tasks/init/template/test/functionTest → tests/functional}/localCreateRenameDelete.test.js +6 -6
  229. package/{src/tasks/init/template/test/functionTest → tests/functional}/localPromoteRevertWP.test.js +4 -4
  230. package/{test/unitTest → tests/unit}/util.test.js +3 -3
  231. /package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/config.json.mustache +0 -0
  232. /package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/demo.stories.jsx.mustache +0 -0
  233. /package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/mock.stories.js.mustache +0 -0
  234. /package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/styles.js.mustache +0 -0
  235. /package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/suggestions-handler.js +0 -0
  236. /package/src/tasks/create/templates/Constellation/Field/{TimeOfDay → TimeofDay}/time-of-day.js.mustache +0 -0
  237. /package/src/tasks/{init/template/test/assets/components/createAll/Pega_DXIL_MyCaseWidget → create/templates/Launchpad/Widget/CASE}/OneColumnPage.svg +0 -0
  238. /package/src/tasks/{init/template/test/assets/components/create/Pega_DXIL_MyTestText/styles.js → create/templates/Launchpad/Widget/CASE/styles.js.mustache} +0 -0
  239. /package/src/tasks/{init/template/test/assets/components/createAll/Pega_DXIL_MyPageCaseWidget/Avatar.jsx → create/templates/Launchpad/Widget/PAGE-CASE/Avatar.jsx.mustache} +0 -0
  240. /package/src/tasks/{init/template/test/assets/components/createAll/Pega_DXIL_MyPage → create/templates/Launchpad/Widget/PAGE-CASE}/OneColumnPage.svg +0 -0
  241. /package/src/tasks/{init/template/test/assets/components/createAll/Pega_DXIL_MyPageCaseWidget/mock.stories.js → create/templates/Launchpad/Widget/PAGE-CASE/mock.stories.js.mustache} +0 -0
  242. /package/src/tasks/{init/template/test/assets/components/createAll/Pega_DXIL_MyBoolean/styles.js → create/templates/Launchpad/Widget/PAGE-CASE/styles.js.mustache} +0 -0
  243. /package/src/tasks/init/template/.storybook/{main.js → main.cjs} +0 -0
  244. /package/{src/tasks/init/template/test → tests}/assets/components/create/Pega_DXIL_MyTestText/config.json +0 -0
  245. /package/{src/tasks/init/template/test → tests}/assets/components/create/Pega_DXIL_MyTestText/demo.stories.jsx +0 -0
  246. /package/{src/tasks/init/template/test → tests}/assets/components/create/Pega_DXIL_MyTestText/index.jsx +0 -0
  247. /package/{src/tasks/init/template/test → tests}/assets/components/create/Pega_DXIL_MyTestText/mock.stories.js +0 -0
  248. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyCaseWidget → tests/assets/components/create/Pega_DXIL_MyTestText}/styles.js +0 -0
  249. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyBoolean/Boolean.js +0 -0
  250. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyBoolean/boolean-format.js +0 -0
  251. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyBoolean/config.json +0 -0
  252. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyBoolean/demo.stories.jsx +0 -0
  253. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyBoolean/event-utils.js +0 -0
  254. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyBoolean/index.jsx +0 -0
  255. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyBoolean/mock.stories.js +0 -0
  256. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyCurrency → tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean}/styles.js +0 -0
  257. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPageCaseWidget → tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget}/OneColumnPage.svg +0 -0
  258. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCaseWidget/config.json +0 -0
  259. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCaseWidget/demo.stories.jsx +0 -0
  260. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCaseWidget/index.jsx +0 -0
  261. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCaseWidget/mock.stories.js +0 -0
  262. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyDate → tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget}/styles.js +0 -0
  263. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCurrency/config.json +0 -0
  264. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCurrency/demo.stories.jsx +0 -0
  265. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCurrency/event-utils.js +0 -0
  266. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCurrency/index.jsx +0 -0
  267. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCurrency/mock.stories.js +0 -0
  268. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyDateTime → tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency}/styles.js +0 -0
  269. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCurrency/suggestions-handler.js +0 -0
  270. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/DateFormatter.js +0 -0
  271. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/FormattedText.jsx +0 -0
  272. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/config.json +0 -0
  273. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/date.js +0 -0
  274. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/demo.stories.jsx +0 -0
  275. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/index.jsx +0 -0
  276. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/mock.stories.js +0 -0
  277. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyDecimal → tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate}/styles.js +0 -0
  278. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/suggestions-handler.js +0 -0
  279. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/config.json +0 -0
  280. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/date-time.js +0 -0
  281. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/date-utils.js +0 -0
  282. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/date.js +0 -0
  283. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/demo.stories.jsx +0 -0
  284. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/index.jsx +0 -0
  285. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/mock.stories.js +0 -0
  286. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyDetails → tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime}/styles.js +0 -0
  287. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/suggestions-handler.js +0 -0
  288. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDecimal/config.json +0 -0
  289. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDecimal/demo.stories.jsx +0 -0
  290. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDecimal/event-utils.js +0 -0
  291. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDecimal/index.jsx +0 -0
  292. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDecimal/mock.stories.js +0 -0
  293. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyEmail → tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal}/styles.js +0 -0
  294. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDecimal/suggestions-handler.js +0 -0
  295. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDetails/OneColumnDetails.svg +0 -0
  296. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDetails/StatusWork.jsx +0 -0
  297. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDetails/config.json +0 -0
  298. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDetails/demo.stories.jsx +0 -0
  299. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDetails/index.jsx +0 -0
  300. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDetails/mock.stories.js +0 -0
  301. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyForm → tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails}/styles.js +0 -0
  302. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDetails/utils.js +0 -0
  303. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyEmail/config.json +0 -0
  304. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyEmail/demo.stories.jsx +0 -0
  305. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyEmail/event-utils.js +0 -0
  306. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyEmail/index.jsx +0 -0
  307. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyEmail/mock.stories.js +0 -0
  308. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyInteger → tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail}/styles.js +0 -0
  309. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyEmail/suggestions-handler.js +0 -0
  310. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyForm/DefaultForm.svg +0 -0
  311. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyForm/config.json +0 -0
  312. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyForm/demo.stories.jsx +0 -0
  313. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyForm/index.jsx +0 -0
  314. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyForm/mock.stories.js +0 -0
  315. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPage → tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm}/styles.js +0 -0
  316. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyInteger/config.json +0 -0
  317. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyInteger/demo.stories.jsx +0 -0
  318. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyInteger/event-utils.js +0 -0
  319. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyInteger/index.jsx +0 -0
  320. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyInteger/mock.stories.js +0 -0
  321. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPageCaseWidget → tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger}/styles.js +0 -0
  322. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyInteger/suggestions-handler.js +0 -0
  323. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPage/GetNextWork.jsx +0 -0
  324. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPageWidget → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage}/OneColumnPage.svg +0 -0
  325. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPage/config.json +0 -0
  326. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPage/demo.stories.jsx +0 -0
  327. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPage/index.jsx +0 -0
  328. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPage/localizations.json +0 -0
  329. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPage/mock.stories.js +0 -0
  330. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPageWidget → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage}/styles.js +0 -0
  331. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPage/utils.js +0 -0
  332. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageCaseWidget/Operator.jsx +0 -0
  333. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageCaseWidget/config.json +0 -0
  334. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageCaseWidget/demo.stories.jsx +0 -0
  335. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageCaseWidget/index.jsx +0 -0
  336. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyParagraph → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget}/styles.js +0 -0
  337. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageWidget/config.json +0 -0
  338. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageWidget/demo.stories.jsx +0 -0
  339. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageWidget/index.jsx +0 -0
  340. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageWidget/mock.stories.js +0 -0
  341. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPercentage → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget}/styles.js +0 -0
  342. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyParagraph/config.json +0 -0
  343. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyParagraph/demo.stories.jsx +0 -0
  344. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyParagraph/event-utils.js +0 -0
  345. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyParagraph/index.jsx +0 -0
  346. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyParagraph/mock.stories.js +0 -0
  347. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPhone → tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph}/styles.js +0 -0
  348. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyParagraph/suggestions-handler.js +0 -0
  349. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPercentage/config.json +0 -0
  350. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPercentage/demo.stories.jsx +0 -0
  351. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPercentage/event-utils.js +0 -0
  352. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPercentage/index.jsx +0 -0
  353. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPercentage/mock.stories.js +0 -0
  354. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPicklist → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage}/styles.js +0 -0
  355. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPercentage/suggestions-handler.js +0 -0
  356. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPhone/config.json +0 -0
  357. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPhone/demo.stories.jsx +0 -0
  358. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPhone/event-utils.js +0 -0
  359. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPhone/index.jsx +0 -0
  360. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPhone/mock.stories.js +0 -0
  361. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyText → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone}/styles.js +0 -0
  362. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPhone/suggestions-handler.js +0 -0
  363. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPicklist/config.json +0 -0
  364. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPicklist/demo.stories.jsx +0 -0
  365. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPicklist/event-utils.js +0 -0
  366. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPicklist/index.jsx +0 -0
  367. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPicklist/mock.stories.js +0 -0
  368. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyTextInput → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist}/styles.js +0 -0
  369. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPicklist/suggestions-handler.js +0 -0
  370. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyText/config.json +0 -0
  371. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyText/demo.stories.jsx +0 -0
  372. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyText/index.jsx +0 -0
  373. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyText/mock.stories.js +0 -0
  374. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyTimeOfDay → tests/assets/components/createAll/Constellation/Pega_DXIL_MyText}/styles.js +0 -0
  375. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTextInput/StatusWork.jsx +0 -0
  376. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTextInput/config.json +0 -0
  377. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTextInput/demo.stories.jsx +0 -0
  378. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTextInput/event-utils.js +0 -0
  379. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTextInput/index.jsx +0 -0
  380. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTextInput/mock.stories.js +0 -0
  381. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyTwoColumnDetails → tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput}/styles.js +0 -0
  382. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTextInput/suggestions-handler.js +0 -0
  383. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTimeOfDay/config.json +0 -0
  384. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTimeOfDay/demo.stories.jsx +0 -0
  385. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTimeOfDay/index.jsx +0 -0
  386. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTimeOfDay/mock.stories.js +0 -0
  387. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyTwoColumnForm → tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay}/styles.js +0 -0
  388. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTimeOfDay/suggestions-handler.js +0 -0
  389. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTimeOfDay/time-of-day.js +0 -0
  390. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/StatusWork.jsx +0 -0
  391. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/TwoColumnDetails.svg +0 -0
  392. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/config.json +0 -0
  393. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +0 -0
  394. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/index.jsx +0 -0
  395. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/mock.stories.js +0 -0
  396. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyURL → tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails}/styles.js +0 -0
  397. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/utils.js +0 -0
  398. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnForm/TwoColumn.svg +0 -0
  399. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnForm/config.json +0 -0
  400. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +0 -0
  401. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnForm/index.jsx +0 -0
  402. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnForm/mock.stories.js +0 -0
  403. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyURL/config.json +0 -0
  404. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyURL/demo.stories.jsx +0 -0
  405. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyURL/event-utils.js +0 -0
  406. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyURL/index.jsx +0 -0
  407. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyURL/mock.stories.js +0 -0
  408. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyURL/suggestions-handler.js +0 -0
  409. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyURL/text-url.jsx +0 -0
@@ -1,7 +1,10 @@
1
+ import fs from 'fs';
1
2
  import chalk from 'chalk';
2
3
  import inquirer from 'inquirer';
3
4
  import ora from 'ora';
4
5
 
6
+ import path from 'path';
7
+ import { join } from 'path';
5
8
 
6
9
  import {
7
10
  deleteLocalComponent,
@@ -9,18 +12,23 @@ import {
9
12
  deleteLaunchpadServerComponent,
10
13
  getComponents,
11
14
  getPegaServerConfig,
12
- standardizeStr
15
+ standardizeStr,
16
+ sanitize
13
17
  } from '../../util.js';
14
18
  import { getComponentsFromServer } from '../list/helper.js';
15
19
 
16
-
20
+ import { TASKS_CONFIG_JSON_FILENAME, COMPONENTS_DIRECTORY_PATH, COMPONENTS_PATH } from '../../constants.js';
17
21
 
18
22
  export const SOURCE_OF_COMPONENT_TYPES = {
19
23
  SERVER: 'Server',
20
24
  LOCAL: 'Local'
21
25
  };
22
26
 
23
- export const getDeleteComponentsQuestions = async (options, sourceOfComponentsOption) => {
27
+ let library;
28
+ let organization;
29
+
30
+
31
+ export const getDeleteComponentsQuestions = async (options) => {
24
32
  const defaultPegaServerConfig = await getPegaServerConfig();
25
33
 
26
34
  return [
@@ -37,25 +45,65 @@ export const getDeleteComponentsQuestions = async (options, sourceOfComponentsOp
37
45
  ];
38
46
  };
39
47
 
40
- export const deleteLocalComponents = async (sourceOfComponents, options) => {
41
- const localComponents = await getComponents();
48
+ export const getLaunchPadFilterQuestions = async () => {
49
+ const defaultPegaServerConfig = await getPegaServerConfig();
42
50
 
51
+ const currentDirectory = process.cwd();
52
+ const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
43
53
 
54
+ let data = fs.readFileSync(pegaConfigJsonPath, { encoding: 'utf8' });
55
+ data = data && JSON.parse(data);
44
56
 
45
- if (localComponents.length > 0) {
57
+ if (!data[COMPONENTS_DIRECTORY_PATH]) {
58
+ console.error(
59
+ `${chalk.red.bold('ERROR')} Could not able find components directory path in config.json`
60
+ );
61
+ process.exit(1);
62
+ }
63
+
64
+ const componentData = data[COMPONENTS_PATH];
65
+
66
+ ({ library } = componentData);
67
+ ({ organization } = JSON.parse(fs.readFileSync(path.resolve('package.json'), 'utf8')));
68
+
69
+ return [
70
+ {
71
+ name: 'organization',
72
+ message: 'Enter component organization (required)',
73
+ default: organization,
74
+ validate: value => {
75
+ if (value) {
76
+ return true;
77
+ }
78
+ return 'Please provide value for organization';
79
+ }
80
+ },
81
+ {
82
+ name: 'library',
83
+ message: 'Enter library name (required)',
84
+ default: library,
85
+ validate: value => {
86
+ if (value) {
87
+ return true;
88
+ }
89
+ return 'Please provide value for library';
90
+ }
91
+ }
92
+ ];
93
+ }
46
94
 
95
+ export const deleteLocalComponents = async (sourceOfComponents, options) => {
96
+ const localComponents = await getComponents();
97
+
98
+ if (localComponents.length > 0) {
47
99
  if (options.params.length >= 6) {
48
100
  const componentKey = options.params[4];
49
101
  const sDeletion = options.params[5];
50
- const confirmDeletion = (sDeletion === 'Y' ||
51
- sDeletion === 'y' ||
52
- sDeletion === true ||
53
- sDeletion === 'true') ? true : false;
102
+ const confirmDeletion = sDeletion === 'Y' || sDeletion === 'y' || sDeletion === true || sDeletion === 'true';
54
103
  if (confirmDeletion) {
55
104
  await deleteLocalComponent(componentKey);
56
105
  }
57
- }
58
- else {
106
+ } else {
59
107
  const answers = await inquirer.prompt([
60
108
  {
61
109
  name: 'componentKey',
@@ -74,36 +122,45 @@ export const deleteLocalComponents = async (sourceOfComponents, options) => {
74
122
  await deleteLocalComponent(answers.componentKey);
75
123
  }
76
124
  }
77
-
78
125
  } else {
79
126
  console.log(chalk.bold.redBright(`No custom components in ${sourceOfComponents}`));
80
127
  }
81
128
  };
82
129
 
83
130
  export const deleteServerComponents = async (sourceOfComponents, answers) => {
84
- const spinner = ora('Fetching components from server').start();
131
+
85
132
  const defaultPegaServerConfig = await getPegaServerConfig();
86
133
  const isLaunchpad = defaultPegaServerConfig.serverType === 'launchpad';
87
- const data = await getComponentsFromServer(answers);
88
134
 
89
- // const serverComponents = isLaunchpad ? data : JSON.parse(data).pxResults;
135
+
136
+ if (isLaunchpad) {
137
+ const questions = await getLaunchPadFilterQuestions();
138
+ const lpAnswers = await inquirer.prompt(questions);
139
+
140
+ ({library, organization} = lpAnswers);
141
+ }
142
+
143
+ const spinner = ora('Fetching components from server').start();
144
+ const data = await getComponentsFromServer(library, organization);
145
+ spinner.stop();
146
+
147
+
90
148
  let serverComponents;
91
149
  if (isLaunchpad) {
92
150
  serverComponents = data;
93
- }
94
- else {
151
+
152
+ } else {
95
153
  try {
96
- if (typeof(data) == 'object') {
154
+ if (typeof data === 'object') {
97
155
  serverComponents = data.pxResults;
98
- }
99
- else {
156
+ } else {
100
157
  serverComponents = JSON.parse(data).pxResults;
101
158
  }
102
-
159
+ } catch (ex) {
160
+ /* empty */
103
161
  }
104
- catch (ex) {}
105
162
  }
106
- spinner.stop();
163
+
107
164
 
108
165
  if (serverComponents && serverComponents?.length > 0) {
109
166
  if (isLaunchpad) {
@@ -132,23 +189,21 @@ export const deleteServerComponents = async (sourceOfComponents, answers) => {
132
189
  const choicesArr = serverComponents.map(({ label, pyRuleSet, pyRuleSetVersion }) => {
133
190
  const name = `${standardizeStr(label, 45)} ${standardizeStr(pyRuleSet, 30)} ${standardizeStr(pyRuleSetVersion, 20)}`;
134
191
 
135
- const value = `${label}~|~${pyRuleSet}~|~${pyRuleSetVersion}`;
136
- const short = `Selected component : ${chalk.redBright(
137
- `${label} ${pyRuleSet} : ${pyRuleSetVersion}`
138
- )}`;
192
+ const value = `${label}~|~${pyRuleSet}~|~${pyRuleSetVersion}`;
193
+ const short = `\n Selected component : ${chalk.redBright(`${label} ${pyRuleSet} : ${pyRuleSetVersion}`)}`;
139
194
 
140
- return { name, value, short };
141
- });
195
+ return { name, value, short };
196
+ });
142
197
  const infinityAnswers = await inquirer.prompt({
143
- name: 'componentToDelete',
144
- type: 'rawlist',
145
- pageSize: 10,
198
+ name: 'componentToDelete',
199
+ type: 'rawlist',
200
+ pageSize: 10,
146
201
  message: `Select component to delete \n ${standardizeStr('Rule name', 48)} ${standardizeStr('Ruleset name', 30)} ${standardizeStr(
147
202
  'Ruleset version',
148
203
  22
149
204
  )}`,
150
- choices: choicesArr
151
- });
205
+ choices: choicesArr
206
+ });
152
207
  await deleteInfinityServerComponent(infinityAnswers.componentToDelete);
153
208
  }
154
209
  } else {
@@ -1,16 +1,9 @@
1
1
  import inquirer from 'inquirer';
2
- import ora from 'ora';
3
- import chalk from 'chalk';
4
-
5
- import {
6
- deleteLocalComponents,
7
- SOURCE_OF_COMPONENT_TYPES,
8
- deleteServerComponents,
9
- getDeleteComponentsQuestions
10
- } from './helper.js';
11
2
 
12
3
  import { showVersion } from '../../util.js';
13
4
 
5
+ import { deleteLocalComponents, SOURCE_OF_COMPONENT_TYPES, deleteServerComponents, getDeleteComponentsQuestions } from './helper.js';
6
+
14
7
  const deleteComponentsFn = async (sourceOfComponents, answers, options) => {
15
8
  switch (sourceOfComponents) {
16
9
  case SOURCE_OF_COMPONENT_TYPES.LOCAL: {
@@ -28,7 +21,7 @@ const deleteComponentsFn = async (sourceOfComponents, answers, options) => {
28
21
  }
29
22
  };
30
23
 
31
- export default async options => {
24
+ export default async (options) => {
32
25
  showVersion();
33
26
 
34
27
  let sourceOfComponentsOption = SOURCE_OF_COMPONENT_TYPES.LOCAL;
@@ -1,3 +1,6 @@
1
+ import fs from 'fs';
2
+ import path, {join} from 'path';
3
+
1
4
  import chalk from 'chalk';
2
5
  import inquirer from 'inquirer';
3
6
  import ora from 'ora';
@@ -6,23 +9,26 @@ import {
6
9
  deleteInfinityServerComponent,
7
10
  deleteLaunchpadServerComponent,
8
11
  deleteLocalComponent,
9
- deleteServerComponent,
10
12
  getComponents,
11
13
  getPegaServerConfig,
12
14
  standardizeStr,
13
15
  validateRulesetVersion
14
16
  } from '../../util.js';
15
17
  import { getComponentsFromServer } from '../list/helper.js';
18
+ import { TASKS_CONFIG_JSON_FILENAME, COMPONENTS_DIRECTORY_PATH, COMPONENTS_PATH } from '../../constants.js';
16
19
 
17
20
  export const SOURCE_OF_COMPONENT_TYPES = {
18
21
  SERVER: 'Server',
19
22
  LOCAL: 'Local'
20
23
  };
21
24
 
22
- export const getDeleteComponentsQuestions = async (options, sourceOfComponentsOption) => {
23
- const defaultPegaServerConfig = await getPegaServerConfig();
25
+ let library;
26
+ let organization;
24
27
 
25
28
 
29
+ export const getDeleteComponentsQuestions = async (options) => {
30
+ const defaultPegaServerConfig = await getPegaServerConfig();
31
+
26
32
  return [
27
33
  {
28
34
  name: 'sourceOfComponents',
@@ -37,34 +43,74 @@ export const getDeleteComponentsQuestions = async (options, sourceOfComponentsOp
37
43
  ];
38
44
  };
39
45
 
46
+ export const getLaunchPadFilterQuestions = async () => {
47
+ const currentDirectory = process.cwd();
48
+ const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
49
+
50
+ let data = fs.readFileSync(pegaConfigJsonPath, { encoding: 'utf8' });
51
+ data = data && JSON.parse(data);
52
+
53
+ if (!data[COMPONENTS_DIRECTORY_PATH]) {
54
+ console.error(
55
+ `${chalk.red.bold('ERROR')} Could not able find components directory path in config.json`
56
+ );
57
+ process.exit(1);
58
+ }
59
+
60
+ const componentData = data[COMPONENTS_PATH];
40
61
 
62
+ ({ library } = componentData);
63
+ ({ organization } = JSON.parse(fs.readFileSync(path.resolve('package.json'), 'utf8')));
64
+
65
+ return [
66
+ {
67
+ name: 'organization',
68
+ message: 'Enter component organization (required)',
69
+ default: organization,
70
+ validate: value => {
71
+ if (value) {
72
+ return true;
73
+ }
74
+ return 'Please provide value for organization';
75
+ }
76
+ },
77
+ {
78
+ name: 'library',
79
+ message: 'Enter library name (required)',
80
+ default: library,
81
+ validate: value => {
82
+ if (value) {
83
+ return true;
84
+ }
85
+ return 'Please provide value for library';
86
+ }
87
+ }
88
+ ];
89
+ }
41
90
 
42
91
  export const deleteLocalComponents = async (sourceOfComponents, options) => {
43
92
  const localComponents = await getComponents();
44
93
 
45
- for (var index in localComponents) {
94
+ // eslint-disable-next-line no-restricted-syntax, guard-for-in
95
+ for (const index in localComponents) {
46
96
  console.log(chalk.bold.green(localComponents[index]));
47
97
  }
48
98
 
49
99
  if (localComponents.length > 0) {
50
-
51
100
  if (options.params.length >= 5) {
52
101
  const sDeletion = options.params[4];
53
- const confirmDeletion = (sDeletion === 'Y' ||
54
- sDeletion === 'y' ||
55
- sDeletion === true ||
56
- sDeletion === 'true') ? true : false;
102
+ const confirmDeletion = sDeletion === 'Y' || sDeletion === 'y' || sDeletion === true || sDeletion === 'true';
57
103
  if (confirmDeletion) {
58
- for (var index in localComponents) {
59
- var componentToDelete = localComponents[index];
60
- //console.log(chalk.bold.green("Deleting: " + componentToDelete));
104
+ // eslint-disable-next-line no-restricted-syntax, guard-for-in
105
+ for (const index in localComponents) {
106
+ const componentToDelete = localComponents[index];
107
+ // console.log(chalk.bold.green("Deleting: " + componentToDelete));
108
+ // eslint-disable-next-line no-await-in-loop
61
109
  await deleteLocalComponent(componentToDelete);
62
110
  }
63
111
  }
64
- }
65
- else{
112
+ } else {
66
113
  const answers = await inquirer.prompt([
67
-
68
114
  {
69
115
  name: 'confirmDeletion',
70
116
  type: 'confirm',
@@ -80,38 +126,45 @@ export const deleteLocalComponents = async (sourceOfComponents, options) => {
80
126
  }
81
127
  }
82
128
  }
83
-
84
- }
85
- else {
129
+ } else {
86
130
  console.log(chalk.bold.redBright(`No custom components in ${sourceOfComponents}`));
87
131
  }
88
132
  };
89
133
 
90
134
  export const deleteServerComponents = async (sourceOfComponents, answers) => {
91
- const spinner = ora('Fetching components from server').start();
135
+
92
136
  const defaultPegaServerConfig = await getPegaServerConfig();
93
137
  const isLaunchpad = defaultPegaServerConfig.serverType === 'launchpad';
94
- const data = await getComponentsFromServer(answers);
138
+
139
+ if (isLaunchpad) {
140
+ const questions = await getLaunchPadFilterQuestions();
141
+ const lpAnswers = await inquirer.prompt(questions);
142
+
143
+ ({library, organization} = lpAnswers);
144
+ }
145
+
146
+ const spinner = ora('Fetching components from server').start();
147
+ const data = await getComponentsFromServer(library, organization);
148
+ spinner.stop();
149
+
95
150
 
96
151
  // const serverComponents = isLaunchpad ? data : data.pxResults;
97
152
  let serverComponents;
98
153
  if (isLaunchpad) {
99
154
  serverComponents = data;
100
- }
101
- else {
155
+ } else {
102
156
  try {
103
- if (typeof(data) == 'object') {
157
+ if (typeof data === 'object') {
104
158
  serverComponents = data.pxResults;
105
- }
106
- else {
159
+ } else {
107
160
  serverComponents = JSON.parse(data).pxResults;
108
161
  }
109
-
162
+ } catch (ex) {
163
+ /* empty */
110
164
  }
111
- catch (ex) {}
112
165
  }
113
166
 
114
- spinner.stop();
167
+
115
168
 
116
169
  if (serverComponents && serverComponents?.length > 0) {
117
170
  if (isLaunchpad) {
@@ -139,35 +192,35 @@ export const deleteServerComponents = async (sourceOfComponents, answers) => {
139
192
  const choicesArr = serverComponents.map(({ label, pyRuleSet, pyRuleSetVersion }) => {
140
193
  const name = `${standardizeStr(label, 45)} ${standardizeStr(pyRuleSet, 30)} ${standardizeStr(pyRuleSetVersion, 20)}`;
141
194
 
142
- const value = `${label}~|~${pyRuleSet}~|~${pyRuleSetVersion}`;
195
+ const value = `${label}~|~${pyRuleSet}~|~${pyRuleSetVersion}`;
143
196
  const short = `\n Selected component : ${chalk.redBright(`${label} ${pyRuleSet} : ${pyRuleSetVersion}`)}`;
144
197
 
145
- return { name, value, short };
146
- });
198
+ return { name, value, short };
199
+ });
147
200
 
148
- const selectedComp = await inquirer.prompt([
149
- {
150
- name: 'rulesetName',
151
- message: 'Enter ruleset name',
152
- default: defaultPegaServerConfig.rulesetName,
201
+ const selectedComp = await inquirer.prompt([
202
+ {
203
+ name: 'rulesetName',
204
+ message: 'Enter ruleset name',
205
+ default: defaultPegaServerConfig.rulesetName,
153
206
  validate: (value) => {
154
- if (value.trim()) {
155
- return true;
207
+ if (value.trim()) {
208
+ return true;
209
+ }
210
+ return 'Ruleset name cannot be empty';
156
211
  }
157
- return 'Ruleset name cannot be empty';
158
- }
159
- },
160
- {
161
- name: 'rulesetVersion',
162
- message: 'Enter ruleset version',
212
+ },
213
+ {
214
+ name: 'rulesetVersion',
215
+ message: 'Enter ruleset version',
163
216
  default: defaultPegaServerConfig.rulesetVersion,
164
217
  validate: (value) => {
165
- if (validateRulesetVersion(value)) {
166
- return true;
218
+ if (validateRulesetVersion(value)) {
219
+ return true;
220
+ }
221
+ return 'Please provide compatible version e.g 01-01-01';
167
222
  }
168
- return 'Please provide compatible version e.g 01-01-01';
169
223
  }
170
- }
171
224
  ]);
172
225
 
173
226
  let bHasAtLeastOneComponent = false;
@@ -182,17 +235,17 @@ export const deleteServerComponents = async (sourceOfComponents, answers) => {
182
235
 
183
236
  if (!bHasAtLeastOneComponent) {
184
237
  console.log(chalk.bold.redBright(`No custom components in ${sourceOfComponents} that match ruleSet:${selectedComp.rulesetName}.`));
185
- process.exit(1);
238
+ process.exit();
186
239
  }
187
240
 
188
241
  const confirmDeletionAnswers = await inquirer.prompt([
189
- {
190
- name: 'confirmDeletion',
191
- type: 'confirm',
192
- message: 'Do you want to delete these components ?',
193
- default: false
194
- }
195
- ]);
242
+ {
243
+ name: 'confirmDeletion',
244
+ type: 'confirm',
245
+ message: 'Do you want to delete these components ?',
246
+ default: false
247
+ }
248
+ ]);
196
249
  if (confirmDeletionAnswers.confirmDeletion) {
197
250
  for (const choice of choicesArr) {
198
251
  const componentToDelete = choice.value;
@@ -205,8 +258,6 @@ export const deleteServerComponents = async (sourceOfComponents, answers) => {
205
258
  }
206
259
  }
207
260
  }
208
-
209
-
210
261
  } else {
211
262
  console.log(chalk.bold.redBright(`No custom components in ${sourceOfComponents}`));
212
263
  }
@@ -1,16 +1,9 @@
1
1
  import inquirer from 'inquirer';
2
- import ora from 'ora';
3
- import chalk from 'chalk';
4
-
5
- import {
6
- deleteLocalComponents,
7
- SOURCE_OF_COMPONENT_TYPES,
8
- deleteServerComponents,
9
- getDeleteComponentsQuestions
10
- } from './helper.js';
11
2
 
12
3
  import { showVersion } from '../../util.js';
13
4
 
5
+ import { deleteLocalComponents, SOURCE_OF_COMPONENT_TYPES, deleteServerComponents, getDeleteComponentsQuestions } from './helper.js';
6
+
14
7
  const deleteComponentsFn = async (sourceOfComponents, answers, options) => {
15
8
  switch (sourceOfComponents) {
16
9
  case SOURCE_OF_COMPONENT_TYPES.LOCAL: {
@@ -94,7 +94,7 @@ export default async (options) => {
94
94
  fs.mkdirSync(projectDirectory);
95
95
  } else {
96
96
  console.log(chalk.bold.red(`A project with name ${projectName} already exists. Exiting...`));
97
- process.exit(1);
97
+ process.exit();
98
98
  }
99
99
 
100
100
  const targetDirectory = options.targetDirectory || process.cwd();
@@ -23,15 +23,16 @@
23
23
  "deleteAll": "custom-dx-components deleteAll",
24
24
  "promoteWebPack": "custom-dx-components promoteWebPack",
25
25
  "revertWebPack": "custom-dx-components revertWebPack",
26
- "test": "npm run test:functional && npm run test:unit",
27
- "test:functional": "jest --runInBand test/functionTest --detectOpenHandles --coverage",
28
- "test-coverage": "node --input-type=module --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand node_modules/@pega/custom-dx-component --ci --testResultsProcessor='jest-junit' --coverage",
29
- "test:unit": "npm run test:unit:local --prefix node_modules/@pega/custom-dx-components",
30
26
  "lint:types": "tsc --noEmit",
31
27
  "lint:es": "eslint .",
32
28
  "lint:styles": "stylelint \"./**/*.@(js|jsx|ts|tsx)\"",
33
29
  "lint:format": "prettier -c .",
34
- "lint:spelling": "cspell --no-progress **/*"
30
+ "lint:spelling": "cspell --no-progress **/*",
31
+ "test": "echo 'Running functional and unit tests will DELETE existing local components, proceed (y/n)?' && read proceed && if test \"$proceed\" = \"y\"; then npm run test:full; fi ",
32
+ "test:full": "npm run test:functional && npm run test:unit",
33
+ "test:functional": "npm run test:functional:local --prefix node_modules/@pega/custom-dx-components",
34
+ "test-coverage": "node --input-type=module --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand node_modules/@pega/custom-dx-component --ci --testResultsProcessor='jest-junit' --coverage",
35
+ "test:unit": "npm run test:unit:local --prefix node_modules/@pega/custom-dx-components"
35
36
  },
36
37
  "scriptsComments": {
37
38
  "build": "tsc -b tsconfig.build.json",
@@ -50,8 +51,8 @@
50
51
  "license": "Enter License",
51
52
  "sideEffects": false,
52
53
  "dependencies": {
53
- "@pega/cosmos-react-core": "^3.0.1",
54
- "@pega/cosmos-react-work": "3.0.1",
54
+ "@pega/cosmos-react-core": "^4.0.1",
55
+ "@pega/cosmos-react-work": "4.0.1",
55
56
  "dayjs": "^1.11.5",
56
57
  "polished": "^4.2.2",
57
58
  "prop-types": "^15.8.1",
@@ -65,7 +66,7 @@
65
66
  },
66
67
  "devDependencies": {
67
68
  "@pega/configs": "^0.5.3",
68
- "@pega/custom-dx-components": "^0.23.9",
69
+ "@pega/custom-dx-components": "^23.1.10",
69
70
  "@pega/eslint-config": "^0.3.2",
70
71
  "@storybook/addon-actions": "^6.5.12",
71
72
  "@storybook/addon-essentials": "^6.5.12",