@pega/custom-dx-components 0.23.20 → 0.23.21

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 (554) hide show
  1. package/package.json +35 -35
  2. package/src/constants.js +14 -3
  3. package/src/tasks/authenticate/helper.js +44 -32
  4. package/src/tasks/authenticate/index.js +3 -1
  5. package/src/tasks/build-all/index.js +1 -1
  6. package/src/tasks/{build → build-comp}/index.js +1 -1
  7. package/src/tasks/create/index.js +20 -7
  8. package/src/tasks/create/templates/Constellation/Field/Boolean/PConnProps.d.ts.mustache +46 -0
  9. package/src/tasks/create/templates/Constellation/Field/Boolean/{boolean-format.js.mustache → boolean-format.ts.mustache} +2 -2
  10. package/src/tasks/create/templates/Constellation/Field/Boolean/demo.stories.jsx.mustache +3 -3
  11. package/src/tasks/create/templates/Constellation/Field/Boolean/event-utils.ts.mustache +18 -0
  12. package/src/tasks/create/templates/Constellation/Field/Boolean/{index.jsx.mustache → index.tsx.mustache} +35 -10
  13. package/src/tasks/create/templates/Constellation/Field/{Date/styles.js.mustache → Boolean/styles.ts.mustache} +1 -1
  14. package/src/tasks/create/templates/Constellation/Field/Date/DateFormatter.js.mustache +1 -1
  15. package/src/tasks/create/templates/Constellation/Field/Date/FormattedText.jsx.mustache +1 -1
  16. package/src/tasks/create/templates/Constellation/Field/Date/PConnProps.d.ts.mustache +46 -0
  17. package/src/tasks/create/templates/Constellation/Field/Date/date.js.mustache +0 -2
  18. package/src/tasks/create/templates/Constellation/Field/Date/demo.stories.jsx.mustache +3 -3
  19. package/src/tasks/create/templates/Constellation/Field/Date/{index.jsx.mustache → index.tsx.mustache} +82 -38
  20. package/src/tasks/create/templates/Constellation/Field/{Boolean/styles.js.mustache → Date/styles.ts.mustache} +1 -1
  21. package/src/tasks/create/templates/Constellation/Field/Date/suggestions-handler.ts +9 -0
  22. package/src/tasks/create/templates/Constellation/Field/DateTime/PConnProps.d.ts.mustache +46 -0
  23. package/src/tasks/create/templates/Constellation/Field/DateTime/date-time.js.mustache +1 -1
  24. package/src/tasks/create/templates/Constellation/Field/DateTime/date-utils.js.mustache +1 -2
  25. package/src/tasks/create/templates/Constellation/Field/DateTime/date.js.mustache +1 -2
  26. package/src/tasks/create/templates/Constellation/Field/DateTime/demo.stories.jsx.mustache +3 -3
  27. package/src/tasks/create/templates/Constellation/Field/DateTime/{index.jsx.mustache → index.tsx.mustache} +64 -22
  28. package/src/tasks/create/templates/Constellation/Field/{Decimal-Currency/styles.js.mustache → DateTime/styles.ts.mustache} +1 -1
  29. package/src/tasks/create/templates/Constellation/Field/DateTime/suggestions-handler.ts +10 -0
  30. package/src/tasks/create/templates/Constellation/Field/Decimal/PConnProps.d.ts.mustache +46 -0
  31. package/src/tasks/create/templates/Constellation/Field/Decimal/demo.stories.jsx.mustache +3 -3
  32. package/src/tasks/create/templates/Constellation/Field/Decimal/event-utils.ts.mustache +18 -0
  33. package/src/tasks/create/templates/Constellation/Field/Decimal/{index.jsx.mustache → index.tsx.mustache} +38 -9
  34. package/src/tasks/create/templates/Constellation/Field/Decimal/styles.ts.mustache +15 -0
  35. package/src/tasks/create/templates/Constellation/Field/Decimal/suggestions-handler.ts +9 -0
  36. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/PConnProps.d.ts.mustache +46 -0
  37. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/demo.stories.jsx.mustache +3 -3
  38. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/event-utils.ts.mustache +18 -0
  39. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/{index.jsx.mustache → index.tsx.mustache} +50 -14
  40. package/src/tasks/create/templates/Constellation/Field/{DateTime/styles.js.mustache → Decimal-Currency/styles.ts.mustache} +1 -1
  41. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/suggestions-handler.ts +9 -0
  42. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/PConnProps.d.ts.mustache +46 -0
  43. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/demo.stories.jsx.mustache +3 -3
  44. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/event-utils.ts.mustache +18 -0
  45. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/{index.jsx.mustache → index.tsx.mustache} +37 -8
  46. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/styles.ts.mustache +15 -0
  47. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/suggestions-handler.ts +9 -0
  48. package/src/tasks/create/templates/Constellation/Field/Integer/PConnProps.d.ts.mustache +46 -0
  49. package/src/tasks/create/templates/Constellation/Field/Integer/demo.stories.jsx.mustache +3 -3
  50. package/src/tasks/create/templates/Constellation/Field/Integer/event-utils.ts.mustache +18 -0
  51. package/src/tasks/create/templates/Constellation/Field/Integer/{index.jsx.mustache → index.tsx.mustache} +52 -11
  52. package/src/tasks/create/templates/Constellation/Field/Integer/styles.ts.mustache +15 -0
  53. package/src/tasks/create/templates/Constellation/Field/Integer/suggestions-handler.ts +9 -0
  54. package/src/tasks/create/templates/Constellation/Field/Picklist/PConnProps.d.ts.mustache +46 -0
  55. package/src/tasks/create/templates/Constellation/Field/Picklist/demo.stories.jsx.mustache +3 -3
  56. package/src/tasks/create/templates/Constellation/Field/Picklist/event-utils.ts.mustache +18 -0
  57. package/src/tasks/create/templates/Constellation/Field/Picklist/{index.jsx.mustache → index.tsx.mustache} +54 -15
  58. package/src/tasks/create/templates/Constellation/Field/Picklist/styles.ts.mustache +15 -0
  59. package/src/tasks/create/templates/Constellation/Field/Picklist/suggestions-handler.ts +9 -0
  60. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/PConnProps.d.ts +46 -0
  61. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/component-constants.js +5 -0
  62. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/config.json.mustache +115 -0
  63. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/date.js.mustache +161 -0
  64. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/demo.stories.jsx.mustache +90 -0
  65. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/embed-utils.js.mustache +310 -0
  66. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/event-utils.ts.mustache +18 -0
  67. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/format-constants.js.mustache +41 -0
  68. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/index.tsx.mustache +1238 -0
  69. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/picklist-utils.js.mustache +88 -0
  70. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/repeat-constants.js.mustache +20 -0
  71. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/repeat-utils.js.mustache +657 -0
  72. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/styles.ts.mustache +15 -0
  73. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/suggestions-handler.ts.mustache +9 -0
  74. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/textformat-utils.jsx.mustache +161 -0
  75. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/utils.ts.mustache +218 -0
  76. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/PConnProps.d.ts +46 -0
  77. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/config.json.mustache +113 -0
  78. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/demo.stories.jsx.mustache +85 -0
  79. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/event-utils.ts.mustache +18 -0
  80. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/index.tsx.mustache +243 -0
  81. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/styles.ts.mustache +15 -0
  82. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/suggestions-handler.ts.mustache +9 -0
  83. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/textformat-utils.jsx.mustache +161 -0
  84. package/src/tasks/create/templates/Constellation/Field/Text/PConnProps.d.ts +46 -0
  85. package/src/tasks/create/templates/Constellation/Field/Text/demo.stories.jsx.mustache +3 -3
  86. package/src/tasks/create/templates/Constellation/Field/Text/{index.jsx.mustache → index.tsx.mustache} +17 -6
  87. package/src/tasks/create/templates/Constellation/Field/Text/styles.ts.mustache +15 -0
  88. package/src/tasks/create/templates/Constellation/Field/Text-Email/PConnProps.d.ts +46 -0
  89. package/src/tasks/create/templates/Constellation/Field/Text-Email/demo.stories.jsx.mustache +3 -3
  90. package/src/tasks/create/templates/Constellation/Field/Text-Email/event-utils.ts.mustache +18 -0
  91. package/src/tasks/create/templates/Constellation/Field/Text-Email/{index.jsx.mustache → index.tsx.mustache} +30 -12
  92. package/src/tasks/create/templates/Constellation/Field/Text-Email/styles.ts.mustache +15 -0
  93. package/src/tasks/create/templates/Constellation/Field/Text-Email/suggestions-handler.ts.mustache +9 -0
  94. package/src/tasks/create/templates/Constellation/Field/Text-Input/PConnProps.d.ts.mustache +46 -0
  95. package/src/tasks/create/templates/Constellation/Field/Text-Input/StatusWork.tsx +30 -0
  96. package/src/tasks/create/templates/Constellation/Field/Text-Input/demo.stories.jsx.mustache +3 -3
  97. package/src/tasks/create/templates/Constellation/Field/Text-Input/event-utils.ts.mustache +18 -0
  98. package/src/tasks/create/templates/Constellation/Field/Text-Input/{index.jsx.mustache → index.tsx.mustache} +54 -31
  99. package/src/tasks/create/templates/Constellation/Field/Text-Input/styles.ts.mustache +15 -0
  100. package/src/tasks/create/templates/Constellation/Field/Text-Input/suggestions-handler.ts.mustache +9 -0
  101. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/PConnProps.d.ts.mustache +46 -0
  102. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/demo.stories.jsx.mustache +3 -3
  103. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/event-utils.ts.mustache +18 -0
  104. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/{index.jsx.mustache → index.tsx.mustache} +30 -13
  105. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/styles.ts.mustache +15 -0
  106. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/suggestions-handler.ts.mustache +9 -0
  107. package/src/tasks/create/templates/Constellation/Field/Text-Phone/PConnProps.d.ts.mustache +46 -0
  108. package/src/tasks/create/templates/Constellation/Field/Text-Phone/demo.stories.jsx.mustache +3 -3
  109. package/src/tasks/create/templates/Constellation/Field/Text-Phone/event-utils.ts.mustache +18 -0
  110. package/src/tasks/create/templates/Constellation/Field/Text-Phone/{index.jsx.mustache → index.tsx.mustache} +37 -16
  111. package/src/tasks/create/templates/Constellation/Field/Text-Phone/styles.ts.mustache +15 -0
  112. package/src/tasks/create/templates/Constellation/Field/Text-Phone/suggestions-handler.ts.mustache +9 -0
  113. package/src/tasks/create/templates/Constellation/Field/Text-URL/PConnProps.d.ts.mustache +46 -0
  114. package/src/tasks/create/templates/Constellation/Field/Text-URL/demo.stories.jsx.mustache +3 -3
  115. package/src/tasks/create/templates/Constellation/Field/Text-URL/event-utils.ts.mustache +18 -0
  116. package/src/tasks/create/templates/Constellation/Field/Text-URL/{index.jsx.mustache → index.tsx.mustache} +39 -11
  117. package/src/tasks/create/templates/Constellation/Field/Text-URL/styles.ts.mustache +15 -0
  118. package/src/tasks/create/templates/Constellation/Field/Text-URL/suggestions-handler.ts.mustache +9 -0
  119. package/src/tasks/create/templates/Constellation/Field/Text-URL/text-url.jsx.mustache +2 -1
  120. package/src/tasks/create/templates/Constellation/Field/TimeOfDay/PConnProps.d.ts.mustache +46 -0
  121. package/src/tasks/create/templates/Constellation/Field/{TimeofDay → TimeOfDay}/demo.stories.jsx.mustache +3 -3
  122. package/src/tasks/create/templates/Constellation/Field/{TimeofDay/index.jsx.mustache → TimeOfDay/index.tsx.mustache} +46 -16
  123. package/src/tasks/create/templates/Constellation/Field/TimeOfDay/styles.ts.mustache +15 -0
  124. package/src/tasks/create/templates/Constellation/Field/TimeOfDay/suggestions-handler.ts.mustache +9 -0
  125. package/src/tasks/create/templates/Constellation/Field/{TimeofDay → TimeOfDay}/time-of-day.js.mustache +0 -2
  126. package/src/tasks/create/templates/Constellation/Template/DETAILS/PConnProps.d.ts.mustache +46 -0
  127. package/src/tasks/create/templates/Constellation/Template/{DETAILS-region/StatusWork.jsx.mustache → DETAILS/StatusWork.tsx.mustache} +2 -3
  128. package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.jsx.mustache +3 -4
  129. package/src/tasks/create/templates/Constellation/Template/{DETAILS-region/index.jsx.mustache → DETAILS/index.tsx.mustache} +22 -5
  130. package/src/tasks/create/templates/Constellation/Template/DETAILS/styles.ts.mustache +15 -0
  131. package/src/tasks/create/templates/Constellation/Template/DETAILS/utils.js.mustache +2 -3
  132. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/PConnProps.d.ts.mustache +46 -0
  133. package/src/tasks/create/templates/Constellation/{Field/Text-Input/StatusWork.jsx → Template/DETAILS-region/StatusWork.tsx.mustache} +2 -3
  134. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.stories.jsx.mustache +3 -4
  135. package/src/tasks/create/templates/Constellation/Template/{DETAILS/index.jsx.mustache → DETAILS-region/index.tsx.mustache} +21 -5
  136. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/styles.ts.mustache +15 -0
  137. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/utils.js.mustache +0 -4
  138. package/src/tasks/create/templates/Constellation/Template/FORM/PConnProps.d.ts.mustache +46 -0
  139. package/src/tasks/create/templates/Constellation/Template/FORM/demo.stories.jsx.mustache +15 -13
  140. package/src/tasks/create/templates/Constellation/Template/FORM/{index.jsx.mustache → index.tsx.mustache} +11 -7
  141. package/src/tasks/create/templates/Constellation/Template/FORM/styles.ts.mustache +15 -0
  142. package/src/tasks/create/templates/Constellation/Template/FORM-region/PConnProps.d.ts.mustache +46 -0
  143. package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.stories.jsx.mustache +7 -8
  144. package/src/tasks/create/templates/Constellation/Template/FORM-region/{index.jsx.mustache → index.tsx.mustache} +14 -3
  145. package/src/tasks/create/templates/Constellation/Template/FORM-region/styles.ts.mustache +15 -0
  146. package/src/tasks/create/templates/Constellation/Template/PAGE/{GetNextWork.jsx.mustache → GetNextWork.tsx.mustache} +13 -6
  147. package/src/tasks/create/templates/Constellation/Template/PAGE/PConnProps.d.ts.mustache +46 -0
  148. package/src/tasks/create/templates/Constellation/Template/PAGE/demo.stories.jsx.mustache +3 -3
  149. package/src/tasks/create/templates/Constellation/Template/PAGE/{index.jsx.mustache → index.tsx.mustache} +18 -6
  150. package/src/tasks/create/templates/Constellation/Template/PAGE/styles.ts.mustache +15 -0
  151. package/src/tasks/create/templates/Constellation/Template/PAGE/utils.js.mustache +1 -4
  152. package/src/tasks/create/templates/Constellation/Widget/CASE/PConnProps.d.ts.mustache +46 -0
  153. package/src/tasks/create/templates/Constellation/Widget/CASE/demo.stories.jsx.mustache +3 -3
  154. package/src/tasks/create/templates/Constellation/Widget/CASE/{index.jsx.mustache → index.tsx.mustache} +19 -10
  155. package/src/tasks/create/templates/Constellation/Widget/CASE/styles.ts.mustache +15 -0
  156. package/src/tasks/create/templates/Constellation/Widget/PAGE/PConnProps.d.ts.mustache +46 -0
  157. package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.stories.jsx.mustache +3 -3
  158. package/src/tasks/create/templates/Constellation/Widget/PAGE/{index.jsx.mustache → index.tsx.mustache} +14 -2
  159. package/src/tasks/create/templates/Constellation/Widget/PAGE/styles.ts.mustache +15 -0
  160. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/{Avatar.jsx.mustache → Avatar.tsx.mustache} +21 -10
  161. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/{Operator.jsx.mustache → Operator.tsx.mustache} +30 -9
  162. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/PConnProps.d.ts.mustache +46 -0
  163. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.stories.jsx.mustache +2 -3
  164. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/{index.jsx.mustache → index.tsx.mustache} +25 -4
  165. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/styles.ts.mustache +15 -0
  166. package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.stories.jsx.mustache +3 -3
  167. package/src/tasks/create/templates/Launchpad/Widget/CASE/index.jsx.mustache +0 -2
  168. package/src/tasks/create/templates/Launchpad/Widget/CASE/styles.js.mustache +1 -1
  169. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Avatar.jsx.mustache +2 -4
  170. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Operator.jsx.mustache +1 -2
  171. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.stories.jsx.mustache +2 -3
  172. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/index.jsx.mustache +1 -2
  173. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/styles.js.mustache +1 -1
  174. package/src/tasks/create-all/index.js +9 -1
  175. package/src/tasks/index.js +1 -1
  176. package/src/tasks/init/helper.js +0 -1
  177. package/src/tasks/init/index.js +31 -16
  178. package/src/tasks/init/template/.eslintrc.json +15 -10
  179. package/src/tasks/init/template/.storybook/main.js +12 -0
  180. package/src/tasks/init/template/.storybook/preview.js +14 -0
  181. package/src/tasks/init/template/package.json.mustache +36 -35
  182. package/src/tasks/publish/helper.js +34 -14
  183. package/src/tasks/publish/index.js +1 -1
  184. package/src/tasks/publish-all/helper.js +42 -16
  185. package/src/tasks/publish-all/index.js +1 -1
  186. package/src/tasks/revert-webpack/index.js +5 -7
  187. package/src/tasks/upgrade/index.js +1 -1
  188. package/src/util.js +68 -44
  189. package/tests/assets/components/create/Pega_DXIL_MyTestText/demo.stories.jsx +17 -11
  190. package/tests/assets/components/create/Pega_DXIL_MyTestText/index.jsx +0 -1
  191. package/tests/assets/components/create/Pega_DXIL_MyTestText/styles.js +1 -1
  192. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/component-constants.js +5 -0
  193. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/config.json +115 -0
  194. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/date.js +161 -0
  195. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/demo.stories.jsx +91 -0
  196. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/embed-utils.js +310 -0
  197. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/format-constants.js +41 -0
  198. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/index.jsx +1042 -0
  199. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/mock.js +69 -0
  200. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/picklist-utils.js +88 -0
  201. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/repeat-constants.js +20 -0
  202. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/repeat-utils.js +657 -0
  203. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/styles.js +15 -0
  204. package/{src/tasks/create/templates/Constellation/Field/Date → tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete}/suggestions-handler.js +0 -1
  205. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/textformat-utils.jsx +161 -0
  206. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/utils.js +182 -0
  207. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/boolean-format.js +1 -1
  208. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.stories.jsx +8 -7
  209. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/index.jsx +0 -2
  210. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/styles.js +1 -1
  211. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.jsx +22 -12
  212. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.jsx +0 -2
  213. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/styles.js +1 -1
  214. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.stories.jsx +23 -12
  215. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/index.jsx +2 -2
  216. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/styles.js +1 -1
  217. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/suggestions-handler.js +0 -1
  218. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/DateFormatter.js +1 -1
  219. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/FormattedText.jsx +1 -1
  220. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/date.js +0 -2
  221. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/demo.stories.jsx +20 -9
  222. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/index.jsx +1 -3
  223. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/styles.js +1 -1
  224. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/suggestions-handler.js +0 -1
  225. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date-time.js +1 -1
  226. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date-utils.js +1 -2
  227. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date.js +1 -2
  228. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.jsx +20 -9
  229. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/index.jsx +1 -3
  230. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/styles.js +1 -1
  231. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/suggestions-handler.js +0 -1
  232. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.stories.jsx +20 -11
  233. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/index.jsx +1 -2
  234. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/styles.js +1 -1
  235. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/suggestions-handler.js +0 -1
  236. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/StatusWork.jsx +0 -1
  237. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.jsx +2 -4
  238. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/index.jsx +0 -1
  239. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/styles.js +1 -1
  240. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/utils.js +2 -3
  241. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.stories.jsx +20 -12
  242. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/index.jsx +1 -2
  243. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/styles.js +1 -1
  244. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/suggestions-handler.js +0 -1
  245. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/demo.stories.jsx +15 -21
  246. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/index.jsx +0 -1
  247. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/styles.js +1 -1
  248. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.stories.jsx +20 -11
  249. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/index.jsx +2 -3
  250. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/styles.js +1 -1
  251. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/suggestions-handler.js +0 -1
  252. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/GetNextWork.jsx +1 -4
  253. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.jsx +20 -10
  254. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/index.jsx +3 -3
  255. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/styles.js +1 -1
  256. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/utils.js +1 -4
  257. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Avatar.jsx +2 -4
  258. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Operator.jsx +2 -3
  259. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.jsx +22 -12
  260. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/index.jsx +2 -1
  261. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/styles.js +1 -1
  262. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.jsx +4 -7
  263. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.jsx +0 -1
  264. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/styles.js +1 -1
  265. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.stories.jsx +20 -12
  266. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/index.jsx +1 -2
  267. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/styles.js +1 -1
  268. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/suggestions-handler.js +0 -1
  269. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.stories.jsx +20 -11
  270. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/index.jsx +1 -2
  271. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/styles.js +1 -1
  272. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/suggestions-handler.js +0 -1
  273. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.stories.jsx +20 -10
  274. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/index.jsx +1 -2
  275. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/styles.js +1 -1
  276. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/suggestions-handler.js +0 -1
  277. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.stories.jsx +20 -12
  278. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/index.jsx +3 -3
  279. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/mock.js +69 -0
  280. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/styles.js +1 -1
  281. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/suggestions-handler.js +0 -1
  282. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/config.json +113 -0
  283. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/demo.stories.jsx +91 -0
  284. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/index.jsx +218 -0
  285. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/mock.js +69 -0
  286. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/styles.js +15 -0
  287. package/{src/tasks/create/templates/Constellation/Field/DateTime → tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons}/suggestions-handler.js +0 -1
  288. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/textformat-utils.jsx +161 -0
  289. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/demo.stories.jsx +17 -11
  290. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/index.jsx +0 -1
  291. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/styles.js +1 -1
  292. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/StatusWork.jsx +15 -16
  293. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.stories.jsx +20 -10
  294. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/index.jsx +1 -2
  295. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/styles.js +1 -1
  296. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/suggestions-handler.js +0 -1
  297. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.stories.jsx +18 -8
  298. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/index.jsx +1 -2
  299. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/styles.js +1 -1
  300. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/suggestions-handler.js +0 -1
  301. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/time-of-day.js +0 -2
  302. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/StatusWork.jsx +0 -1
  303. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +2 -4
  304. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/index.jsx +0 -1
  305. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/styles.js +1 -1
  306. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/utils.js +0 -4
  307. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +6 -11
  308. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/index.jsx +0 -1
  309. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/styles.js +1 -1
  310. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/demo.stories.jsx +20 -10
  311. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/index.jsx +1 -2
  312. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/styles.js +1 -1
  313. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/suggestions-handler.js +0 -1
  314. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/text-url.jsx +2 -1
  315. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/component-constants.js +5 -0
  316. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/config.json +115 -0
  317. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/date.js +161 -0
  318. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/demo.stories.jsx +89 -0
  319. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/embed-utils.js +310 -0
  320. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/format-constants.js +41 -0
  321. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/index.jsx +1042 -0
  322. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/mock.js +69 -0
  323. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/picklist-utils.js +88 -0
  324. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/repeat-constants.js +20 -0
  325. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/repeat-utils.js +657 -0
  326. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/styles.js +15 -0
  327. package/{src/tasks/create/templates/Constellation/Field/Decimal-Percentage → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete}/suggestions-handler.js +0 -1
  328. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/textformat-utils.jsx +161 -0
  329. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/utils.js +182 -0
  330. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/boolean-format.js +1 -1
  331. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/demo.stories.jsx +8 -7
  332. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/index.jsx +0 -2
  333. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/styles.js +1 -1
  334. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.jsx +22 -14
  335. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/index.jsx +0 -2
  336. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/styles.js +1 -1
  337. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.stories.jsx +23 -13
  338. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/index.jsx +2 -2
  339. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/styles.js +1 -1
  340. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/suggestions-handler.js +0 -1
  341. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/DateFormatter.js +1 -1
  342. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/FormattedText.jsx +1 -1
  343. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/date.js +0 -2
  344. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.stories.jsx +21 -10
  345. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/index.jsx +1 -3
  346. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/styles.js +1 -1
  347. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/suggestions-handler.js +0 -1
  348. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-time.js +1 -1
  349. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-utils.js +1 -2
  350. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date.js +1 -2
  351. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.jsx +21 -10
  352. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/index.jsx +1 -3
  353. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/styles.js +1 -1
  354. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/suggestions-handler.js +0 -1
  355. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.stories.jsx +20 -12
  356. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/index.jsx +1 -2
  357. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/styles.js +1 -1
  358. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/suggestions-handler.js +0 -1
  359. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/StatusWork.jsx +0 -1
  360. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.jsx +5 -6
  361. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/index.jsx +0 -1
  362. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/styles.js +1 -1
  363. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/utils.js +2 -3
  364. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.stories.jsx +20 -12
  365. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/index.jsx +1 -2
  366. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/styles.js +1 -1
  367. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/suggestions-handler.js +0 -1
  368. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.stories.jsx +23 -24
  369. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/index.jsx +0 -1
  370. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/styles.js +1 -1
  371. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.stories.jsx +20 -12
  372. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.jsx +2 -3
  373. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/styles.js +1 -1
  374. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/suggestions-handler.js +0 -1
  375. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/GetNextWork.jsx +1 -4
  376. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.jsx +20 -11
  377. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/index.jsx +3 -3
  378. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/styles.js +1 -1
  379. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/utils.js +1 -4
  380. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Avatar.jsx +2 -4
  381. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Operator.jsx +1 -2
  382. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.jsx +23 -15
  383. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/index.jsx +1 -2
  384. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/styles.js +1 -1
  385. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.stories.jsx +4 -9
  386. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/index.jsx +0 -1
  387. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/styles.js +1 -1
  388. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.stories.jsx +20 -12
  389. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/index.jsx +1 -2
  390. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/styles.js +1 -1
  391. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/suggestions-handler.js +0 -1
  392. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.stories.jsx +20 -12
  393. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/index.jsx +1 -2
  394. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/styles.js +1 -1
  395. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/suggestions-handler.js +0 -1
  396. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.stories.jsx +20 -11
  397. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/index.jsx +1 -2
  398. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/styles.js +1 -1
  399. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/suggestions-handler.js +0 -1
  400. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/demo.stories.jsx +20 -12
  401. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/index.jsx +3 -3
  402. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/mock.js +69 -0
  403. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/styles.js +1 -1
  404. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/suggestions-handler.js +0 -1
  405. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/config.json +113 -0
  406. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/demo.stories.jsx +89 -0
  407. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/index.jsx +218 -0
  408. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/mock.js +69 -0
  409. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/styles.js +15 -0
  410. package/{src/tasks/create/templates/Constellation/Field/Decimal-Currency → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons}/suggestions-handler.js +0 -1
  411. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/textformat-utils.jsx +161 -0
  412. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/demo.stories.jsx +17 -11
  413. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/index.jsx +0 -1
  414. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/styles.js +1 -1
  415. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/StatusWork.jsx +15 -16
  416. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.stories.jsx +20 -12
  417. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/index.jsx +1 -2
  418. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/styles.js +1 -1
  419. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/suggestions-handler.js +0 -1
  420. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/demo.stories.jsx +18 -9
  421. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/index.jsx +1 -2
  422. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/styles.js +1 -1
  423. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/suggestions-handler.js +0 -1
  424. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/time-of-day.js +0 -2
  425. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/StatusWork.jsx +0 -1
  426. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +5 -6
  427. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/index.jsx +0 -1
  428. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/styles.js +1 -1
  429. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/utils.js +0 -4
  430. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +14 -14
  431. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/index.jsx +0 -1
  432. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/styles.js +1 -1
  433. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.stories.jsx +20 -11
  434. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/index.jsx +1 -2
  435. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/styles.js +1 -1
  436. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/suggestions-handler.js +0 -1
  437. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/text-url.jsx +2 -1
  438. package/src/tasks/create/templates/Constellation/Field/Decimal/styles.js.mustache +0 -15
  439. package/src/tasks/create/templates/Constellation/Field/Decimal/suggestions-handler.js +0 -10
  440. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/styles.js.mustache +0 -15
  441. package/src/tasks/create/templates/Constellation/Field/Integer/event-utils.js.mustache +0 -18
  442. package/src/tasks/create/templates/Constellation/Field/Integer/styles.js.mustache +0 -15
  443. package/src/tasks/create/templates/Constellation/Field/Integer/suggestions-handler.js +0 -10
  444. package/src/tasks/create/templates/Constellation/Field/Picklist/event-utils.js.mustache +0 -18
  445. package/src/tasks/create/templates/Constellation/Field/Picklist/styles.js.mustache +0 -15
  446. package/src/tasks/create/templates/Constellation/Field/Picklist/suggestions-handler.js +0 -10
  447. package/src/tasks/create/templates/Constellation/Field/Text/styles.js.mustache +0 -15
  448. package/src/tasks/create/templates/Constellation/Field/Text-Email/event-utils.js.mustache +0 -18
  449. package/src/tasks/create/templates/Constellation/Field/Text-Email/styles.js.mustache +0 -15
  450. package/src/tasks/create/templates/Constellation/Field/Text-Email/suggestions-handler.js +0 -10
  451. package/src/tasks/create/templates/Constellation/Field/Text-Input/event-utils.js.mustache +0 -18
  452. package/src/tasks/create/templates/Constellation/Field/Text-Input/styles.js.mustache +0 -15
  453. package/src/tasks/create/templates/Constellation/Field/Text-Input/suggestions-handler.js +0 -10
  454. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/event-utils.js.mustache +0 -18
  455. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/styles.js.mustache +0 -15
  456. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/suggestions-handler.js +0 -10
  457. package/src/tasks/create/templates/Constellation/Field/Text-Phone/event-utils.js.mustache +0 -18
  458. package/src/tasks/create/templates/Constellation/Field/Text-Phone/styles.js.mustache +0 -15
  459. package/src/tasks/create/templates/Constellation/Field/Text-Phone/suggestions-handler.js +0 -10
  460. package/src/tasks/create/templates/Constellation/Field/Text-URL/event-utils.js.mustache +0 -18
  461. package/src/tasks/create/templates/Constellation/Field/Text-URL/styles.js.mustache +0 -15
  462. package/src/tasks/create/templates/Constellation/Field/Text-URL/suggestions-handler.js +0 -10
  463. package/src/tasks/create/templates/Constellation/Field/TimeofDay/styles.js.mustache +0 -15
  464. package/src/tasks/create/templates/Constellation/Field/TimeofDay/suggestions-handler.js +0 -10
  465. package/src/tasks/create/templates/Constellation/Template/DETAILS/StatusWork.jsx.mustache +0 -27
  466. package/src/tasks/create/templates/Constellation/Template/DETAILS/styles.js.mustache +0 -15
  467. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/styles.js.mustache +0 -15
  468. package/src/tasks/create/templates/Constellation/Template/FORM/styles.js.mustache +0 -15
  469. package/src/tasks/create/templates/Constellation/Template/FORM-region/styles.js.mustache +0 -15
  470. package/src/tasks/create/templates/Constellation/Template/PAGE/styles.js.mustache +0 -15
  471. package/src/tasks/create/templates/Constellation/Widget/CASE/styles.js.mustache +0 -15
  472. package/src/tasks/create/templates/Constellation/Widget/PAGE/styles.js.mustache +0 -15
  473. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/styles.js.mustache +0 -15
  474. package/src/tasks/init/template/.storybook/main.cjs +0 -6
  475. package/src/tasks/init/template/.storybook/package.json +0 -1
  476. package/src/tasks/init/template/.storybook/preview.tsx +0 -44
  477. /package/src/tasks/{build → build-comp}/helper.js +0 -0
  478. /package/src/tasks/create/templates/Constellation/Field/Boolean/{mock.stories.js.mustache → mock.js.mustache} +0 -0
  479. /package/src/tasks/create/templates/Constellation/Field/Date/{mock.stories.js.mustache → mock.js.mustache} +0 -0
  480. /package/src/tasks/create/templates/Constellation/Field/DateTime/{mock.stories.js.mustache → mock.js.mustache} +0 -0
  481. /package/src/tasks/create/templates/Constellation/Field/Decimal/{mock.stories.js.mustache → mock.js.mustache} +0 -0
  482. /package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/{mock.stories.js.mustache → mock.js.mustache} +0 -0
  483. /package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/{mock.stories.js.mustache → mock.js.mustache} +0 -0
  484. /package/src/tasks/create/templates/Constellation/Field/Integer/{mock.stories.js.mustache → mock.js.mustache} +0 -0
  485. /package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/mock.stories.js → src/tasks/create/templates/Constellation/Field/Picklist/mock.js.mustache} +0 -0
  486. /package/src/tasks/create/templates/Constellation/Field/{Picklist/mock.stories.js.mustache → Picklist-Autocomplete/mock.js.mustache} +0 -0
  487. /package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/mock.stories.js → src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/mock.js.mustache} +0 -0
  488. /package/src/tasks/create/templates/Constellation/Field/Text/{mock.stories.js.mustache → mock.js.mustache} +0 -0
  489. /package/src/tasks/create/templates/Constellation/Field/Text-Email/{mock.stories.js.mustache → mock.js.mustache} +0 -0
  490. /package/src/tasks/create/templates/Constellation/Field/Text-Input/{mock.stories.js.mustache → mock.js.mustache} +0 -0
  491. /package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/{mock.stories.js.mustache → mock.js.mustache} +0 -0
  492. /package/src/tasks/create/templates/Constellation/Field/Text-Phone/{mock.stories.js.mustache → mock.js.mustache} +0 -0
  493. /package/src/tasks/create/templates/Constellation/Field/Text-URL/{mock.stories.js.mustache → mock.js.mustache} +0 -0
  494. /package/src/tasks/create/templates/Constellation/Field/{TimeofDay → TimeOfDay}/config.json.mustache +0 -0
  495. /package/src/tasks/create/templates/Constellation/Field/{TimeofDay/mock.stories.js.mustache → TimeOfDay/mock.js.mustache} +0 -0
  496. /package/src/tasks/create/templates/Constellation/Template/DETAILS/{mock.stories.js.mustache → mock.js.mustache} +0 -0
  497. /package/src/tasks/create/templates/Constellation/Template/DETAILS-region/{mock.stories.js.mustache → mock.js.mustache} +0 -0
  498. /package/src/tasks/create/templates/Constellation/Template/FORM/{mock.stories.js.mustache → mock.js.mustache} +0 -0
  499. /package/src/tasks/create/templates/Constellation/Template/FORM-region/{mock.stories.js.mustache → mock.js.mustache} +0 -0
  500. /package/src/tasks/create/templates/Constellation/Template/PAGE/{mock.stories.js.mustache → mock.js.mustache} +0 -0
  501. /package/src/tasks/create/templates/Constellation/Widget/CASE/{mock.stories.js.mustache → mock.js.mustache} +0 -0
  502. /package/src/tasks/create/templates/Constellation/Widget/PAGE/{mock.stories.js.mustache → mock.js.mustache} +0 -0
  503. /package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/{mock.stories.js.mustache → mock.js.mustache} +0 -0
  504. /package/src/tasks/create/templates/Launchpad/Widget/CASE/{mock.stories.js.mustache → mock.js.mustache} +0 -0
  505. /package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/{mock.stories.js.mustache → mock.js.mustache} +0 -0
  506. /package/tests/assets/components/create/Pega_DXIL_MyTestText/{mock.stories.js → mock.js} +0 -0
  507. /package/{src/tasks/create/templates/Constellation/Field/Boolean/event-utils.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/event-utils.js} +0 -0
  508. /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/{mock.stories.js → mock.js} +0 -0
  509. /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/{mock.stories.js → mock.js} +0 -0
  510. /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/{mock.stories.js → mock.js} +0 -0
  511. /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/{mock.stories.js → mock.js} +0 -0
  512. /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/{mock.stories.js → mock.js} +0 -0
  513. /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/{mock.stories.js → mock.js} +0 -0
  514. /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/{mock.stories.js → mock.js} +0 -0
  515. /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/{mock.stories.js → mock.js} +0 -0
  516. /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/{mock.stories.js → mock.js} +0 -0
  517. /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/{mock.stories.js → mock.js} +0 -0
  518. /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/{mock.stories.js → mock.js} +0 -0
  519. /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/{mock.stories.js → mock.js} +0 -0
  520. /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/{mock.stories.js → mock.js} +0 -0
  521. /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/{mock.stories.js → mock.js} +0 -0
  522. /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/{mock.stories.js → mock.js} +0 -0
  523. /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/{mock.stories.js → mock.js} +0 -0
  524. /package/{src/tasks/create/templates/Constellation/Field/Decimal-Currency/event-utils.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/event-utils.js} +0 -0
  525. /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/{mock.stories.js → mock.js} +0 -0
  526. /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/{mock.stories.js → mock.js} +0 -0
  527. /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/{mock.stories.js → mock.js} +0 -0
  528. /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/{mock.stories.js → mock.js} +0 -0
  529. /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/{mock.stories.js → mock.js} +0 -0
  530. /package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/{mock.stories.js → mock.js} +0 -0
  531. /package/{src/tasks/create/templates/Constellation/Field/Decimal-Percentage/event-utils.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/event-utils.js} +0 -0
  532. /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/{mock.stories.js → mock.js} +0 -0
  533. /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/{mock.stories.js → mock.js} +0 -0
  534. /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/{mock.stories.js → mock.js} +0 -0
  535. /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/{mock.stories.js → mock.js} +0 -0
  536. /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/{mock.stories.js → mock.js} +0 -0
  537. /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/{mock.stories.js → mock.js} +0 -0
  538. /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/{mock.stories.js → mock.js} +0 -0
  539. /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/{mock.stories.js → mock.js} +0 -0
  540. /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/{mock.stories.js → mock.js} +0 -0
  541. /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/{mock.stories.js → mock.js} +0 -0
  542. /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/{mock.stories.js → mock.js} +0 -0
  543. /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/{mock.stories.js → mock.js} +0 -0
  544. /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/{mock.stories.js → mock.js} +0 -0
  545. /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/{mock.stories.js → mock.js} +0 -0
  546. /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/{mock.stories.js → mock.js} +0 -0
  547. /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/{mock.stories.js → mock.js} +0 -0
  548. /package/{src/tasks/create/templates/Constellation/Field/Decimal/event-utils.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/event-utils.js} +0 -0
  549. /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/{mock.stories.js → mock.js} +0 -0
  550. /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/{mock.stories.js → mock.js} +0 -0
  551. /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/{mock.stories.js → mock.js} +0 -0
  552. /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/{mock.stories.js → mock.js} +0 -0
  553. /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/{mock.stories.js → mock.js} +0 -0
  554. /package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/{mock.stories.js → mock.js} +0 -0
