@pega/dx-component-builder-sdk 0.1.47 → 0.1.49

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 (268) hide show
  1. package/package.json +3 -2
  2. package/src/auth.js +726 -508
  3. package/src/cli.js +1 -1
  4. package/src/constants.js +728 -2
  5. package/src/tasks/authenticate/index.js +12 -2
  6. package/src/tasks/build/helper.js +10 -6
  7. package/src/tasks/build/index.js +76 -22
  8. package/src/tasks/build-all/helper.js +16 -11
  9. package/src/tasks/build-all/index.js +106 -42
  10. package/src/tasks/bundle/{builder → builderAngular}/paths.js +3 -2
  11. package/src/tasks/bundle/builderAngular/webpack.config.js +342 -0
  12. package/src/tasks/bundle/builderAssociated/index.js +218 -0
  13. package/src/tasks/bundle/builderAssociated/modules.js +139 -0
  14. package/src/tasks/bundle/builderAssociated/paths.js +51 -0
  15. package/src/tasks/bundle/{builder → builderAssociated}/webpack.config.js +5 -4
  16. package/src/tasks/bundle/builderReact/index.js +218 -0
  17. package/src/tasks/bundle/builderReact/modules.js +139 -0
  18. package/src/tasks/bundle/builderReact/paths.js +51 -0
  19. package/src/tasks/bundle/builderReact/webpack.config.js +337 -0
  20. package/src/tasks/bundle/index.js +122 -5
  21. package/src/tasks/create/index.js +54 -12
  22. package/src/tasks/create/templates/Constellation/field/Boolean/styles.js.mustache +13 -6
  23. package/src/tasks/create/templates/Constellation/field/Date/DateFormatter.js.mustache +7 -7
  24. package/src/tasks/create/templates/Constellation/field/Date/date.js.mustache +8 -8
  25. package/src/tasks/create/templates/Constellation/field/Date/styles.js.mustache +13 -6
  26. package/src/tasks/create/templates/Constellation/field/DateTime/date-time.js.mustache +10 -10
  27. package/src/tasks/create/templates/Constellation/field/DateTime/date-utils.js.mustache +6 -5
  28. package/src/tasks/create/templates/Constellation/field/DateTime/date.js.mustache +6 -3
  29. package/src/tasks/create/templates/Constellation/field/DateTime/styles.js.mustache +13 -6
  30. package/src/tasks/create/templates/Constellation/field/Decimal/index.jsx.mustache +2 -2
  31. package/src/tasks/create/templates/Constellation/field/Decimal/styles.js.mustache +13 -6
  32. package/src/tasks/create/templates/Constellation/field/Decimal-Currency/index.jsx.mustache +2 -2
  33. package/src/tasks/create/templates/Constellation/field/Decimal-Currency/styles.js.mustache +13 -6
  34. package/src/tasks/create/templates/Constellation/field/Decimal-Percentage/index.jsx.mustache +4 -4
  35. package/src/tasks/create/templates/Constellation/field/Decimal-Percentage/styles.js.mustache +13 -6
  36. package/src/tasks/create/templates/Constellation/field/Integer/index.jsx.mustache +2 -2
  37. package/src/tasks/create/templates/Constellation/field/Integer/styles.js.mustache +13 -6
  38. package/src/tasks/create/templates/Constellation/field/Picklist/styles.js.mustache +13 -6
  39. package/src/tasks/create/templates/Constellation/field/Text/styles.js.mustache +13 -6
  40. package/src/tasks/create/templates/Constellation/field/Text-Email/styles.js.mustache +13 -6
  41. package/src/tasks/create/templates/Constellation/field/Text-Input/styles.js.mustache +13 -6
  42. package/src/tasks/create/templates/Constellation/field/Text-Paragraph/styles.js.mustache +13 -6
  43. package/src/tasks/create/templates/Constellation/field/Text-Phone/index.jsx.mustache +0 -1
  44. package/src/tasks/create/templates/Constellation/field/Text-Phone/styles.js.mustache +13 -6
  45. package/src/tasks/create/templates/Constellation/field/Text-URL/styles.js.mustache +13 -6
  46. package/src/tasks/create/templates/Constellation/field/TimeOfDay/styles.js.mustache +14 -0
  47. package/src/tasks/create/templates/Constellation/field/{TimeofDay → TimeOfDay}/time-of-day.js.mustache +6 -5
  48. package/src/tasks/create/templates/Constellation/template/DETAILS/demo.stories.jsx.mustache +20 -6
  49. package/src/tasks/create/templates/Constellation/template/DETAILS/index.jsx.mustache +2 -2
  50. package/src/tasks/create/templates/Constellation/template/DETAILS/mock.stories.js.mustache +20 -10
  51. package/src/tasks/create/templates/Constellation/template/DETAILS/styles.js.mustache +13 -6
  52. package/src/tasks/create/templates/Constellation/template/DETAILS-region/demo.stories.jsx.mustache +20 -7
  53. package/src/tasks/create/templates/Constellation/template/DETAILS-region/index.jsx.mustache +2 -2
  54. package/src/tasks/create/templates/Constellation/template/DETAILS-region/mock.stories.js.mustache +28 -13
  55. package/src/tasks/create/templates/Constellation/template/DETAILS-region/styles.js.mustache +13 -6
  56. package/src/tasks/create/templates/Constellation/template/FORM/demo.stories.jsx.mustache +92 -16
  57. package/src/tasks/create/templates/Constellation/template/FORM/index.jsx.mustache +2 -2
  58. package/src/tasks/create/templates/Constellation/template/FORM/mock.stories.js.mustache +24 -12
  59. package/src/tasks/create/templates/Constellation/template/FORM/styles.js.mustache +13 -6
  60. package/src/tasks/create/templates/Constellation/template/FORM-region/demo.stories.jsx.mustache +91 -13
  61. package/src/tasks/create/templates/Constellation/template/FORM-region/index.jsx.mustache +2 -2
  62. package/src/tasks/create/templates/Constellation/template/FORM-region/mock.stories.js.mustache +24 -12
  63. package/src/tasks/create/templates/Constellation/template/FORM-region/styles.js.mustache +13 -6
  64. package/src/tasks/create/templates/Constellation/template/PAGE/demo.stories.jsx.mustache +1 -0
  65. package/src/tasks/create/templates/Constellation/template/PAGE/styles.js.mustache +13 -6
  66. package/src/tasks/create/templates/Constellation/widget/CASE/index.jsx.mustache +2 -2
  67. package/src/tasks/create/templates/Constellation/widget/CASE/styles.js.mustache +13 -6
  68. package/src/tasks/create/templates/Constellation/widget/PAGE/styles.js.mustache +13 -6
  69. package/src/tasks/create/templates/Constellation/widget/PAGE-CASE/Operator.jsx.mustache +2 -2
  70. package/src/tasks/create/templates/Constellation/widget/PAGE-CASE/index.jsx.mustache +2 -2
  71. package/src/tasks/create/templates/Constellation/widget/PAGE-CASE/styles.js.mustache +13 -6
  72. package/src/tasks/create/templates/SDK-Angular/field/Boolean/boolean.component.html.mustache +42 -0
  73. package/src/tasks/create/templates/SDK-Angular/field/Boolean/boolean.component.scss.mustache +24 -0
  74. package/src/tasks/create/templates/SDK-Angular/field/Boolean/boolean.component.spec.ts.mustache +25 -0
  75. package/src/tasks/create/templates/SDK-Angular/field/Boolean/boolean.component.ts.mustache +165 -0
  76. package/src/tasks/create/templates/SDK-Angular/field/Boolean/config.json.mustache +87 -0
  77. package/src/tasks/create/templates/SDK-Angular/field/Boolean/demo.stories.jsx.mustache +56 -0
  78. package/src/tasks/create/templates/SDK-Angular/field/Boolean/mock.stories.js.mustache +15 -0
  79. package/src/tasks/create/templates/SDK-Angular/field/Date/config.json.mustache +147 -0
  80. package/src/tasks/create/templates/SDK-Angular/field/Date/date.component.html.mustache +35 -0
  81. package/src/tasks/create/templates/SDK-Angular/field/Date/date.component.scss.mustache +20 -0
  82. package/src/tasks/create/templates/SDK-Angular/field/Date/date.component.spec.ts.mustache +25 -0
  83. package/src/tasks/create/templates/SDK-Angular/field/Date/date.component.ts.mustache +209 -0
  84. package/src/tasks/create/templates/SDK-Angular/field/DateTime/config.json.mustache +204 -0
  85. package/src/tasks/create/templates/SDK-Angular/field/DateTime/date-time.component.html.mustache +31 -0
  86. package/src/tasks/create/templates/SDK-Angular/field/DateTime/date-time.component.scss.mustache +20 -0
  87. package/src/tasks/create/templates/SDK-Angular/field/DateTime/date-time.component.spec.ts.mustache +25 -0
  88. package/src/tasks/create/templates/SDK-Angular/field/DateTime/date-time.component.ts.mustache +177 -0
  89. package/src/tasks/create/templates/SDK-Angular/field/Decimal/config.json.mustache +94 -0
  90. package/src/tasks/create/templates/SDK-Angular/field/Decimal/decimal.component.html.mustache +32 -0
  91. package/src/tasks/create/templates/SDK-Angular/field/Decimal/decimal.component.scss.mustache +20 -0
  92. package/src/tasks/create/templates/SDK-Angular/field/Decimal/decimal.component.spec.ts.mustache +25 -0
  93. package/src/tasks/create/templates/SDK-Angular/field/Decimal/decimal.component.ts.mustache +170 -0
  94. package/src/tasks/create/templates/SDK-Angular/field/Decimal-Currency/config.json.mustache +125 -0
  95. package/src/tasks/create/templates/SDK-Angular/field/Decimal-Currency/decimal-currency.component.html.mustache +33 -0
  96. package/src/tasks/create/templates/SDK-Angular/field/Decimal-Currency/decimal-currency.component.scss.mustache +20 -0
  97. package/src/tasks/create/templates/SDK-Angular/field/Decimal-Currency/decimal-currency.component.spec.ts.mustache +25 -0
  98. package/src/tasks/create/templates/SDK-Angular/field/Decimal-Currency/decimal-currency.component.ts.mustache +175 -0
  99. package/src/tasks/create/templates/SDK-Angular/field/Decimal-Percentage/config.json.mustache +94 -0
  100. package/src/tasks/create/templates/SDK-Angular/field/Decimal-Percentage/decimal-percentage.component.html.mustache +33 -0
  101. package/src/tasks/create/templates/SDK-Angular/field/Decimal-Percentage/decimal-percentage.component.scss.mustache +20 -0
  102. package/src/tasks/create/templates/SDK-Angular/field/Decimal-Percentage/decimal-percentage.component.spec.ts.mustache +25 -0
  103. package/src/tasks/create/templates/SDK-Angular/field/Decimal-Percentage/decimal-percentage.component.ts.mustache +176 -0
  104. package/src/tasks/create/templates/SDK-Angular/field/Integer/config.json.mustache +88 -0
  105. package/src/tasks/create/templates/SDK-Angular/field/Integer/integer.component.html.mustache +33 -0
  106. package/src/tasks/create/templates/SDK-Angular/field/Integer/integer.component.scss.mustache +20 -0
  107. package/src/tasks/create/templates/SDK-Angular/field/Integer/integer.component.spec.ts.mustache +25 -0
  108. package/src/tasks/create/templates/SDK-Angular/field/Integer/integer.component.ts.mustache +180 -0
  109. package/src/tasks/create/templates/SDK-Angular/field/Picklist/config.json.mustache +86 -0
  110. package/src/tasks/create/templates/SDK-Angular/field/Picklist/picklist.component.html.mustache +30 -0
  111. package/src/tasks/create/templates/SDK-Angular/field/Picklist/picklist.component.scss.mustache +25 -0
  112. package/src/tasks/create/templates/SDK-Angular/field/Picklist/picklist.component.spec.ts.mustache +25 -0
  113. package/src/tasks/create/templates/SDK-Angular/field/Picklist/picklist.component.ts.mustache +195 -0
  114. package/src/tasks/create/templates/SDK-Angular/field/Text/config.json.mustache +83 -0
  115. package/src/tasks/create/templates/SDK-Angular/field/Text/text.component.html.mustache +17 -0
  116. package/src/tasks/create/templates/SDK-Angular/field/Text/text.component.scss.mustache +30 -0
  117. package/src/tasks/create/templates/SDK-Angular/field/Text/text.component.spec.ts.mustache +25 -0
  118. package/src/tasks/create/templates/SDK-Angular/field/Text/text.component.ts.mustache +145 -0
  119. package/src/tasks/create/templates/SDK-Angular/field/Text-Email/config.json.mustache +83 -0
  120. package/src/tasks/create/templates/SDK-Angular/field/Text-Email/text-email.component.html.mustache +31 -0
  121. package/src/tasks/create/templates/SDK-Angular/field/Text-Email/text-email.component.scss.mustache +20 -0
  122. package/src/tasks/create/templates/SDK-Angular/field/Text-Email/text-email.component.spec.ts.mustache +25 -0
  123. package/src/tasks/create/templates/SDK-Angular/field/Text-Email/text-email.component.ts.mustache +175 -0
  124. package/src/tasks/create/templates/SDK-Angular/field/Text-Input/config.json.mustache +83 -0
  125. package/src/tasks/create/templates/SDK-Angular/field/Text-Input/text.component.html.mustache +31 -0
  126. package/src/tasks/create/templates/SDK-Angular/field/Text-Input/text.component.scss.mustache +20 -0
  127. package/src/tasks/create/templates/SDK-Angular/field/Text-Input/text.component.spec.ts.mustache +25 -0
  128. package/src/tasks/create/templates/SDK-Angular/field/Text-Input/text.component.ts.mustache +177 -0
  129. package/src/tasks/create/templates/SDK-Angular/field/Text-Paragraph/config.json.mustache +83 -0
  130. package/src/tasks/create/templates/SDK-Angular/field/Text-Paragraph/text-paragraph.component.html.mustache +31 -0
  131. package/src/tasks/create/templates/SDK-Angular/field/Text-Paragraph/text-paragraph.component.scss.mustache +20 -0
  132. package/src/tasks/create/templates/SDK-Angular/field/Text-Paragraph/text-paragraph.component.spec.ts.mustache +25 -0
  133. package/src/tasks/create/templates/SDK-Angular/field/Text-Paragraph/text-paragraph.component.ts.mustache +179 -0
  134. package/src/tasks/create/templates/SDK-Angular/field/Text-Phone/config.json.mustache +95 -0
  135. package/src/tasks/create/templates/SDK-Angular/field/Text-Phone/text-phone.component.html.mustache +30 -0
  136. package/src/tasks/create/templates/SDK-Angular/field/Text-Phone/text-phone.component.scss.mustache +81 -0
  137. package/src/tasks/create/templates/SDK-Angular/field/Text-Phone/text-phone.component.spec.ts.mustache +25 -0
  138. package/src/tasks/create/templates/SDK-Angular/field/Text-Phone/text-phone.component.ts.mustache +194 -0
  139. package/src/tasks/create/templates/SDK-Angular/field/Text-URL/config.json.mustache +111 -0
  140. package/src/tasks/create/templates/SDK-Angular/field/Text-URL/text-url.component.html.mustache +30 -0
  141. package/src/tasks/create/templates/SDK-Angular/field/Text-URL/text-url.component.scss.mustache +20 -0
  142. package/src/tasks/create/templates/SDK-Angular/field/Text-URL/text-url.component.spec.ts.mustache +26 -0
  143. package/src/tasks/create/templates/SDK-Angular/field/Text-URL/text-url.component.ts.mustache +174 -0
  144. package/src/tasks/create/templates/SDK-Angular/field/TimeOfDay/time-of-day.component.html.mustache +30 -0
  145. package/src/tasks/create/templates/SDK-Angular/field/TimeOfDay/time-of-day.component.scss.mustache +20 -0
  146. package/src/tasks/create/templates/SDK-Angular/field/TimeOfDay/time-of-day.component.spec.ts.mustache +25 -0
  147. package/src/tasks/create/templates/SDK-Angular/field/TimeOfDay/time-of-day.component.ts.mustache +172 -0
  148. package/src/tasks/create/templates/SDK-Angular/template/DETAILS/DefaultForm.svg +29 -0
  149. package/src/tasks/create/templates/SDK-Angular/template/DETAILS/config.json.mustache +21 -0
  150. package/src/tasks/create/templates/SDK-Angular/template/DETAILS/demo.stories.jsx.mustache +71 -0
  151. package/src/tasks/create/templates/SDK-Angular/template/DETAILS/details.component.html.mustache +7 -0
  152. package/src/tasks/create/templates/SDK-Angular/template/DETAILS/details.component.scss.mustache +7 -0
  153. package/src/tasks/create/templates/SDK-Angular/template/DETAILS/details.component.spec.ts.mustache +25 -0
  154. package/src/tasks/create/templates/SDK-Angular/template/DETAILS/details.component.ts.mustache +121 -0
  155. package/src/tasks/create/templates/SDK-Angular/template/DETAILS/mock.stories.js.mustache +294 -0
  156. package/src/tasks/create/templates/SDK-Angular/template/DETAILS-region/TwoColumnDetails.svg +28 -0
  157. package/src/tasks/create/templates/SDK-Angular/template/DETAILS-region/config.json.mustache +27 -0
  158. package/src/tasks/create/templates/SDK-Angular/template/DETAILS-region/demo.stories.jsx.mustache +73 -0
  159. package/src/tasks/create/templates/SDK-Angular/template/DETAILS-region/details.component.html.mustache +6 -0
  160. package/src/tasks/create/templates/SDK-Angular/template/DETAILS-region/details.component.scss.mustache +7 -0
  161. package/src/tasks/create/templates/SDK-Angular/template/DETAILS-region/details.component.spec.ts.mustache +25 -0
  162. package/src/tasks/create/templates/SDK-Angular/template/DETAILS-region/details.component.ts.mustache +92 -0
  163. package/src/tasks/create/templates/SDK-Angular/template/DETAILS-region/mock.stories.js.mustache +290 -0
  164. package/src/tasks/create/templates/SDK-Angular/template/FORM/DefaultForm.svg +29 -0
  165. package/src/tasks/create/templates/SDK-Angular/template/FORM/config.json.mustache +45 -0
  166. package/src/tasks/create/templates/SDK-Angular/template/FORM/demo.stories.jsx.mustache +215 -0
  167. package/src/tasks/create/templates/SDK-Angular/template/FORM/form.component.html.mustache +23 -0
  168. package/src/tasks/create/templates/SDK-Angular/template/FORM/form.component.scss.mustache +33 -0
  169. package/src/tasks/create/templates/SDK-Angular/template/FORM/form.component.spec.ts.mustache +25 -0
  170. package/src/tasks/create/templates/SDK-Angular/template/FORM/form.component.ts.mustache +71 -0
  171. package/src/tasks/create/templates/SDK-Angular/template/FORM-region/TwoColumn.svg +38 -0
  172. package/src/tasks/create/templates/SDK-Angular/template/FORM-region/config.json.mustache +49 -0
  173. package/src/tasks/create/templates/SDK-Angular/template/FORM-region/demo.stories.jsx.mustache +183 -0
  174. package/src/tasks/create/templates/SDK-Angular/template/FORM-region/form.component.html.mustache +16 -0
  175. package/src/tasks/create/templates/SDK-Angular/template/FORM-region/form.component.scss.mustache +28 -0
  176. package/src/tasks/create/templates/SDK-Angular/template/FORM-region/form.component.spec.ts.mustache +25 -0
  177. package/src/tasks/create/templates/SDK-Angular/template/FORM-region/form.component.ts.mustache +26 -0
  178. package/src/tasks/create/templates/SDK-Angular/template/FORM-region/mock.stories.js.mustache +132 -0
  179. package/src/tasks/create/templates/SDK-Angular/template/PAGE/OneColumnPage.svg +28 -0
  180. package/src/tasks/create/templates/SDK-Angular/template/PAGE/config.json.mustache +32 -0
  181. package/src/tasks/create/templates/SDK-Angular/template/PAGE/demo.stories.jsx.mustache +80 -0
  182. package/src/tasks/create/templates/SDK-Angular/template/PAGE/mock.stories.js.mustache +115 -0
  183. package/src/tasks/create/templates/SDK-Angular/template/PAGE/page.component.html.mustache +15 -0
  184. package/src/tasks/create/templates/SDK-Angular/template/PAGE/page.component.scss.mustache +3 -0
  185. package/src/tasks/create/templates/SDK-Angular/template/PAGE/page.component.spec.ts.mustache +25 -0
  186. package/src/tasks/create/templates/SDK-Angular/template/PAGE/page.component.ts.mustache +63 -0
  187. package/src/tasks/create/templates/SDK-Angular/widget/CASE/OneColumnPage.svg +36 -0
  188. package/src/tasks/create/templates/SDK-Angular/widget/CASE/case.component.html.mustache +15 -0
  189. package/src/tasks/create/templates/SDK-Angular/widget/CASE/case.component.scss.mustache +22 -0
  190. package/src/tasks/create/templates/SDK-Angular/widget/CASE/case.component.spec.ts.mustache +25 -0
  191. package/src/tasks/create/templates/SDK-Angular/widget/CASE/case.component.ts.mustache +111 -0
  192. package/src/tasks/create/templates/SDK-Angular/widget/CASE/config.json.mustache +23 -0
  193. package/src/tasks/create/templates/SDK-Angular/widget/CASE/demo.stories.jsx.mustache +70 -0
  194. package/src/tasks/create/templates/SDK-Angular/widget/CASE/mock.stories.js.mustache +390 -0
  195. package/src/tasks/create/templates/SDK-Angular/widget/PAGE/OneColumnPage.svg +36 -0
  196. package/src/tasks/create/templates/SDK-Angular/widget/PAGE/config.json.mustache +59 -0
  197. package/src/tasks/create/templates/SDK-Angular/widget/PAGE/demo.stories.jsx.mustache +29 -0
  198. package/src/tasks/create/templates/SDK-Angular/widget/PAGE/mock.stories.js.mustache +23 -0
  199. package/src/tasks/create/templates/SDK-Angular/widget/PAGE/page.component.html.mustache +17 -0
  200. package/src/tasks/create/templates/SDK-Angular/widget/PAGE/page.component.scss.mustache +19 -0
  201. package/src/tasks/create/templates/SDK-Angular/widget/PAGE/page.component.ts.mustache +32 -0
  202. package/src/tasks/create/templates/SDK-Angular/widget/PAGE/pagecomponent.spec.ts.mustache +25 -0
  203. package/src/tasks/create/templates/SDK-Angular/widget/PAGE-CASE/OneColumnPage.svg +36 -0
  204. package/src/tasks/create/templates/SDK-Angular/widget/PAGE-CASE/config.json.mustache +66 -0
  205. package/src/tasks/create/templates/SDK-Angular/widget/PAGE-CASE/demo.stories.jsx.mustache +52 -0
  206. package/src/tasks/create/templates/SDK-Angular/widget/PAGE-CASE/mock.stories.js.mustache +52 -0
  207. package/src/tasks/create/templates/SDK-Angular/widget/PAGE-CASE/page-case.component.html.mustache +28 -0
  208. package/src/tasks/create/templates/SDK-Angular/widget/PAGE-CASE/page-case.component.scss.mustache +137 -0
  209. package/src/tasks/create/templates/SDK-Angular/widget/PAGE-CASE/page-case.component.spec.ts.mustache +25 -0
  210. package/src/tasks/create/templates/SDK-Angular/widget/PAGE-CASE/page-case.component.ts.mustache +115 -0
  211. package/src/tasks/create/templates/SDK-React/field/Boolean/index.tsx.mustache +3 -3
  212. package/src/tasks/create/templates/SDK-React/field/Date/index.tsx.mustache +2 -2
  213. package/src/tasks/create/templates/SDK-React/field/DateTime/index.tsx.mustache +6 -7
  214. package/src/tasks/create/templates/SDK-React/field/Decimal/demo.stories.jsx.mustache +5 -1
  215. package/src/tasks/create/templates/SDK-React/field/Decimal/index.tsx.mustache +78 -28
  216. package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/index.tsx.mustache +3 -3
  217. package/src/tasks/create/templates/SDK-React/field/Decimal-Percentage/index.tsx.mustache +2 -2
  218. package/src/tasks/create/templates/SDK-React/field/Integer/index.tsx.mustache +2 -2
  219. package/src/tasks/create/templates/SDK-React/field/Picklist/demo.stories.jsx.mustache +13 -0
  220. package/src/tasks/create/templates/SDK-React/field/Picklist/index.tsx.mustache +30 -10
  221. package/src/tasks/create/templates/SDK-React/field/Text/index.tsx.mustache +2 -2
  222. package/src/tasks/create/templates/SDK-React/field/Text-Email/index.tsx.mustache +2 -2
  223. package/src/tasks/create/templates/SDK-React/field/Text-Input/index.tsx.mustache +2 -2
  224. package/src/tasks/create/templates/SDK-React/field/Text-Paragraph/index.tsx.mustache +2 -2
  225. package/src/tasks/create/templates/SDK-React/field/Text-Phone/index.tsx.mustache +6 -5
  226. package/src/tasks/create/templates/SDK-React/field/Text-URL/index.tsx.mustache +11 -0
  227. package/src/tasks/create/templates/SDK-React/field/TimeOfDay/config.json.mustache +135 -0
  228. package/src/tasks/create/templates/SDK-React/field/{TimeofDay → TimeOfDay}/index.tsx.mustache +12 -1
  229. package/src/tasks/create/templates/SDK-React/template/DETAILS/index.tsx.mustache +7 -3
  230. package/src/tasks/create/templates/SDK-React/template/DETAILS-region/index.tsx.mustache +8 -4
  231. package/src/tasks/create/templates/SDK-React/template/FORM/index.tsx.mustache +30 -20
  232. package/src/tasks/create/templates/SDK-React/template/FORM-region/demo.stories.jsx.mustache +2 -2
  233. package/src/tasks/create/templates/SDK-React/template/PAGE/demo.stories.jsx.mustache +1 -0
  234. package/src/tasks/create/templates/SDK-React/widget/CASE/index.tsx.mustache +4 -3
  235. package/src/tasks/create/templates/SDK-React/widget/PAGE/index.tsx.mustache +7 -7
  236. package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/demo.stories.jsx.mustache +2 -10
  237. package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/index.tsx.mustache +138 -36
  238. package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/mock.stories.js.mustache +1 -1
  239. package/src/tasks/create-all/index.js +112 -56
  240. package/src/tasks/delete/helper.js +88 -24
  241. package/src/tasks/delete/index.js +17 -8
  242. package/src/tasks/delete-all/helper.js +88 -25
  243. package/src/tasks/delete-all/index.js +15 -6
  244. package/src/tasks/list/helper.js +2 -3
  245. package/src/tasks/list/index.js +14 -7
  246. package/src/tasks/map/map.js +212 -20
  247. package/src/tasks/map-all/index.js +19 -2
  248. package/src/tasks/override/index.js +140 -79
  249. package/src/tasks/override-all/index.js +54 -6
  250. package/src/tasks/publish/helper.js +94 -51
  251. package/src/tasks/publish/index.js +87 -34
  252. package/src/tasks/publish-all/helper.js +97 -58
  253. package/src/tasks/publish-all/index.js +127 -48
  254. package/src/tasks/rename/index.js +184 -111
  255. package/src/tasks/validator/index.js +31 -7
  256. package/src/util.js +187 -39
  257. package/src/tasks/create/templates/Constellation/field/TimeofDay/styles.js.mustache +0 -7
  258. /package/src/tasks/bundle/{builder → builderAngular}/index.js +0 -0
  259. /package/src/tasks/bundle/{builder → builderAngular}/modules.js +0 -0
  260. /package/src/tasks/create/templates/Constellation/field/{TimeofDay → TimeOfDay}/config.json.mustache +0 -0
  261. /package/src/tasks/create/templates/Constellation/field/{TimeofDay → TimeOfDay}/demo.stories.jsx.mustache +0 -0
  262. /package/src/tasks/create/templates/Constellation/field/{TimeofDay → TimeOfDay}/index.jsx.mustache +0 -0
  263. /package/src/tasks/create/templates/Constellation/field/{TimeofDay → TimeOfDay}/mock.stories.js.mustache +0 -0
  264. /package/src/tasks/create/templates/Constellation/field/{TimeofDay → TimeOfDay}/suggestions-handler.js +0 -0
  265. /package/src/tasks/create/templates/{SDK-React/field/TimeofDay → SDK-Angular/field/TimeOfDay}/config.json.mustache +0 -0
  266. /package/src/tasks/create/templates/SDK-React/field/{TimeofDay → TimeOfDay}/demo.stories.jsx.mustache +0 -0
  267. /package/src/tasks/create/templates/SDK-React/field/{TimeofDay → TimeOfDay}/mock.stories.js.mustache +0 -0
  268. /package/src/tasks/create/templates/SDK-React/field/{TimeofDay → TimeOfDay}/styles.js.mustache +0 -0
