@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,195 @@
1
+ {
2
+ "name": "Pega_DXIL_MyDate",
3
+ "label": "My Date",
4
+ "description": "My Date",
5
+ "organization": "Pega",
6
+ "version": "0.0.1",
7
+ "library": "DXIL",
8
+ "allowedApplications": [],
9
+ "componentKey": "Pega_DXIL_MyDate",
10
+ "type": "Field",
11
+ "subtype": "Date",
12
+ "icon": "images/pz-date-time-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
+ "format": "LABEL",
60
+ "label": "Year range",
61
+ "variant": "secondary"
62
+ },
63
+ {
64
+ "format": "INLINE",
65
+ "elements": [
66
+ {
67
+ "key": "next",
68
+ "format": "LABEL",
69
+ "label": "Next",
70
+ "variant": "secondary"
71
+ },
72
+ {
73
+ "key": "nextYears",
74
+ "format": "NUMBER",
75
+ "label": "",
76
+ "name": "nextYearRange",
77
+ "min": 0
78
+ },
79
+ {
80
+ "key": "year",
81
+ "format": "LABEL",
82
+ "label": "years",
83
+ "variant": "secondary"
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "format": "INLINE",
89
+ "elements": [
90
+ {
91
+ "key": "previous",
92
+ "format": "LABEL",
93
+ "label": "Previous",
94
+ "variant": "secondary"
95
+ },
96
+ {
97
+ "key": "previousYears",
98
+ "format": "NUMBER",
99
+ "label": "",
100
+ "name": "previousYearRange",
101
+ "min": 0
102
+ },
103
+ {
104
+ "key": "year",
105
+ "format": "LABEL",
106
+ "label": "years",
107
+ "variant": "secondary"
108
+ }
109
+ ]
110
+ },
111
+ {
112
+ "name": "showWeekNumber",
113
+ "label": "Display week numbers on calendar",
114
+ "format": "BOOLEAN"
115
+ },
116
+ {
117
+ "name": "helperText",
118
+ "label": "Helper text",
119
+ "format": "TEXT"
120
+ }
121
+ ]
122
+ },
123
+ {
124
+ "label": "Read-only settings",
125
+ "format": "GROUP",
126
+ "properties": [
127
+ {
128
+ "name": "showAsFormattedText",
129
+ "label": "Show as formatted text",
130
+ "format": "BOOLEAN"
131
+ },
132
+ {
133
+ "format": "SELECT",
134
+ "name": "formatter",
135
+ "label": "Format",
136
+ "defaultValue": "defaultDate",
137
+ "source": [
138
+ {
139
+ "key": "defaultDate",
140
+ "value": "Default"
141
+ },
142
+ {
143
+ "key": "DateTime-Long",
144
+ "value": "Date Time"
145
+ },
146
+ {
147
+ "key": "DateTime-Since",
148
+ "value": "Since"
149
+ }
150
+ ]
151
+ }
152
+ ]
153
+ },
154
+ {
155
+ "label": "Conditions",
156
+ "format": "GROUP",
157
+ "properties": [
158
+ {
159
+ "name": "required",
160
+ "label": "Required",
161
+ "format": "REQUIRED",
162
+ "visibility": "(!readOnly = true)"
163
+ },
164
+ {
165
+ "name": "disabled",
166
+ "label": "Disabled",
167
+ "format": "DISABLED",
168
+ "visibility": "(!readOnly = true)"
169
+ },
170
+ {
171
+ "name": "visibility",
172
+ "label": "Visibility",
173
+ "format": "VISIBILITY"
174
+ }
175
+ ]
176
+ },
177
+ {
178
+ "label": "Advanced",
179
+ "format": "GROUP",
180
+ "collapsible": true,
181
+ "properties": [
182
+ {
183
+ "name": "testId",
184
+ "label": "Test ID",
185
+ "format": "TEXT",
186
+ "ignorePattern": "[^-_\\p{N}\\p{L}]",
187
+ "includeAnnotations": false
188
+ }
189
+ ]
190
+ }
191
+ ],
192
+ "defaultConfig": {
193
+ "label": "@L $this.label"
194
+ }
195
+ }
@@ -0,0 +1,439 @@
1
+ /* eslint-disable no-undef */
2
+ import dayjs from 'dayjs';
3
+ import DateFormatter from './DateFormatter.js';
4
+
5
+ import relativeTime from 'dayjs/plugin/relativeTime.js';
6
+ import localizedFormat from 'dayjs/plugin/localizedFormat.js';
7
+ import utc from 'dayjs/plugin/utc.js';
8
+ import timezone from 'dayjs/plugin/timezone.js';
9
+
10
+ dayjs.extend(relativeTime);
11
+ dayjs.extend(localizedFormat);
12
+ dayjs.extend(utc);
13
+ dayjs.extend(timezone);
14
+
15
+ function isIsoDate(str) {
16
+ if (!/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/.test(str)) return false;
17
+ const d = new Date(str);
18
+ return d.toISOString() === str;
19
+ }
20
+
21
+ function getDateObject(text) {
22
+ // TODO - cleanup formatters util functions as DX APIs are returning values per ISO std now.
23
+ const timeStamp = text.replace(/-/g, '');
24
+ const isDateTime = timeStamp.indexOf('GMT') !== -1;
25
+ const year = parseInt(timeStamp.substr(0, 4), 10);
26
+ const month = parseInt(timeStamp.substr(4, 2), 10) - 1;
27
+ const day = parseInt(timeStamp.substr(6, 2), 10);
28
+
29
+ const date = new Date();
30
+
31
+ date.setDate(day);
32
+ date.setMonth(month);
33
+ date.setFullYear(year);
34
+
35
+ if (isDateTime) {
36
+ const hours = parseInt(timeStamp.substr(9, 2), 10);
37
+ const minutes = parseInt(timeStamp.substr(11, 2), 10);
38
+ const seconds = parseInt(timeStamp.substr(13, 2), 10);
39
+ const ms = parseInt(timeStamp.substr(16, 3), 10);
40
+ date.setHours(hours);
41
+ date.setMinutes(minutes);
42
+ date.setSeconds(seconds);
43
+ date.setMilliseconds(ms);
44
+ }
45
+
46
+ return date;
47
+ }
48
+
49
+ function parseDateInISO(value) {
50
+ const isMilliSeconds = new RegExp('^[0-9]+$').exec(value);
51
+ if (isMilliSeconds) {
52
+ const date = new Date(parseInt(value, 10));
53
+ return date.toISOString();
54
+ }
55
+
56
+ if (isIsoDate(value)) {
57
+ const date = new Date(value);
58
+ return date.toISOString();
59
+ }
60
+
61
+ return value ? getDateObject(value).toISOString() : value;
62
+ }
63
+
64
+ export default {
65
+ ...DateFormatter
66
+ };
67
+
68
+ export const datetimedisplayformatter = formatter => {
69
+ const objectvalues = {};
70
+ switch (formatter) {
71
+ case 'DateTime-Long': {
72
+ objectvalues.variantVal = 'datetime';
73
+ objectvalues.formatVal = 'long';
74
+ break;
75
+ }
76
+ case 'DateTime-Short': {
77
+ objectvalues.variantVal = 'date';
78
+ objectvalues.formatVal = 'short';
79
+ break;
80
+ }
81
+ case 'DateTime-Since': {
82
+ objectvalues.variantVal = 'relative';
83
+ break;
84
+ }
85
+ case 'Time-Only': {
86
+ objectvalues.variantVal = 'time';
87
+ objectvalues.formatVal = 'short';
88
+ break;
89
+ }
90
+ // no default
91
+ }
92
+ return objectvalues;
93
+ };
94
+
95
+ export const formatExists = formatterVal => {
96
+ const formatterValues = ['DateTime-Long', 'DateTime-Short', 'DateTime-Since', 'Time-Only'];
97
+ let isformatter = false;
98
+ if (formatterValues.includes(formatterVal)) {
99
+ isformatter = true;
100
+ }
101
+ return isformatter;
102
+ };
103
+
104
+ /**
105
+ * Return relative time in fromNow for the given datetime
106
+ * @description Convert and return the given datetime in dayJSObject
107
+ *
108
+ * @param {string} text datetime
109
+ * @returns {object} datetime as a dayjs object
110
+ */
111
+ export const getDayJSObject = text => {
112
+ const momObj = dayjs(text);
113
+ if (momObj.isValid()) return momObj;
114
+ const timeStamp = text;
115
+ const isDateTime = timeStamp.indexOf('GMT') !== -1;
116
+ const year = parseInt(timeStamp.substr(0, 4), 10);
117
+ const month = parseInt(timeStamp.substr(4, 2), 10) - 1;
118
+ const day = parseInt(timeStamp.substr(6, 2), 10);
119
+
120
+ const CurrentTz = PCore.getLocaleUtils().getTimeZoneInUse();
121
+
122
+ let mom = new Date();
123
+
124
+ mom.setUTCDate(day);
125
+ mom.setUTCMonth(month);
126
+ mom.setUTCFullYear(year);
127
+
128
+ /* istanbul ignore else */
129
+ if (isDateTime) {
130
+ const hours = parseInt(timeStamp.substr(9, 2), 10);
131
+ const minutes = parseInt(timeStamp.substr(11, 2), 10);
132
+ const seconds = parseInt(timeStamp.substr(13, 2), 10);
133
+ const ms = parseInt(timeStamp.substr(16, 3), 10);
134
+ mom.setUTCHours(hours);
135
+ mom.setUTCMinutes(minutes);
136
+ mom.setUTCSeconds(seconds);
137
+ mom.setUTCMilliseconds(ms);
138
+ }
139
+
140
+ mom = dayjs(
141
+ mom.toLocaleString('en-US', {
142
+ timeZone: CurrentTz
143
+ })
144
+ );
145
+
146
+ return mom;
147
+ };
148
+
149
+ /**
150
+ * Return relative time in fromNow for the given datetime
151
+ *
152
+ * @param {string} time datetime
153
+ * @returns {object} relative time from now
154
+ */
155
+ export const getRelativeTime = time => {
156
+ let relativetime = '';
157
+ if (dayjs(time).isUTC()) {
158
+ relativetime = dayjs(time).fromNow();
159
+ } else {
160
+ const dayjstime = getDayJSObject(time);
161
+ relativetime = dayjs(dayjstime).fromNow();
162
+ }
163
+ return relativetime;
164
+ };
165
+
166
+ /**
167
+ * Return year for the date passed
168
+ *
169
+ * @param {string} value from which Year needs to be taken out
170
+ * @returns {number} year for the date passed
171
+ */
172
+ export const getFullYear = value =>
173
+ value ? new Date(value).getFullYear() : new Date().getFullYear();
174
+
175
+ /**
176
+ * Return maxDate for the date passed
177
+ *
178
+ * @param {number} nextYears next number of years
179
+ * @param {number} currentYear current year
180
+ * @param {number} yearFromValue year set on value in redux
181
+ *
182
+ * @returns {string} maxDate calculated based on inputs
183
+ */
184
+ export const getMaxDate = (nextYears, currentYear, yearFromValue) => {
185
+ if (Number.isNaN(nextYears)) {
186
+ nextYears = 20;
187
+ }
188
+ let maxYear = currentYear + nextYears;
189
+ if (yearFromValue > maxYear) {
190
+ maxYear = yearFromValue;
191
+ }
192
+ return `${maxYear}-01-01`;
193
+ };
194
+
195
+ /**
196
+ * Return minDate for the date passed
197
+ *
198
+ * @param {number} previousYears previous number of years
199
+ * @param {number} currentYear current year
200
+ * @param {number} yearFromValue year set on value in redux
201
+ *
202
+ * @returns {string} minDate calculated based on inputs
203
+ */
204
+ export const getMinDate = (previousYears, currentYear, yearFromValue) => {
205
+ if (Number.isNaN(previousYears)) {
206
+ previousYears = 100;
207
+ }
208
+ let minYear = currentYear - previousYears;
209
+ if (yearFromValue < minYear) {
210
+ minYear = yearFromValue;
211
+ }
212
+ return `${minYear}-12-31`;
213
+ };
214
+
215
+ /**
216
+ * Return clockFormat after parsing
217
+ *
218
+ * @param {number | string} clockFormat chosen by user
219
+ *
220
+ * @returns {number} clockFormat
221
+ */
222
+ export const parseClockFormat = clockFormat =>
223
+ typeof clockFormat === 'string' ? parseInt(clockFormat, 10) : clockFormat;
224
+
225
+ /**
226
+ * Return datetime value string off to seconds
227
+ *
228
+ * @param {string} datetime in ISO format
229
+ * @param {boolean} withSeconds to specify if seconds is needed or not
230
+ *
231
+ * @returns {string} datetime after stripping of ms and seconds if selected to
232
+ */
233
+ export const correctDateTimeToSeconds = (datetime, withSeconds) => {
234
+ if (withSeconds) {
235
+ return `${datetime.substring(0, datetime.indexOf('Z'))}.000Z`;
236
+ }
237
+ return `${datetime.substring(0, datetime.lastIndexOf(':'))}:00.000Z`;
238
+ };
239
+
240
+ /**
241
+ * Return time value string off to seconds
242
+ *
243
+ * @param {string} datetime in ISO format
244
+ * @param {boolean} withSeconds to specify if seconds is needed or not
245
+ *
246
+ * @returns {string} just time after stripping of ms and seconds if selected to
247
+ */
248
+ export const timeCorrectedToSeconds = (datetime, withSeconds) => {
249
+ if (withSeconds) {
250
+ return datetime.substring(datetime.indexOf('T') + 1, datetime.indexOf('.'));
251
+ }
252
+ return `${datetime.substring(datetime.indexOf('T') + 1, datetime.lastIndexOf(':'))}:00`;
253
+ };
254
+
255
+ /**
256
+ * This function handles the cosmos blur handler of DateTime components
257
+ *
258
+ * @param {string | undefined} errorState for the selected datetime value
259
+ * @param {string} actualValue present in redux
260
+ * @param {string} formattedValue retrieved by trimming ISO to just Date/Time, also applying timezone if DateTime
261
+ * @param {object} actions object which has fire and blur callbacks
262
+ * @param {string} propName name of the property bound
263
+ * @param {object} pConn component's PConnect object which is useful to invoke validationApi
264
+ *
265
+ * @returns {void}
266
+ */
267
+ export const datetimeFireChangeBlurEvents = (
268
+ errorState,
269
+ actualValue,
270
+ formattedValue,
271
+ actions,
272
+ propName,
273
+ pConn
274
+ ) => {
275
+ // TODO - clean up, we should not rely on timestamp from cosmos to check InComplete validation
276
+ // above triggerFieldChange should have validated this
277
+ if (errorState) {
278
+ pConn.getValidationApi().validate(errorState);
279
+ }
280
+ // BUG-640834 In errorState presist old values avoiding store update & re-render.
281
+ else {
282
+ if (formattedValue !== actualValue) {
283
+ actions.updateFieldValue(propName, formattedValue);
284
+ }
285
+ actions.triggerFieldChange(propName, formattedValue);
286
+ }
287
+ };
288
+
289
+ /**
290
+ * Return Date format for the locale passed
291
+ *
292
+ * @param {string} locale locale string
293
+ * @param {object} options options for format string
294
+ * @returns {string} dateformat for the locale
295
+ * Example : getDateFormat("pl-PL") returns "DD.MM.YYYY"
296
+ */
297
+ export const getDateFormat = (locale, options) => {
298
+ return new Intl.DateTimeFormat(locale, options)
299
+ .formatToParts()
300
+ .map(({ type, value }) => {
301
+ switch (type) {
302
+ case 'day':
303
+ return 'DD';
304
+ case 'month':
305
+ return 'MM';
306
+ case 'year':
307
+ return 'YYYY';
308
+ case 'hour':
309
+ return 'hh';
310
+ case 'minute':
311
+ return 'mm';
312
+ case 'second':
313
+ return 'ss';
314
+ case 'dayPeriod':
315
+ return 'A';
316
+ case 'literal':
317
+ return value;
318
+ default:
319
+ return '';
320
+ }
321
+ })
322
+ .join('');
323
+ };
324
+
325
+ /**
326
+ * Return boolean for the locale passed to specify if locale uses 12 hour format
327
+ *
328
+ * @param {string} locale locale string
329
+ * @returns {boolean} True or False for the locale
330
+ * Example : getDateFormat("pl-PL") returns false
331
+ */
332
+ export const is12HClockFormat = locale => {
333
+ const meridiem = new Intl.DateTimeFormat(locale, {
334
+ hour: 'numeric'
335
+ })
336
+ .formatToParts()
337
+ .find(({ type }) => type === 'dayPeriod');
338
+ return !!(meridiem === null || meridiem === undefined ? undefined : meridiem.value);
339
+ };
340
+
341
+ /**
342
+ * Return Option object for Time formatting
343
+ *
344
+ * @param {boolean} withSeconds true or false depending on seconds to be included
345
+ * @param {boolean} is12h 12 hour format
346
+ * @returns {object} options object time formatting
347
+ * Example : getTimeOptions(false, true) returns {hour: 'numeric',minute: 'numeric',hour12: true}
348
+ */
349
+ export const getTimeOptions = (withSeconds, is12h = false) => {
350
+ return {
351
+ hour: 'numeric',
352
+ minute: 'numeric',
353
+ ...(withSeconds && { second: 'numeric' }),
354
+ hour12: is12h
355
+ };
356
+ };
357
+
358
+ /**
359
+ * Return Option object for Datetime formatting
360
+ *
361
+ * @param {boolean} withSeconds true or false depending on seconds to be included
362
+ * @param {boolean} is12h 12 hour format
363
+ * @returns {object} options object datetime formatting
364
+ * Example : getDateTimeOptions(false, true) returns {year: 'numeric',month: 'numeric',day: 'numeric',hour: 'numeric',minute: 'numeric',hour12: true}
365
+ */
366
+ export const getDateTimeOptions = (withSeconds, is12h = false) => {
367
+ return {
368
+ year: 'numeric',
369
+ month: 'numeric',
370
+ day: 'numeric',
371
+ ...getTimeOptions(withSeconds, is12h)
372
+ };
373
+ };
374
+
375
+ export function getCurrentTimezone(tzone) {
376
+ if (tzone) return tzone;
377
+ return PCore?.getLocaleUtils?.().getTimeZoneInUse?.();
378
+ }
379
+
380
+ export function format(value, type, options) {
381
+ let formattedValue;
382
+
383
+ switch (type?.toLowerCase()) {
384
+ case 'currency': {
385
+ const defaultOptions = {
386
+ locale: getLocale(),
387
+ position: 'before',
388
+ decPlaces: 2
389
+ };
390
+ const params = { ...defaultOptions, ...options };
391
+ formattedValue = Currency.Currency(value, params);
392
+ break;
393
+ }
394
+
395
+ case 'decimal': {
396
+ const defaultOptions = { locale: getLocale(), decPlaces: 2 };
397
+ const params = { ...defaultOptions, ...options };
398
+ formattedValue = Currency.Decimal(value, params);
399
+ break;
400
+ }
401
+
402
+ case 'integer': {
403
+ const defaultOptions = { locale: getLocale() };
404
+ const params = { ...defaultOptions, ...options };
405
+ formattedValue = Currency.Integer(value, params);
406
+ break;
407
+ }
408
+
409
+ case 'date': {
410
+ const defaultOptions = {
411
+ format: 'MMM DD, YYYY',
412
+ timezone: getCurrentTimezone()
413
+ };
414
+ const params = { ...defaultOptions, ...options };
415
+ formattedValue = DateFormatter.Date(parseDateInISO(value), params);
416
+ break;
417
+ }
418
+
419
+ case 'datetime': {
420
+ const defaultOptions = {
421
+ format: 'MMM DD, YYYY h:mm A',
422
+ timezone: getCurrentTimezone()
423
+ };
424
+ const params = { ...defaultOptions, ...options };
425
+ formattedValue = DateFormatter.Date(parseDateInISO(value), params);
426
+ break;
427
+ }
428
+
429
+ case 'boolean':
430
+ case 'checkbox': {
431
+ formattedValue = Boolean.TrueFalse(value, { allowEmpty: false });
432
+ break;
433
+ }
434
+
435
+ default:
436
+ formattedValue = value;
437
+ }
438
+ return formattedValue;
439
+ }
@@ -0,0 +1,73 @@
1
+ import { withKnobs } from '@storybook/addon-knobs';
2
+ import { configProps, stateProps } from './mock.stories';
3
+ import PegaDxilMyDate from './index.jsx';
4
+
5
+ export default {
6
+ title: 'PegaDxilMyDate',
7
+ decorators: [withKnobs],
8
+ component: PegaDxilMyDate
9
+ };
10
+
11
+ if (!window.PCore) {
12
+ window.PCore = {};
13
+ }
14
+
15
+ window.PCore.getEnvironmentInfo = () => {
16
+ return {
17
+ getLocale: () => {
18
+ return 'en-GB';
19
+ }
20
+ };
21
+ };
22
+
23
+ export const basePegaDxilMyDate = () => {
24
+ const props = {
25
+ getPConnect: () => {
26
+ return {
27
+ getActionsApi: () => {
28
+ return {
29
+ updateFieldValue: () => {/* nothing */},
30
+ triggerFieldChange: () => {/* nothing */}
31
+ };
32
+ },
33
+ getValidationApi: () => {
34
+ return {
35
+ validate: () => {/* nothing */}
36
+ };
37
+ },
38
+ getStateProps: () => {
39
+ return stateProps;
40
+ },
41
+ getConfigProps: () => {
42
+ return configProps;
43
+ },
44
+ ignoreSuggestion: () => {/* nothing */},
45
+ acceptSuggestion: () => {/* nothing */},
46
+ clearErrorMessages: () => {/* nothing */}
47
+ };
48
+ },
49
+ value: configProps.value,
50
+ validatemessage: configProps.validatemessage,
51
+ label: configProps.label,
52
+ hideLabel: configProps.hideLabel,
53
+ helperText: configProps.helperText,
54
+ nextYearRange: configProps.nextYearRange,
55
+ previousYearRange: configProps.previousYearRange,
56
+ showWeekNumber: configProps.showWeekNumber,
57
+ testId: configProps.testId,
58
+ showAsFormattedText: configProps.showAsFormattedText,
59
+ additionalProps: configProps.additionalProps,
60
+ displayMode: configProps.displayMode,
61
+ variant: configProps.variant,
62
+ hasSuggestions: configProps.hasSuggestions,
63
+ disabled: configProps.disabled,
64
+ readOnly: configProps.readOnly,
65
+ required: configProps.required
66
+ };
67
+
68
+ return (
69
+ <>
70
+ <PegaDxilMyDate {...props} />
71
+ </>
72
+ );
73
+ };