@@ -1,39 +1,48 @@
1
- /* eslint-disable import/no-relative-packages */
2
- /* eslint-disable no-undef */
3
1
  import { useState, useEffect } from 'react';
4
2
  import PropTypes from 'prop-types';
5
3
  import { Table, Text } from '@pega/cosmos-react-core';
4
+ import type { PConnFieldProps } from './PConnProps';
6
5
 
7
6
  import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
8
7
 
8
+ // interface for props
9
+ interface {{COMPONENT_CLASS_NAME}}Props extends PConnFieldProps {
10
+ // If any, enter additional props that only exist on TextInput here
11
+
12
+ }
13
+
9
14
 
10
15
  // Duplicated runtime code from Constellation Design System Component
11
16
 
12
17
  // props passed in combination of props from property panel (config.json) and run time props from Constellation
13
18
  // any default values in config.pros should be set in defaultProps at bottom of this file
14
- export default function {{COMPONENT_CLASS_NAME}}(props) {
19
+ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
15
20
  const { getPConnect, label } = props;
16
21
  const pConn = getPConnect();
17
22
  const [history, setHistory] = useState([]);
18
23
  const [isLoading, setIsLoading] = useState(true);
19
- const caseID = pConn.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);
24
+ const caseProp: string = PCore.getConstants().CASE_INFO.CASE_INFO_ID;
25
+ const caseID = pConn.getValue(caseProp, '');
20
26
  const context = pConn.getContextName();
