@pega/custom-dx-components 8.8.18 → 8.8.20

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 (377) hide show
  1. package/jest.config.cjs +1 -1
  2. package/package.json +3 -2
  3. package/src/tasks/create/index.js +29 -2
  4. package/src/tasks/create/templates/Launchpad/Field/__components.md +3 -0
  5. package/src/tasks/create/templates/Launchpad/Template/__components.md +3 -0
  6. package/src/tasks/create/templates/Launchpad/Widget/CASE/config.json.mustache +23 -0
  7. package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.stories.jsx.mustache +78 -0
  8. package/src/tasks/create/templates/Launchpad/Widget/CASE/index.jsx.mustache +76 -0
  9. package/src/tasks/create/templates/Launchpad/Widget/CASE/mock.stories.js.mustache +390 -0
  10. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Operator.jsx.mustache +282 -0
  11. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/config.json.mustache +55 -0
  12. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.stories.jsx.mustache +74 -0
  13. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/index.jsx.mustache +82 -0
  14. package/src/tasks/create/templates/Launchpad/Widget/__components.md +3 -0
  15. package/src/tasks/create-all/index.js +27 -1
  16. package/src/tasks/delete/helper.js +67 -4
  17. package/src/tasks/delete-all/helper.js +66 -5
  18. package/src/tasks/init/template/.storybook/package.json +1 -0
  19. package/src/tasks/init/template/package.json.mustache +3 -3
  20. package/src/tasks/list/helper.js +68 -5
  21. package/src/tasks/list/index.js +18 -2
  22. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Avatar.jsx +75 -0
  23. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/OneColumnPage.svg +36 -0
  24. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/mock.stories.js +51 -0
  25. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/OneColumnPage.svg +36 -0
  26. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/styles.js +14 -0
  27. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/styles.js +14 -0
  28. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/Boolean.js +38 -0
  29. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/boolean-format.js +26 -0
  30. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/config.json +145 -0
  31. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/demo.stories.jsx +61 -0
  32. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/event-utils.js +18 -0
  33. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/index.jsx +170 -0
  34. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/mock.stories.js +21 -0
  35. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/styles.js +14 -0
  36. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/OneColumnPage.svg +36 -0
  37. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/config.json +23 -0
  38. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.jsx +78 -0
  39. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/index.jsx +73 -0
  40. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/mock.stories.js +390 -0
  41. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/styles.js +14 -0
  42. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/config.json +291 -0
  43. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.stories.jsx +53 -0
  44. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/event-utils.js +18 -0
  45. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/index.jsx +296 -0
  46. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/mock.stories.js +23 -0
  47. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/styles.js +14 -0
  48. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/suggestions-handler.js +10 -0
  49. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/DateFormatter.js +61 -0
  50. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/FormattedText.jsx +41 -0
  51. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/config.json +195 -0
  52. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/date.js +439 -0
  53. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.stories.jsx +73 -0
  54. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/index.jsx +256 -0
  55. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/mock.stories.js +23 -0
  56. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/styles.js +14 -0
  57. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/suggestions-handler.js +10 -0
  58. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/config.json +256 -0
  59. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-time.js +92 -0
  60. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-utils.js +288 -0
  61. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date.js +331 -0
  62. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.jsx +73 -0
  63. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/index.jsx +254 -0
  64. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/mock.stories.js +23 -0
  65. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/styles.js +14 -0
  66. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/suggestions-handler.js +10 -0
  67. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/config.json +278 -0
  68. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.stories.jsx +49 -0
  69. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/event-utils.js +18 -0
  70. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/index.jsx +270 -0
  71. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/mock.stories.js +21 -0
  72. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/styles.js +14 -0
  73. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/suggestions-handler.js +10 -0
  74. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/OneColumnDetails.svg +22 -0
  75. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/StatusWork.jsx +26 -0
  76. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/config.json +35 -0
  77. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.jsx +132 -0
  78. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/index.jsx +83 -0
  79. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/mock.stories.js +189 -0
  80. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/styles.js +14 -0
  81. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/utils.js +152 -0
  82. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/config.json +111 -0
  83. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.stories.jsx +48 -0
  84. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/event-utils.js +18 -0
  85. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/index.jsx +231 -0
  86. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/mock.stories.js +22 -0
  87. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/styles.js +14 -0
  88. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/suggestions-handler.js +10 -0
  89. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/DefaultForm.svg +29 -0
  90. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/config.json +45 -0
  91. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.stories.jsx +166 -0
  92. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/index.jsx +42 -0
  93. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/mock.stories.js +137 -0
  94. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/styles.js +14 -0
  95. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/config.json +344 -0
  96. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.stories.jsx +49 -0
  97. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/event-utils.js +18 -0
  98. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.jsx +333 -0
  99. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/mock.stories.js +21 -0
  100. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/styles.js +14 -0
  101. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/suggestions-handler.js +10 -0
  102. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/GetNextWork.jsx +35 -0
  103. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/OneColumnPage.svg +36 -0
  104. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/config.json +32 -0
  105. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.jsx +102 -0
  106. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/index.jsx +70 -0
  107. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/localizations.json +4 -0
  108. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/mock.stories.js +94 -0
  109. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/styles.js +14 -0
  110. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/utils.js +229 -0
  111. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Avatar.jsx +75 -0
  112. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/OneColumnPage.svg +36 -0
  113. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Operator.jsx +279 -0
  114. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/config.json +55 -0
  115. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.jsx +74 -0
  116. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/index.jsx +80 -0
  117. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/mock.stories.js +51 -0
  118. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/styles.js +14 -0
  119. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/OneColumnPage.svg +36 -0
  120. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/config.json +59 -0
  121. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.stories.jsx +30 -0
  122. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/index.jsx +48 -0
  123. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/mock.stories.js +23 -0
  124. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/styles.js +14 -0
  125. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/config.json +111 -0
  126. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.stories.jsx +48 -0
  127. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/event-utils.js +18 -0
  128. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/index.jsx +231 -0
  129. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/mock.stories.js +20 -0
  130. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/styles.js +14 -0
  131. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/suggestions-handler.js +10 -0
  132. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/config.json +93 -0
  133. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.stories.jsx +49 -0
  134. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/event-utils.js +18 -0
  135. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/index.jsx +275 -0
  136. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/mock.stories.js +21 -0
  137. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/styles.js +14 -0
  138. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/suggestions-handler.js +10 -0
  139. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/config.json +123 -0
  140. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.stories.jsx +46 -0
  141. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/event-utils.js +18 -0
  142. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/index.jsx +266 -0
  143. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/mock.stories.js +37 -0
  144. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/styles.js +14 -0
  145. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/suggestions-handler.js +10 -0
  146. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/config.json +114 -0
  147. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/demo.stories.jsx +78 -0
  148. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/event-utils.js +18 -0
  149. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/index.jsx +351 -0
  150. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/mock.stories.js +67 -0
  151. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/styles.js +14 -0
  152. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/suggestions-handler.js +10 -0
  153. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/config.json +55 -0
  154. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/demo.stories.jsx +51 -0
  155. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/index.jsx +60 -0
  156. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/mock.stories.js +13 -0
  157. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/styles.js +14 -0
  158. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/StatusWork.jsx +26 -0
  159. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/config.json +111 -0
  160. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.stories.jsx +48 -0
  161. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/event-utils.js +18 -0
  162. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/index.jsx +239 -0
  163. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/mock.stories.js +21 -0
  164. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/styles.js +14 -0
  165. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/suggestions-handler.js +10 -0
  166. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/config.json +185 -0
  167. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/demo.stories.jsx +57 -0
  168. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/index.jsx +213 -0
  169. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/mock.stories.js +20 -0
  170. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/styles.js +14 -0
  171. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/suggestions-handler.js +10 -0
  172. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/time-of-day.js +288 -0
  173. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/StatusWork.jsx +26 -0
  174. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/TwoColumnDetails.svg +28 -0
  175. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/config.json +42 -0
  176. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +136 -0
  177. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/index.jsx +83 -0
  178. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/mock.stories.js +230 -0
  179. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/styles.js +14 -0
  180. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/utils.js +155 -0
  181. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/TwoColumn.svg +38 -0
  182. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/config.json +27 -0
  183. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +175 -0
  184. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/index.jsx +45 -0
  185. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/mock.stories.js +143 -0
  186. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/styles.js +14 -0
  187. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/config.json +237 -0
  188. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.stories.jsx +46 -0
  189. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/event-utils.js +18 -0
  190. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/index.jsx +232 -0
  191. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/mock.stories.js +22 -0
  192. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/styles.js +14 -0
  193. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/suggestions-handler.js +10 -0
  194. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/text-url.jsx +173 -0
  195. package/{src/tasks/init/template/test/functionTest → tests/functional}/localCreateAllListDeleteAll.test.js +13 -7
  196. package/{src/tasks/init/template/test/functionTest → tests/functional}/localCreateBuildAllDeleteAll.test.js +9 -9
  197. package/{src/tasks/init/template/test/functionTest → tests/functional}/localCreateBuildDelete.test.js +6 -6
  198. package/{src/tasks/init/template/test/functionTest → tests/functional}/localCreateListDelete.test.js +8 -8
  199. package/{src/tasks/init/template/test/functionTest → tests/functional}/localCreatePublishAllDeleteAll.test.js +9 -9
  200. package/{src/tasks/init/template/test/functionTest → tests/functional}/localCreatePublishDelete.test.js +6 -6
  201. package/{src/tasks/init/template/test/functionTest → tests/functional}/localCreateRenameDelete.test.js +6 -6
  202. package/{src/tasks/init/template/test/functionTest → tests/functional}/localPromoteRevertWP.test.js +4 -4
  203. package/{test/unitTest → tests/unit}/util.test.js +3 -3
  204. package/src/tasks/init/template/jest.config.cjs +0 -21
  205. /package/src/tasks/{init/template/test/assets/components/createAll/Pega_DXIL_MyCaseWidget → create/templates/Launchpad/Widget/CASE}/OneColumnPage.svg +0 -0
  206. /package/src/tasks/{init/template/test/assets/components/create/Pega_DXIL_MyTestText/styles.js → create/templates/Launchpad/Widget/CASE/styles.js.mustache} +0 -0
  207. /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
  208. /package/src/tasks/{init/template/test/assets/components/createAll/Pega_DXIL_MyPage → create/templates/Launchpad/Widget/PAGE-CASE}/OneColumnPage.svg +0 -0
  209. /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
  210. /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
  211. /package/src/tasks/init/template/.storybook/{main.js → main.cjs} +0 -0
  212. /package/{src/tasks/init/template/test → tests}/assets/components/create/Pega_DXIL_MyTestText/config.json +0 -0
  213. /package/{src/tasks/init/template/test → tests}/assets/components/create/Pega_DXIL_MyTestText/demo.stories.jsx +0 -0
  214. /package/{src/tasks/init/template/test → tests}/assets/components/create/Pega_DXIL_MyTestText/index.jsx +0 -0
  215. /package/{src/tasks/init/template/test → tests}/assets/components/create/Pega_DXIL_MyTestText/mock.stories.js +0 -0
  216. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyCaseWidget → tests/assets/components/create/Pega_DXIL_MyTestText}/styles.js +0 -0
  217. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyBoolean/Boolean.js +0 -0
  218. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyBoolean/boolean-format.js +0 -0
  219. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyBoolean/config.json +0 -0
  220. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyBoolean/demo.stories.jsx +0 -0
  221. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyBoolean/event-utils.js +0 -0
  222. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyBoolean/index.jsx +0 -0
  223. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyBoolean/mock.stories.js +0 -0
  224. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyCurrency → tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean}/styles.js +0 -0
  225. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPageCaseWidget → tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget}/OneColumnPage.svg +0 -0
  226. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCaseWidget/config.json +0 -0
  227. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCaseWidget/demo.stories.jsx +0 -0
  228. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCaseWidget/index.jsx +0 -0
  229. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCaseWidget/mock.stories.js +0 -0
  230. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyDate → tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget}/styles.js +0 -0
  231. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCurrency/config.json +0 -0
  232. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCurrency/demo.stories.jsx +0 -0
  233. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCurrency/event-utils.js +0 -0
  234. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCurrency/index.jsx +0 -0
  235. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCurrency/mock.stories.js +0 -0
  236. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyDateTime → tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency}/styles.js +0 -0
  237. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyCurrency/suggestions-handler.js +0 -0
  238. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/DateFormatter.js +0 -0
  239. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/FormattedText.jsx +0 -0
  240. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/config.json +0 -0
  241. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/date.js +0 -0
  242. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/demo.stories.jsx +0 -0
  243. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/index.jsx +0 -0
  244. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/mock.stories.js +0 -0
  245. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyDecimal → tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate}/styles.js +0 -0
  246. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDate/suggestions-handler.js +0 -0
  247. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/config.json +0 -0
  248. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/date-time.js +0 -0
  249. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/date-utils.js +0 -0
  250. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/date.js +0 -0
  251. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/demo.stories.jsx +0 -0
  252. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/index.jsx +0 -0
  253. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/mock.stories.js +0 -0
  254. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyDetails → tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime}/styles.js +0 -0
  255. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDateTime/suggestions-handler.js +0 -0
  256. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDecimal/config.json +0 -0
  257. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDecimal/demo.stories.jsx +0 -0
  258. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDecimal/event-utils.js +0 -0
  259. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDecimal/index.jsx +0 -0
  260. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDecimal/mock.stories.js +0 -0
  261. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyEmail → tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal}/styles.js +0 -0
  262. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDecimal/suggestions-handler.js +0 -0
  263. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDetails/OneColumnDetails.svg +0 -0
  264. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDetails/StatusWork.jsx +0 -0
  265. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDetails/config.json +0 -0
  266. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDetails/demo.stories.jsx +0 -0
  267. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDetails/index.jsx +0 -0
  268. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDetails/mock.stories.js +0 -0
  269. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyForm → tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails}/styles.js +0 -0
  270. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyDetails/utils.js +0 -0
  271. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyEmail/config.json +0 -0
  272. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyEmail/demo.stories.jsx +0 -0
  273. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyEmail/event-utils.js +0 -0
  274. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyEmail/index.jsx +0 -0
  275. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyEmail/mock.stories.js +0 -0
  276. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyInteger → tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail}/styles.js +0 -0
  277. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyEmail/suggestions-handler.js +0 -0
  278. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyForm/DefaultForm.svg +0 -0
  279. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyForm/config.json +0 -0
  280. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyForm/demo.stories.jsx +0 -0
  281. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyForm/index.jsx +0 -0
  282. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyForm/mock.stories.js +0 -0
  283. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPage → tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm}/styles.js +0 -0
  284. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyInteger/config.json +0 -0
  285. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyInteger/demo.stories.jsx +0 -0
  286. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyInteger/event-utils.js +0 -0
  287. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyInteger/index.jsx +0 -0
  288. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyInteger/mock.stories.js +0 -0
  289. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPageCaseWidget → tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger}/styles.js +0 -0
  290. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyInteger/suggestions-handler.js +0 -0
  291. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPage/GetNextWork.jsx +0 -0
  292. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPageWidget → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage}/OneColumnPage.svg +0 -0
  293. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPage/config.json +0 -0
  294. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPage/demo.stories.jsx +0 -0
  295. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPage/index.jsx +0 -0
  296. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPage/localizations.json +0 -0
  297. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPage/mock.stories.js +0 -0
  298. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPageWidget → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage}/styles.js +0 -0
  299. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPage/utils.js +0 -0
  300. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageCaseWidget/Operator.jsx +0 -0
  301. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageCaseWidget/config.json +0 -0
  302. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageCaseWidget/demo.stories.jsx +0 -0
  303. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageCaseWidget/index.jsx +0 -0
  304. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyParagraph → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget}/styles.js +0 -0
  305. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageWidget/config.json +0 -0
  306. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageWidget/demo.stories.jsx +0 -0
  307. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageWidget/index.jsx +0 -0
  308. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPageWidget/mock.stories.js +0 -0
  309. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPercentage → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget}/styles.js +0 -0
  310. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyParagraph/config.json +0 -0
  311. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyParagraph/demo.stories.jsx +0 -0
  312. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyParagraph/event-utils.js +0 -0
  313. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyParagraph/index.jsx +0 -0
  314. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyParagraph/mock.stories.js +0 -0
  315. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPhone → tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph}/styles.js +0 -0
  316. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyParagraph/suggestions-handler.js +0 -0
  317. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPercentage/config.json +0 -0
  318. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPercentage/demo.stories.jsx +0 -0
  319. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPercentage/event-utils.js +0 -0
  320. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPercentage/index.jsx +0 -0
  321. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPercentage/mock.stories.js +0 -0
  322. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyPicklist → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage}/styles.js +0 -0
  323. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPercentage/suggestions-handler.js +0 -0
  324. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPhone/config.json +0 -0
  325. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPhone/demo.stories.jsx +0 -0
  326. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPhone/event-utils.js +0 -0
  327. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPhone/index.jsx +0 -0
  328. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPhone/mock.stories.js +0 -0
  329. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyText → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone}/styles.js +0 -0
  330. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPhone/suggestions-handler.js +0 -0
  331. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPicklist/config.json +0 -0
  332. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPicklist/demo.stories.jsx +0 -0
  333. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPicklist/event-utils.js +0 -0
  334. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPicklist/index.jsx +0 -0
  335. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPicklist/mock.stories.js +0 -0
  336. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyTextInput → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist}/styles.js +0 -0
  337. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyPicklist/suggestions-handler.js +0 -0
  338. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyText/config.json +0 -0
  339. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyText/demo.stories.jsx +0 -0
  340. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyText/index.jsx +0 -0
  341. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyText/mock.stories.js +0 -0
  342. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyTimeOfDay → tests/assets/components/createAll/Constellation/Pega_DXIL_MyText}/styles.js +0 -0
  343. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTextInput/StatusWork.jsx +0 -0
  344. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTextInput/config.json +0 -0
  345. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTextInput/demo.stories.jsx +0 -0
  346. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTextInput/event-utils.js +0 -0
  347. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTextInput/index.jsx +0 -0
  348. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTextInput/mock.stories.js +0 -0
  349. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyTwoColumnDetails → tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput}/styles.js +0 -0
  350. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTextInput/suggestions-handler.js +0 -0
  351. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTimeOfDay/config.json +0 -0
  352. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTimeOfDay/demo.stories.jsx +0 -0
  353. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTimeOfDay/index.jsx +0 -0
  354. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTimeOfDay/mock.stories.js +0 -0
  355. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyTwoColumnForm → tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay}/styles.js +0 -0
  356. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTimeOfDay/suggestions-handler.js +0 -0
  357. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTimeOfDay/time-of-day.js +0 -0
  358. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/StatusWork.jsx +0 -0
  359. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/TwoColumnDetails.svg +0 -0
  360. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/config.json +0 -0
  361. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +0 -0
  362. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/index.jsx +0 -0
  363. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/mock.stories.js +0 -0
  364. /package/{src/tasks/init/template/test/assets/components/createAll/Pega_DXIL_MyURL → tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails}/styles.js +0 -0
  365. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnDetails/utils.js +0 -0
  366. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnForm/TwoColumn.svg +0 -0
  367. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnForm/config.json +0 -0
  368. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +0 -0
  369. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnForm/index.jsx +0 -0
  370. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyTwoColumnForm/mock.stories.js +0 -0
  371. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyURL/config.json +0 -0
  372. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyURL/demo.stories.jsx +0 -0
  373. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyURL/event-utils.js +0 -0
  374. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyURL/index.jsx +0 -0
  375. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyURL/mock.stories.js +0 -0
  376. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyURL/suggestions-handler.js +0 -0
  377. /package/{src/tasks/init/template/test/assets/components/createAll → tests/assets/components/createAll/Constellation}/Pega_DXIL_MyURL/text-url.jsx +0 -0