@@ -0,0 +1,294 @@
1
+ const operatorDetails = {
2
+ data: {
3
+ pzLoadTime: "January 18, 2023 10:33:19 AM EST",
4
+ pzPageNameHash: "_pa1519192551088960pz",
5
+ pyOperatorInfo: {
6
+ pyUserName: "french DigV2",
7
+ pyPosition: "",
8
+ pyImageInsKey: "",
9
+ pySkills: [
10
+ {
11
+ pySkillName: "",
12
+ pzIndexOwnerKey: "DATA-ADMIN-OPERATOR-ID FRENCHTEST.DIGV2",
13
+ pySkillRating: 0,
14
+ },
15
+ ],
16
+ pyReportToUserName: "",
17
+ pyReportTo: "",
18
+ pyOrganization: "DXIL",
19
+ pyTitle: "",
20
+ pyLabel: "frenchTest.DigV2",
21
+ pyEmailAddress: "User@DigV2",
22
+ pyTelephone: "",
23
+ },
24
+ },
25
+ status: 200,
26
+ statusText: "",
27
+ headers: {
28
+ "content-length": "435",
29
+ "content-type": "application/json;charset=UTF-8",
30
+ },
31
+ request: {},
32
+ };
33
+
34
+ export default operatorDetails;
35
+
36
+ export const pyReviewRaw = {
37
+ name: "pyReview",
38
+ type: "View",
39
+ config: {
40
+ template: "Details",
41
+ ruleClass: "MyCo-MyCompon-Work-MyComponents",
42
+ showLabel: true,
43
+ label: "@L Details",
44
+ localeReference: "@LR MYCO-MYCOMPON-WORK-MYCOMPONENTS!VIEW!PYREVIEW",
45
+ showHighlightedData: true,
46
+ highlightedData: [
47
+ {
48
+ type: "TextInput",
49
+ config: {
50
+ value: "@P .pyStatusWork",
51
+ label: "@L Work Status",
52
+ displayMode: "STACKED_LARGE_VAL",
53
+ displayAsStatus: true,
54
+ },
55
+ },
56
+ {
57
+ type: "TextInput",
58
+ config: {
59
+ value: "@P .pyID",
60
+ label: "@L Case ID",
61
+ displayMode: "STACKED_LARGE_VAL",
62
+ },
63
+ },
64
+ {
65
+ type: "DateTime",
66
+ config: {
67
+ value: "@P .pxCreateDateTime",
68
+ label: "@L Create date/time",
69
+ displayMode: "STACKED_LARGE_VAL",
70
+ },
71
+ },
72
+ {
73
+ type: "UserReference",
74
+ config: {
75
+ label: "@L Create Operator",
76
+ value: "@USER .pxCreateOperator",
77
+ placeholder: "Select...",
78
+ displayMode: "STACKED_LARGE_VAL",
79
+ },
80
+ },
81
+ ],
82
+ inheritedProps: [
83
+ {
84
+ prop: "label",
85
+ value: "@L Details",
86
+ },
87
+ {
88
+ prop: "showLabel",
89
+ value: true,
90
+ },
91
+ ],
92
+ },
93
+ children: [
94
+ {
95
+ name: "A",
96
+ type: "Region",
97
+ getPConnect: () => {
98
+ return {
99
+ getRawMetadata: () => {
100
+ return pyReviewRaw.children[0];
101
+ },
102
+ };
103
+ },
104
+ children: [
105
+ {
106
+ readOnly: undefined,
107
+ placeholder: "First Name",
108
+ value: "John",
109
+ label: "First Name",
110
+ hasSuggestions: false,
111
+ displayMode: "LABELS_LEFT",
112
+ },
113
+ {
114
+ readOnly: undefined,
115
+ placeholder: "Middle Name",
116
+ value: "",
117
+ label: "Middle Name",
118
+ hasSuggestions: false,
119
+ displayMode: "LABELS_LEFT",
120
+ },
121
+ {
122
+ readOnly: undefined,
123
+ placeholder: "Last Name",
124
+ value: "Doe",
125
+ label: "Last Name",
126
+ hasSuggestions: false,
127
+ displayMode: "LABELS_LEFT",
128
+ },
129
+ {
130
+ value: "john@doe.com",
131
+ label: "Email",
132
+ required: true,
133
+ testId: "CE8AE9DA5B7CD6C3DF2929543A9AF92D",
134
+ hasSuggestions: false,
135
+ displayMode: "LABELS_LEFT",
136
+ },
137
+ {
138
+ readOnly: undefined,
139
+ value: "+16397975093",
140
+ label: "Phone",
141
+ displayMode: "LABELS_LEFT",
142
+ hasSuggestions: false,
143
+ },
144
+ {
145
+ readOnly: undefined,
146
+ placeholder: "Price",
147
+ value: "90.99",
148
+ label: "Price",
149
+ hasSuggestions: false,
150
+ displayMode: "LABELS_LEFT",
151
+ getPConnect: () => {
152
+ return {
153
+ getActionsApi: () => {/* nothing */},
154
+ getStateProps: () => {
155
+ return {
156
+ value: "",
157
+ };
158
+ },
159
+ getComponentName: () => {
160
+ return "currency";
161
+ },
162
+ };
163
+ },
164
+ },
165
+ {
166
+ readOnly: undefined,
167
+ value: "100 Mbps",
168
+ label: "Internet Plan",
169
+ hasSuggestions: false,
170
+ displayMode: "LABELS_LEFT",
171
+ getPConnect: () => {
172
+ return {
173
+ getActionsApi: () => {/* nothing */},
174
+ getStateProps: () => {
175
+ return {
176
+ value: "",
177
+ };
178
+ },
179
+ getComponentName: () => {
180
+ return "radio";
181
+ },
182
+ getConfigProps: () => {
183
+ return {};
184
+ },
185
+ getDataObject: () => {
186
+ return {};
187
+ },
188
+ };
189
+ },
190
+ },
191
+ {
192
+ caseOpConfig: {
193
+ label: "Update operator",
194
+ createLabel: "Created",
195
+ updateLabel: "Updated",
196
+ updateDateTime: "2023-03-10T12:53:04.670Z",
197
+ createDateTime: "2023-03-10T12:52:20.054Z",
198
+ updateOperator: {
199
+ userId: "User.DigV2",
200
+ userName: "User DigV2",
201
+ },
202
+ createOperator: {
203
+ userId: "User.DigV2",
204
+ userName: "User DigV2",
205
+ },
206
+ },
207
+ },
208
+ ],
209
+ },
210
+ ],
211
+ classID: "MyCo-MyCompon-Work-MyComponents",
212
+ };
213
+
214
+ export const pyReviewResolved = {
215
+ readOnly: true,
216
+ template: "Details",
217
+ ruleClass: "MyCo-MyCompon-Work-MyComponents",
218
+ showLabel: true,
219
+ label: "Details",
220
+ localeReference: "MYCO-MYCOMPON-WORK-MYCOMPONENTS!VIEW!PYREVIEW",
221
+ showHighlightedData: true,
222
+ highlightedData: [
223
+ {
224
+ type: "TextInput",
225
+ config: {
226
+ value: "New",
227
+ label: "Work Status",
228
+ displayMode: "STACKED_LARGE_VAL",
229
+ displayAsStatus: true,
230
+ },
231
+ },
232
+ {
233
+ type: "TextInput",
234
+ config: {
235
+ value: "M-1002",
236
+ label: "Case ID",
237
+ displayMode: "STACKED_LARGE_VAL",
238
+ },
239
+ },
240
+ {
241
+ type: "DateTime",
242
+ config: {
243
+ value: "2022-12-11T20:06:27.232Z",
244
+ label: "Create date/time",
245
+ displayMode: "STACKED_LARGE_VAL",
246
+ },
247
+ },
248
+ {
249
+ type: "UserReference",
250
+ config: {
251
+ label: "Create Operator",
252
+ value: {
253
+ userId: "conns",
254
+ userName: "Sara Connor",
255
+ },
256
+ placeholder: "Select...",
257
+ displayMode: "STACKED_LARGE_VAL",
258
+ },
259
+ },
260
+ ],
261
+ displayMode: "LABELS_LEFT",
262
+ };
263
+
264
+ export const regionChildrenResolved = [
265
+ {
266
+ readOnly: true,
267
+ value: "",
268
+ label: "SLA Deadline",
269
+ displayMode: "LABELS_LEFT",
270
+ },
271
+ {
272
+ readOnly: true,
273
+ value: "",
274
+ label: "SLA Goal",
275
+ displayMode: "LABELS_LEFT",
276
+ },
277
+ {
278
+ readOnly: true,
279
+ value: "",
280
+ label: "SLA Start Time",
281
+ listType: "associated",
282
+ datasource: [
283
+ {
284
+ key: "AssignmentCreation",
285
+ value: "The creation time of the Assignment",
286
+ },
287
+ {
288
+ key: "CurrentTime",
289
+ value: "Current Date Time",
290
+ },
291
+ ],
292
+ displayMode: "LABELS_LEFT",
293
+ },
294
+ ];
@@ -0,0 +1,28 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="100px" height="70px" viewBox="0 0 100 70" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>2 col </title>
4
+ <g id="Page-Config" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="Page-layouts" transform="translate(-847.000000, -84.000000)">
6
+ <g id="2-col-" transform="translate(847.000000, 84.000000)">
7
+ <rect id="bg" stroke="#A5A8BC" stroke-width="0.5" fill="#E7E9EB" x="0.25" y="0.25" width="99.5" height="69.5"></rect>
8
+ <g id="white" transform="translate(3.000000, 3.000000)" fill="#FFFFFF">
9
+ <rect id="Rectangle" x="0" y="0" width="94" height="66.5"></rect>
10
+ </g>
11
+ <g id="gray-copy-2" transform="translate(6.000000, 6.000000)" fill="#8084A7">
12
+ <rect id="Rectangle" x="0" y="-2.84217094e-14" width="42" height="63.8"></rect>
13
+ <rect id="Rectangle" x="46" y="-2.84217094e-14" width="42" height="63.8"></rect>
14
+ </g>
15
+ <g id="labels-copy" transform="translate(22.000000, 17.000000)" fill="#FFFFFF" font-family="OpenSans-Semibold, Open Sans" font-size="11" font-weight="500">
16
+ <text id="B">
17
+ <tspan x="45.75" y="12">B</tspan>
18
+ </text>
19
+ <g id="labels">
20
+ <text id="A">
21
+ <tspan x="0.75" y="12">A</tspan>
22
+ </text>
23
+ </g>
24
+ </g>
25
+ </g>
26
+ </g>
27
+ </g>
28
+ </svg>
@@ -0,0 +1,27 @@
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": "TwoColumnDetails.svg",
13
+ "properties": [
14
+ {
15
+ "name": "A",
16
+ "label": "Region A",
17
+ "format": "CONTENTPICKER",
18
+ "addTypeList": ["Fields", "Views", "UIComponents"]
19
+ },
20
+ {
21
+ "name": "B",
22
+ "label": "Region B",
23
+ "format": "CONTENTPICKER",
24
+ "addTypeList": ["Fields", "Views", "UIComponents"]
25
+ }
26
+ ]
27
+ }
@@ -0,0 +1,73 @@
1
+ import { withKnobs } from "@storybook/addon-knobs";
2
+
3
+ import {{COMPONENT_CLASS_NAME}} from "./index.tsx";
4
+
5
+ import operatorDetails, { pyReviewRaw } from "./mock.stories";
6
+
7
+ export default {
8
+ title: "{{COMPONENT_CLASS_NAME}}",
9
+ decorators: [withKnobs],
10
+ component: {{COMPONENT_CLASS_NAME}},
11
+ parameters: {
12
+ type: "DetailsRegion",
13
+ },
14
+ };
15
+
16
+ export const BaseYourOrgRequiredDxilDetailsRegion = () => {
17
+ if (!window.PCore) {
18
+ window.PCore = {};
19
+ }
20
+
21
+ window.PCore.getUserApi = () => {
22
+ return {
23
+ getOperatorDetails: () => {
24
+ return new Promise((resolve) => {
25
+ resolve(operatorDetails);
26
+ });
27
+ },
28
+ };
29
+ };
30
+
31
+ window.PCore.getEnvironmentInfo = () => {
32
+ return {
33
+ getUseLocale: () => {
34
+ return "en-US";
35
+ },
36
+ };
37
+ };
38
+
39
+ const props = {
40
+ NumCols: "2",
41
+ template: "DefaultForm",
42
+ showHighlightedData: false,
43
+ label: "Details Region",
44
+ showLabel: true,
45
+ getPConnect: () => {
46
+ return {
47
+ getChildren: () => {
48
+ return pyReviewRaw.children[0].children;
49
+ },
50
+ getRawMetadata: () => {
51
+ return pyReviewRaw;
52
+ },
53
+ getInheritedProps: () => {
54
+ return pyReviewRaw.config.inheritedProps;
55
+ },
56
+ setInheritedProp: () => {
57
+ /* nothing */
58
+ },
59
+ resolveConfigProps: () => {
60
+ /* nothing */
61
+ },
62
+ };
63
+ },
64
+ };
65
+
66
+ return (
67
+ <>
68
+ <{{COMPONENT_CLASS_NAME}}
69
+ {...props}
70
+ ></{{COMPONENT_CLASS_NAME}}>
71
+ </>
72
+ );
73
+ };
@@ -0,0 +1,6 @@
1
+ <app-material-details
2
+ [arFields$]="arFields$"
3
+ [arFields2$]="arFields2$"
4
+ [arHighlightedFields]="highlightedDataArr"
5
+ [layout]="'two-column'"
6
+ ></app-material-details>
@@ -0,0 +1,7 @@
1
+ .psdk-grid-filter {
2
+ display: grid;
3
+ grid-template-columns: repeat(2, minmax(0, 1fr));
4
+ column-gap: calc(2 * 0.5rem);
5
+ row-gap: calc(2 * 0.5rem);
6
+ align-items: start;
7
+ }
@@ -0,0 +1,25 @@
1
+ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
2
+
3
+ import { {{COMPONENT_CLASS_NAME}}Component } from './{{COMPONENT_CLASS_NAME_KEBAB}}.component';
4
+
5
+ describe('{{COMPONENT_CLASS_NAME}}Component', () => {
6
+ let component: {{COMPONENT_CLASS_NAME}}Component;
7
+ let fixture: ComponentFixture<{{COMPONENT_CLASS_NAME}}Component>;
8
+
9
+ beforeEach(waitForAsync(() => {
10
+ TestBed.configureTestingModule({
11
+ declarations: [ {{COMPONENT_CLASS_NAME}}Component ]
12
+ })
13
+ .compileComponents();
14
+ }));
15
+
16
+ beforeEach(() => {
17
+ fixture = TestBed.createComponent({{COMPONENT_CLASS_NAME}}Component);
18
+ component = fixture.componentInstance;
19
+ fixture.detectChanges();
20
+ });
21
+
22
+ it('should create', () => {
23
+ expect(component).toBeTruthy();
24
+ });
25
+ });
@@ -0,0 +1,92 @@
1
+ import { Component, OnInit, Input } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { AngularPConnectService } from '@pega/angular-sdk-library';
4
+ import { MaterialDetailsComponent } from '@pega/angular-sdk-library';
5
+
6
+ @Component({
7
+ selector: 'app-{{COMPONENT_CLASS_NAME_KEBAB}}',
8
+ templateUrl: './{{COMPONENT_CLASS_NAME_KEBAB}}.component.html',
9
+ styleUrls: ['./{{COMPONENT_CLASS_NAME_KEBAB}}.component.scss'],
10
+ standalone: true,
11
+ imports: [MaterialDetailsComponent]
12
+ })
13
+ export class {{COMPONENT_CLASS_NAME}}Component implements OnInit {
14
+ constructor(private angularPConnect: AngularPConnectService) {}
15
+
16
+ @Input() pConn$: any;
17
+ @Input() formGroup$: FormGroup;
18
+
19
+ showHighlightedData: boolean;
20
+ highlightedDataArr: any;
21
+
22
+ arFields$: Array<any> = [];
23
+ arFields2$: Array<any> = [];
24
+ arFields3$: Array<any> = [];
25
+
26
+ propsToUse: any = {};
27
+
28
+ // Used with AngularPConnect
29
+ angularPConnectData: any = {};
30
+
31
+ ngOnInit(): void {
32
+ // First thing in initialization is registering and subscribing to the AngularPConnect service
33
+ this.angularPConnectData = this.angularPConnect.registerAndSubscribeComponent(this, this.onStateChange);
34
+
35
+ //this.updateSelf();
36
+ this.checkAndUpdate();
37
+ }
38
+
39
+ ngOnDestroy() {
40
+ if (this.angularPConnectData.unsubscribeFn) {
41
+ this.angularPConnectData.unsubscribeFn();
42
+ }
43
+ }
44
+
45
+ onStateChange() {
46
+ this.checkAndUpdate();
47
+ }
48
+
49
+ checkAndUpdate() {
50
+ // Should always check the bridge to see if the component should
51
+ // update itself (re-render)
52
+ const bUpdateSelf = this.angularPConnect.shouldComponentUpdate(this);
53
+
54
+ // ONLY call updateSelf when the component should update
55
+ if (bUpdateSelf) {
56
+ this.updateSelf();
57
+ }
58
+ }
59
+
60
+ updateSelf() {
61
+ const rawMetaData = this.pConn$.resolveConfigProps(this.pConn$.getRawMetadata().config);
62
+ this.showHighlightedData = rawMetaData?.showHighlightedData;
63
+
64
+ if( this.showHighlightedData ){
65
+ const highlightedData = rawMetaData?.highlightedData;
66
+ this.highlightedDataArr = highlightedData.map(field => {
67
+ field.config.displayMode = 'STACKED_LARGE_VAL';
68
+
69
+ if (field.config.value === '@P .pyStatusWork') {
70
+ field.type = 'TextInput';
71
+ field.config.displayAsStatus = true;
72
+ }
73
+
74
+ return field;
75
+ });
76
+ }
77
+
78
+ this.pConn$.setInheritedProp('displayMode', 'LABELS_LEFT');
79
+ this.pConn$.setInheritedProp('readOnly', true);
80
+
81
+ let kids = this.pConn$.getChildren();
82
+ for (let kid of kids) {
83
+ let pKid = kid.getPConnect();
84
+ let pKidData = pKid.resolveConfigProps(pKid.getRawMetadata());
85
+ if (kids.indexOf(kid) == 0) {
86
+ this.arFields$ = pKidData.children;
87
+ } else {
88
+ this.arFields2$ = pKidData.children;
89
+ }
90
+ }
91
+ }
92
+ }