21
27
 
22
28
  const columns = [
23
- { renderer: 'date', label: pConn.getLocalizedValue('Date') },
24
- { renderer: 'description', label: pConn.getLocalizedValue('Description') },
25
- { renderer: 'user', label: pConn.getLocalizedValue('Performed by') }
29
+ { renderer: 'date', label: pConn.getLocalizedValue('Date', '', '') },
30
+ { renderer: 'description', label: pConn.getLocalizedValue('Description', '', '') },
31
+ { renderer: 'user', label: pConn.getLocalizedValue('Performed by', '','') }
26
32
  ];
27
33
 
28
34
  useEffect(() => {
35
+ // @ts-ignore
29
36
  const payload = { dataViewParameters: [{ CaseInstanceKey: caseID }] };
30
37
  PCore.getDataApiUtils()
38
+ // @ts-ignore
31
39
  .getData('D_pyWorkHistory', payload, context)
40
+ // @ts-ignore
32
41
  .then((response) => {
33
42
  setIsLoading(false);
34
43
  if (response.data.data !== null) {
35
44
  setHistory(
36
- response.data.data.map((entry, index) => {
45
+ response.data.data.map((entry: any, index: number) => {
37
46
  {{! pick new delimiters for mustache }}
38
47
  {{=<% %>=}}
39
48
  return {
@@ -57,11 +66,11 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
57
66
  return (
58
67
  <Styled{{COMPONENT_CLASS_NAME}}Wrapper>
59
68
  <Table
60
- title={pConn.getLocalizedValue(label)}
69
+ title={pConn.getLocalizedValue(label, '', '')}
61
70
  columns={columns}
62
71
  data={history}
63
72
  loading={isLoading}
64
- loadingMessage={pConn.getLocalizedValue('Loading case history')}
73
+ loadingMessage={pConn.getLocalizedValue('Loading case history', '', '')}
65
74
  />
66
75
  </Styled{{COMPONENT_CLASS_NAME}}Wrapper>
67
76
  );
@@ -0,0 +1,15 @@
1
+
2
+ // utilizing theming, comment out, if want individual style
3
+ import styled from 'styled-components';
4
+ import { Configuration } from '@pega/cosmos-react-core';
5
+
6
+ export default styled(Configuration)``;
7
+
8
+ // individual style, comment out above, and uncomment here and add styles
9
+ // import styled, { css } from 'styled-components';
10
+ //
11
+ // export default styled.div(() => {
12
+ // return css`
13
+ // margin: 0px 0;
14
+ // `;
15
+ // });
@@ -0,0 +1,46 @@
1
+ import {PConnect } from '@pega/pcore-pconnect-typedefs';
2
+
3
+ // PConnProps.d.ts
4
+ // This gives us a place to have each component (which is most DX Components) that is
5
+ // expected to have a getPConnect extend its props (from BaseProps)
6
+ // such that every component will be expected to have a getPConnect() function
7
+ // that returns a PConnect object. (new/better way of doing .propTypes).
8
+ // This PConnProps can be extended to include other props that we know are in every component
9
+ export interface PConnProps {
10
+ // getPConnect should exist for every C11n component. (add @ts-ignore in special cases where it isn't)
11
+ getPConnect: () => typeof PConnect;
12
+
13
+ // Allow any/all other key/value pairs in the BaseProps for now
14
+ // TODO: refine which other props are always expected for various component
15
+ // types and consider further interface "subclassing". For example, we may
16
+ // want to create a "BasePropsForm" that gives guidance on required, readonly, etc.
17
+ // and any other props that every Form component expects.
18
+ // For example, see the PConnFieldProps below.
19
+ // NOTE: if you uncomment the line below, the PConnProps type will allow
20
+ // otherwise undefined types to appear. This can be helpful for debugging
21
+ // or when adding new components whose types aren't yet known.
22
+ // [key: string]: any;
23
+ }
24
+
25
+
26
+ // PConnFieldProps extends PConnProps to bring in the common properties that are
27
+ // associated with most field components (ex: Dropdown, TextInput, etc.) in the
28
+ // components/field directory
29
+ export interface PConnFieldProps extends PConnProps {
30
+ label: string,
31
+ required: boolean,
32
+ disabled: boolean,
33
+ value: any,
34
+ validatemessage: string,
35
+ status?: string,
36
+ onChange?: any,
37
+ onBlur?: any,
38
+ readOnly: boolean,
39
+ testId: string,
40
+ helperText: string,
41
+ displayMode?: string,
42
+ hideLabel: boolean,
43
+ placeholder?: string,
44
+ fieldMetadata?: any,
45
+ additionalProps?: any
46
+ }
@@ -1,4 +1,4 @@
1
- /* eslint-disable import/no-relative-packages */
1
+
2
2
  /* eslint-disable storybook/prefer-pascal-case */
3
3
  /* eslint-disable react/jsx-no-useless-fragment */
4
4
  import { withKnobs } from '@storybook/addon-knobs';
@@ -6,7 +6,7 @@ import { withKnobs } from '@storybook/addon-knobs';
6
6
  import {{COMPONENT_CLASS_NAME}} from './index.jsx';
7
7
 
8
8
 
9
- import configProps from './mock.stories';
9
+ import configProps from './mock';
10
10
 
11
11
  export default {
12
12
  title: '{{COMPONENT_CLASS_NAME}}',
@@ -14,7 +14,7 @@ export default {
14
14
  component: {{COMPONENT_CLASS_NAME}}
15
15
  };
16
16
 
17
- export const base{{COMPONENT_CLASS_NAME}} = () => {
17
+ export const Base{{COMPONENT_CLASS_NAME}} = () => {
18
18
 
19
19
  const props = {
20
20
  label: configProps.label,
@@ -1,19 +1,31 @@
1
- /* eslint-disable import/no-relative-packages */
2
1
  import PropTypes from 'prop-types';
3
2
  import { AppAnnouncement as PegaAppAnnouncement } from '@pega/cosmos-react-work';
3
+ import type { PConnFieldProps } from './PConnProps';
4
4
 
5
5
  import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
6
6
 
7
+ // interface for props
8
+ interface {{COMPONENT_CLASS_NAME}}Props extends PConnFieldProps {
9
+ // If any, enter additional props that only exist on TextInput here
10
+ datasource: Array<any>;
11
+ header: string;
12
+ description: string;
13
+ whatsnewlink: string;
14
+ image: string;
15
+ }
16
+
7
17
 
8
18
  // Duplicated runtime code from Constellation Design System Component
9
19
 
10
20
  // props passed in combination of props from property panel (config.json) and run time props from Constellation
11
21
  // any default values in config.pros should be set in defaultProps at bottom of this file
12
- export default function {{COMPONENT_CLASS_NAME}}(props) {
22
+ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
13
23
 
14
24
  const { header, description, datasource, whatsnewlink, image } = props;
15
25
  let details = [];
26
+ // @ts-ignore
16
27
  if (datasource && datasource.source) {
28
+ // @ts-ignore
17
29
  details = datasource.source.map((item) => {
18
30
  return item.name;
19
31
  });
@@ -0,0 +1,15 @@
1
+
2
+ // utilizing theming, comment out, if want individual style
3
+ import styled from 'styled-components';
4
+ import { Configuration } from '@pega/cosmos-react-core';
5
+
6
+ export default styled(Configuration)``;
7
+
8
+ // individual style, comment out above, and uncomment here and add styles
9
+ // import styled, { css } from 'styled-components';
10
+ //
11
+ // export default styled.div(() => {
12
+ // return css`
13
+ // margin: 0px 0;
14
+ // `;
15
+ // });
@@ -1,15 +1,23 @@
1
- /* eslint-disable import/no-relative-packages */
2
- /* eslint-disable no-undef */
3
1
  /* eslint-disable react-hooks/rules-of-hooks */
4
2
  import { useEffect, useState } from 'react';
5
3
  import PropTypes from 'prop-types';
6
4
  import { Avatar as CosmosAvatar } from '@pega/cosmos-react-core';
5
+ import type { PConnFieldProps } from './PConnProps';
7
6
 
8
- function Avatar(props) {
7
+
8
+ // interface for props
9
+ interface {{COMPONENT_CLASS_NAME}}AvatarProps extends PConnFieldProps {
10
+ // If any, enter additional props that only exist on TextInput here
11
+ metaObj: any;
12
+ showStatus: boolean;
13
+
14
+ }
15
+
16
+ function Avatar(props: {{COMPONENT_CLASS_NAME}}AvatarProps) {
9
17
  const { metaObj, showStatus } = props;
10
18
  const [imageBlobUrl, setImageBlobUrl] = useState(null);
11
- let userName;
12
- let userIdentifier;
19
+ let userName: string;
20
+ let userIdentifier: string;
13
21
 
14
22
  // TODO Below if conditions can be removed once we have apis to get worklist/mywork info
15
23
  // This is non CaseView case (Dashboard, MyWork etc)
@@ -30,14 +38,15 @@ function Avatar(props) {
30
38
  PCore.getAssetLoader()
31
39
  .getSvcImage(imageKey)
32
40
  .then((blob) => window.URL.createObjectURL(blob))
33
- .then((imagePath) => setImageBlobUrl(imagePath));
41
+ .then((imagePath) => setImageBlobUrl(imagePath as React.SetStateAction<any>));
34
42
  }
35
- }, []);
43
+ }, [metaObj]);
36
44
 
37
45
  if (showStatus) {
38
46
  const currentState = PCore.getMessagingServiceManager().getUserPresence().getUserState(userIdentifier);
39
47
  const [userState, setUserState] = useState(currentState === 'online' ? 'active' : 'inactive');
40
48
 
49
+ // @ts-ignore
41
50
  const handleUserStateChange = ({ state }) => {
42
51
  setUserState(state === 'online' ? 'active' : 'inactive');
43
52
  };
@@ -45,13 +54,15 @@ function Avatar(props) {
45
54
  useEffect(() => {
46
55
  const subId = PCore.getMessagingServiceManager()
47
56
  .getUserPresence()
57
+ // @ts-ignore
48
58
  .subscribe(userIdentifier, handleUserStateChange);
49
59
 
50
60
  return function cleanup() {
51
61
  PCore.getMessagingServiceManager().getUserPresence().unsubscribe(userIdentifier, subId);
52
62
  };
53
- }, []);
54
- return <CosmosAvatar name={userName} imageSrc={imageBlobUrl} status={userState} />;
63
+ }, [userIdentifier, handleUserStateChange]);
64
+ // @ts-ignore
65
+ return <CosmosAvatar name={userName} imageSrc={imageBlobUrl as React.SetStateAction<any>} status={userState} />;
55
66
  }
56
67
 
57
68
  // Do not render when userName does not exists
@@ -60,7 +71,7 @@ function Avatar(props) {
60
71
  return null;
61
72
  }
62
73
 
63
- return <CosmosAvatar name={userName} imageSrc={imageBlobUrl} />;
74
+ return <CosmosAvatar name={userName} imageSrc={imageBlobUrl as React.SetStateAction<any>} />;
64
75
  }
65
76
 
66
77
  Avatar.propTypes = {
@@ -1,5 +1,4 @@
1
- /* eslint-disable import/no-relative-packages */
2
- /* eslint-disable no-undef */
1
+ /* eslint-disable react/jsx-fragments */
3
2
  import { useState, useEffect, Fragment } from 'react';
4
3
  import {
5
4
  Link,
@@ -15,9 +14,23 @@ import {
15
14
  import { Glimpse } from '@pega/cosmos-react-work';
16
15
  import PropTypes from 'prop-types';
17
16
 
18
- import Avatar from './Avatar.jsx';
17
+ import type { PConnFieldProps } from './PConnProps';
19
18
 
20
- const Operator = (props) => {
19
+ import Avatar from './Avatar';
20
+
21
+
22
+ // interface for props
23
+ interface {{COMPONENT_CLASS_NAME}}OperatorProps extends PConnFieldProps {
24
+ // If any, enter additional props that only exist on TextInput here
25
+ name: string;
26
+ id: string;
27
+ label: string;
28
+ metaObj: any;
29
+ externalUser: any;
30
+ }
31
+
32
+
33
+ export default function Operator(props: {{COMPONENT_CLASS_NAME}}OperatorProps) {
21
34
  const { id, name, label, testId, helperText, externalUser, metaObj } = props;
22
35
  const [isOpen, setIsOpen] = useState(false);
23
36
  const [isLoading, setIsLoading] = useState(true);
@@ -39,6 +52,7 @@ const Operator = (props) => {
39
52
  const localizedVal = PCore.getLocaleUtils().getLocaleValue;
40
53
  const localeCategory = 'Operator';
41
54
  setpopoverContent(
55
+ // @ts-ignore
42
56
  <Progress variant='ring' message={localizedVal('Loading operator...', localeCategory)} placement='local' />
43
57
  );
44
58
  if (externalUser && externalUser.classID !== 'Data-Party-Operator') {
@@ -62,8 +76,10 @@ const Operator = (props) => {
62
76
  ];
63
77
  setIsLoading(false);
64
78
  setpopoverContent(
79
+ // @ts-ignore
65
80
  <Glimpse
66
81
  visual={
82
+ // @ts-ignore
67
83
  <Avatar
68
84
  metaObj={{
69
85
  name: externalUser.name
@@ -118,8 +134,10 @@ const Operator = (props) => {
118
134
  ];
119
135
  setIsLoading(false);
120
136
  setpopoverContent(
137
+ // @ts-ignore
121
138
  <Glimpse
122
139
  visual={
140
+ // @ts-ignore
123
141
  <Avatar
124
142
  metaObj={{
125
143
  image: res.data.pyOperatorInfo.pyImageInsKey || '',
@@ -134,12 +152,14 @@ const Operator = (props) => {
134
152
  );
135
153
  } else {
136
154
  setIsLoading(false);
155
+ // @ts-ignore
137
156
  setpopoverContent(<Flex container={{ pad: 1 }}>{localizedVal('Operator not found', localeCategory)}</Flex>);
138
157
  }
139
158
  })
140
159
  .catch(() => {
141
160
  setIsLoading(false);
142
161
  setpopoverContent(
162
+ // @ts-ignore
143
163
  <Flex container={{ pad: 1 }}>{localizedVal('Error loading the operator profile', localeCategory)}</Flex>
144
164
  );
145
165
  });
@@ -148,7 +168,7 @@ const Operator = (props) => {
148
168
 
149
169
  <%={{ }}=%> {{! revert delimiters for mustache }}
150
170
 
151
- const clickAction = (e) => {
171
+ const clickAction = (e: any) => {
152
172
  setPopoverTarget(e.currentTarget);
153
173
  setIsOpen(!isOpen);
154
174
  if (popoverTarget === null) {
@@ -161,8 +181,11 @@ const Operator = (props) => {
161
181
  setIsOpen(false);
162
182
  }
163
183
  };
184
+
185
+ // @ts-ignore
164
186
  useOuterEvent('mousedown', [popoverEl, popoverTarget], hidePopover); // Call the method on clicking outside these elements
165
- const hideOnEscape = (e) => {
187
+
188
+ const hideOnEscape = (e: any) => {
166
189
  if (e.key === 'Escape') hidePopover(); // Call the method when Escape key is pressed
167
190
  };
168
191
 
@@ -178,7 +201,7 @@ const Operator = (props) => {
178
201
  data-test-id={testId}
179
202
  style={label !== null ? { width: 'max-content', height: theme.components.input.height } : undefined}
180
203
  >
181
- <Avatar metaObj={metaObj}></Avatar>
204
+ <Avatar {...props} />
182
205
  </Button>
183
206
  ) : (
184
207
  <Button
@@ -237,5 +260,3 @@ Operator.defaultProps = {
237
260
  helperText: null,
238
261
  metaObj: null
239
262
  };
240
-
241
- export default Operator;
@@ -0,0 +1,46 @@
1
+ import {PConnect } from '@pega/pcore-pconnect-typedefs';
2
+
3
+ // PConnProps.d.ts
4
+ // This gives us a place to have each component (which is most DX Components) that is
5
+ // expected to have a getPConnect extend its props (from BaseProps)
6
+ // such that every component will be expected to have a getPConnect() function
7
+ // that returns a PConnect object. (new/better way of doing .propTypes).
8
+ // This PConnProps can be extended to include other props that we know are in every component
9
+ export interface PConnProps {
10
+ // getPConnect should exist for every C11n component. (add @ts-ignore in special cases where it isn't)
11
+ getPConnect: () => typeof PConnect;
12
+
13
+ // Allow any/all other key/value pairs in the BaseProps for now
14
+ // TODO: refine which other props are always expected for various component
15
+ // types and consider further interface "subclassing". For example, we may
16
+ // want to create a "BasePropsForm" that gives guidance on required, readonly, etc.
17
+ // and any other props that every Form component expects.
18
+ // For example, see the PConnFieldProps below.
19
+ // NOTE: if you uncomment the line below, the PConnProps type will allow
20
+ // otherwise undefined types to appear. This can be helpful for debugging
21
+ // or when adding new components whose types aren't yet known.
22
+ // [key: string]: any;
23
+ }
24
+
25
+
26
+ // PConnFieldProps extends PConnProps to bring in the common properties that are
27
+ // associated with most field components (ex: Dropdown, TextInput, etc.) in the
28
+ // components/field directory
29
+ export interface PConnFieldProps extends PConnProps {
30
+ label: string,
31
+ required: boolean,
32
+ disabled: boolean,
33
+ value: any,
34
+ validatemessage: string,
35
+ status?: string,
36
+ onChange?: any,
37
+ onBlur?: any,
38
+ readOnly: boolean,
39
+ testId: string,
40
+ helperText: string,
41
+ displayMode?: string,
42
+ hideLabel: boolean,
43
+ placeholder?: string,
44
+ fieldMetadata?: any,
45
+ additionalProps?: any
46
+ }
@@ -1,11 +1,10 @@
1
- /* eslint-disable import/no-relative-packages */
2
1
  /* eslint-disable storybook/prefer-pascal-case */
3
2
  /* eslint-disable react/jsx-no-useless-fragment */
4
3
  import { withKnobs } from '@storybook/addon-knobs';
5
4
 
6
5
  import {{COMPONENT_CLASS_NAME}} from './index.jsx';
7
6
 
8
- import { configProps, operatorDetails } from './mock.stories';
7
+ import { configProps, operatorDetails } from './mock';
9
8
 
10
9
  export default {
11
10
  title: '{{COMPONENT_CLASS_NAME}}',
@@ -35,7 +34,7 @@ window.PCore.getUserApi = () => {
35
34
  };
36
35
  };
37
36
 
38
- export const base{{COMPONENT_CLASS_NAME}} = () => {
37
+ export const Base{{COMPONENT_CLASS_NAME}} = () => {
39
38
 
40
39
  const props = {
41
40
  label: configProps.label,
@@ -1,20 +1,40 @@
1
- /* eslint-disable import/no-relative-packages */
1
+
2
2
  /* eslint-disable no-nested-ternary */
3
+ /* eslint-disable react/jsx-fragments */
3
4
  import { Fragment } from 'react';
4
5
  import { DateTimeDisplay, Card, CardHeader, CardContent, Flex } from '@pega/cosmos-react-core';
5
6
  import PropTypes from 'prop-types';
7
+ import type { PConnFieldProps } from './PConnProps';
6
8
 
7
9
  // includes in bundle
8
- import Operator from './Operator.jsx';
10
+ import Operator from './Operator';
9
11
 
10
12
  import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
11
13
 
12
14
 
15
+ // interface for props
16
+ interface {{COMPONENT_CLASS_NAME}}Props extends PConnFieldProps {
17
+ // If any, enter additional props that only exist on TextInput here
18
+ title: string;
19
+ createLabel: string;
20
+ updateLabel: string;
21
+ resolveLabel: string;
22
+ createOperator: any;
23
+ updateOperator: any;
24
+ resolveOperator: any;
25
+ createDateTime: string;
26
+ updateDateTime: string;
27
+ resolveDateTime: string;
28
+ hideLabel: boolean;
29
+
30
+ }
31
+
32
+
13
33
  // Duplicated runtime code from Constellation Design System Component
14
34
 
15
35
  // props passed in combination of props from property panel (config.json) and run time props from Constellation
16
36
  // any default values in config.pros should be set in defaultProps at bottom of this file
17
- export default function {{COMPONENT_CLASS_NAME}}(props) {
37
+ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
18
38
 
19
39
  const {
20
40
  getPConnect,
@@ -49,7 +69,8 @@ export default function {{COMPONENT_CLASS_NAME}}(props) {
49
69
  <CardContent>
50
70
  {{! pick new delimiters for mustache }} {{=<% %>=}}
51
71
  <Flex container={{ direction: 'row'}}>
52
- <Operator label={hideLabel ? null : _label} name={user.userName} id={user.userId} getPConnect={getPConnect} />
72
+ <Operator label={hideLabel ? undefined : _label} name={user.userName} id={user.userId} getPConnect={getPConnect} value={undefined} validatemessage='' hideLabel={false} readOnly={false} required={false} disabled={false} externalUser={undefined} />
73
+
53
74
 
54
75
  <%={{ }}=%> {{! revert delimiters for mustache }}
55
76
  {dateTimeValue && (
@@ -0,0 +1,15 @@
1
+
2
+ // utilizing theming, comment out, if want individual style
3
+ import styled from 'styled-components';
4
+ import { Configuration } from '@pega/cosmos-react-core';
5
+
6
+ export default styled(Configuration)``;
7
+
8
+ // individual style, comment out above, and uncomment here and add styles
9
+ // import styled, { css } from 'styled-components';
10
+ //
11
+ // export default styled.div(() => {
12
+ // return css`
13
+ // margin: 0px 0;
14
+ // `;
15
+ // });
@@ -1,11 +1,11 @@
1
- /* eslint-disable import/no-relative-packages */
1
+
2
2
  /* eslint-disable storybook/prefer-pascal-case */
3
3
  /* eslint-disable react/jsx-no-useless-fragment */
4
4
  import { withKnobs } from '@storybook/addon-knobs';
5
5
 
6
6
  import {{COMPONENT_CLASS_NAME}} from './index.jsx';
7
7
 
8
- import historyData from './mock.stories';
8
+ import historyData from './mock';
9
9
 
10
10
  export default {
11
11
  title: '{{COMPONENT_CLASS_NAME}}',
@@ -43,7 +43,7 @@ window.PCore.getDataApiUtils = () => {
43
43
  };
44
44
  };
45
45
 
46
- export const base{{COMPONENT_CLASS_NAME}} = () => {
46
+ export const Base{{COMPONENT_CLASS_NAME}} = () => {
47
47
 
48
48
  const props = {
49
49
  label: 'Case history',
@@ -1,5 +1,3 @@
1
- /* eslint-disable import/no-relative-packages */
2
- /* eslint-disable no-undef */
3
1
  import { useState, useEffect } from 'react';
4
2
  import PropTypes from 'prop-types';
5
3
  import { Table, Text } from '@pega/cosmos-react-core';
@@ -1,4 +1,4 @@
1
- /* eslint-disable import/no-relative-packages */
1
+
2
2
  // utilizing theming, comment out, if want individual style
3
3
  import styled from 'styled-components';
4
4
  import { Configuration } from '@pega/cosmos-react-core';
@@ -1,5 +1,3 @@
1
- /* eslint-disable import/no-relative-packages */
2
- /* eslint-disable no-undef */
3
1
  /* eslint-disable react-hooks/rules-of-hooks */
4
2
  import { useEffect, useState } from 'react';
5
3
  import PropTypes from 'prop-types';
@@ -32,7 +30,7 @@ function Avatar(props) {
32
30
  .then((blob) => window.URL.createObjectURL(blob))
33
31
  .then((imagePath) => setImageBlobUrl(imagePath));
34
32
  }
35
- }, []);
33
+ }, [metaObj]);
36
34
 
37
35
  if (showStatus) {
38
36
  const currentState = PCore.getMessagingServiceManager().getUserPresence().getUserState(userIdentifier);
@@ -50,7 +48,7 @@ function Avatar(props) {
50
48
  return function cleanup() {
51
49
  PCore.getMessagingServiceManager().getUserPresence().unsubscribe(userIdentifier, subId);
52
50
  };
53
- }, []);
51
+ }, [handleUserStateChange, userIdentifier]);
54
52
  return <CosmosAvatar name={userName} imageSrc={imageBlobUrl} status={userState} />;
55
53
  }
56
54
 
@@ -1,5 +1,4 @@
1
- /* eslint-disable import/no-relative-packages */
2
- /* eslint-disable no-undef */
1
+ /* eslint-disable react/jsx-fragments */
3
2
  import { useState, useEffect, Fragment } from 'react';
4
3
  import {
5
4
  Link,
@@ -1,11 +1,10 @@
1
- /* eslint-disable import/no-relative-packages */
2
1
  /* eslint-disable storybook/prefer-pascal-case */
3
2
  /* eslint-disable react/jsx-no-useless-fragment */
4
3
  import { withKnobs } from '@storybook/addon-knobs';
5
4
 
6
5
  import {{COMPONENT_CLASS_NAME}} from './index.jsx';
7
6
 
8
- import { configProps, operatorDetails } from './mock.stories';
7
+ import { configProps, operatorDetails } from './mock';
9
8
 
10
9
  export default {
11
10
  title: '{{COMPONENT_CLASS_NAME}}',
@@ -35,7 +34,7 @@ window.PCore.getUserApi = () => {
35
34
  };
36
35
  };
37
36
 
38
- export const base{{COMPONENT_CLASS_NAME}} = () => {
37
+ export const Base{{COMPONENT_CLASS_NAME}} = () => {
39
38
 
40
39
  const props = {
41
40
  label: configProps.label,
@@ -1,5 +1,4 @@
1
- /* eslint-disable import/no-relative-packages */
2
- /* eslint-disable no-nested-ternary */
1
+ /* eslint-disable react/jsx-fragments */
3
2
  import { Fragment } from 'react';
4
3
  import { DateTimeDisplay, Card, CardHeader, CardContent, Flex } from '@pega/cosmos-react-core';
5
4
  import PropTypes from 'prop-types';
@@ -1,4 +1,4 @@
1
- /* eslint-disable import/no-relative-packages */
1
+
2
2
  // utilizing theming, comment out, if want individual style
3
3
  import styled from 'styled-components';
4
4
  import { Configuration } from '@pega/cosmos-react-core';