@pega/dx-component-builder-sdk 0.1.0

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 (279) hide show
  1. package/.access_token +1 -0
  2. package/.agilestudio +3 -0
  3. package/.eslintrc.json +18 -0
  4. package/.prettierignore +2 -0
  5. package/.prettierrc.json +1 -0
  6. package/LICENSE +185 -0
  7. package/README.md +199 -0
  8. package/bin/index.js +5 -0
  9. package/cspell.json +26 -0
  10. package/package.json +67 -0
  11. package/src/cli.js +104 -0
  12. package/src/constants.js +134 -0
  13. package/src/tasks/authenticate/helper.js +60 -0
  14. package/src/tasks/authenticate/index.js +81 -0
  15. package/src/tasks/build/helper.js +125 -0
  16. package/src/tasks/build/index.js +52 -0
  17. package/src/tasks/bundle/builder/index.js +218 -0
  18. package/src/tasks/bundle/builder/modules.js +139 -0
  19. package/src/tasks/bundle/builder/paths.js +50 -0
  20. package/src/tasks/bundle/builder/webpack.config.js +336 -0
  21. package/src/tasks/bundle/index.js +65 -0
  22. package/src/tasks/create/index.js +380 -0
  23. package/src/tasks/create/template/config.json.mustache +62 -0
  24. package/src/tasks/create/template/demo.stories.jsx.mustache +44 -0
  25. package/src/tasks/create/template/index.jsx.mustache +55 -0
  26. package/src/tasks/create/template/styles.js.mustache +7 -0
  27. package/src/tasks/create/templates/Constellation/Field/Boolean/Boolean.js.mustache +38 -0
  28. package/src/tasks/create/templates/Constellation/Field/Boolean/boolean-format.js.mustache +26 -0
  29. package/src/tasks/create/templates/Constellation/Field/Boolean/config.json.mustache +145 -0
  30. package/src/tasks/create/templates/Constellation/Field/Boolean/event-utils.js.mustache +18 -0
  31. package/src/tasks/create/templates/Constellation/Field/Boolean/index.jsx.mustache +171 -0
  32. package/src/tasks/create/templates/Constellation/Field/Boolean/styles.js.mustache +7 -0
  33. package/src/tasks/create/templates/Constellation/Field/Date/config.json.mustache +195 -0
  34. package/src/tasks/create/templates/Constellation/Field/Date/date.js.mustache +327 -0
  35. package/src/tasks/create/templates/Constellation/Field/Date/demo.stories.jsx.mustache +44 -0
  36. package/src/tasks/create/templates/Constellation/Field/Date/index.jsx.mustache +254 -0
  37. package/src/tasks/create/templates/Constellation/Field/Date/styles.js.mustache +7 -0
  38. package/src/tasks/create/templates/Constellation/Field/Date/suggestions-handler.js +10 -0
  39. package/src/tasks/create/templates/Constellation/Field/DateTime/config.json.mustache +256 -0
  40. package/src/tasks/create/templates/Constellation/Field/DateTime/date-time.js.mustache +93 -0
  41. package/src/tasks/create/templates/Constellation/Field/DateTime/date-utils.js +286 -0
  42. package/src/tasks/create/templates/Constellation/Field/DateTime/date.js.mustache +327 -0
  43. package/src/tasks/create/templates/Constellation/Field/DateTime/demo.stories.jsx.mustache +44 -0
  44. package/src/tasks/create/templates/Constellation/Field/DateTime/index.jsx.mustache +252 -0
  45. package/src/tasks/create/templates/Constellation/Field/DateTime/styles.js.mustache +7 -0
  46. package/src/tasks/create/templates/Constellation/Field/DateTime/suggestions-handler.js +10 -0
  47. package/src/tasks/create/templates/Constellation/Field/Decimal/config.json.mustache +278 -0
  48. package/src/tasks/create/templates/Constellation/Field/Decimal/demo.stories.jsx.mustache +44 -0
  49. package/src/tasks/create/templates/Constellation/Field/Decimal/event-utils.js.mustache +18 -0
  50. package/src/tasks/create/templates/Constellation/Field/Decimal/index.jsx.mustache +272 -0
  51. package/src/tasks/create/templates/Constellation/Field/Decimal/styles.js.mustache +7 -0
  52. package/src/tasks/create/templates/Constellation/Field/Decimal/suggestions-handler.js +10 -0
  53. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/config.json.mustache +291 -0
  54. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/demo.stories.jsx.mustache +44 -0
  55. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/event-utils.js.mustache +18 -0
  56. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/index.jsx.mustache +300 -0
  57. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/styles.js.mustache +7 -0
  58. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/suggestions-handler.js +10 -0
  59. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/config.json.mustache +93 -0
  60. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/demo.stories.jsx.mustache +44 -0
  61. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/event-utils.js.mustache +18 -0
  62. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/index.jsx.mustache +275 -0
  63. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/styles.js.mustache +7 -0
  64. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/suggestions-handler.js +10 -0
  65. package/src/tasks/create/templates/Constellation/Field/Integer/config.json.mustache +347 -0
  66. package/src/tasks/create/templates/Constellation/Field/Integer/demo.stories.jsx.mustache +44 -0
  67. package/src/tasks/create/templates/Constellation/Field/Integer/event-utils.js.mustache +18 -0
  68. package/src/tasks/create/templates/Constellation/Field/Integer/index.jsx.mustache +335 -0
  69. package/src/tasks/create/templates/Constellation/Field/Integer/styles.js.mustache +7 -0
  70. package/src/tasks/create/templates/Constellation/Field/Integer/suggestions-handler.js +10 -0
  71. package/src/tasks/create/templates/Constellation/Field/Picklist/config.json.mustache +114 -0
  72. package/src/tasks/create/templates/Constellation/Field/Picklist/demo.stories.jsx.mustache +44 -0
  73. package/src/tasks/create/templates/Constellation/Field/Picklist/event-utils.js.mustache +18 -0
  74. package/src/tasks/create/templates/Constellation/Field/Picklist/index.jsx.mustache +308 -0
  75. package/src/tasks/create/templates/Constellation/Field/Picklist/picklist.js.mustache +43 -0
  76. package/src/tasks/create/templates/Constellation/Field/Picklist/styles.js.mustache +7 -0
  77. package/src/tasks/create/templates/Constellation/Field/Picklist/suggestions-handler.js +10 -0
  78. package/src/tasks/create/templates/Constellation/Field/Text/config.json.mustache +62 -0
  79. package/src/tasks/create/templates/Constellation/Field/Text/demo.stories.jsx.mustache +44 -0
  80. package/src/tasks/create/templates/Constellation/Field/Text/index.jsx.mustache +60 -0
  81. package/src/tasks/create/templates/Constellation/Field/Text/styles.js.mustache +7 -0
  82. package/src/tasks/create/templates/Constellation/Field/Text-Email/config.json.mustache +111 -0
  83. package/src/tasks/create/templates/Constellation/Field/Text-Email/demo.stories.jsx.mustache +44 -0
  84. package/src/tasks/create/templates/Constellation/Field/Text-Email/event-utils.js.mustache +18 -0
  85. package/src/tasks/create/templates/Constellation/Field/Text-Email/index.jsx.mustache +189 -0
  86. package/src/tasks/create/templates/Constellation/Field/Text-Email/styles.js.mustache +7 -0
  87. package/src/tasks/create/templates/Constellation/Field/Text-Email/suggestions-handler.js +10 -0
  88. package/src/tasks/create/templates/Constellation/Field/Text-Email/text-email.js.mustache +43 -0
  89. package/src/tasks/create/templates/Constellation/Field/Text-Input/StatusWork.js +27 -0
  90. package/src/tasks/create/templates/Constellation/Field/Text-Input/config.json.mustache +111 -0
  91. package/src/tasks/create/templates/Constellation/Field/Text-Input/demo.stories.jsx.mustache +44 -0
  92. package/src/tasks/create/templates/Constellation/Field/Text-Input/event-utils.js.mustache +18 -0
  93. package/src/tasks/create/templates/Constellation/Field/Text-Input/index.jsx.mustache +196 -0
  94. package/src/tasks/create/templates/Constellation/Field/Text-Input/styles.js.mustache +7 -0
  95. package/src/tasks/create/templates/Constellation/Field/Text-Input/suggestions-handler.js +10 -0
  96. package/src/tasks/create/templates/Constellation/Field/Text-Input/text-input.js.mustache +43 -0
  97. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/config.json.mustache +111 -0
  98. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/demo.stories.jsx.mustache +44 -0
  99. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/event-utils.js.mustache +18 -0
  100. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/index.jsx.mustache +189 -0
  101. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/styles.js.mustache +7 -0
  102. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/suggestions-handler.js +10 -0
  103. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/text-paragraph.js.mustache +43 -0
  104. package/src/tasks/create/templates/Constellation/Field/Text-Phone/config.json.mustache +123 -0
  105. package/src/tasks/create/templates/Constellation/Field/Text-Phone/demo.stories.jsx.mustache +44 -0
  106. package/src/tasks/create/templates/Constellation/Field/Text-Phone/event-utils.js.mustache +18 -0
  107. package/src/tasks/create/templates/Constellation/Field/Text-Phone/index.jsx.mustache +223 -0
  108. package/src/tasks/create/templates/Constellation/Field/Text-Phone/styles.js.mustache +7 -0
  109. package/src/tasks/create/templates/Constellation/Field/Text-Phone/suggestions-handler.js +10 -0
  110. package/src/tasks/create/templates/Constellation/Field/Text-Phone/text-phone.js.mustache +43 -0
  111. package/src/tasks/create/templates/Constellation/Field/Text-URL/config.json.mustache +237 -0
  112. package/src/tasks/create/templates/Constellation/Field/Text-URL/demo.stories.jsx.mustache +44 -0
  113. package/src/tasks/create/templates/Constellation/Field/Text-URL/event-utils.js.mustache +18 -0
  114. package/src/tasks/create/templates/Constellation/Field/Text-URL/index.jsx.mustache +232 -0
  115. package/src/tasks/create/templates/Constellation/Field/Text-URL/styles.js.mustache +7 -0
  116. package/src/tasks/create/templates/Constellation/Field/Text-URL/suggestions-handler.js +10 -0
  117. package/src/tasks/create/templates/Constellation/Field/Text-URL/text-url.js.mustache +172 -0
  118. package/src/tasks/create/templates/Constellation/Field/TimeofDay/config.json.mustache +185 -0
  119. package/src/tasks/create/templates/Constellation/Field/TimeofDay/demo.stories.jsx.mustache +44 -0
  120. package/src/tasks/create/templates/Constellation/Field/TimeofDay/index.jsx.mustache +213 -0
  121. package/src/tasks/create/templates/Constellation/Field/TimeofDay/styles.js.mustache +7 -0
  122. package/src/tasks/create/templates/Constellation/Field/TimeofDay/suggestions-handler.js +10 -0
  123. package/src/tasks/create/templates/Constellation/Field/TimeofDay/time-of-day.js.mustache +286 -0
  124. package/src/tasks/create/templates/Constellation/Template/DETAILS/OneColumnDetails.svg +22 -0
  125. package/src/tasks/create/templates/Constellation/Template/DETAILS/config.json.mustache +35 -0
  126. package/src/tasks/create/templates/Constellation/Template/DETAILS/index.jsx.mustache +88 -0
  127. package/src/tasks/create/templates/Constellation/Template/DETAILS/styles.js.mustache +7 -0
  128. package/src/tasks/create/templates/Constellation/Template/DETAILS/utils.js.mustache +155 -0
  129. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/TwoColumnDetails.svg +28 -0
  130. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/config.json.mustache +42 -0
  131. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/index.jsx.mustache +88 -0
  132. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/styles.js.mustache +7 -0
  133. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/utils.js.mustache +155 -0
  134. package/src/tasks/create/templates/Constellation/Template/FORM/DefaultForm.svg +29 -0
  135. package/src/tasks/create/templates/Constellation/Template/FORM/config.json.mustache +45 -0
  136. package/src/tasks/create/templates/Constellation/Template/FORM/index.jsx.mustache +49 -0
  137. package/src/tasks/create/templates/Constellation/Template/FORM/styles.js.mustache +7 -0
  138. package/src/tasks/create/templates/Constellation/Template/FORM-region/TwoColumn.svg +38 -0
  139. package/src/tasks/create/templates/Constellation/Template/FORM-region/config.json.mustache +27 -0
  140. package/src/tasks/create/templates/Constellation/Template/FORM-region/index.jsx.mustache +51 -0
  141. package/src/tasks/create/templates/Constellation/Template/FORM-region/styles.js.mustache +7 -0
  142. package/src/tasks/create/templates/Constellation/Template/PAGE/GetNextWork.js.mustache +29 -0
  143. package/src/tasks/create/templates/Constellation/Template/PAGE/OneColumnPage.svg +36 -0
  144. package/src/tasks/create/templates/Constellation/Template/PAGE/config.json.mustache +32 -0
  145. package/src/tasks/create/templates/Constellation/Template/PAGE/index.jsx.mustache +68 -0
  146. package/src/tasks/create/templates/Constellation/Template/PAGE/localizations.json.mustache +4 -0
  147. package/src/tasks/create/templates/Constellation/Template/PAGE/styles.js.mustache +7 -0
  148. package/src/tasks/create/templates/Constellation/Template/PAGE/utils.js.mustache +226 -0
  149. package/src/tasks/create/templates/Constellation/Widget/CASE/OneColumnPage.svg +36 -0
  150. package/src/tasks/create/templates/Constellation/Widget/CASE/config.json.mustache +23 -0
  151. package/src/tasks/create/templates/Constellation/Widget/CASE/index.jsx.mustache +75 -0
  152. package/src/tasks/create/templates/Constellation/Widget/CASE/styles.js.mustache +7 -0
  153. package/src/tasks/create/templates/Constellation/Widget/PAGE/OneColumnPage.svg +36 -0
  154. package/src/tasks/create/templates/Constellation/Widget/PAGE/config.json.mustache +59 -0
  155. package/src/tasks/create/templates/Constellation/Widget/PAGE/index.jsx.mustache +48 -0
  156. package/src/tasks/create/templates/Constellation/Widget/PAGE/styles.js.mustache +7 -0
  157. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/Avatar.js.mustache +73 -0
  158. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/OneColumnPage.svg +36 -0
  159. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/Operator.js.mustache +239 -0
  160. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/config.json.mustache +66 -0
  161. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/index.jsx.mustache +110 -0
  162. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/styles.js.mustache +7 -0
  163. package/src/tasks/create/templates/SDK-Angular/Field/__components.md +4 -0
  164. package/src/tasks/create/templates/SDK-Angular/Template/__components.md +4 -0
  165. package/src/tasks/create/templates/SDK-Angular/Widget/__components.md +4 -0
  166. package/src/tasks/create/templates/SDK-React/Field/Boolean/config.json.mustache +73 -0
  167. package/src/tasks/create/templates/SDK-React/Field/Boolean/demo.stories.jsx.mustache +44 -0
  168. package/src/tasks/create/templates/SDK-React/Field/Boolean/index.tsx.mustache +109 -0
  169. package/src/tasks/create/templates/SDK-React/Field/Boolean/styles.js.mustache +7 -0
  170. package/src/tasks/create/templates/SDK-React/Field/Date/config.json.mustache +133 -0
  171. package/src/tasks/create/templates/SDK-React/Field/Date/demo.stories.jsx.mustache +44 -0
  172. package/src/tasks/create/templates/SDK-React/Field/Date/index.tsx.mustache +122 -0
  173. package/src/tasks/create/templates/SDK-React/Field/Date/styles.js.mustache +7 -0
  174. package/src/tasks/create/templates/SDK-React/Field/DateTime/config.json.mustache +190 -0
  175. package/src/tasks/create/templates/SDK-React/Field/DateTime/demo.stories.jsx.mustache +44 -0
  176. package/src/tasks/create/templates/SDK-React/Field/DateTime/index.tsx.mustache +112 -0
  177. package/src/tasks/create/templates/SDK-React/Field/DateTime/styles.js.mustache +7 -0
  178. package/src/tasks/create/templates/SDK-React/Field/Decimal/config.json.mustache +80 -0
  179. package/src/tasks/create/templates/SDK-React/Field/Decimal/demo.stories.jsx.mustache +44 -0
  180. package/src/tasks/create/templates/SDK-React/Field/Decimal/index.tsx.mustache +105 -0
  181. package/src/tasks/create/templates/SDK-React/Field/Decimal/styles.js.mustache +7 -0
  182. package/src/tasks/create/templates/SDK-React/Field/Decimal-Currency/config.json.mustache +111 -0
  183. package/src/tasks/create/templates/SDK-React/Field/Decimal-Currency/demo.stories.jsx.mustache +44 -0
  184. package/src/tasks/create/templates/SDK-React/Field/Decimal-Currency/index.tsx.mustache +131 -0
  185. package/src/tasks/create/templates/SDK-React/Field/Decimal-Currency/styles.js.mustache +7 -0
  186. package/src/tasks/create/templates/SDK-React/Field/Decimal-Percentage/config.json.mustache +80 -0
  187. package/src/tasks/create/templates/SDK-React/Field/Decimal-Percentage/demo.stories.jsx.mustache +44 -0
  188. package/src/tasks/create/templates/SDK-React/Field/Decimal-Percentage/index.tsx.mustache +128 -0
  189. package/src/tasks/create/templates/SDK-React/Field/Decimal-Percentage/styles.js.mustache +7 -0
  190. package/src/tasks/create/templates/SDK-React/Field/Integer/config.json.mustache +74 -0
  191. package/src/tasks/create/templates/SDK-React/Field/Integer/demo.stories.jsx.mustache +44 -0
  192. package/src/tasks/create/templates/SDK-React/Field/Integer/index.tsx.mustache +124 -0
  193. package/src/tasks/create/templates/SDK-React/Field/Integer/styles.js.mustache +7 -0
  194. package/src/tasks/create/templates/SDK-React/Field/Picklist/config.json.mustache +72 -0
  195. package/src/tasks/create/templates/SDK-React/Field/Picklist/demo.stories.jsx.mustache +44 -0
  196. package/src/tasks/create/templates/SDK-React/Field/Picklist/index.tsx.mustache +141 -0
  197. package/src/tasks/create/templates/SDK-React/Field/Picklist/styles.js.mustache +7 -0
  198. package/src/tasks/create/templates/SDK-React/Field/Text/config.json.mustache +69 -0
  199. package/src/tasks/create/templates/SDK-React/Field/Text/demo.stories.jsx.mustache +44 -0
  200. package/src/tasks/create/templates/SDK-React/Field/Text/index.tsx.mustache +119 -0
  201. package/src/tasks/create/templates/SDK-React/Field/Text/styles.js.mustache +7 -0
  202. package/src/tasks/create/templates/SDK-React/Field/Text-Email/config.json.mustache +69 -0
  203. package/src/tasks/create/templates/SDK-React/Field/Text-Email/demo.stories.jsx.mustache +44 -0
  204. package/src/tasks/create/templates/SDK-React/Field/Text-Email/index.tsx.mustache +121 -0
  205. package/src/tasks/create/templates/SDK-React/Field/Text-Email/styles.js.mustache +7 -0
  206. package/src/tasks/create/templates/SDK-React/Field/Text-Input/config.json.mustache +69 -0
  207. package/src/tasks/create/templates/SDK-React/Field/Text-Input/demo.stories.jsx.mustache +44 -0
  208. package/src/tasks/create/templates/SDK-React/Field/Text-Input/index.tsx.mustache +119 -0
  209. package/src/tasks/create/templates/SDK-React/Field/Text-Input/styles.js.mustache +7 -0
  210. package/src/tasks/create/templates/SDK-React/Field/Text-Paragraph/config.json.mustache +69 -0
  211. package/src/tasks/create/templates/SDK-React/Field/Text-Paragraph/demo.stories.jsx.mustache +44 -0
  212. package/src/tasks/create/templates/SDK-React/Field/Text-Paragraph/index.tsx.mustache +123 -0
  213. package/src/tasks/create/templates/SDK-React/Field/Text-Paragraph/styles.js.mustache +7 -0
  214. package/src/tasks/create/templates/SDK-React/Field/Text-Phone/config.json.mustache +81 -0
  215. package/src/tasks/create/templates/SDK-React/Field/Text-Phone/demo.stories.jsx.mustache +44 -0
  216. package/src/tasks/create/templates/SDK-React/Field/Text-Phone/index.tsx.mustache +147 -0
  217. package/src/tasks/create/templates/SDK-React/Field/Text-Phone/styles.js.mustache +7 -0
  218. package/src/tasks/create/templates/SDK-React/Field/Text-URL/config.json.mustache +111 -0
  219. package/src/tasks/create/templates/SDK-React/Field/Text-URL/demo.stories.jsx.mustache +44 -0
  220. package/src/tasks/create/templates/SDK-React/Field/Text-URL/index.tsx.mustache +98 -0
  221. package/src/tasks/create/templates/SDK-React/Field/Text-URL/styles.js.mustache +7 -0
  222. package/src/tasks/create/templates/SDK-React/Field/TimeofDay/config.json.mustache +121 -0
  223. package/src/tasks/create/templates/SDK-React/Field/TimeofDay/demo.stories.jsx.mustache +44 -0
  224. package/src/tasks/create/templates/SDK-React/Field/TimeofDay/index.tsx.mustache +120 -0
  225. package/src/tasks/create/templates/SDK-React/Field/TimeofDay/styles.js.mustache +7 -0
  226. package/src/tasks/create/templates/SDK-React/Template/DETAILS/DefaultForm.svg +29 -0
  227. package/src/tasks/create/templates/SDK-React/Template/DETAILS/config.json.mustache +21 -0
  228. package/src/tasks/create/templates/SDK-React/Template/DETAILS/index.tsx.mustache +45 -0
  229. package/src/tasks/create/templates/SDK-React/Template/DETAILS/styles.js.mustache +7 -0
  230. package/src/tasks/create/templates/SDK-React/Template/DETAILS-region/TwoColumnDetails.svg +28 -0
  231. package/src/tasks/create/templates/SDK-React/Template/DETAILS-region/config.json.mustache +27 -0
  232. package/src/tasks/create/templates/SDK-React/Template/DETAILS-region/index.tsx.mustache +53 -0
  233. package/src/tasks/create/templates/SDK-React/Template/DETAILS-region/styles.js.mustache +7 -0
  234. package/src/tasks/create/templates/SDK-React/Template/FORM/DefaultForm.css +25 -0
  235. package/src/tasks/create/templates/SDK-React/Template/FORM/DefaultForm.svg +29 -0
  236. package/src/tasks/create/templates/SDK-React/Template/FORM/config.json.mustache +45 -0
  237. package/src/tasks/create/templates/SDK-React/Template/FORM/index.tsx.mustache +63 -0
  238. package/src/tasks/create/templates/SDK-React/Template/FORM/styles.js.mustache +7 -0
  239. package/src/tasks/create/templates/SDK-React/Template/FORM-region/TwoColumn.svg +38 -0
  240. package/src/tasks/create/templates/SDK-React/Template/FORM-region/config.json.mustache +49 -0
  241. package/src/tasks/create/templates/SDK-React/Template/FORM-region/index.tsx.mustache +69 -0
  242. package/src/tasks/create/templates/SDK-React/Template/FORM-region/styles.js.mustache +7 -0
  243. package/src/tasks/create/templates/SDK-React/Template/PAGE/OneColumn.tsx.mustache +32 -0
  244. package/src/tasks/create/templates/SDK-React/Template/PAGE/OneColumnPage.svg +28 -0
  245. package/src/tasks/create/templates/SDK-React/Template/PAGE/config.json.mustache +32 -0
  246. package/src/tasks/create/templates/SDK-React/Template/PAGE/index.tsx.mustache +31 -0
  247. package/src/tasks/create/templates/SDK-React/Template/PAGE/styles.js.mustache +7 -0
  248. package/src/tasks/create/templates/SDK-React/Widget/CASE/OneColumnPage.svg +36 -0
  249. package/src/tasks/create/templates/SDK-React/Widget/CASE/config.json.mustache +23 -0
  250. package/src/tasks/create/templates/SDK-React/Widget/CASE/index.tsx.mustache +183 -0
  251. package/src/tasks/create/templates/SDK-React/Widget/CASE/styles.js.mustache +7 -0
  252. package/src/tasks/create/templates/SDK-React/Widget/PAGE/OneColumnPage.svg +36 -0
  253. package/src/tasks/create/templates/SDK-React/Widget/PAGE/config.json.mustache +59 -0
  254. package/src/tasks/create/templates/SDK-React/Widget/PAGE/index.tsx.mustache +78 -0
  255. package/src/tasks/create/templates/SDK-React/Widget/PAGE/styles.js.mustache +7 -0
  256. package/src/tasks/create/templates/SDK-React/Widget/PAGE-CASE/OneColumnPage.svg +36 -0
  257. package/src/tasks/create/templates/SDK-React/Widget/PAGE-CASE/config.json.mustache +66 -0
  258. package/src/tasks/create/templates/SDK-React/Widget/PAGE-CASE/index.tsx.mustache +239 -0
  259. package/src/tasks/create/templates/SDK-React/Widget/PAGE-CASE/styles.js.mustache +7 -0
  260. package/src/tasks/create/templates/SDK-WebComponents/Field/__components.md +4 -0
  261. package/src/tasks/create/templates/SDK-WebComponents/Template/__components.md +4 -0
  262. package/src/tasks/create/templates/SDK-WebComponents/Widget/__components.md +4 -0
  263. package/src/tasks/delete/helper.js +122 -0
  264. package/src/tasks/delete/index.js +45 -0
  265. package/src/tasks/delete-all/helper.js +177 -0
  266. package/src/tasks/delete-all/index.js +45 -0
  267. package/src/tasks/index.js +11 -0
  268. package/src/tasks/linter/index.js +46 -0
  269. package/src/tasks/list/helper.js +118 -0
  270. package/src/tasks/list/index.js +51 -0
  271. package/src/tasks/map/map.js +118 -0
  272. package/src/tasks/publish/helper.js +147 -0
  273. package/src/tasks/publish/index.js +72 -0
  274. package/src/tasks/publish-all/helper.js +139 -0
  275. package/src/tasks/publish-all/index.js +84 -0
  276. package/src/tasks/update/index.js +5 -0
  277. package/src/tasks/upgrade/index.js +31 -0
  278. package/src/tasks/validator/index.js +216 -0
  279. package/src/util.js +442 -0