@@ -0,0 +1,48 @@
1
+ import PropTypes from 'prop-types';
2
+ import { AppAnnouncement as PegaAppAnnouncement } from '@pega/cosmos-react-work';
3
+
4
+ import StyledPegaDxilMyPageWidgetWrapper from './styles';
5
+
6
+
7
+ // Duplicated runtime code from Constellation Design System Component
8
+
9
+ // props passed in combination of props from property panel (config.json) and run time props from Constellation
10
+ // any default values in config.pros should be set in defaultProps at bottom of this file
11
+ export default function PegaDxilMyPageWidget(props) {
12
+
13
+ const { header, description, datasource, whatsnewlink, image } = props;
14
+ let details = [];
15
+ if (datasource && datasource.source) {
16
+ details = datasource.source.map((item) => {
17
+ return item.name;
18
+ });
19
+ }
20
+ return (
21
+ <StyledPegaDxilMyPageWidgetWrapper>
22
+ <PegaAppAnnouncement
23
+ heading={header}
24
+ description={description}
25
+ details={details}
26
+ whatsNewLink={whatsnewlink}
27
+ image={image.replace(/ /g, '+')}
28
+ />
29
+ </StyledPegaDxilMyPageWidgetWrapper>
30
+ );
31
+
32
+ }
33
+
34
+ PegaDxilMyPageWidget.defaultProps = {
35
+ header: '',
36
+ description: '',
37
+ image: '',
38
+ datasource: [],
39
+ whatsnewlink: ''
40
+ };
41
+
42
+ PegaDxilMyPageWidget.propTypes = {
43
+ header: PropTypes.string,
44
+ description: PropTypes.string,
45
+ datasource: PropTypes.instanceOf(Object),
46
+ whatsnewlink: PropTypes.string,
47
+ image: PropTypes.string
48
+ };
@@ -0,0 +1,23 @@
1
+ const configProps = {
2
+ label: 'App announcement',
3
+ header: 'Announcements',
4
+ description: 'Welcome to MediaCo Application for testing SDK frameworks.',
5
+ whatsnewlink: 'https://design.pega.com',
6
+ image:
7
+ 'data:image/svg xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzOSAxMSI PHRpdGxlPlBlZ2EgdGV4dC1vbmx5IGxvZ288L3RpdGxlPjxwYXRoIHN0eWxlPSJmaWxsLW9wYWNpdHk6IC4yNTsiIGZpbGw9IiNmZmYiIGQ9Ik03LjcyIDMuODJjMCAyLjI1LTEuNzggMy40MS00IDMuNDFoLTEuNnYzSDBWLjQyaDMuOTRjMi4zNiAwIDMuNzggMS4zOSAzLjc4IDMuNHptLTQtMS40N2gtMS42djNoMS43QTEuNDcgMS40NyAwIDAgMCA1LjUgMy44MmMwLS45MS0uNjUtMS40Ny0xLjc1LTEuNDd6bTcuNjggNS45MWg1LjN2Mkg5LjI5Vi40Mmg3LjM4djEuOTNoLTUuMjR2Mmg0LjI0djEuOWgtNC4yNHpNMjMuMTggMGE1IDUgMCAwIDEgMy41NyAxLjI4TDI1LjYzIDIuOGEzLjc4IDMuNzggMCAwIDAtMS4wNS0uNjNBNC4zMiA0LjMyIDAgMCAwIDIzLjMxIDIgMy4xNyAzLjE3IDAgMCAwIDIwIDUuMjdhMy4xNiAzLjE2IDAgMCAwIDEgMi4zOSAzLjA3IDMuMDcgMCAwIDAgMi4xNy44NCA0LjYgNC42IDAgMCAwIDIuMDktLjVWNi4xOWgtMi4yVjQuMzhoNC4yNXY0LjU2YTUuNDEgNS40MSAwIDAgMS00LjA4IDEuNTdBNS4zNSA1LjM1IDAgMCAxIDE5LjQzIDlhNS4wNSA1LjA1IDAgMCAxLTEuNTYtMy43NCA1LjIxIDUuMjEgMCAwIDEgMS41Ni0zLjc2QTUuMzEgNS4zMSAwIDAgMSAyMy4xOCAwem0xMS4yOS40Mmw0LjEzIDkuNzloLTIuMjVMMzUuNDggOGgtNC4wNmwtLjkgMi4xOGgtMi4yTDMyLjUxLjQyem0uMjUgNS43MkwzMy40NCAzbC0xLjI5IDMuMTR6bTMtNWEuNzEuNzEgMCAwIDEtLjc0Ljc1LjcxLjcxIDAgMCAxLS43My0uNzUuNzMuNzMgMCAwIDEgLjc1LS43Mi43Mi43MiAwIDAgMSAuNzUuNzF6TTM3IC41M2EuNTkuNTkgMCAwIDAtLjYuNi42MS42MSAwIDEgMCAxLjIxIDAgLjYuNiAwIDAgMC0uNjEtLjZ6bS0uMjQgMVYuNzFIMzdjLjEyIDAgLjE4LjA2LjI1LjA2YS4yMS4yMSAwIDAgMSAuMDcuMTguMTkuMTkgMCAwIDEtLjA3LjE4cy0uMDcuMDgtLjEzLjA4bC4yNi4zNmgtLjJMMzcgMS4yOGgtLjF2LjI5em0uMTMtLjQ0aC4yM2EuMjYuMjYgMCAwIDAgLjA3LS4wOWgtLjA2Yy0uMDUtLjE3LS4wNS0uMTctLjEzLS4xN2gtLjF6Ii8 PC9zdmc ',
8
+ datasource: {
9
+ source: [
10
+ {
11
+ name: 'New React based UI rendering'
12
+ },
13
+ {
14
+ name: 'Support for followers and recents'
15
+ },
16
+ {
17
+ name: 'New authoring experience'
18
+ }
19
+ ],
20
+ fields: {}
21
+ }
22
+ };
23
+ export default configProps;
@@ -0,0 +1,14 @@
1
+ // utilizing theming, comment out, if want individual style
2
+ import styled from 'styled-components';
3
+ import { Configuration } from '@pega/cosmos-react-core';
4
+
5
+ export default styled(Configuration)``;
6
+
7
+ // individual style, comment out above, and uncomment here and add styles
8
+ // import styled, { css } from 'styled-components';
9
+ //
10
+ // export default styled.div(() => {
11
+ // return css`
12
+ // margin: 0px 0;
13
+ // `;
14
+ // });
@@ -0,0 +1,111 @@
1
+ {
2
+ "name": "Pega_DXIL_MyParagraph",
3
+ "label": "My Paragraph",
4
+ "description": "My Paragraph",
5
+ "organization": "Pega",
6
+ "version": "0.0.1",
7
+ "library": "DXIL",
8
+ "allowedApplications": [],
9
+ "componentKey": "Pega_DXIL_MyParagraph",
10
+ "type": "Field",
11
+ "subtype": "Text-Paragraph",
12
+ "icon": "images/pz-text-area-active.svg",
13
+ "properties": [
14
+ {
15
+ "name": "label",
16
+ "label": "Field label",
17
+ "format": "TEXT",
18
+ "required": true
19
+ },
20
+ {
21
+ "name": "readOnly",
22
+ "label": "Edit mode",
23
+ "format": "READONLY"
24
+ },
25
+ {
26
+ "label": "Column settings",
27
+ "format": "GROUP",
28
+ "visibility": "@VIEWTYPE == 'MultiRecordDisplayAsTable'",
29
+ "properties": [
30
+ {
31
+ "name": "columnWidth",
32
+ "label": "Column width",
33
+ "format": "SELECT",
34
+ "source": [
35
+ {
36
+ "key": "auto",
37
+ "value": "Auto"
38
+ },
39
+ {
40
+ "key": "custom",
41
+ "value": "Custom"
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "name": "width",
47
+ "label": "Width (px)",
48
+ "format": "NUMBER",
49
+ "visibility": "$this.columnWidth == 'custom'"
50
+ }
51
+ ]
52
+ },
53
+ {
54
+ "label": "Input settings",
55
+ "format": "GROUP",
56
+ "visibility": "(!readOnly = true)",
57
+ "properties": [
58
+ {
59
+ "name": "placeholder",
60
+ "label": "Placeholder",
61
+ "format": "TEXT"
62
+ },
63
+ {
64
+ "name": "helperText",
65
+ "label": "Helper text",
66
+ "format": "TEXT"
67
+ }
68
+ ]
69
+ },
70
+ {
71
+ "label": "Conditions",
72
+ "format": "GROUP",
73
+ "properties": [
74
+ {
75
+ "name": "required",
76
+ "label": "Required",
77
+ "format": "REQUIRED",
78
+ "visibility": "(!readOnly = true)"
79
+ },
80
+ {
81
+ "name": "disabled",
82
+ "label": "Disabled",
83
+ "format": "DISABLED",
84
+ "visibility": "(!readOnly = true)"
85
+ },
86
+ {
87
+ "name": "visibility",
88
+ "label": "Visibility",
89
+ "format": "VISIBILITY"
90
+ }
91
+ ]
92
+ },
93
+ {
94
+ "label": "Advanced",
95
+ "format": "GROUP",
96
+ "collapsible": true,
97
+ "properties": [
98
+ {
99
+ "name": "testId",
100
+ "label": "Test ID",
101
+ "format": "TEXT",
102
+ "ignorePattern": "[^-_\\p{N}\\p{L}]",
103
+ "includeAnnotations": false
104
+ }
105
+ ]
106
+ }
107
+ ],
108
+ "defaultConfig": {
109
+ "label": "@L $this.label"
110
+ }
111
+ }
@@ -0,0 +1,48 @@
1
+ import { withKnobs } from '@storybook/addon-knobs';
2
+
3
+ import PegaDxilMyParagraph from './index.jsx';
4
+
5
+ import { stateProps, configProps, fieldMetadata } from './mock.stories';
6
+
7
+ export default {
8
+ title: 'PegaDxilMyParagraph',
9
+ decorators: [withKnobs],
10
+ component: PegaDxilMyParagraph
11
+ };
12
+
13
+ export const basePegaDxilMyParagraph = () => {
14
+
15
+ const props = {
16
+ value: configProps.value,
17
+ placeholder: configProps.placeholder,
18
+ label: configProps.label,
19
+ helperText: configProps.helperText,
20
+ testId: configProps.testId,
21
+ hasSuggestions: configProps.hasSuggestions,
22
+ fieldMetadata,
23
+
24
+ getPConnect: () => {
25
+ return {
26
+ getStateProps: () => {
27
+ return stateProps;
28
+ },
29
+ getActionsApi: () => {
30
+ return {
31
+ updateFieldValue: () => {/* nothing */},
32
+ triggerFieldChange: () => {/* nothing */}
33
+ };
34
+ },
35
+ ignoreSuggestion: () => {/* nothing */},
36
+ acceptSuggestion: () => {/* nothing */},
37
+ setInheritedProps: () => {/* nothing */},
38
+ resolveConfigProps: () => {/* nothing */}
39
+ };
40
+ }
41
+ };
42
+
43
+ return (
44
+ <>
45
+ <PegaDxilMyParagraph {...props} />
46
+ </>
47
+ );
48
+ };
@@ -0,0 +1,18 @@
1
+ const handleEvent = (actions, eventType, propName, value) => {
2
+ switch (eventType) {
3
+ case "change":
4
+ actions.updateFieldValue(propName, value);
5
+ break;
6
+ case "blur":
7
+ actions.triggerFieldChange(propName, value);
8
+ break;
9
+ case "changeNblur":
10
+ actions.updateFieldValue(propName, value);
11
+ actions.triggerFieldChange(propName, value);
12
+ break;
13
+ default:
14
+ break;
15
+ }
16
+ };
17
+
18
+ export default handleEvent;
@@ -0,0 +1,231 @@
1
+ import { useState, useEffect, useRef } from 'react';
2
+ import { TextArea as CosmosTextArea, FieldValueList, ParagraphDisplay, Text, EmailDisplay, PhoneDisplay, URLDisplay } from '@pega/cosmos-react-core';
3
+ import PropTypes from 'prop-types';
4
+
5
+ // includes in bundle
6
+ import { suggestionsHandler } from './suggestions-handler';
7
+ import handleEvent from "./event-utils";
8
+
9
+ import StyledPegaDxilMyParagraphWrapper from './styles';
10
+
11
+ export const formatExists = (formatterVal) => {
12
+ const formatterValues = [
13
+ "TextInput",
14
+ "WorkStatus",
15
+ "RichText",
16
+ "Email",
17
+ "Phone",
18
+ "URL",
19
+ "Operator"
20
+ ];
21
+ let isformatter = false;
22
+ if (formatterValues.includes(formatterVal)) {
23
+ isformatter = true;
24
+ }
25
+ return isformatter;
26
+ };
27
+
28
+
29
+ export const textFormatter = (formatter,value) => {
30
+ let displayComponent = null;
31
+ switch(formatter){
32
+ case "TextInput" : {
33
+ displayComponent = value;
34
+ break;
35
+ }
36
+ case "Email" : {
37
+ displayComponent = (<EmailDisplay value={value} displayText={value} variant="link" />);
38
+ break;
39
+ }
40
+ case "Phone" : {
41
+ displayComponent = (<PhoneDisplay value={value} variant="link" />);
42
+ break;
43
+ }
44
+ case "URL" : {
45
+ displayComponent = (<URLDisplay target="_blank" value={value} displayText={value} variant="link" />);
46
+ break;
47
+ }
48
+ // no default
49
+ }
50
+ return displayComponent;
51
+ };
52
+
53
+
54
+
55
+ // Duplicated runtime code from Constellation Design System Component
56
+
57
+ // props passed in combination of props from property panel (config.json) and run time props from Constellation
58
+ // any default values in config.pros should be set in defaultProps at bottom of this file
59
+ const PegaDxilMyParagraph = props => {
60
+ const {
61
+ getPConnect,
62
+ value,
63
+ hideLabel,
64
+ placeholder,
65
+ validatemessage,
66
+ label,
67
+ helperText,
68
+ testId,
69
+ fieldMetadata,
70
+ displayMode,
71
+ additionalProps,
72
+ variant,
73
+ isTableFormatter,
74
+ hasSuggestions
75
+ } = props;
76
+ const { formatter } = props;
77
+ const pConn = getPConnect();
78
+ const actions = pConn.getActionsApi();
79
+ const propName = pConn.getStateProps().value;
80
+ const maxLength = fieldMetadata?.maxLength;
81
+ const hasValueChange = useRef(false);
82
+
83
+
84
+ // BUG-547602: Temporary type coercion for 8.5 until DXAPIs are enhanced to pass original pxViewMetadata JSON, respecting boolean primitives
85
+ let { readOnly, required, disabled } = props;
86
+ [readOnly, required, disabled] = [readOnly, required, disabled].map(
87
+ (prop) => prop === true || (typeof prop === 'string' && prop === 'true')
88
+ );
89
+
90
+ const [inputValue, setInputValue] = useState(value);
91
+ const [status, setStatus] = useState(hasSuggestions ? 'pending' : undefined);
92
+ useEffect(() => setInputValue(value), [value]);
93
+
94
+ useEffect(() => {
95
+ if (validatemessage !== '') {
96
+ setStatus('error');
97
+ }
98
+ if (hasSuggestions) {
99
+ setStatus('pending');
100
+ } else if (!hasSuggestions && status !== 'success') {
101
+ setStatus(validatemessage !== '' ? 'error' : undefined);
102
+ }
103
+ }, [validatemessage, hasSuggestions]);
104
+
105
+ if (displayMode === 'LABELS_LEFT' || displayMode === 'DISPLAY_ONLY') {
106
+ let displayComp = <ParagraphDisplay value={value || undefined} />;
107
+ if (isTableFormatter && formatExists(formatter) && formatter !== 'TextInput') {
108
+ displayComp = textFormatter(formatter, value);
109
+ }
110
+ return displayMode === 'DISPLAY_ONLY' ? (
111
+ <StyledPegaDxilMyParagraphWrapper>
112
+ displayComp
113
+ </StyledPegaDxilMyParagraphWrapper>
114
+ ) : (
115
+ <StyledPegaDxilMyParagraphWrapper>
116
+ <FieldValueList
117
+ variant={hideLabel ? 'stacked' : variant}
118
+ data-testid={testId}
119
+ fields={[{ id: '1', name: hideLabel ? '' : label, value: displayComp }]}
120
+ />
121
+ </StyledPegaDxilMyParagraphWrapper>
122
+ );
123
+ }
124
+
125
+ if (displayMode === 'STACKED_LARGE_VAL') {
126
+ const isValDefined = typeof value !== 'undefined' && value !== '';
127
+ const val = isValDefined ? (
128
+ <Text variant='h1' as='span'>
129
+ {value}
130
+ </Text>
131
+ ) : (
132
+ ''
133
+ );
134
+ return (
135
+ <StyledPegaDxilMyParagraphWrapper>
136
+ <FieldValueList
137
+ variant='stacked'
138
+ data-testid={testId}
139
+ fields={[{ id: '2', name: hideLabel ? '' : label, value: val }]}
140
+ />
141
+ </StyledPegaDxilMyParagraphWrapper>
142
+ );
143
+ }
144
+
145
+ const onResolveSuggestionHandler = (accepted) => {
146
+ suggestionsHandler(accepted, pConn, setStatus);
147
+ };
148
+
149
+ return (
150
+ <StyledPegaDxilMyParagraphWrapper>
151
+ <CosmosTextArea
152
+ {...additionalProps}
153
+ label={label}
154
+ labelHidden={hideLabel}
155
+ info={validatemessage || helperText}
156
+ value={inputValue}
157
+ status={status}
158
+ placeholder={placeholder}
159
+ disabled={disabled}
160
+ readOnly={readOnly}
161
+ required={required}
162
+ data-testid={testId}
163
+ maxLength={maxLength}
164
+ displayCharCount={!!maxLength}
165
+ hardStop
166
+ onChange={(event) => {
167
+ if (hasSuggestions) {
168
+ setStatus(undefined);
169
+ }
170
+ setInputValue(event.target.value);
171
+ if (value !== event.target.value) {
172
+ handleEvent(actions, 'change', propName, event.target.value);
173
+ hasValueChange.current = true;
174
+ }
175
+ }}
176
+ onBlur={(event) => {
177
+ if (!value || hasValueChange.current) {
178
+ handleEvent(actions, 'blur', propName, event.target.value);
179
+ if (hasSuggestions) {
180
+ pConn.ignoreSuggestion();
181
+ }
182
+ hasValueChange.current = false;
183
+ }
184
+ }}
185
+ onResolveSuggestion={onResolveSuggestionHandler}
186
+ />
187
+ </StyledPegaDxilMyParagraphWrapper>
188
+ );
189
+ }
190
+
191
+ PegaDxilMyParagraph.defaultProps = {
192
+ value: '',
193
+ placeholder: '',
194
+ validatemessage: '',
195
+ helperText: '',
196
+ hideLabel: false,
197
+ disabled: false,
198
+ readOnly: false,
199
+ required: false,
200
+ testId: null,
201
+ displayMode: null,
202
+ fieldMetadata: {},
203
+ additionalProps: {},
204
+ variant: 'inline',
205
+ formatter: '',
206
+ isTableFormatter: false,
207
+ hasSuggestions: false
208
+ };
209
+
210
+ PegaDxilMyParagraph.propTypes = {
211
+ value: PropTypes.string,
212
+ placeholder: PropTypes.string,
213
+ label: PropTypes.string.isRequired,
214
+ hideLabel: PropTypes.bool,
215
+ getPConnect: PropTypes.func.isRequired,
216
+ validatemessage: PropTypes.string,
217
+ displayMode: PropTypes.string,
218
+ helperText: PropTypes.string,
219
+ disabled: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
220
+ readOnly: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
221
+ required: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
222
+ testId: PropTypes.string,
223
+ fieldMetadata: PropTypes.objectOf(PropTypes.any),
224
+ additionalProps: PropTypes.objectOf(PropTypes.any),
225
+ variant: PropTypes.string,
226
+ formatter: PropTypes.string,
227
+ isTableFormatter: PropTypes.bool,
228
+ hasSuggestions: PropTypes.bool
229
+ };
230
+
231
+ export default PegaDxilMyParagraph;
@@ -0,0 +1,20 @@
1
+ export const configProps = {
2
+ value: '',
3
+ label: 'Paragraph Sample',
4
+ placeholder: 'Paragraph Placeholder',
5
+ helperText: 'Paragraph Helper Text',
6
+ testId: 'paragraph-12345678',
7
+ hasSuggestions: false
8
+ };
9
+
10
+ export const fieldMetadata = {
11
+ classID: 'DIXL-MediaCo-Work-NewService',
12
+ type: 'Text',
13
+ displayAs: 'pxTextArea',
14
+ label: 'Paragraph sample'
15
+ };
16
+
17
+ export const stateProps = {
18
+ value: '.ParagraphSample',
19
+ hasSuggestions: false
20
+ };
@@ -0,0 +1,14 @@
1
+ // utilizing theming, comment out, if want individual style
2
+ import styled from 'styled-components';
3
+ import { Configuration } from '@pega/cosmos-react-core';
4
+
5
+ export default styled(Configuration)``;
6
+
7
+ // individual style, comment out above, and uncomment here and add styles
8
+ // import styled, { css } from 'styled-components';
9
+ //
10
+ // export default styled.div(() => {
11
+ // return css`
12
+ // margin: 0px 0;
13
+ // `;
14
+ // });
@@ -0,0 +1,10 @@
1
+ /* eslint-disable import/prefer-default-export */
2
+ export const suggestionsHandler = (accepted, pConn, setStatus) => {
3
+ if (accepted) {
4
+ pConn.acceptSuggestion();
5
+ setStatus('success');
6
+ } else {
7
+ pConn.ignoreSuggestion();
8
+ setStatus(undefined);
9
+ }
10
+ };
@@ -0,0 +1,93 @@
1
+ {
2
+ "name": "Pega_DXIL_MyPercentage",
3
+ "label": "My Percentage",
4
+ "description": "My Percentage",
5
+ "organization": "Pega",
6
+ "version": "0.0.1",
7
+ "library": "DXIL",
8
+ "allowedApplications": [],
9
+ "componentKey": "Pega_DXIL_MyPercentage",
10
+ "type": "Field",
11
+ "subtype": "Decimal-Percentage",
12
+ "icon": "images/pz-text-input-active.svg",
13
+ "properties": [
14
+ {
15
+ "name": "label",
16
+ "label": "Field label",
17
+ "format": "TEXT",
18
+ "required": true
19
+ },
20
+ {
21
+ "name": "readOnly",
22
+ "label": "Edit mode",
23
+ "format": "READONLY"
24
+ },
25
+ {
26
+ "name": "decimalPrecision",
27
+ "label": "Decimal places",
28
+ "format": "NUMBER",
29
+ "min": 0
30
+ },
31
+ {
32
+ "name": "showGroupSeparators",
33
+ "label": "Show thousands separator",
34
+ "format": "BOOLEAN"
35
+ },
36
+ {
37
+ "label": "Input settings",
38
+ "format": "GROUP",
39
+ "visibility": "(!readOnly = true)",
40
+ "properties": [
41
+ {
42
+ "name": "placeholder",
43
+ "label": "Placeholder",
44
+ "format": "TEXT"
45
+ },
46
+ {
47
+ "name": "helperText",
48
+ "label": "Helper text",
49
+ "format": "TEXT"
50
+ }
51
+ ]
52
+ },
53
+ {
54
+ "label": "Conditions",
55
+ "format": "GROUP",
56
+ "properties": [
57
+ {
58
+ "name": "required",
59
+ "label": "Required",
60
+ "format": "REQUIRED",
61
+ "visibility": "(!readOnly = true)"
62
+ },
63
+ {
64
+ "name": "disabled",
65
+ "label": "Disabled",
66
+ "format": "DISABLED",
67
+ "visibility": "(!readOnly = true)"
68
+ },
69
+ {
70
+ "name": "visibility",
71
+ "label": "Visibility",
72
+ "format": "VISIBILITY"
73
+ }
74
+ ]
75
+ },
76
+ {
77
+ "label": "Advanced",
78
+ "format": "GROUP",
79
+ "collapsible": true,
80
+ "properties": [
81
+ {
82
+ "name": "testId",
83
+ "label": "Test ID",
84
+ "format": "TEXT",
85
+ "ignorePattern": "[^-_\\p{N}\\p{L}]"
86
+ }
87
+ ]
88
+ }
89
+ ],
90
+ "defaultConfig": {
91
+ "label": "@L $this.label"
92
+ }
93
+ }
@@ -0,0 +1,49 @@
1
+ import { withKnobs } from '@storybook/addon-knobs';
2
+
3
+ import { configProps, stateProps, fieldMetadata } from './mock.stories.js';
4
+
5
+ import PegaDxilMyPercentage from './index.jsx';
6
+
7
+ export default {
8
+ title: 'PegaDxilMyPercentage',
9
+ decorators: [withKnobs],
10
+ component: PegaDxilMyPercentage
11
+ };
12
+
13
+ export const basePegaDxilMyPercentage = () => {
14
+
15
+ const props = {
16
+ value: configProps.value,
17
+ placeholder: configProps.placeholder,
18
+ label: configProps.label,
19
+ helperText: configProps.helperText,
20
+ showGroupSeparators: configProps.showGroupSeparators,
21
+ hasSuggestions: configProps.hasSuggestions,
22
+ testId: configProps.testId,
23
+ fieldMetadata,
24
+
25
+ getPConnect: () => {
26
+ return {
27
+ getStateProps: () => {
28
+ return stateProps;
29
+ },
30
+ getActionsApi: () => {
31
+ return {
32
+ updateFieldValue: () => {/* nothing */},
33
+ triggerFieldChange: () => {/* nothing */}
34
+ };
35
+ },
36
+ ignoreSuggestion: () => {/* nothing */},
37
+ acceptSuggestion: () => {/* nothing */},
38
+ setInheritedProps: () => {/* nothing */},
39
+ resolveConfigProps: () => {/* nothing */}
40
+ };
41
+ }
42
+ };
43
+
44
+ return (
45
+ <>
46
+ <PegaDxilMyPercentage {...props} />
47
+ </>
48
+ );
49
+ };