@@ -0,0 +1,112 @@
1
+ /* eslint-disable react/no-unused-prop-types */
2
+ import React from 'react';
3
+ import { KeyboardDateTimePicker } from '@material-ui/pickers';
4
+ import TextInput from '@pega/react-sdk-components/lib/components/forms/TextInput';
5
+ import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
6
+ import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtensions/FieldValueList';
7
+ import PropTypes from 'prop-types';
8
+
9
+
10
+ import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
11
+
12
+
13
+ // Duplicated runtime code from React SDK
14
+
15
+ // props passed in combination of props from property panel (config.json) and run time props from Constellation
16
+ // any default values in config.pros should be set in defaultProps at bottom of this file
17
+ export default function {{COMPONENT_CLASS_NAME}}(props: any) {
18
+ const {
19
+ getPConnect,
20
+ label,
21
+ required,
22
+ disabled,
23
+ value = '',
24
+ validatemessage,
25
+ status,
26
+ onChange,
27
+ readOnly,
28
+ testId,
29
+ helperText,
30
+ displayMode
31
+ } = props;
32
+ const pConn = getPConnect();
33
+ const actions = pConn.getActionsApi();
34
+ const propName = pConn.getStateProps().value;
35
+ const helperTextToDisplay = validatemessage || helperText;
36
+
37
+ if(displayMode === 'LABELS_LEFT'){
38
+ const field = {
39
+ [label]: value
40
+ };
41
+ return <FieldValueList item={field}/>
42
+ }
43
+
44
+ if (readOnly) {
45
+ // const theReadOnlyComp = <TextInput props />
46
+ return <TextInput {...props} />;
47
+ }
48
+
49
+
50
+ const handleChange = date => {
51
+ const changeValue = date && date.isValid() ? date.toISOString() : null;
52
+ onChange({ value: changeValue });
53
+ };
54
+
55
+ const handleAccept = date => {
56
+ const changeValue = date && date.isValid() ? date.toISOString() : null;
57
+ handleEvent(actions, 'changeNblur', propName, changeValue);
58
+ };
59
+
60
+ return (
61
+ <Styled{{COMPONENT_CLASS_NAME}}Wrapper>
62
+ <KeyboardDateTimePicker
63
+ variant='inline'
64
+ inputVariant='outlined'
65
+ fullWidth
66
+ autoOk
67
+ required={required}
68
+ disabled={disabled}
69
+ placeholder='mm/dd/yyyy hh:mm am'
70
+ format='MM/DD/YYYY hh:mm a'
71
+ mask='__/__/____ __:__ _m'
72
+ minutesStep={5}
73
+ error={status === 'error'}
74
+ helperText={helperTextToDisplay}
75
+ size='small'
76
+ label={label}
77
+ value={value || null}
78
+ onChange={handleChange}
79
+ onAccept={handleAccept}
80
+ data-test-id={testId}
81
+ />
82
+ </Styled{{COMPONENT_CLASS_NAME}}Wrapper>
83
+ );
84
+ }
85
+
86
+ {{COMPONENT_CLASS_NAME}}.defaultProps = {
87
+ value: undefined,
88
+ validatemessage: "",
89
+ helperText: "",
90
+ hideLabel: false,
91
+ disabled: false,
92
+ readOnly: false,
93
+ required: false,
94
+ testId: null,
95
+ displayMode: null,
96
+ variant: "inline"
97
+ };
98
+
99
+ {{COMPONENT_CLASS_NAME}}.propTypes = {
100
+ value: PropTypes.string,
101
+ label: PropTypes.string.isRequired,
102
+ hideLabel: PropTypes.bool,
103
+ getPConnect: PropTypes.func.isRequired,
104
+ validatemessage: PropTypes.string,
105
+ helperText: PropTypes.string,
106
+ disabled: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
107
+ readOnly: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
108
+ required: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
109
+ testId: PropTypes.string,
110
+ displayMode: PropTypes.string,
111
+ variant: PropTypes.string
112
+ };
@@ -0,0 +1,7 @@
1
+ import styled, { css } from 'styled-components';
2
+
3
+ export default styled.div(() => {
4
+ return css`
5
+ margin: 0px 0;
6
+ `;
7
+ });
@@ -0,0 +1,80 @@
1
+ {
2
+ "name": "{{COMPONENT_KEY}}",
3
+ "label": "{{COMPONENT_LABEL}}",
4
+ "description": "{{DESCRIPTION}}",
5
+ "organization": "{{ORGANIZATION}}",
6
+ "version": "{{VERSION}}",
7
+ "library": "{{LIBRARY}}",
8
+ "allowedApplications": {{{ALLOWEDAPPS}}},
9
+ "componentKey": "{{COMPONENT_KEY}}",
10
+ "type": "{{TYPE}}",
11
+ "subtype": {{{SUB_TYPE}}},
12
+ "icon": "images/pz-decimal-active.svg",
13
+ "properties": [
14
+ {
15
+ "name": "label",
16
+ "label": "Field label",
17
+ "format": "TEXT",
18
+ "required": true
19
+ },
20
+ {
21
+ "name": "readOnly",
22
+ "label": "Edit mode",
23
+ "format": "READONLY"
24
+ },
25
+ {
26
+ "name": "decimalPrecision",
27
+ "label": "Decimal places",
28
+ "format": "NUMBER",
29
+ "min": 0
30
+ },
31
+ {
32
+ "name": "showGroupSeparators",
33
+ "label": "Show thousands separator",
34
+ "format": "BOOLEAN"
35
+ },
36
+ {
37
+ "label": "Input settings",
38
+ "format": "GROUP",
39
+ "visibility": "(!readOnly = true)",
40
+ "properties": [
41
+ {
42
+ "name": "placeholder",
43
+ "label": "Placeholder",
44
+ "format": "TEXT"
45
+ },
46
+ {
47
+ "name": "helperText",
48
+ "label": "Helper text",
49
+ "format": "TEXT"
50
+ }
51
+ ]
52
+ },
53
+ {
54
+ "label": "Conditions",
55
+ "format": "GROUP",
56
+ "properties": [
57
+ {
58
+ "name": "required",
59
+ "label": "Required",
60
+ "format": "REQUIRED",
61
+ "visibility": "(!readOnly = true)"
62
+ },
63
+ {
64
+ "name": "disabled",
65
+ "label": "Disabled",
66
+ "format": "DISABLED",
67
+ "visibility": "(!readOnly = true)"
68
+ },
69
+ {
70
+ "name": "visibility",
71
+ "label": "Visibility",
72
+ "format": "VISIBILITY"
73
+ }
74
+ ]
75
+ }
76
+ ],
77
+ "defaultConfig": {
78
+ "label": "@L $this.label"
79
+ }
80
+ }
@@ -0,0 +1,44 @@
1
+ import { useState } from 'react';
2
+ import { withKnobs, text, boolean } from '@storybook/addon-knobs';
3
+
4
+ import {{COMPONENT_CLASS_NAME}} from './index.jsx';
5
+
6
+ export default {
7
+ title: '{{COMPONENT_CLASS_NAME}}',
8
+ decorators: [withKnobs],
9
+ component: {{COMPONENT_CLASS_NAME}}
10
+ };
11
+
12
+ export const Base{{COMPONENT_CLASS_NAME}} = () => {
13
+ const [value, setValue] = useState('test value');
14
+
15
+ const props = {
16
+ getPConnect: () => {
17
+ return {
18
+ getActionsApi: () => {
19
+ return {
20
+ updateFieldValue: (propName, theValue) => {
21
+ setValue(theValue);
22
+ }
23
+ };
24
+ },
25
+ getStateProps: () => {
26
+ return { value: '.name' };
27
+ }
28
+ };
29
+ },
30
+ value,
31
+ placeholder: text('Placeholder', 'Test placeholder'),
32
+ disabled: boolean('Disabled', false),
33
+ readOnly: boolean('Disabled', false),
34
+ required: boolean('Disabled', false),
35
+ label: text('Label', 'Sample Label'),
36
+ testId: text('Test id', 'text-12344566')
37
+ };
38
+
39
+ return (
40
+ <>
41
+ <{{COMPONENT_CLASS_NAME}} {...props} />
42
+ </>
43
+ );
44
+ };
@@ -0,0 +1,105 @@
1
+ /* eslint-disable react/no-unused-prop-types */
2
+ import React from 'react';
3
+ import { TextField } from '@material-ui/core';
4
+ import TextInput from '@pega/react-sdk-components/lib/components/forms/TextInput';
5
+ import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtensions/FieldValueList';
6
+ import PropTypes from 'prop-types';
7
+
8
+
9
+ import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
10
+
11
+
12
+ // Duplicated runtime code from React SDK
13
+
14
+ // props passed in combination of props from property panel (config.json) and run time props from Constellation
15
+ // any default values in config.pros should be set in defaultProps at bottom of this file
16
+ export default function {{COMPONENT_CLASS_NAME}}(props: any) {
17
+ const {
18
+ label,
19
+ required,
20
+ disabled,
21
+ value = '',
22
+ validatemessage,
23
+ status,
24
+ onChange,
25
+ onBlur,
26
+ readOnly,
27
+ helperText,
28
+ displayMode
29
+ } = props;
30
+ const helperTextToDisplay = validatemessage || helperText;
31
+
32
+ if(displayMode === 'LABELS_LEFT'){
33
+ const field = {
34
+ [label]: value
35
+ };
36
+ return <FieldValueList item={field}/>
37
+ }
38
+
39
+ if (readOnly) {
40
+ return <TextInput {...props} />;
41
+ }
42
+
43
+
44
+ return (
45
+ <Styled{{COMPONENT_CLASS_NAME}}Wrapper>
46
+ <TextField
47
+ fullWidth
48
+ variant={readOnly ? 'standard' : 'outlined'}
49
+ helperText={helperTextToDisplay}
50
+ placeholder=''
51
+ size='small'
52
+ required={required}
53
+ disabled={disabled}
54
+ onChange={onChange}
55
+ onBlur={onBlur}
56
+ error={status === 'error'}
57
+ label={label}
58
+ value={value}
59
+ type='text'
60
+ {{! pick new delimiteres for mustache }}
61
+ {{=<% %>=}}
62
+ inputProps={{ inputMode: 'decimal', pattern: '[0-9]*' }}
63
+ <%={{ }}=%> {{! revert delimiteres for mustache }}
64
+ />
65
+ </Styled{{COMPONENT_CLASS_NAME}}Wrapper>
66
+ );
67
+ }
68
+
69
+ {{COMPONENT_CLASS_NAME}}.defaultProps = {
70
+ value: '',
71
+ placeholder: '',
72
+ validatemessage: '',
73
+ helperText: '',
74
+ displayAsStatus: false,
75
+ hideLabel: false,
76
+ disabled: false,
77
+ readOnly: false,
78
+ required: false,
79
+ testId: null,
80
+ fieldMetadata: {},
81
+ additionalProps: {},
82
+ displayMode: null,
83
+ isTableFormatter: false,
84
+ hasSuggestions: false
85
+ };
86
+
87
+ {{COMPONENT_CLASS_NAME}}.propTypes = {
88
+ value: PropTypes.string,
89
+ placeholder: PropTypes.string,
90
+ displayMode: PropTypes.string,
91
+ displayAsStatus: PropTypes.bool,
92
+ label: PropTypes.string.isRequired,
93
+ hideLabel: PropTypes.bool,
94
+ getPConnect: PropTypes.func.isRequired,
95
+ validatemessage: PropTypes.string,
96
+ helperText: PropTypes.string,
97
+ disabled: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
98
+ readOnly: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
99
+ required: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
100
+ testId: PropTypes.string,
101
+ fieldMetadata: PropTypes.objectOf(PropTypes.any),
102
+ additionalProps: PropTypes.objectOf(PropTypes.any),
103
+ isTableFormatter: PropTypes.bool,
104
+ hasSuggestions: PropTypes.bool
105
+ };
@@ -0,0 +1,7 @@
1
+ import styled, { css } from 'styled-components';
2
+
3
+ export default styled.div(() => {
4
+ return css`
5
+ margin: 0px 0;
6
+ `;
7
+ });
@@ -0,0 +1,111 @@
1
+ {
2
+ "name": "{{COMPONENT_KEY}}",
3
+ "label": "{{COMPONENT_LABEL}}",
4
+ "description": "{{DESCRIPTION}}",
5
+ "organization": "{{ORGANIZATION}}",
6
+ "version": "{{VERSION}}",
7
+ "library": "{{LIBRARY}}",
8
+ "allowedApplications": {{{ALLOWEDAPPS}}},
9
+ "componentKey": "{{COMPONENT_KEY}}",
10
+ "type": "{{TYPE}}",
11
+ "subtype": {{{SUB_TYPE}}},
12
+ "icon": "images/pz-currency-active.svg",
13
+ "properties": [
14
+ {
15
+ "name": "label",
16
+ "label": "Label value",
17
+ "format": "TEXT",
18
+ "required": true
19
+ },
20
+ {
21
+ "name": "readOnly",
22
+ "label": "Edit mode",
23
+ "format": "READONLY"
24
+ },
25
+ {
26
+ "format": "CASCADE",
27
+ "source": {
28
+ "format": "SELECT",
29
+ "label": "ISO Code Selection",
30
+ "name": "isoCodeSelection",
31
+ "defaultValue": "constant",
32
+ "source": [
33
+ {
34
+ "key": "constant",
35
+ "value": "Constant"
36
+ },
37
+ {
38
+ "key": "propertyRef",
39
+ "value": "Property Reference"
40
+ }
41
+ ]
42
+ },
43
+ "cascadeElements": [
44
+ {
45
+ "key": "currencyISOCode",
46
+ "format": "TEXT",
47
+ "name": "currencyISOCode",
48
+ "label": "Currency ISO Code",
49
+ "defaultValue": "USD",
50
+ "match": "constant"
51
+ },
52
+ {
53
+ "key": "currencyISOCode",
54
+ "format": "PROPERTY",
55
+ "name": "currencyISOCode",
56
+ "label": "Currency ISO Code",
57
+ "match": "propertyRef"
58
+ }
59
+ ]
60
+ },
61
+ {
62
+ "label": "Input settings",
63
+ "format": "GROUP",
64
+ "visibility": "(!readOnly = true)",
65
+ "properties": [
66
+ {
67
+ "name": "allowDecimals",
68
+ "label": "Allow Decimals",
69
+ "format": "BOOLEAN",
70
+ "defaultValue": true
71
+ },
72
+ {
73
+ "name": "placeholder",
74
+ "label": "Placeholder",
75
+ "format": "TEXT"
76
+ },
77
+ {
78
+ "name": "helperText",
79
+ "label": "Helper text",
80
+ "format": "TEXT"
81
+ }
82
+ ]
83
+ },
84
+ {
85
+ "label": "Conditions",
86
+ "format": "GROUP",
87
+ "properties": [
88
+ {
89
+ "name": "required",
90
+ "label": "Required",
91
+ "format": "REQUIRED",
92
+ "visibility": "(!readOnly = true)"
93
+ },
94
+ {
95
+ "name": "disabled",
96
+ "label": "Disabled",
97
+ "format": "DISABLED",
98
+ "visibility": "(!readOnly = true)"
99
+ },
100
+ {
101
+ "name": "visibility",
102
+ "label": "Visibility",
103
+ "format": "VISIBILITY"
104
+ }
105
+ ]
106
+ }
107
+ ],
108
+ "defaultConfig": {
109
+ "label": "@L $this.label"
110
+ }
111
+ }
@@ -0,0 +1,44 @@
1
+ import { useState } from 'react';
2
+ import { withKnobs, text, boolean } from '@storybook/addon-knobs';
3
+
4
+ import {{COMPONENT_CLASS_NAME}} from './index.jsx';
5
+
6
+ export default {
7
+ title: '{{COMPONENT_CLASS_NAME}}',
8
+ decorators: [withKnobs],
9
+ component: {{COMPONENT_CLASS_NAME}}
10
+ };
11
+
12
+ export const Base{{COMPONENT_CLASS_NAME}} = () => {
13
+ const [value, setValue] = useState('test value');
14
+
15
+ const props = {
16
+ getPConnect: () => {
17
+ return {
18
+ getActionsApi: () => {
19
+ return {
20
+ updateFieldValue: (propName, theValue) => {
21
+ setValue(theValue);
22
+ }
23
+ };
24
+ },
25
+ getStateProps: () => {
26
+ return { value: '.name' };
27
+ }
28
+ };
29
+ },
30
+ value,
31
+ placeholder: text('Placeholder', 'Test placeholder'),
32
+ disabled: boolean('Disabled', false),
33
+ readOnly: boolean('Disabled', false),
34
+ required: boolean('Disabled', false),
35
+ label: text('Label', 'Sample Label'),
36
+ testId: text('Test id', 'text-12344566')
37
+ };
38
+
39
+ return (
40
+ <>
41
+ <{{COMPONENT_CLASS_NAME}} {...props} />
42
+ </>
43
+ );
44
+ };
@@ -0,0 +1,131 @@
1
+ /* eslint-disable react/no-unused-prop-types */
2
+ import React, { useState, useEffect } from 'react';
3
+ import CurrencyTextField from '@unicef/material-ui-currency-textfield';
4
+ import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtensions/FieldValueList';
5
+ import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
6
+ import PropTypes from 'prop-types';
7
+
8
+
9
+ import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
10
+
11
+ // Using control from: https://github.com/unicef/material-ui-currency-textfield
12
+
13
+ // Duplicated runtime code from React SDK
14
+
15
+ // props passed in combination of props from property panel (config.json) and run time props from Constellation
16
+ // any default values in config.pros should be set in defaultProps at bottom of this file
17
+ export default function {{COMPONENT_CLASS_NAME}}(props: any) {
18
+ const {
19
+ getPConnect,
20
+ label,
21
+ required,
22
+ disabled,
23
+ value = '',
24
+ validatemessage,
25
+ status,
26
+ /* onChange, onBlur, */
27
+ readOnly,
28
+ testId,
29
+ helperText,
30
+ displayMode
31
+ } = props;
32
+ const pConn = getPConnect();
33
+ const actions = pConn.getActionsApi();
34
+ const propName = pConn.getStateProps().value;
35
+ const helperTextToDisplay = validatemessage || helperText;
36
+
37
+ let readOnlyProp = {}; // Note: empty if NOT ReadOnly
38
+
39
+ if (readOnly) {
40
+ readOnlyProp = { readOnly: true };
41
+ }
42
+
43
+ let testProp = {};
44
+
45
+ testProp = {
46
+ 'data-test-id': testId
47
+ };
48
+
49
+ const [currValue, setCurrValue] = useState();
50
+
51
+ useEffect(() => {
52
+ // const testVal = value;
53
+ setCurrValue(value.toString());
54
+ }, [value]);
55
+
56
+ if(displayMode === 'LABELS_LEFT'){
57
+ const field = {
58
+ [label]: value
59
+ };
60
+ return <FieldValueList item={field}/>
61
+ }
62
+
63
+ function currOnChange(event, inValue) {
64
+ // console.log(`Currency currOnChange inValue: ${inValue}`);
65
+
66
+ // update internal value
67
+ setCurrValue(inValue);
68
+ }
69
+
70
+ function currOnBlur(event, inValue) {
71
+ // console.log(`Currency currOnBlur inValue: ${inValue}`);
72
+ handleEvent(actions, 'changeNblur', propName, inValue !== '' ? Number(inValue) : inValue);
73
+ }
74
+
75
+
76
+ return (
77
+ <Styled{{COMPONENT_CLASS_NAME}}Wrapper>
78
+ <CurrencyTextField
79
+ fullWidth
80
+ variant={readOnly ? 'standard' : 'outlined'}
81
+ helperText={helperTextToDisplay}
82
+ placeholder=''
83
+ size='small'
84
+ required={required}
85
+ disabled={disabled}
86
+ onChange={currOnChange}
87
+ onBlur={currOnBlur}
88
+ error={status === 'error'}
89
+ label={label}
90
+ value={currValue}
91
+ type='text'
92
+ outputFormat='number'
93
+ textAlign='left'
94
+ {{! pick new delimiteres for mustache }}
95
+ {{=<% %>=}}
96
+ InputProps={{ ...readOnlyProp, inputProps: { ...testProp, value: currValue } }}
97
+ <%={{ }}=%> {{! revert delimiteres for mustache }}
98
+ />
99
+ </Styled{{COMPONENT_CLASS_NAME}}Wrapper>
100
+ );
101
+ }
102
+
103
+ {{COMPONENT_CLASS_NAME}}.defaultProps = {
104
+ value: '',
105
+ placeholder: '',
106
+ validatemessage: '',
107
+ helperText: '',
108
+ displayAsStatus: false,
109
+ hideLabel: false,
110
+ disabled: false,
111
+ readOnly: false,
112
+ required: false,
113
+ testId: null,
114
+ displayMode: null
115
+ };
116
+
117
+ {{COMPONENT_CLASS_NAME}}.propTypes = {
118
+ value: PropTypes.string,
119
+ placeholder: PropTypes.string,
120
+ displayMode: PropTypes.string,
121
+ displayAsStatus: PropTypes.bool,
122
+ label: PropTypes.string.isRequired,
123
+ hideLabel: PropTypes.bool,
124
+ getPConnect: PropTypes.func.isRequired,
125
+ validatemessage: PropTypes.string,
126
+ helperText: PropTypes.string,
127
+ disabled: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
128
+ readOnly: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
129
+ required: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
130
+ testId: PropTypes.string
131
+ };
@@ -0,0 +1,7 @@
1
+ import styled, { css } from 'styled-components';
2
+
3
+ export default styled.div(() => {
4
+ return css`
5
+ margin: 0px 0;
6
+ `;
7
+ });