@pega/custom-dx-components 23.1.10 → 23.1.11

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 (976) hide show
  1. package/README.md +2 -2
  2. package/package.json +35 -35
  3. package/src/constants.js +14 -3
  4. package/src/tasks/authenticate/helper.js +44 -32
  5. package/src/tasks/authenticate/index.js +58 -16
  6. package/src/tasks/build-all/helper.js +14 -10
  7. package/src/tasks/build-all/index.js +4 -2
  8. package/src/tasks/build-comp/helper.js +126 -0
  9. package/src/tasks/build-comp/index.js +76 -0
  10. package/src/tasks/bundle/builder/index.js +3 -3
  11. package/src/tasks/bundle/builder/webpack.config.js +12 -0
  12. package/src/tasks/create/index.js +20 -7
  13. package/src/tasks/create/templates/Constellation/Field/Boolean/PConnProps.d.ts.mustache +46 -0
  14. package/src/tasks/create/templates/Constellation/Field/Boolean/boolean-format.ts.mustache +25 -0
  15. package/src/tasks/create/templates/Constellation/Field/Boolean/demo.stories.tsx.mustache +64 -0
  16. package/src/tasks/create/templates/Constellation/Field/Boolean/event-utils.ts.mustache +18 -0
  17. package/src/tasks/create/templates/Constellation/Field/Boolean/index.tsx.mustache +200 -0
  18. package/src/tasks/create/templates/Constellation/Field/Boolean/mock.ts.mustache +22 -0
  19. package/src/tasks/create/templates/Constellation/Field/Boolean/styles.ts.mustache +15 -0
  20. package/src/tasks/create/templates/Constellation/Field/Date/PConnProps.d.ts.mustache +46 -0
  21. package/src/tasks/create/templates/Constellation/Field/Date/demo.stories.tsx.mustache +79 -0
  22. package/src/tasks/create/templates/Constellation/Field/Date/index.tsx.mustache +303 -0
  23. package/src/tasks/create/templates/Constellation/Field/Date/mock.ts.mustache +24 -0
  24. package/src/tasks/create/templates/Constellation/Field/Date/styles.ts.mustache +15 -0
  25. package/src/tasks/create/templates/Constellation/Field/Date/suggestions-handler.ts +9 -0
  26. package/src/tasks/create/templates/Constellation/Field/DateTime/PConnProps.d.ts.mustache +46 -0
  27. package/src/tasks/create/templates/Constellation/Field/DateTime/date-utils.js.mustache +0 -1
  28. package/src/tasks/create/templates/Constellation/Field/DateTime/date.js.mustache +0 -1
  29. package/src/tasks/create/templates/Constellation/Field/DateTime/demo.stories.tsx.mustache +79 -0
  30. package/src/tasks/create/templates/Constellation/Field/DateTime/index.tsx.mustache +298 -0
  31. package/src/tasks/create/templates/Constellation/Field/DateTime/mock.ts.mustache +25 -0
  32. package/src/tasks/create/templates/Constellation/Field/DateTime/styles.ts.mustache +15 -0
  33. package/src/tasks/create/templates/Constellation/Field/DateTime/suggestions-handler.ts +10 -0
  34. package/src/tasks/create/templates/Constellation/Field/Decimal/PConnProps.d.ts.mustache +46 -0
  35. package/src/tasks/create/templates/Constellation/Field/Decimal/demo.stories.tsx.mustache +52 -0
  36. package/src/tasks/create/templates/Constellation/Field/Decimal/event-utils.ts.mustache +18 -0
  37. package/src/tasks/create/templates/Constellation/Field/Decimal/index.tsx.mustache +303 -0
  38. package/src/tasks/create/templates/Constellation/Field/Decimal/mock.ts.mustache +23 -0
  39. package/src/tasks/create/templates/Constellation/Field/Decimal/styles.ts.mustache +15 -0
  40. package/src/tasks/create/templates/Constellation/Field/Decimal/suggestions-handler.ts +9 -0
  41. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/PConnProps.d.ts.mustache +46 -0
  42. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/demo.stories.tsx.mustache +56 -0
  43. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/event-utils.ts.mustache +18 -0
  44. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/index.tsx.mustache +336 -0
  45. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/mock.ts.mustache +25 -0
  46. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/styles.ts.mustache +15 -0
  47. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/suggestions-handler.ts +9 -0
  48. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/PConnProps.d.ts.mustache +46 -0
  49. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/demo.stories.tsx.mustache +52 -0
  50. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/event-utils.ts.mustache +18 -0
  51. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/index.tsx.mustache +312 -0
  52. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/mock.ts.mustache +23 -0
  53. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/styles.ts.mustache +15 -0
  54. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/suggestions-handler.ts +9 -0
  55. package/src/tasks/create/templates/Constellation/Field/Integer/PConnProps.d.ts.mustache +46 -0
  56. package/src/tasks/create/templates/Constellation/Field/Integer/demo.stories.tsx.mustache +51 -0
  57. package/src/tasks/create/templates/Constellation/Field/Integer/event-utils.ts.mustache +18 -0
  58. package/src/tasks/create/templates/Constellation/Field/Integer/index.tsx.mustache +379 -0
  59. package/src/tasks/create/templates/Constellation/Field/Integer/mock.ts.mustache +22 -0
  60. package/src/tasks/create/templates/Constellation/Field/Integer/styles.ts.mustache +15 -0
  61. package/src/tasks/create/templates/Constellation/Field/Integer/suggestions-handler.ts +9 -0
  62. package/src/tasks/create/templates/Constellation/Field/Picklist/PConnProps.d.ts.mustache +46 -0
  63. package/src/tasks/create/templates/Constellation/Field/Picklist/demo.stories.tsx.mustache +81 -0
  64. package/src/tasks/create/templates/Constellation/Field/Picklist/event-utils.ts.mustache +18 -0
  65. package/src/tasks/create/templates/Constellation/Field/Picklist/index.tsx.mustache +393 -0
  66. package/src/tasks/create/templates/Constellation/Field/Picklist/mock.ts.mustache +68 -0
  67. package/src/tasks/create/templates/Constellation/Field/Picklist/styles.ts.mustache +15 -0
  68. package/src/tasks/create/templates/Constellation/Field/Picklist/suggestions-handler.ts +9 -0
  69. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/PConnProps.d.ts +46 -0
  70. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/component-constants.js +5 -0
  71. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/config.json.mustache +115 -0
  72. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/date.js.mustache +162 -0
  73. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/demo.stories.tsx.mustache +90 -0
  74. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/embed-utils.js.mustache +310 -0
  75. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/event-utils.ts.mustache +18 -0
  76. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/format-constants.js.mustache +41 -0
  77. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/index.tsx.mustache +1239 -0
  78. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/mock.ts.mustache +68 -0
  79. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/picklist-utils.js.mustache +87 -0
  80. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/repeat-constants.js.mustache +20 -0
  81. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/repeat-utils.js.mustache +664 -0
  82. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/styles.ts.mustache +15 -0
  83. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/suggestions-handler.ts.mustache +9 -0
  84. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/textformat-utils.jsx.mustache +161 -0
  85. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/utils.ts.mustache +218 -0
  86. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/PConnProps.d.ts +46 -0
  87. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/config.json.mustache +113 -0
  88. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/demo.stories.tsx.mustache +85 -0
  89. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/event-utils.ts.mustache +18 -0
  90. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/index.tsx.mustache +243 -0
  91. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/mock.ts.mustache +69 -0
  92. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/styles.ts.mustache +15 -0
  93. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/suggestions-handler.ts.mustache +9 -0
  94. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/textformat-utils.jsx.mustache +161 -0
  95. package/src/tasks/create/templates/Constellation/Field/Text/PConnProps.d.ts +46 -0
  96. package/src/tasks/create/templates/Constellation/Field/Text/demo.stories.tsx.mustache +54 -0
  97. package/src/tasks/create/templates/Constellation/Field/Text/index.tsx.mustache +73 -0
  98. package/src/tasks/create/templates/Constellation/Field/Text/mock.ts.mustache +15 -0
  99. package/src/tasks/create/templates/Constellation/Field/Text/styles.ts.mustache +15 -0
  100. package/src/tasks/create/templates/Constellation/Field/Text-Email/PConnProps.d.ts +46 -0
  101. package/src/tasks/create/templates/Constellation/Field/Text-Email/demo.stories.tsx.mustache +51 -0
  102. package/src/tasks/create/templates/Constellation/Field/Text-Email/event-utils.ts.mustache +18 -0
  103. package/src/tasks/create/templates/Constellation/Field/Text-Email/index.tsx.mustache +251 -0
  104. package/src/tasks/create/templates/Constellation/Field/Text-Email/mock.ts.mustache +24 -0
  105. package/src/tasks/create/templates/Constellation/Field/Text-Email/styles.ts.mustache +15 -0
  106. package/src/tasks/create/templates/Constellation/Field/Text-Email/suggestions-handler.ts.mustache +9 -0
  107. package/src/tasks/create/templates/Constellation/Field/Text-Input/PConnProps.d.ts.mustache +46 -0
  108. package/src/tasks/create/templates/Constellation/Field/Text-Input/StatusWork.tsx +32 -0
  109. package/src/tasks/create/templates/Constellation/Field/Text-Input/demo.stories.tsx.mustache +51 -0
  110. package/src/tasks/create/templates/Constellation/Field/Text-Input/event-utils.ts.mustache +18 -0
  111. package/src/tasks/create/templates/Constellation/Field/Text-Input/index.tsx.mustache +264 -0
  112. package/src/tasks/create/templates/Constellation/Field/Text-Input/mock.ts.mustache +23 -0
  113. package/src/tasks/create/templates/Constellation/Field/Text-Input/styles.ts.mustache +15 -0
  114. package/src/tasks/create/templates/Constellation/Field/Text-Input/suggestions-handler.ts.mustache +9 -0
  115. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/PConnProps.d.ts.mustache +46 -0
  116. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/demo.stories.tsx.mustache +51 -0
  117. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/event-utils.ts.mustache +18 -0
  118. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/index.tsx.mustache +248 -0
  119. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/mock.ts.mustache +22 -0
  120. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/styles.ts.mustache +15 -0
  121. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/suggestions-handler.ts.mustache +9 -0
  122. package/src/tasks/create/templates/Constellation/Field/Text-Phone/PConnProps.d.ts.mustache +46 -0
  123. package/src/tasks/create/templates/Constellation/Field/Text-Phone/demo.stories.tsx.mustache +49 -0
  124. package/src/tasks/create/templates/Constellation/Field/Text-Phone/event-utils.ts.mustache +18 -0
  125. package/src/tasks/create/templates/Constellation/Field/Text-Phone/index.tsx.mustache +288 -0
  126. package/src/tasks/create/templates/Constellation/Field/Text-Phone/mock.ts.mustache +39 -0
  127. package/src/tasks/create/templates/Constellation/Field/Text-Phone/styles.ts.mustache +15 -0
  128. package/src/tasks/create/templates/Constellation/Field/Text-Phone/suggestions-handler.ts.mustache +9 -0
  129. package/src/tasks/create/templates/Constellation/Field/Text-URL/PConnProps.d.ts.mustache +46 -0
  130. package/src/tasks/create/templates/Constellation/Field/Text-URL/demo.stories.tsx.mustache +49 -0
  131. package/src/tasks/create/templates/Constellation/Field/Text-URL/event-utils.ts.mustache +18 -0
  132. package/src/tasks/create/templates/Constellation/Field/Text-URL/index.tsx.mustache +261 -0
  133. package/src/tasks/create/templates/Constellation/Field/Text-URL/mock.ts.mustache +24 -0
  134. package/src/tasks/create/templates/Constellation/Field/Text-URL/styles.ts.mustache +15 -0
  135. package/src/tasks/create/templates/Constellation/Field/Text-URL/suggestions-handler.ts.mustache +9 -0
  136. package/src/tasks/create/templates/Constellation/Field/TimeofDay/PConnProps.d.ts.mustache +46 -0
  137. package/src/tasks/create/templates/Constellation/Field/TimeofDay/demo.stories.tsx.mustache +60 -0
  138. package/src/tasks/create/templates/Constellation/Field/TimeofDay/index.tsx.mustache +245 -0
  139. package/src/tasks/create/templates/Constellation/Field/TimeofDay/mock.ts.mustache +22 -0
  140. package/src/tasks/create/templates/Constellation/Field/TimeofDay/styles.ts.mustache +15 -0
  141. package/src/tasks/create/templates/Constellation/Field/TimeofDay/suggestions-handler.ts.mustache +9 -0
  142. package/src/tasks/create/templates/Constellation/Field/TimeofDay/time-of-day.js.mustache +0 -1
  143. package/src/tasks/create/templates/Constellation/Template/DETAILS/PConnProps.d.ts.mustache +46 -0
  144. package/src/tasks/create/templates/Constellation/Template/DETAILS/StatusWork.tsx.mustache +28 -0
  145. package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.tsx.mustache +138 -0
  146. package/src/tasks/create/templates/Constellation/Template/DETAILS/index.tsx.mustache +104 -0
  147. package/src/tasks/create/templates/Constellation/Template/DETAILS/mock.ts.mustache +192 -0
  148. package/src/tasks/create/templates/Constellation/Template/DETAILS/styles.ts.mustache +15 -0
  149. package/src/tasks/create/templates/Constellation/Template/DETAILS/utils.js.mustache +3 -4
  150. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/PConnProps.d.ts.mustache +46 -0
  151. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/StatusWork.tsx.mustache +28 -0
  152. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.stories.tsx.mustache +142 -0
  153. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/index.tsx.mustache +103 -0
  154. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/mock.ts.mustache +232 -0
  155. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/styles.ts.mustache +15 -0
  156. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/utils.js.mustache +2 -6
  157. package/src/tasks/create/templates/Constellation/Template/FORM/PConnProps.d.ts.mustache +46 -0
  158. package/src/tasks/create/templates/Constellation/Template/FORM/demo.stories.tsx.mustache +179 -0
  159. package/src/tasks/create/templates/Constellation/Template/FORM/index.tsx.mustache +56 -0
  160. package/src/tasks/create/templates/Constellation/Template/FORM/mock.ts.mustache +139 -0
  161. package/src/tasks/create/templates/Constellation/Template/FORM/styles.ts.mustache +15 -0
  162. package/src/tasks/create/templates/Constellation/Template/FORM-region/PConnProps.d.ts.mustache +46 -0
  163. package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.stories.tsx.mustache +185 -0
  164. package/src/tasks/create/templates/Constellation/Template/FORM-region/index.tsx.mustache +63 -0
  165. package/src/tasks/create/templates/Constellation/Template/FORM-region/mock.ts.mustache +145 -0
  166. package/src/tasks/create/templates/Constellation/Template/FORM-region/styles.ts.mustache +15 -0
  167. package/src/tasks/create/templates/Constellation/Template/PAGE/GetNextWork.tsx.mustache +44 -0
  168. package/src/tasks/create/templates/Constellation/Template/PAGE/PConnProps.d.ts.mustache +46 -0
  169. package/src/tasks/create/templates/Constellation/Template/PAGE/demo.stories.tsx.mustache +106 -0
  170. package/src/tasks/create/templates/Constellation/Template/PAGE/index.tsx.mustache +83 -0
  171. package/src/tasks/create/templates/Constellation/Template/PAGE/mock.ts.mustache +96 -0
  172. package/src/tasks/create/templates/Constellation/Template/PAGE/styles.ts.mustache +15 -0
  173. package/src/tasks/create/templates/Constellation/Template/PAGE/utils.js.mustache +0 -1
  174. package/src/tasks/create/templates/Constellation/Widget/CASE/PConnProps.d.ts.mustache +46 -0
  175. package/src/tasks/create/templates/Constellation/Widget/CASE/demo.stories.tsx.mustache +81 -0
  176. package/src/tasks/create/templates/Constellation/Widget/CASE/index.tsx.mustache +86 -0
  177. package/src/tasks/create/templates/Constellation/Widget/CASE/mock.ts.mustache +391 -0
  178. package/src/tasks/create/templates/Constellation/Widget/CASE/styles.ts.mustache +15 -0
  179. package/src/tasks/create/templates/Constellation/Widget/PAGE/PConnProps.d.ts.mustache +46 -0
  180. package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.stories.tsx.mustache +33 -0
  181. package/src/tasks/create/templates/Constellation/Widget/PAGE/index.tsx.mustache +61 -0
  182. package/src/tasks/create/templates/Constellation/Widget/PAGE/mock.ts.mustache +25 -0
  183. package/src/tasks/create/templates/Constellation/Widget/PAGE/styles.ts.mustache +15 -0
  184. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/Avatar.tsx.mustache +88 -0
  185. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/Operator.tsx.mustache +233 -0
  186. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/PConnProps.d.ts.mustache +46 -0
  187. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.stories.tsx.mustache +70 -0
  188. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/index.tsx.mustache +131 -0
  189. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/mock.ts.mustache +53 -0
  190. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/styles.ts.mustache +15 -0
  191. package/src/tasks/create/templates/Launchpad/Widget/CASE/PConnProps.d.ts.mustache +46 -0
  192. package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.stories.tsx.mustache +81 -0
  193. package/src/tasks/create/templates/Launchpad/Widget/CASE/index.tsx.mustache +84 -0
  194. package/src/tasks/create/templates/Launchpad/Widget/CASE/mock.ts.mustache +391 -0
  195. package/src/tasks/create/templates/Launchpad/Widget/CASE/styles.ts.mustache +15 -0
  196. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Avatar.tsx.mustache +88 -0
  197. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Operator.tsx.mustache +231 -0
  198. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/PConnProps.d.ts.mustache +46 -0
  199. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.stories.tsx.mustache +76 -0
  200. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/index.tsx.mustache +89 -0
  201. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/mock.ts.mustache +52 -0
  202. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/styles.ts.mustache +15 -0
  203. package/src/tasks/create-all/index.js +9 -1
  204. package/src/tasks/index.js +1 -1
  205. package/src/tasks/init/helper.js +0 -1
  206. package/src/tasks/init/index.js +31 -16
  207. package/src/tasks/init/template/.eslintrc.json +58 -9
  208. package/src/tasks/init/template/.storybook/main.js +12 -0
  209. package/src/tasks/init/template/.storybook/preview.js +14 -0
  210. package/src/tasks/init/template/babel.config.cjs +4 -4
  211. package/src/tasks/init/template/package.json.mustache +39 -33
  212. package/src/tasks/init/template/tsconfig.json +2 -1
  213. package/src/tasks/publish/helper.js +34 -14
  214. package/src/tasks/publish/index.js +1 -1
  215. package/src/tasks/publish-all/helper.js +42 -16
  216. package/src/tasks/publish-all/index.js +10 -4
  217. package/src/tasks/revert-webpack/index.js +5 -7
  218. package/src/tasks/upgrade/index.js +1 -1
  219. package/src/util.js +69 -45
  220. package/tests/assets/components/create/Pega_DXIL_MyTestText/PConnProps.d.ts +46 -0
  221. package/tests/assets/components/create/Pega_DXIL_MyTestText/demo.stories.tsx +54 -0
  222. package/tests/assets/components/create/Pega_DXIL_MyTestText/index.tsx +73 -0
  223. package/tests/assets/components/create/Pega_DXIL_MyTestText/mock.ts +15 -0
  224. package/tests/assets/components/create/Pega_DXIL_MyTestText/styles.ts +15 -0
  225. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/PConnProps.d.ts +46 -0
  226. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/boolean-format.ts +25 -0
  227. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.stories.tsx +64 -0
  228. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/event-utils.ts +18 -0
  229. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/index.tsx +200 -0
  230. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/mock.ts +22 -0
  231. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/styles.ts +15 -0
  232. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/PConnProps.d.ts +46 -0
  233. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.tsx +81 -0
  234. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.tsx +83 -0
  235. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/mock.ts +391 -0
  236. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/styles.ts +15 -0
  237. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/PConnProps.d.ts +46 -0
  238. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.stories.tsx +56 -0
  239. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/event-utils.ts +18 -0
  240. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/index.tsx +333 -0
  241. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/mock.ts +25 -0
  242. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/styles.ts +15 -0
  243. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/suggestions-handler.ts +9 -0
  244. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/PConnProps.d.ts +46 -0
  245. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/demo.stories.tsx +79 -0
  246. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/index.tsx +303 -0
  247. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/mock.ts +24 -0
  248. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/styles.ts +15 -0
  249. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/suggestions-handler.ts +9 -0
  250. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/PConnProps.d.ts +46 -0
  251. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date-utils.js +0 -1
  252. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date.js +0 -1
  253. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.tsx +79 -0
  254. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/index.tsx +298 -0
  255. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/mock.ts +25 -0
  256. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/styles.ts +15 -0
  257. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/suggestions-handler.ts +10 -0
  258. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/PConnProps.d.ts +46 -0
  259. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.stories.tsx +52 -0
  260. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/event-utils.ts +18 -0
  261. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/index.tsx +300 -0
  262. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/mock.ts +23 -0
  263. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/styles.ts +15 -0
  264. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/suggestions-handler.ts +9 -0
  265. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/PConnProps.d.ts +46 -0
  266. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/StatusWork.tsx +28 -0
  267. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +138 -0
  268. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/index.tsx +101 -0
  269. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/mock.ts +192 -0
  270. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/styles.ts +15 -0
  271. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/utils.js +3 -4
  272. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/PConnProps.d.ts +46 -0
  273. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.stories.tsx +51 -0
  274. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/event-utils.ts +18 -0
  275. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/index.tsx +251 -0
  276. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/mock.ts +24 -0
  277. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/styles.ts +15 -0
  278. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/suggestions-handler.ts +9 -0
  279. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/PConnProps.d.ts +46 -0
  280. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/demo.stories.tsx +176 -0
  281. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/index.tsx +53 -0
  282. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/mock.ts +139 -0
  283. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/styles.ts +15 -0
  284. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/PConnProps.d.ts +46 -0
  285. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.stories.tsx +51 -0
  286. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/event-utils.ts +18 -0
  287. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/index.tsx +376 -0
  288. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/mock.ts +22 -0
  289. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/styles.ts +15 -0
  290. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/suggestions-handler.ts +9 -0
  291. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/GetNextWork.tsx +44 -0
  292. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/PConnProps.d.ts +46 -0
  293. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx +106 -0
  294. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/index.tsx +83 -0
  295. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/mock.ts +96 -0
  296. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/styles.ts +15 -0
  297. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/utils.js +0 -1
  298. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +88 -0
  299. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Operator.tsx +230 -0
  300. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/PConnProps.d.ts +46 -0
  301. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +70 -0
  302. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/index.tsx +129 -0
  303. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/mock.ts +53 -0
  304. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/styles.ts +15 -0
  305. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/PConnProps.d.ts +46 -0
  306. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx +33 -0
  307. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.tsx +61 -0
  308. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/mock.ts +25 -0
  309. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/styles.ts +15 -0
  310. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/PConnProps.d.ts +46 -0
  311. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.stories.tsx +51 -0
  312. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/event-utils.ts +18 -0
  313. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/index.tsx +248 -0
  314. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/mock.ts +22 -0
  315. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/styles.ts +15 -0
  316. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/suggestions-handler.ts +9 -0
  317. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/PConnProps.d.ts +46 -0
  318. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.stories.tsx +52 -0
  319. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/event-utils.ts +18 -0
  320. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/index.tsx +306 -0
  321. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/mock.ts +23 -0
  322. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/styles.ts +15 -0
  323. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/suggestions-handler.ts +9 -0
  324. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/PConnProps.d.ts +46 -0
  325. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.stories.tsx +49 -0
  326. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/event-utils.ts +18 -0
  327. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/index.tsx +288 -0
  328. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/mock.ts +39 -0
  329. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/styles.ts +15 -0
  330. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/suggestions-handler.ts +9 -0
  331. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/PConnProps.d.ts +46 -0
  332. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.stories.tsx +81 -0
  333. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/event-utils.ts +18 -0
  334. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/index.tsx +393 -0
  335. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/mock.ts +68 -0
  336. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/styles.ts +15 -0
  337. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/suggestions-handler.ts +9 -0
  338. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/PConnProps.d.ts +46 -0
  339. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/config.json +113 -0
  340. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/demo.stories.tsx +85 -0
  341. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/event-utils.ts +18 -0
  342. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/index.tsx +243 -0
  343. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/mock.ts +69 -0
  344. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/styles.ts +15 -0
  345. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/suggestions-handler.ts +9 -0
  346. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/textformat-utils.jsx +161 -0
  347. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/PConnProps.d.ts +46 -0
  348. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/component-constants.js +5 -0
  349. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +115 -0
  350. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/date.js +162 -0
  351. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/demo.stories.tsx +90 -0
  352. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/embed-utils.js +310 -0
  353. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/event-utils.ts +18 -0
  354. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/format-constants.js +41 -0
  355. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/index.tsx +1236 -0
  356. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/mock.ts +68 -0
  357. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/picklist-utils.js +87 -0
  358. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/repeat-constants.js +20 -0
  359. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/repeat-utils.js +664 -0
  360. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/styles.ts +15 -0
  361. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/suggestions-handler.ts +9 -0
  362. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/textformat-utils.jsx +161 -0
  363. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MySearchbox/utils.ts +218 -0
  364. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/PConnProps.d.ts +46 -0
  365. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/demo.stories.tsx +54 -0
  366. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/index.tsx +73 -0
  367. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/mock.ts +15 -0
  368. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/styles.ts +15 -0
  369. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/PConnProps.d.ts +46 -0
  370. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/StatusWork.tsx +32 -0
  371. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.stories.tsx +51 -0
  372. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/event-utils.ts +18 -0
  373. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/index.tsx +264 -0
  374. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/mock.ts +23 -0
  375. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/styles.ts +15 -0
  376. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/suggestions-handler.ts +9 -0
  377. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/PConnProps.d.ts +46 -0
  378. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.stories.tsx +60 -0
  379. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/index.tsx +245 -0
  380. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/mock.ts +22 -0
  381. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/styles.ts +15 -0
  382. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/suggestions-handler.ts +9 -0
  383. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/time-of-day.js +0 -1
  384. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/PConnProps.d.ts +46 -0
  385. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/StatusWork.tsx +28 -0
  386. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +142 -0
  387. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/index.tsx +100 -0
  388. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/mock.ts +232 -0
  389. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/styles.ts +15 -0
  390. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/utils.js +2 -6
  391. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/PConnProps.d.ts +46 -0
  392. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +182 -0
  393. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/index.tsx +60 -0
  394. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/mock.ts +145 -0
  395. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/styles.ts +15 -0
  396. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/PConnProps.d.ts +46 -0
  397. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/demo.stories.tsx +49 -0
  398. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/event-utils.ts +18 -0
  399. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/index.tsx +261 -0
  400. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/mock.ts +24 -0
  401. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/styles.ts +15 -0
  402. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/suggestions-handler.ts +9 -0
  403. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/PConnProps.d.ts +46 -0
  404. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/boolean-format.ts +25 -0
  405. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/demo.stories.tsx +64 -0
  406. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/event-utils.ts +18 -0
  407. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/index.tsx +200 -0
  408. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/mock.ts +22 -0
  409. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/styles.ts +15 -0
  410. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/PConnProps.d.ts +46 -0
  411. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.tsx +81 -0
  412. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/index.tsx +81 -0
  413. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/mock.ts +391 -0
  414. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/styles.ts +15 -0
  415. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/PConnProps.d.ts +46 -0
  416. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.stories.tsx +56 -0
  417. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/event-utils.ts +18 -0
  418. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/index.tsx +333 -0
  419. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/mock.ts +25 -0
  420. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/styles.ts +15 -0
  421. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/suggestions-handler.ts +9 -0
  422. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/PConnProps.d.ts +46 -0
  423. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.stories.tsx +79 -0
  424. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/index.tsx +303 -0
  425. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/mock.ts +24 -0
  426. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/styles.ts +15 -0
  427. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/suggestions-handler.ts +9 -0
  428. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/PConnProps.d.ts +46 -0
  429. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-utils.js +0 -1
  430. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date.js +0 -1
  431. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.tsx +79 -0
  432. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/index.tsx +298 -0
  433. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/mock.ts +25 -0
  434. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/styles.ts +15 -0
  435. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/suggestions-handler.ts +10 -0
  436. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/PConnProps.d.ts +46 -0
  437. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.stories.tsx +52 -0
  438. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/event-utils.ts +18 -0
  439. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/index.tsx +300 -0
  440. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/mock.ts +23 -0
  441. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/styles.ts +15 -0
  442. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/suggestions-handler.ts +9 -0
  443. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/PConnProps.d.ts +46 -0
  444. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/StatusWork.tsx +28 -0
  445. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.tsx +138 -0
  446. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/index.tsx +101 -0
  447. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/mock.ts +192 -0
  448. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/styles.ts +15 -0
  449. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/utils.js +3 -4
  450. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/PConnProps.d.ts +46 -0
  451. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.stories.tsx +51 -0
  452. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/event-utils.ts +18 -0
  453. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/index.tsx +251 -0
  454. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/mock.ts +24 -0
  455. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/styles.ts +15 -0
  456. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/suggestions-handler.ts +9 -0
  457. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/PConnProps.d.ts +46 -0
  458. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.stories.tsx +176 -0
  459. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/index.tsx +53 -0
  460. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/mock.ts +139 -0
  461. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/styles.ts +15 -0
  462. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/PConnProps.d.ts +46 -0
  463. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.stories.tsx +51 -0
  464. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/event-utils.ts +18 -0
  465. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.tsx +376 -0
  466. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/mock.ts +22 -0
  467. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/styles.ts +15 -0
  468. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/suggestions-handler.ts +9 -0
  469. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/GetNextWork.tsx +44 -0
  470. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/PConnProps.d.ts +46 -0
  471. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.tsx +106 -0
  472. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/index.tsx +83 -0
  473. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/mock.ts +96 -0
  474. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/styles.ts +15 -0
  475. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/utils.js +0 -1
  476. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +88 -0
  477. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Operator.tsx +228 -0
  478. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/PConnProps.d.ts +46 -0
  479. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +76 -0
  480. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/index.tsx +87 -0
  481. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/mock.ts +52 -0
  482. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/styles.ts +15 -0
  483. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/PConnProps.d.ts +46 -0
  484. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.stories.tsx +33 -0
  485. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/index.tsx +61 -0
  486. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/mock.ts +25 -0
  487. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/styles.ts +15 -0
  488. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/PConnProps.d.ts +46 -0
  489. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.stories.tsx +51 -0
  490. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/event-utils.ts +18 -0
  491. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/index.tsx +248 -0
  492. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/mock.ts +22 -0
  493. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/styles.ts +15 -0
  494. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/suggestions-handler.ts +9 -0
  495. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/PConnProps.d.ts +46 -0
  496. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.stories.tsx +52 -0
  497. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/event-utils.ts +18 -0
  498. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/index.tsx +306 -0
  499. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/mock.ts +23 -0
  500. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/styles.ts +15 -0
  501. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/suggestions-handler.ts +9 -0
  502. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/PConnProps.d.ts +46 -0
  503. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.stories.tsx +49 -0
  504. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/event-utils.ts +18 -0
  505. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/index.tsx +288 -0
  506. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/mock.ts +39 -0
  507. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/styles.ts +15 -0
  508. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/suggestions-handler.ts +9 -0
  509. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/PConnProps.d.ts +46 -0
  510. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/demo.stories.tsx +81 -0
  511. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/event-utils.ts +18 -0
  512. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/index.tsx +393 -0
  513. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/mock.ts +68 -0
  514. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/styles.ts +15 -0
  515. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/suggestions-handler.ts +9 -0
  516. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/PConnProps.d.ts +46 -0
  517. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/config.json +113 -0
  518. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/demo.stories.tsx +85 -0
  519. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/event-utils.ts +18 -0
  520. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/index.tsx +243 -0
  521. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/mock.ts +69 -0
  522. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/styles.ts +15 -0
  523. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/suggestions-handler.ts +9 -0
  524. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/textformat-utils.jsx +161 -0
  525. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/PConnProps.d.ts +46 -0
  526. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/component-constants.js +5 -0
  527. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/config.json +115 -0
  528. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/date.js +162 -0
  529. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/demo.stories.tsx +90 -0
  530. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/embed-utils.js +310 -0
  531. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/event-utils.ts +18 -0
  532. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/format-constants.js +41 -0
  533. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/index.tsx +1236 -0
  534. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/mock.ts +68 -0
  535. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/picklist-utils.js +87 -0
  536. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/repeat-constants.js +20 -0
  537. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/repeat-utils.js +664 -0
  538. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/styles.ts +15 -0
  539. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/suggestions-handler.ts +9 -0
  540. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/textformat-utils.jsx +161 -0
  541. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MySearchbox/utils.ts +218 -0
  542. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/PConnProps.d.ts +46 -0
  543. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/demo.stories.tsx +54 -0
  544. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/index.tsx +73 -0
  545. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/mock.ts +15 -0
  546. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/styles.ts +15 -0
  547. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/PConnProps.d.ts +46 -0
  548. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/StatusWork.tsx +32 -0
  549. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.stories.tsx +51 -0
  550. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/event-utils.ts +18 -0
  551. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/index.tsx +264 -0
  552. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/mock.ts +23 -0
  553. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/styles.ts +15 -0
  554. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/suggestions-handler.ts +9 -0
  555. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/PConnProps.d.ts +46 -0
  556. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/demo.stories.tsx +60 -0
  557. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/index.tsx +245 -0
  558. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/mock.ts +22 -0
  559. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/styles.ts +15 -0
  560. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/suggestions-handler.ts +9 -0
  561. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/time-of-day.js +0 -1
  562. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/PConnProps.d.ts +46 -0
  563. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/StatusWork.tsx +28 -0
  564. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +142 -0
  565. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/index.tsx +100 -0
  566. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/mock.ts +232 -0
  567. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/styles.ts +15 -0
  568. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/utils.js +2 -6
  569. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/PConnProps.d.ts +46 -0
  570. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +182 -0
  571. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/index.tsx +60 -0
  572. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/mock.ts +145 -0
  573. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/styles.ts +15 -0
  574. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/PConnProps.d.ts +46 -0
  575. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.stories.tsx +49 -0
  576. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/event-utils.ts +18 -0
  577. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/index.tsx +261 -0
  578. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/mock.ts +24 -0
  579. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/styles.ts +15 -0
  580. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/suggestions-handler.ts +9 -0
  581. package/tests/functional/localCreateAllListDeleteAll.test.js +2 -2
  582. package/tests/functional/localCreateBuildAllDeleteAll.test.js +4 -4
  583. package/tests/functional/localCreateBuildDelete.test.js +2 -2
  584. package/tests/functional/localCreateListDelete.test.js +2 -2
  585. package/tests/functional/localCreatePublishAllDeleteAll.test.js +4 -4
  586. package/tests/functional/localCreatePublishDelete.test.js +2 -2
  587. package/tests/functional/localCreateRenameDelete.test.js +2 -2
  588. package/src/auth.js +0 -637
  589. package/src/tasks/build/helper.js +0 -116
  590. package/src/tasks/build/index.js +0 -76
  591. package/src/tasks/create/templates/Constellation/Field/Boolean/boolean-format.js.mustache +0 -26
  592. package/src/tasks/create/templates/Constellation/Field/Boolean/demo.stories.jsx.mustache +0 -61
  593. package/src/tasks/create/templates/Constellation/Field/Boolean/event-utils.js.mustache +0 -18
  594. package/src/tasks/create/templates/Constellation/Field/Boolean/index.jsx.mustache +0 -170
  595. package/src/tasks/create/templates/Constellation/Field/Boolean/mock.stories.js.mustache +0 -21
  596. package/src/tasks/create/templates/Constellation/Field/Boolean/styles.js.mustache +0 -14
  597. package/src/tasks/create/templates/Constellation/Field/Date/demo.stories.jsx.mustache +0 -73
  598. package/src/tasks/create/templates/Constellation/Field/Date/index.jsx.mustache +0 -257
  599. package/src/tasks/create/templates/Constellation/Field/Date/mock.stories.js.mustache +0 -23
  600. package/src/tasks/create/templates/Constellation/Field/Date/styles.js.mustache +0 -14
  601. package/src/tasks/create/templates/Constellation/Field/Date/suggestions-handler.js +0 -10
  602. package/src/tasks/create/templates/Constellation/Field/DateTime/demo.stories.jsx.mustache +0 -73
  603. package/src/tasks/create/templates/Constellation/Field/DateTime/index.jsx.mustache +0 -254
  604. package/src/tasks/create/templates/Constellation/Field/DateTime/mock.stories.js.mustache +0 -23
  605. package/src/tasks/create/templates/Constellation/Field/DateTime/styles.js.mustache +0 -14
  606. package/src/tasks/create/templates/Constellation/Field/DateTime/suggestions-handler.js +0 -10
  607. package/src/tasks/create/templates/Constellation/Field/Decimal/demo.stories.jsx.mustache +0 -49
  608. package/src/tasks/create/templates/Constellation/Field/Decimal/event-utils.js.mustache +0 -18
  609. package/src/tasks/create/templates/Constellation/Field/Decimal/index.jsx.mustache +0 -273
  610. package/src/tasks/create/templates/Constellation/Field/Decimal/mock.stories.js.mustache +0 -21
  611. package/src/tasks/create/templates/Constellation/Field/Decimal/styles.js.mustache +0 -14
  612. package/src/tasks/create/templates/Constellation/Field/Decimal/suggestions-handler.js +0 -10
  613. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/demo.stories.jsx.mustache +0 -53
  614. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/event-utils.js.mustache +0 -18
  615. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/index.jsx.mustache +0 -299
  616. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/mock.stories.js.mustache +0 -23
  617. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/styles.js.mustache +0 -14
  618. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/suggestions-handler.js +0 -10
  619. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/demo.stories.jsx.mustache +0 -49
  620. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/event-utils.js.mustache +0 -18
  621. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/index.jsx.mustache +0 -282
  622. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/mock.stories.js.mustache +0 -21
  623. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/styles.js.mustache +0 -14
  624. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/suggestions-handler.js +0 -10
  625. package/src/tasks/create/templates/Constellation/Field/Integer/demo.stories.jsx.mustache +0 -49
  626. package/src/tasks/create/templates/Constellation/Field/Integer/event-utils.js.mustache +0 -18
  627. package/src/tasks/create/templates/Constellation/Field/Integer/index.jsx.mustache +0 -337
  628. package/src/tasks/create/templates/Constellation/Field/Integer/mock.stories.js.mustache +0 -21
  629. package/src/tasks/create/templates/Constellation/Field/Integer/styles.js.mustache +0 -14
  630. package/src/tasks/create/templates/Constellation/Field/Integer/suggestions-handler.js +0 -10
  631. package/src/tasks/create/templates/Constellation/Field/Picklist/demo.stories.jsx.mustache +0 -78
  632. package/src/tasks/create/templates/Constellation/Field/Picklist/event-utils.js.mustache +0 -18
  633. package/src/tasks/create/templates/Constellation/Field/Picklist/index.jsx.mustache +0 -352
  634. package/src/tasks/create/templates/Constellation/Field/Picklist/mock.stories.js.mustache +0 -67
  635. package/src/tasks/create/templates/Constellation/Field/Picklist/styles.js.mustache +0 -14
  636. package/src/tasks/create/templates/Constellation/Field/Picklist/suggestions-handler.js +0 -10
  637. package/src/tasks/create/templates/Constellation/Field/Text/demo.stories.jsx.mustache +0 -51
  638. package/src/tasks/create/templates/Constellation/Field/Text/index.jsx.mustache +0 -61
  639. package/src/tasks/create/templates/Constellation/Field/Text/mock.stories.js.mustache +0 -13
  640. package/src/tasks/create/templates/Constellation/Field/Text/styles.js.mustache +0 -14
  641. package/src/tasks/create/templates/Constellation/Field/Text-Email/demo.stories.jsx.mustache +0 -48
  642. package/src/tasks/create/templates/Constellation/Field/Text-Email/event-utils.js.mustache +0 -18
  643. package/src/tasks/create/templates/Constellation/Field/Text-Email/index.jsx.mustache +0 -232
  644. package/src/tasks/create/templates/Constellation/Field/Text-Email/mock.stories.js.mustache +0 -22
  645. package/src/tasks/create/templates/Constellation/Field/Text-Email/styles.js.mustache +0 -14
  646. package/src/tasks/create/templates/Constellation/Field/Text-Email/suggestions-handler.js +0 -10
  647. package/src/tasks/create/templates/Constellation/Field/Text-Input/StatusWork.jsx +0 -26
  648. package/src/tasks/create/templates/Constellation/Field/Text-Input/demo.stories.jsx.mustache +0 -48
  649. package/src/tasks/create/templates/Constellation/Field/Text-Input/event-utils.js.mustache +0 -18
  650. package/src/tasks/create/templates/Constellation/Field/Text-Input/index.jsx.mustache +0 -239
  651. package/src/tasks/create/templates/Constellation/Field/Text-Input/mock.stories.js.mustache +0 -21
  652. package/src/tasks/create/templates/Constellation/Field/Text-Input/styles.js.mustache +0 -14
  653. package/src/tasks/create/templates/Constellation/Field/Text-Input/suggestions-handler.js +0 -10
  654. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/demo.stories.jsx.mustache +0 -48
  655. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/event-utils.js.mustache +0 -18
  656. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/index.jsx.mustache +0 -230
  657. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/mock.stories.js.mustache +0 -20
  658. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/styles.js.mustache +0 -14
  659. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/suggestions-handler.js +0 -10
  660. package/src/tasks/create/templates/Constellation/Field/Text-Phone/demo.stories.jsx.mustache +0 -46
  661. package/src/tasks/create/templates/Constellation/Field/Text-Phone/event-utils.js.mustache +0 -18
  662. package/src/tasks/create/templates/Constellation/Field/Text-Phone/index.jsx.mustache +0 -266
  663. package/src/tasks/create/templates/Constellation/Field/Text-Phone/mock.stories.js.mustache +0 -37
  664. package/src/tasks/create/templates/Constellation/Field/Text-Phone/styles.js.mustache +0 -14
  665. package/src/tasks/create/templates/Constellation/Field/Text-Phone/suggestions-handler.js +0 -10
  666. package/src/tasks/create/templates/Constellation/Field/Text-URL/demo.stories.jsx.mustache +0 -46
  667. package/src/tasks/create/templates/Constellation/Field/Text-URL/event-utils.js.mustache +0 -18
  668. package/src/tasks/create/templates/Constellation/Field/Text-URL/index.jsx.mustache +0 -232
  669. package/src/tasks/create/templates/Constellation/Field/Text-URL/mock.stories.js.mustache +0 -22
  670. package/src/tasks/create/templates/Constellation/Field/Text-URL/styles.js.mustache +0 -14
  671. package/src/tasks/create/templates/Constellation/Field/Text-URL/suggestions-handler.js +0 -10
  672. package/src/tasks/create/templates/Constellation/Field/TimeofDay/demo.stories.jsx.mustache +0 -57
  673. package/src/tasks/create/templates/Constellation/Field/TimeofDay/index.jsx.mustache +0 -214
  674. package/src/tasks/create/templates/Constellation/Field/TimeofDay/mock.stories.js.mustache +0 -20
  675. package/src/tasks/create/templates/Constellation/Field/TimeofDay/styles.js.mustache +0 -14
  676. package/src/tasks/create/templates/Constellation/Field/TimeofDay/suggestions-handler.js +0 -10
  677. package/src/tasks/create/templates/Constellation/Template/DETAILS/StatusWork.jsx.mustache +0 -26
  678. package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.jsx.mustache +0 -135
  679. package/src/tasks/create/templates/Constellation/Template/DETAILS/index.jsx.mustache +0 -86
  680. package/src/tasks/create/templates/Constellation/Template/DETAILS/mock.stories.js.mustache +0 -189
  681. package/src/tasks/create/templates/Constellation/Template/DETAILS/styles.js.mustache +0 -14
  682. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/StatusWork.jsx.mustache +0 -26
  683. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.stories.jsx.mustache +0 -139
  684. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/index.jsx.mustache +0 -86
  685. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/mock.stories.js.mustache +0 -230
  686. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/styles.js.mustache +0 -14
  687. package/src/tasks/create/templates/Constellation/Template/FORM/demo.stories.jsx.mustache +0 -172
  688. package/src/tasks/create/templates/Constellation/Template/FORM/index.jsx.mustache +0 -51
  689. package/src/tasks/create/templates/Constellation/Template/FORM/mock.stories.js.mustache +0 -137
  690. package/src/tasks/create/templates/Constellation/Template/FORM/styles.js.mustache +0 -14
  691. package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.stories.jsx.mustache +0 -181
  692. package/src/tasks/create/templates/Constellation/Template/FORM-region/index.jsx.mustache +0 -51
  693. package/src/tasks/create/templates/Constellation/Template/FORM-region/mock.stories.js.mustache +0 -143
  694. package/src/tasks/create/templates/Constellation/Template/FORM-region/styles.js.mustache +0 -14
  695. package/src/tasks/create/templates/Constellation/Template/PAGE/GetNextWork.jsx.mustache +0 -35
  696. package/src/tasks/create/templates/Constellation/Template/PAGE/demo.stories.jsx.mustache +0 -102
  697. package/src/tasks/create/templates/Constellation/Template/PAGE/index.jsx.mustache +0 -70
  698. package/src/tasks/create/templates/Constellation/Template/PAGE/mock.stories.js.mustache +0 -94
  699. package/src/tasks/create/templates/Constellation/Template/PAGE/styles.js.mustache +0 -14
  700. package/src/tasks/create/templates/Constellation/Widget/CASE/demo.stories.jsx.mustache +0 -78
  701. package/src/tasks/create/templates/Constellation/Widget/CASE/index.jsx.mustache +0 -76
  702. package/src/tasks/create/templates/Constellation/Widget/CASE/mock.stories.js.mustache +0 -390
  703. package/src/tasks/create/templates/Constellation/Widget/CASE/styles.js.mustache +0 -14
  704. package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.stories.jsx.mustache +0 -30
  705. package/src/tasks/create/templates/Constellation/Widget/PAGE/index.jsx.mustache +0 -48
  706. package/src/tasks/create/templates/Constellation/Widget/PAGE/mock.stories.js.mustache +0 -23
  707. package/src/tasks/create/templates/Constellation/Widget/PAGE/styles.js.mustache +0 -14
  708. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/Avatar.jsx.mustache +0 -75
  709. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/Operator.jsx.mustache +0 -240
  710. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.stories.jsx.mustache +0 -68
  711. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/index.jsx.mustache +0 -110
  712. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/mock.stories.js.mustache +0 -51
  713. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/styles.js.mustache +0 -14
  714. package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.stories.jsx.mustache +0 -78
  715. package/src/tasks/create/templates/Launchpad/Widget/CASE/index.jsx.mustache +0 -76
  716. package/src/tasks/create/templates/Launchpad/Widget/CASE/mock.stories.js.mustache +0 -390
  717. package/src/tasks/create/templates/Launchpad/Widget/CASE/styles.js.mustache +0 -14
  718. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Avatar.jsx.mustache +0 -75
  719. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Operator.jsx.mustache +0 -282
  720. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.stories.jsx.mustache +0 -74
  721. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/index.jsx.mustache +0 -82
  722. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/mock.stories.js.mustache +0 -51
  723. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/styles.js.mustache +0 -14
  724. package/src/tasks/init/template/.storybook/main.cjs +0 -6
  725. package/src/tasks/init/template/.storybook/package.json +0 -1
  726. package/src/tasks/init/template/.storybook/preview.tsx +0 -44
  727. package/tests/assets/components/create/Pega_DXIL_MyTestText/demo.stories.jsx +0 -51
  728. package/tests/assets/components/create/Pega_DXIL_MyTestText/index.jsx +0 -61
  729. package/tests/assets/components/create/Pega_DXIL_MyTestText/mock.stories.js +0 -13
  730. package/tests/assets/components/create/Pega_DXIL_MyTestText/styles.js +0 -14
  731. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/boolean-format.js +0 -26
  732. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.stories.jsx +0 -61
  733. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/event-utils.js +0 -18
  734. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/index.jsx +0 -170
  735. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/mock.stories.js +0 -21
  736. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/styles.js +0 -14
  737. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.jsx +0 -78
  738. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.jsx +0 -73
  739. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/mock.stories.js +0 -390
  740. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/styles.js +0 -14
  741. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.stories.jsx +0 -53
  742. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/event-utils.js +0 -18
  743. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/index.jsx +0 -296
  744. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/mock.stories.js +0 -23
  745. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/styles.js +0 -14
  746. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/suggestions-handler.js +0 -10
  747. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/demo.stories.jsx +0 -73
  748. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/index.jsx +0 -257
  749. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/mock.stories.js +0 -23
  750. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/styles.js +0 -14
  751. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/suggestions-handler.js +0 -10
  752. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.jsx +0 -73
  753. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/index.jsx +0 -254
  754. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/mock.stories.js +0 -23
  755. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/styles.js +0 -14
  756. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/suggestions-handler.js +0 -10
  757. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.stories.jsx +0 -49
  758. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/event-utils.js +0 -18
  759. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/index.jsx +0 -270
  760. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/mock.stories.js +0 -21
  761. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/styles.js +0 -14
  762. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/suggestions-handler.js +0 -10
  763. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/StatusWork.jsx +0 -26
  764. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.jsx +0 -135
  765. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/index.jsx +0 -83
  766. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/mock.stories.js +0 -189
  767. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/styles.js +0 -14
  768. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.stories.jsx +0 -48
  769. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/event-utils.js +0 -18
  770. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/index.jsx +0 -232
  771. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/mock.stories.js +0 -22
  772. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/styles.js +0 -14
  773. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/suggestions-handler.js +0 -10
  774. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/demo.stories.jsx +0 -169
  775. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/index.jsx +0 -48
  776. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/mock.stories.js +0 -137
  777. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/styles.js +0 -14
  778. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.stories.jsx +0 -49
  779. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/event-utils.js +0 -18
  780. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/index.jsx +0 -334
  781. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/mock.stories.js +0 -21
  782. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/styles.js +0 -14
  783. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/suggestions-handler.js +0 -10
  784. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/GetNextWork.jsx +0 -35
  785. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.jsx +0 -102
  786. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/index.jsx +0 -70
  787. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/mock.stories.js +0 -94
  788. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/styles.js +0 -14
  789. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Avatar.jsx +0 -75
  790. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Operator.jsx +0 -237
  791. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.jsx +0 -68
  792. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/index.jsx +0 -108
  793. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/mock.stories.js +0 -51
  794. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/styles.js +0 -14
  795. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.jsx +0 -30
  796. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.jsx +0 -48
  797. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/mock.stories.js +0 -23
  798. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/styles.js +0 -14
  799. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.stories.jsx +0 -48
  800. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/event-utils.js +0 -18
  801. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/index.jsx +0 -230
  802. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/mock.stories.js +0 -20
  803. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/styles.js +0 -14
  804. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/suggestions-handler.js +0 -10
  805. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.stories.jsx +0 -49
  806. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/event-utils.js +0 -18
  807. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/index.jsx +0 -276
  808. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/mock.stories.js +0 -21
  809. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/styles.js +0 -14
  810. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/suggestions-handler.js +0 -10
  811. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.stories.jsx +0 -46
  812. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/event-utils.js +0 -18
  813. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/index.jsx +0 -266
  814. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/mock.stories.js +0 -37
  815. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/styles.js +0 -14
  816. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/suggestions-handler.js +0 -10
  817. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.stories.jsx +0 -78
  818. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/event-utils.js +0 -18
  819. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/index.jsx +0 -352
  820. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/mock.stories.js +0 -67
  821. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/styles.js +0 -14
  822. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/suggestions-handler.js +0 -10
  823. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/demo.stories.jsx +0 -51
  824. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/index.jsx +0 -61
  825. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/mock.stories.js +0 -13
  826. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/styles.js +0 -14
  827. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/StatusWork.jsx +0 -26
  828. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.stories.jsx +0 -48
  829. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/event-utils.js +0 -18
  830. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/index.jsx +0 -239
  831. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/mock.stories.js +0 -21
  832. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/styles.js +0 -14
  833. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/suggestions-handler.js +0 -10
  834. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.stories.jsx +0 -57
  835. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/index.jsx +0 -214
  836. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/mock.stories.js +0 -20
  837. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/styles.js +0 -14
  838. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/suggestions-handler.js +0 -10
  839. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/StatusWork.jsx +0 -26
  840. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +0 -139
  841. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/index.jsx +0 -83
  842. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/mock.stories.js +0 -230
  843. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/styles.js +0 -14
  844. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +0 -178
  845. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/index.jsx +0 -48
  846. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/mock.stories.js +0 -143
  847. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/styles.js +0 -14
  848. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/demo.stories.jsx +0 -46
  849. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/event-utils.js +0 -18
  850. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/index.jsx +0 -232
  851. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/mock.stories.js +0 -22
  852. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/styles.js +0 -14
  853. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/suggestions-handler.js +0 -10
  854. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/boolean-format.js +0 -26
  855. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/demo.stories.jsx +0 -61
  856. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/event-utils.js +0 -18
  857. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/index.jsx +0 -170
  858. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/mock.stories.js +0 -21
  859. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/styles.js +0 -14
  860. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.jsx +0 -78
  861. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/index.jsx +0 -73
  862. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/mock.stories.js +0 -390
  863. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/styles.js +0 -14
  864. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.stories.jsx +0 -53
  865. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/event-utils.js +0 -18
  866. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/index.jsx +0 -296
  867. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/mock.stories.js +0 -23
  868. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/styles.js +0 -14
  869. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/suggestions-handler.js +0 -10
  870. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.stories.jsx +0 -73
  871. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/index.jsx +0 -257
  872. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/mock.stories.js +0 -23
  873. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/styles.js +0 -14
  874. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/suggestions-handler.js +0 -10
  875. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.jsx +0 -73
  876. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/index.jsx +0 -254
  877. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/mock.stories.js +0 -23
  878. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/styles.js +0 -14
  879. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/suggestions-handler.js +0 -10
  880. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.stories.jsx +0 -49
  881. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/event-utils.js +0 -18
  882. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/index.jsx +0 -270
  883. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/mock.stories.js +0 -21
  884. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/styles.js +0 -14
  885. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/suggestions-handler.js +0 -10
  886. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/StatusWork.jsx +0 -26
  887. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.jsx +0 -135
  888. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/index.jsx +0 -83
  889. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/mock.stories.js +0 -189
  890. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/styles.js +0 -14
  891. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.stories.jsx +0 -48
  892. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/event-utils.js +0 -18
  893. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/index.jsx +0 -232
  894. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/mock.stories.js +0 -22
  895. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/styles.js +0 -14
  896. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/suggestions-handler.js +0 -10
  897. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.stories.jsx +0 -169
  898. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/index.jsx +0 -48
  899. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/mock.stories.js +0 -137
  900. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/styles.js +0 -14
  901. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.stories.jsx +0 -49
  902. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/event-utils.js +0 -18
  903. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.jsx +0 -334
  904. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/mock.stories.js +0 -21
  905. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/styles.js +0 -14
  906. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/suggestions-handler.js +0 -10
  907. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/GetNextWork.jsx +0 -35
  908. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.jsx +0 -102
  909. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/index.jsx +0 -70
  910. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/mock.stories.js +0 -94
  911. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/styles.js +0 -14
  912. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Avatar.jsx +0 -75
  913. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Operator.jsx +0 -279
  914. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.jsx +0 -74
  915. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/index.jsx +0 -80
  916. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/mock.stories.js +0 -51
  917. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/styles.js +0 -14
  918. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.stories.jsx +0 -30
  919. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/index.jsx +0 -48
  920. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/mock.stories.js +0 -23
  921. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/styles.js +0 -14
  922. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.stories.jsx +0 -48
  923. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/event-utils.js +0 -18
  924. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/index.jsx +0 -230
  925. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/mock.stories.js +0 -20
  926. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/styles.js +0 -14
  927. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/suggestions-handler.js +0 -10
  928. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.stories.jsx +0 -49
  929. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/event-utils.js +0 -18
  930. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/index.jsx +0 -276
  931. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/mock.stories.js +0 -21
  932. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/styles.js +0 -14
  933. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/suggestions-handler.js +0 -10
  934. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.stories.jsx +0 -46
  935. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/event-utils.js +0 -18
  936. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/index.jsx +0 -266
  937. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/mock.stories.js +0 -37
  938. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/styles.js +0 -14
  939. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/suggestions-handler.js +0 -10
  940. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/demo.stories.jsx +0 -78
  941. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/event-utils.js +0 -18
  942. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/index.jsx +0 -352
  943. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/mock.stories.js +0 -67
  944. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/styles.js +0 -14
  945. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/suggestions-handler.js +0 -10
  946. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/demo.stories.jsx +0 -51
  947. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/index.jsx +0 -61
  948. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/mock.stories.js +0 -13
  949. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/styles.js +0 -14
  950. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/StatusWork.jsx +0 -26
  951. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.stories.jsx +0 -48
  952. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/event-utils.js +0 -18
  953. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/index.jsx +0 -239
  954. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/mock.stories.js +0 -21
  955. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/styles.js +0 -14
  956. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/suggestions-handler.js +0 -10
  957. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/demo.stories.jsx +0 -57
  958. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/index.jsx +0 -214
  959. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/mock.stories.js +0 -20
  960. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/styles.js +0 -14
  961. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/suggestions-handler.js +0 -10
  962. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/StatusWork.jsx +0 -26
  963. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +0 -139
  964. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/index.jsx +0 -83
  965. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/mock.stories.js +0 -230
  966. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/styles.js +0 -14
  967. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +0 -178
  968. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/index.jsx +0 -48
  969. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/mock.stories.js +0 -143
  970. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/styles.js +0 -14
  971. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.stories.jsx +0 -46
  972. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/event-utils.js +0 -18
  973. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/index.jsx +0 -232
  974. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/mock.stories.js +0 -22
  975. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/styles.js +0 -14
  976. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/suggestions-handler.js +0 -10
@@ -0,0 +1,1239 @@
1
+ /* eslint-disable react-hooks/exhaustive-deps */
2
+ /* eslint-disable sonarjs/cognitive-complexity */
3
+ import { useEffect, useRef, useState, memo, useMemo, type MutableRefObject, type SetStateAction } from 'react';
4
+ import { ComboBox, menuHelpers, debounce, throttle, Button, Icon, type MenuGroupProps, type MenuItemProps } from '@pega/cosmos-react-core';
5
+ import PropTypes from 'prop-types';
6
+ import get from 'lodash.get';
7
+ import type { PConnFieldProps } from './PConnProps';
8
+
9
+ // includes in bundle
10
+ import handleEvent from "./event-utils";
11
+ import { suggestionsHandler } from './suggestions-handler';
12
+
13
+ import { formatExists, textFormatter } from './textformat-utils.jsx';
14
+ import { flattenParameters } from './picklist-utils.js';
15
+ import { isSelfReferencedProperty, getDescriptorsFieldName } from './repeat-utils.js';
16
+ import { getFieldNameFromEmbeddedFieldName } from './embed-utils.js';
17
+
18
+ import { usePaginate, useDeepMemo, useIsMount, updatePropertiesForNewRecord } from './utils';
19
+
20
+ import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
21
+
22
+ // interface for props
23
+ interface {{COMPONENT_CLASS_NAME}}Props extends PConnFieldProps {
24
+ // If any, enter additional props that only exist on TextInput here
25
+ isTableFormatter?: boolean;
26
+ hasSuggestions?: boolean;
27
+ formatter: string;
28
+ maxResultsDisplay: string;
29
+ matchPosition: string;
30
+ listType: string;
31
+ parameters: any;
32
+ columns: Array<any>;
33
+ cacheLifeSpan: string;
34
+ createNewRecord: any;
35
+ onRecordChange: any;
36
+ datasourceMetadata: any;
37
+ datasource: Array<any>;
38
+ deferDatasource: boolean;
39
+ additionalProps: any;
40
+ referenceType: string;
41
+ primaryField: string;
42
+ selected: boolean;
43
+ actualValue: any;
44
+ descriptors: any;
45
+ dataRelationshipContext: any;
46
+ contextClass: string;
47
+ isSearchableOnKey: boolean;
48
+ }
49
+
50
+ interface {{COMPONENT_CLASS_NAME}}PropsSubSet {
51
+ selected: any;
52
+ actualValue: any;
53
+ isTableFormatter?: boolean;
54
+ formatter: string;
55
+ }
56
+
57
+ // interface for StateProps object
58
+ interface StateProps {
59
+ value: string;
60
+ hasSuggestions: boolean;
61
+ }
62
+
63
+
64
+ export const preProcessColumns = (columns: Array<any>) => {
65
+ return columns.map(col => {
66
+ const tempColObj = { ...col };
67
+ tempColObj.value = col.value && col.value.startsWith('.') ? col.value.substring(1) : col.value;
68
+ return tempColObj;
69
+ });
70
+ };
71
+
72
+ export const getDisplayFieldsMetaData = (columns: Array<any>) => {
73
+ const visibleAndSecondaryColumns = columns.filter(
74
+ col => col.display === 'true' || col.secondary === 'true'
75
+ );
76
+ const metaDataObj = { key: '', primary: '', secondary: [], hidden: [] };
77
+ const keyCol = columns.filter(col => col.key === 'true');
78
+ metaDataObj.key = keyCol.length > 0 ? keyCol[0].value : 'auto';
79
+ for (let index = 0; index < visibleAndSecondaryColumns.length; index += 1) {
80
+ if (visibleAndSecondaryColumns[index].primary === 'true') {
81
+ metaDataObj.primary = visibleAndSecondaryColumns[index].value;
82
+ } else {
83
+ if (visibleAndSecondaryColumns[index].display === 'false') {
84
+ metaDataObj.hidden.push(visibleAndSecondaryColumns[index].value as never);
85
+ }
86
+ metaDataObj.secondary.push(visibleAndSecondaryColumns[index].value as never);
87
+ }
88
+ }
89
+ return metaDataObj;
90
+ };
91
+
92
+ export const buildColumnForDisplayValue = (dataObj: any) => {
93
+ if (dataObj.columns) {
94
+ dataObj.columns = dataObj.columns.map((column: any) => {
95
+ const tempColObj = { ...column };
96
+ if (tempColObj.key === 'true') {
97
+ tempColObj.useForSearch = true;
98
+ } else {
99
+ tempColObj.useForSearch = false;
100
+ }
101
+ return tempColObj;
102
+ });
103
+ }
104
+ };
105
+
106
+ export const doSearch = (
107
+ searchText: string,
108
+ displayFieldMeta: { key: any; primary: any; secondary: any; hidden: any },
109
+ dataApiObj: { fetchData?: any; columns?: any; isQueryable?: any; matchPosition?: any },
110
+ setItems: {
111
+ (value: SetStateAction<Array<never>>): void;
112
+ (value: SetStateAction<Array<never>>): void;
113
+ (value: SetStateAction<Array<never>>): void;
114
+ (arg0: Array<MenuItemProps | MenuGroupProps>): void;
115
+ },
116
+ setLoading: {
117
+ (value: SetStateAction<boolean>): void;
118
+ (value: SetStateAction<boolean>): void;
119
+ (value: SetStateAction<boolean>): void;
120
+ (arg0: boolean): void;
121
+ },
122
+ hasMoreResults: MutableRefObject<boolean>,
123
+ extraProps = {}
124
+ ) => {
125
+ if (dataApiObj && Object.keys(dataApiObj).length > 0 && dataApiObj.fetchData) {
126
+ let columnsWithSetProperty: string | Array<any> = [];
127
+ if (dataApiObj.columns) {
128
+ columnsWithSetProperty = dataApiObj.columns
129
+ .filter(
130
+ (col: { setProperty: string }) =>
131
+ col.setProperty && col.setProperty !== 'Associated property'
132
+ )
133
+ .map((col: { value: any }) => {
134
+ return col.value;
135
+ });
136
+ }
137
+ let listObjData = {};
138
+ dataApiObj
139
+ .fetchData(searchText)
140
+ .then((response: { data: Array<never> }) => {
141
+ listObjData = response.data || [];
142
+ // @ts-ignore
143
+ const searchedItems = listObjData.map((entry: { [x: string]: any }) => {
144
+ const secondaryArr: Array<any> = [];
145
+ const secondaryFieldValues: Array<any> = [];
146
+ displayFieldMeta.secondary.forEach((col: string) => {
147
+ if (!displayFieldMeta.hidden.includes(col)) secondaryArr.push(entry[col]);
148
+ if (columnsWithSetProperty.includes(col)) {
149
+ if (dataApiObj.isQueryable) {
150
+ secondaryFieldValues.push(entry[col]);
151
+ } else {
152
+ secondaryFieldValues.push(get(entry, getFieldNameFromEmbeddedFieldName(col)));
153
+ }
154
+ }
155
+ });
156
+ return {
157
+ id: entry[displayFieldMeta.key],
158
+ primary: entry[displayFieldMeta.primary],
159
+ secondary: secondaryArr,
160
+ secondaryFieldValues
161
+ };
162
+ });
163
+ hasMoreResults.current = true;
164
+ const {
165
+ fetchDisplayValue,
166
+ displayItem,
167
+ value,
168
+ AC_TYPE,
169
+ setSelected,
170
+ setFilterValue,
171
+ paginateHelperApis
172
+ } = extraProps as any;
173
+ if (dataApiObj.isQueryable === false) {
174
+ const progressivePaginatedRecords = paginateHelperApis.getInitialPaginatedRecords(
175
+ searchedItems,
176
+ dataApiObj.matchPosition
177
+ );
178
+ const updatedItems = menuHelpers.selectItem(searchedItems, value, AC_TYPE);
179
+ const selectedItem = menuHelpers.getSelected(updatedItems)[0];
180
+ let listIndex = -1;
181
+ const findSelectedItem = progressivePaginatedRecords.find(
182
+ (record: { id: string }, index: number) => {
183
+ if (record.id === selectedItem?.id) {
184
+ listIndex = index;
185
+ return true;
186
+ }
187
+ return false;
188
+ }
189
+ );
190
+ if (!findSelectedItem && selectedItem) {
191
+ progressivePaginatedRecords.unshift(selectedItem);
192
+ } else if (selectedItem) {
193
+ progressivePaginatedRecords.splice(listIndex, 1);
194
+ progressivePaginatedRecords.unshift(selectedItem);
195
+ }
196
+
197
+ if (fetchDisplayValue) {
198
+ setItems(progressivePaginatedRecords);
199
+ setSelected(selectedItem);
200
+ } else {
201
+ setItems(progressivePaginatedRecords);
202
+ setSelected(displayItem);
203
+ }
204
+ } else if (dataApiObj.isQueryable) {
205
+ if (value && value !== '') {
206
+ const updatedItems = menuHelpers.selectItem(searchedItems, value, AC_TYPE);
207
+ const selectedItem = menuHelpers.getSelected(updatedItems)[0];
208
+ if (!selectedItem) {
209
+ let searchedItem: any = [];
210
+ if (fetchDisplayValue) {
211
+ dataApiObj.matchPosition = 'equals';
212
+ buildColumnForDisplayValue(dataApiObj);
213
+ dataApiObj.fetchData(value).then((displayResponse: { data: Array<never> }) => {
214
+ const displayResponseData = displayResponse.data || [];
215
+
216
+ searchedItem = displayResponseData.map((entry: { [x: string]: any }) => {
217
+ const secondaryArr: Array<any> = [];
218
+ const secondaryFieldValues: Array<any> = [];
219
+ displayFieldMeta.secondary.forEach((col: string) => {
220
+ if (!displayFieldMeta.hidden.includes(col)) {
221
+ secondaryArr.push(entry[col]);
222
+ }
223
+ if (columnsWithSetProperty.includes(col)) {
224
+ if (dataApiObj.isQueryable) {
225
+ secondaryFieldValues.push(entry[col]);
226
+ } else {
227
+ secondaryFieldValues.push(
228
+ get(entry, getFieldNameFromEmbeddedFieldName(col))
229
+ );
230
+ }
231
+ }
232
+ });
233
+ return {
234
+ id: entry[displayFieldMeta.key],
235
+ primary: entry[displayFieldMeta.primary],
236
+ secondary: secondaryArr,
237
+ secondaryFieldValues
238
+ };
239
+ });
240
+ setItems(
241
+ menuHelpers.selectItem([...searchedItem, ...searchedItems], value, AC_TYPE)
242
+ );
243
+ setSelected(searchedItem[0]);
244
+ setFilterValue('');
245
+ });
246
+ } else if (displayItem) {
247
+ searchedItem = [displayItem];
248
+ setItems(
249
+ menuHelpers.selectItem([...searchedItem, ...searchedItems], value, AC_TYPE)
250
+ );
251
+ setSelected(searchedItem[0]);
252
+ setFilterValue('');
253
+ }
254
+ } else {
255
+ setItems(searchedItems);
256
+ setSelected(selectedItem);
257
+ setFilterValue('');
258
+ }
259
+ } else {
260
+ setItems(searchedItems);
261
+ if (value === '') {
262
+ setSelected(null);
263
+ }
264
+ }
265
+ } else {
266
+ setItems(searchedItems);
267
+ }
268
+ })
269
+ .catch(() => {
270
+ listObjData = [];
271
+ })
272
+ .finally(() => {
273
+ setLoading(false);
274
+ });
275
+ }
276
+ };
277
+
278
+ export const setValuesToPropertyList = (
279
+ selectedItem: any,
280
+ assocProp: any,
281
+ item: any,
282
+ columns: Array<any>,
283
+ actions: any
284
+ ) => {
285
+ const setPropertyList = columns
286
+ .filter(col => col.setProperty)
287
+ .map(col => {
288
+ return {
289
+ source: col.value,
290
+ target: col.setProperty,
291
+ key: col.key,
292
+ primary: col.value,
293
+ secondary: col.secondary
294
+ };
295
+ });
296
+ let valueToSet: any = null;
297
+ if (setPropertyList.length > 0) {
298
+ let secIndex = 0;
299
+ setPropertyList.forEach(prop => {
300
+ if (prop.key === 'true' && item) {
301
+ valueToSet = item?.id ?? '';
302
+ } else if (prop.primary === 'true' || !item) {
303
+ valueToSet = selectedItem?.primary ?? '';
304
+ }
305
+ if (prop.target === 'Associated property') {
306
+ handleEvent(actions, 'changeNblur', assocProp, valueToSet);
307
+ } else {
308
+ actions.updateFieldValue(
309
+ `.${prop.target.startsWith('.') ? prop.target.substring(1) : prop.target}`,
310
+ item?.secondaryFieldValues[secIndex]
311
+ );
312
+ actions.triggerFieldChange(
313
+ `.${prop.target.startsWith('.') ? prop.target.substring(1) : prop.target}`,
314
+ item?.secondaryFieldValues[secIndex],
315
+ true
316
+ );
317
+
318
+ secIndex += 1;
319
+ }
320
+ });
321
+ }
322
+ return valueToSet;
323
+ };
324
+
325
+ export const setValueToAssocProp = (
326
+ assocProp: any,
327
+ selectedItem: any,
328
+ listType: string,
329
+ listSource: Array<any>,
330
+ actions: any,
331
+ columns: Array<any>
332
+ ) => {
333
+ let searchedEntry: any = null;
334
+ let retValue: any;
335
+ if (listSource && listSource.length > 0 && listSource[0]) {
336
+ searchedEntry = listSource.filter(
337
+ item =>
338
+ item.id &&
339
+ selectedItem?.id &&
340
+ item.id.length === selectedItem?.id.length &&
341
+ item.id.toString().toLowerCase() === selectedItem?.id.toString().toLowerCase()
342
+ );
343
+ }
344
+ if (listType === 'associated') {
345
+ if (searchedEntry && searchedEntry.length > 0 && searchedEntry[0].id) {
346
+ retValue = searchedEntry[0].id;
347
+ handleEvent(actions, 'changeNblur', assocProp, searchedEntry[0].id);
348
+ } else {
349
+ retValue = selectedItem?.id ?? '';
350
+ handleEvent(actions, 'changeNblur', assocProp, selectedItem?.id);
351
+ }
352
+ } else if (listType === 'datapage') {
353
+ retValue = setValuesToPropertyList(
354
+ selectedItem,
355
+ assocProp,
356
+ searchedEntry?.[0],
357
+ columns,
358
+ actions
359
+ );
360
+ }
361
+ return retValue;
362
+ };
363
+
364
+ const DisplayComponent = (props: {{COMPONENT_CLASS_NAME}}PropsSubSet) => {
365
+ const { selected, actualValue, isTableFormatter, formatter } = props;
366
+
367
+ const displayCompValue = selected ? selected.primary : actualValue;
368
+ const formattedValue =
369
+ isTableFormatter && formatExists(formatter)
370
+ ? textFormatter(formatter, displayCompValue)
371
+ : displayCompValue;
372
+
373
+ return formattedValue || <span aria-hidden='true'>&ndash;&ndash;</span>;
374
+ };
375
+
376
+
377
+ // Duplicated runtime code from Constellation Design System Component
378
+
379
+ // props passed in combination of props from property panel (config.json) and run time props from Constellation
380
+ // any default values in config.pros should be set in defaultProps at bottom of this file
381
+ export function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}Props) {
382
+ const {
383
+ getPConnect,
384
+ value,
385
+ placeholder,
386
+ validatemessage,
387
+ label,
388
+ hideLabel,
389
+ helperText,
390
+ testId,
391
+ matchPosition,
392
+ maxResultsDisplay,
393
+ cacheLifeSpan,
394
+ displayMode,
395
+ onRecordChange,
396
+ createNewRecord,
397
+ datasourceMetadata,
398
+ deferDatasource,
399
+ additionalProps,
400
+ referenceType,
401
+ primaryField,
402
+ isTableFormatter,
403
+ descriptors,
404
+ dataRelationshipContext,
405
+ hasSuggestions,
406
+ contextClass
407
+ } = props;
408
+ const { formatter } = props;
409
+ let { listType, datasource, parameters, columns } = props;
410
+
411
+ // enable searhing based on the key
412
+ const { isSearchableOnKey } = props;
413
+
414
+ const [items, setItems] = useState(() => []);
415
+ let selectItem: ((id: string, ev?: any) => void) | ((arg0: never) => void);
416
+
417
+ // convert associated to datapage listtype and transform props
418
+ // Process deferDatasource when datapage name is present. WHhen tableType is promptList / localList
419
+ // no need to make any datapage call
420
+ if (deferDatasource && datasourceMetadata?.datasource?.name) {
421
+ listType = 'datapage';
422
+ datasource = datasourceMetadata.datasource.name;
423
+ parameters = flattenParameters(datasourceMetadata.datasource.parameters);
424
+ let displayProp = datasourceMetadata.datasource.propertyForDisplayText.startsWith('@P')
425
+ ? datasourceMetadata.datasource.propertyForDisplayText.substring(3)
426
+ : datasourceMetadata.datasource.propertyForDisplayText;
427
+ const valueProp = datasourceMetadata.datasource.propertyForValue.startsWith('@P')
428
+ ? datasourceMetadata.datasource.propertyForValue.substring(3)
429
+ : datasourceMetadata.datasource.propertyForValue;
430
+ if (displayProp === '') {
431
+ displayProp = valueProp;
432
+ }
433
+ let hasKey = false;
434
+ let hasAPrimaryColumn = false;
435
+ columns?.forEach(column => {
436
+ if (!hasKey && column.key === 'true') {
437
+ hasKey = true;
438
+ }
439
+ if (!hasAPrimaryColumn && column.primary === 'true') {
440
+ hasAPrimaryColumn = true;
441
+ }
442
+ });
443
+ if (!hasKey) {
444
+ columns = [
445
+ ...columns,
446
+ {
447
+ key: 'true',
448
+ setProperty: 'Associated property',
449
+ value: valueProp
450
+ }
451
+ ];
452
+ }
453
+ if (!hasAPrimaryColumn) {
454
+ columns = [
455
+ ...columns,
456
+ {
457
+ display: 'true',
458
+ primary: 'true',
459
+ useForSearch: true,
460
+ value: displayProp
461
+ }
462
+ ];
463
+ }
464
+
465
+ // to make the Autosearch Searchable on the key value
466
+ if (isSearchableOnKey) {
467
+ const existingColObj = columns.filter(col => col.value === valueProp);
468
+ if (existingColObj) {
469
+ columns.forEach(col => {
470
+ if (col.value === valueProp) {
471
+ col.useForSearch = true;
472
+ col.display = 'true';
473
+ col.secondary = 'true';
474
+ }
475
+ });
476
+ } else {
477
+ columns = [
478
+ ...columns,
479
+ {
480
+ display: 'true',
481
+ secondary: 'true',
482
+ useForSearch: true,
483
+ value: valueProp
484
+ }
485
+ ];
486
+ }
487
+ }
488
+ }
489
+
490
+ // BUG-547602: Temporary type coercion for 8.5 until DXAPIs are enhanced to pass original pxViewMetadata JSON, respecting boolean primitives
491
+ let { readOnly, required, disabled } = props;
492
+ [readOnly, required, disabled] = [readOnly, required, disabled].map(
493
+ prop => prop === true || (typeof prop === 'string' && prop === 'true')
494
+ );
495
+
496
+ const AC_TYPE = 'single-select';
497
+ const pConn = getPConnect();
498
+ const contextName = getPConnect().getContextName();
499
+ const actions = pConn.getActionsApi();
500
+ const [dataApiObj, setDataApiObj] = useState(() => ({}));
501
+ const [filterValue, setFilterValue] = useState('');
502
+ const [loading, setLoading] = useState(listType !== 'associated');
503
+ // const selected = useMemo(() => menuHelpers.getSelected(items)[0], [items]);
504
+ const [selected, setSelected] = useState();
505
+ const hasMoreResults = useRef(true);
506
+ const inputValueRef = useRef('');
507
+ const displayFieldMeta = useRef(null);
508
+ const [actualValue, setActualValue] = useState();
509
+ const [newRecordCreated, setNewRecordCreated] = useState();
510
+
511
+ const searchHandlerThrottled = throttle(doSearch, 500);
512
+ const searchHandlerDebounced = debounce(doSearch, 500);
513
+ const paginateHelperApis = usePaginate();
514
+ const isMount = useIsMount();
515
+ const [status, setStatus] = useState(hasSuggestions ? 'pending' : undefined);
516
+ const memoizedParameters = useDeepMemo(() => {
517
+ return parameters;
518
+ }, [parameters]);
519
+
520
+ const updatedColumns = useMemo(() => {
521
+ const isSecondaryColumnAvailable = columns.some(col => col.secondary === 'true');
522
+ if (referenceType === 'Case' && !isSecondaryColumnAvailable) {
523
+ const valueProp = columns.filter(col => col.key === 'true')[0].value;
524
+ const existingColObj = columns.filter(col => col.value === valueProp);
525
+ if (existingColObj) {
526
+ columns.forEach(col => {
527
+ if (col.value === valueProp) {
528
+ col.display = 'true';
529
+ col.secondary = 'true';
530
+ col.useForSearch = 'true';
531
+ }
532
+ });
533
+ } else {
534
+ columns = [
535
+ ...columns,
536
+ {
537
+ value: valueProp.startsWith('.') ? valueProp.substring(1) : valueProp,
538
+ display: 'true',
539
+ secondary: 'true',
540
+ useForSearch: 'true'
541
+ }
542
+ ];
543
+ }
544
+ }
545
+
546
+ if (descriptors && (referenceType === 'Case' || referenceType === 'Data')) {
547
+ const descriptorColumns = descriptors.map((item: string) => {
548
+ if (isSelfReferencedProperty(item, dataRelationshipContext) && !item.includes('(')) {
549
+ const name = getDescriptorsFieldName(item, contextClass);
550
+ return {
551
+ value: name,
552
+ display: 'false',
553
+ secondary: 'true',
554
+ useForSearch: 'false',
555
+ setProperty: `${item.substring(3)}`
556
+ };
557
+ }
558
+ return item;
559
+ });
560
+ columns = descriptorColumns ? [...columns, ...descriptorColumns] : columns;
561
+ }
562
+ return columns;
563
+ }, [listType]);
564
+
565
+ const dataConfig = useDeepMemo(() => {
566
+ return {
567
+ dataSource: datasource,
568
+ parameters: memoizedParameters,
569
+ matchPosition,
570
+ listType,
571
+ columns: preProcessColumns(updatedColumns),
572
+ cacheLifeSpan: cacheLifeSpan || 'form',
573
+ deferDatasource,
574
+ pageSize: '50',
575
+ enablePagination: true
576
+ };
577
+ }, [datasource, memoizedParameters, matchPosition, listType, maxResultsDisplay]);
578
+
579
+ useEffect(() => {
580
+ if (validatemessage !== '') {
581
+ setStatus('error');
582
+ }
583
+ if (hasSuggestions) {
584
+ setStatus('pending');
585
+ } else if (!hasSuggestions && status !== 'success') {
586
+ setStatus(validatemessage !== '' ? 'error' : undefined);
587
+ }
588
+ }, [validatemessage, hasSuggestions]);
589
+
590
+ // Rearranging the columns to default columns defined as key to be used as secondary columns for Case references
591
+ useEffect(() => {
592
+ displayFieldMeta.current =
593
+ listType !== 'associated'
594
+ ? getDisplayFieldsMetaData(dataConfig.columns as Array<any>)
595
+ : ({ key: '', primary: '', secondary: [], hidden: [] } as any);
596
+ }, []);
597
+
598
+ // Handling setting the combobox list for listType associated use case
599
+ useEffect(() => {
600
+ if (listType === 'associated') {
601
+ const associatedItems = datasource.map((entry: { key: any; value: any }) => {
602
+ return { id: entry.key, primary: entry.value };
603
+ });
604
+ const updatedItems = menuHelpers.selectItem(associatedItems, value?.toString(), AC_TYPE);
605
+ const selectedItem = menuHelpers.getSelected(updatedItems)[0];
606
+ const initialPaginatedRecords = paginateHelperApis.getInitialPaginatedRecords(
607
+ associatedItems,
608
+ dataConfig.matchPosition
609
+ );
610
+ const findSelectedItem = initialPaginatedRecords.find(
611
+ (record: { id: string }) => record.id === selectedItem?.id
612
+ );
613
+ if (!findSelectedItem && selectedItem) {
614
+ initialPaginatedRecords.push(selectedItem);
615
+ }
616
+ setItems(initialPaginatedRecords);
617
+ setSelected(selectedItem as SetStateAction<any>);
618
+ setActualValue(value);
619
+ setFilterValue('');
620
+ inputValueRef.current = '';
621
+ }
622
+ }, [listType, datasource, value]);
623
+
624
+ useEffect(() => {
625
+ if (!displayMode && listType === 'datapage') {
626
+ let displayItem:
627
+ | ((prevState: undefined) => undefined)
628
+ | { id: any; primary: string; secondary: Array<any> }
629
+ | { id: any; primary: string; secondary?: undefined }
630
+ | null
631
+ | undefined = null;
632
+ if (referenceType === 'Case' || referenceType === 'Data') {
633
+ displayItem =
634
+ referenceType === 'Case'
635
+ ? {
636
+ id: value,
637
+ primary: primaryField,
638
+ secondary: [value]
639
+ }
640
+ : {
641
+ id: value,
642
+ primary: primaryField
643
+ };
644
+ setSelected(displayItem as any);
645
+ }
646
+ PCore.getDataApi()
647
+ .init(dataConfig, contextName)
648
+ .then(dataObj => {
649
+ setDataApiObj(dataObj);
650
+ // To avoid calling doSearch if someone types/pastes value before the API call is made
651
+ if (!filterValue)
652
+ doSearch(
653
+ '',
654
+ getDisplayFieldsMetaData(dataConfig.columns),
655
+ dataObj,
656
+ setItems as any,
657
+ setLoading,
658
+ hasMoreResults,
659
+ {
660
+ fetchDisplayValue: false,
661
+ value,
662
+ displayItem,
663
+ AC_TYPE,
664
+ setSelected,
665
+ setFilterValue,
666
+ paginateHelperApis,
667
+ pConn
668
+ }
669
+ );
670
+ });
671
+ }
672
+ }, [value, primaryField, newRecordCreated]);
673
+
674
+ useEffect(() => {
675
+ // Checking if Case/Data ref is only called for re-render and not for mount
676
+ const dataRefMount = isMount && (referenceType === 'Case' || referenceType === 'Data');
677
+ if (!dataRefMount && !displayMode && listType === 'datapage') {
678
+ PCore.getDataApi()
679
+ .init(dataConfig, contextName)
680
+ .then(dataObj => {
681
+ setDataApiObj(dataObj);
682
+ // To avoid calling doSearch if someone types/pastes value before the API call is made
683
+ if (!filterValue) {
684
+ // @ts-ignore
685
+ if (displayFieldMeta?.current?.key === displayFieldMeta?.current?.primary) {
686
+ const displayItem = {
687
+ id: value,
688
+ primary: value,
689
+ secondary: [],
690
+ secondaryFieldValues: []
691
+ };
692
+ setSelected(displayItem as any);
693
+ doSearch(
694
+ '',
695
+ getDisplayFieldsMetaData(dataConfig.columns),
696
+ dataObj,
697
+ setItems as any,
698
+ setLoading,
699
+ hasMoreResults,
700
+ {
701
+ fetchDisplayValue: false,
702
+ value,
703
+ displayItem,
704
+ AC_TYPE,
705
+ setSelected,
706
+ setFilterValue,
707
+ paginateHelperApis,
708
+ pConn
709
+ }
710
+ );
711
+ } else {
712
+ doSearch(
713
+ '',
714
+ getDisplayFieldsMetaData(dataConfig.columns),
715
+ dataObj,
716
+ setItems as any,
717
+ setLoading,
718
+ hasMoreResults,
719
+ {
720
+ fetchDisplayValue: true,
721
+ value,
722
+ AC_TYPE,
723
+ setSelected,
724
+ setFilterValue,
725
+ paginateHelperApis,
726
+ pConn
727
+ }
728
+ );
729
+ }
730
+ }
731
+ });
732
+ }
733
+ }, [listType, dataConfig, contextName, value, memoizedParameters]);
734
+
735
+ useEffect(() => {
736
+ if (listType === 'datapage' && displayMode && displayMode?.length > 0 && value !== '') {
737
+ let displayItem: any = null;
738
+ if (referenceType === 'Case' || referenceType === 'Data') {
739
+ displayItem =
740
+ referenceType === 'Case'
741
+ ? {
742
+ id: value,
743
+ primary: primaryField,
744
+ secondary: [value]
745
+ }
746
+ : {
747
+ id: value,
748
+ primary: primaryField
749
+ };
750
+ }
751
+ setSelected(displayItem as any);
752
+ setActualValue(value);
753
+ }
754
+ }, [value, primaryField]);
755
+
756
+ useEffect(() => {
757
+ if (newRecordCreated) {
758
+ selectItem(newRecordCreated);
759
+ setNewRecordCreated(undefined);
760
+ }
761
+ }, [items.length]);
762
+
763
+ useEffect(() => {
764
+ if (
765
+ listType === 'datapage' &&
766
+ displayMode &&
767
+ displayMode?.length > 0 &&
768
+ value !== '' &&
769
+ !(referenceType === 'Case' || referenceType === 'Data')
770
+ ) {
771
+ PCore.getDataApi()
772
+ .init(dataConfig, contextName)
773
+ .then(dataObj => {
774
+ setDataApiObj(dataObj);
775
+ buildColumnForDisplayValue(dataObj);
776
+ // SET matchPosition to EQUALS to return exact matching record
777
+ dataObj.matchPosition = 'equals';
778
+ dataObj
779
+ .fetchData(value)
780
+ .then((displayResponse: { data: Array<never> }) => {
781
+ let columnsWithSetProperty: string | Array<any> = [];
782
+ // @ts-ignore
783
+ if (dataApiObj.columns) {
784
+ // @ts-ignore
785
+ columnsWithSetProperty = dataApiObj.columns
786
+ .filter(
787
+ (col: { setProperty: string }) =>
788
+ col.setProperty && col.setProperty !== 'Associated property'
789
+ )
790
+ .map((col: { value: any }) => {
791
+ return col.value;
792
+ });
793
+ }
794
+ const displayResponseData = displayResponse.data || [];
795
+
796
+ const searchedItem = displayResponseData.map((entry: { [x: string]: any }) => {
797
+ const secondaryArr: Array<any> = [];
798
+ const secondaryFieldValues: Array<any> = [];
799
+ // @ts-ignore
800
+ displayFieldMeta.current.secondary.forEach((col: string) => {
801
+ // @ts-ignore
802
+ if (!displayFieldMeta.hidden.includes(col)) secondaryArr.push(entry[col]);
803
+ if (columnsWithSetProperty.includes(col)) {
804
+ // @ts-ignore
805
+ if (dataApiObj.isQueryable) {
806
+ secondaryFieldValues.push(entry[col]);
807
+ } else {
808
+ secondaryFieldValues.push(get(entry, getFieldNameFromEmbeddedFieldName(col)));
809
+ }
810
+ }
811
+ });
812
+ return {
813
+ // @ts-ignore
814
+ id: entry[displayFieldMeta.current.key],
815
+ // @ts-ignore
816
+ primary: entry[displayFieldMeta.current.primary],
817
+ secondary: secondaryArr,
818
+ secondaryFieldValues
819
+ };
820
+ });
821
+
822
+ // @ts-ignore
823
+ setSelected(searchedItem[0]);
824
+ setActualValue(value);
825
+ // RESET matchPosition
826
+ dataObj.matchPosition = dataConfig.matchPosition;
827
+ })
828
+ .catch(() => {
829
+ setActualValue(value);
830
+ // RESET matchPosition
831
+ dataObj.matchPosition = dataConfig.matchPosition;
832
+ });
833
+ });
834
+ }
835
+ }, [listType, dataConfig, contextName, value, memoizedParameters]);
836
+
837
+ /* @ts-ignore */
838
+ const clearSelections = () => {
839
+ // @ts-ignore
840
+ setItems(cur =>
841
+ menuHelpers.mapTree(cur, item => {
842
+ return {
843
+ ...item,
844
+ selected: false
845
+ };
846
+ })
847
+ );
848
+ // @ts-ignore
849
+ setSelected(null);
850
+ inputValueRef.current = '';
851
+ };
852
+
853
+ const onChangeHandler = (ev: { target: { value: any } }) => {
854
+ if (hasSuggestions) {
855
+ // @ts-ignore
856
+ pConn.ignoreSuggestion();
857
+ setStatus(undefined);
858
+ }
859
+
860
+ // @ts-ignore
861
+ dataApiObj.columns = dataConfig.columns;
862
+ // @ts-ignore
863
+ dataApiObj.matchPosition = dataConfig.matchPosition;
864
+ const searchText = ev.target.value;
865
+ inputValueRef.current = searchText;
866
+ // If the user backspaces or deletes in full the input filterValue, Cosmos UX advises to deselect any items.
867
+ if (!searchText) {
868
+ clearSelections();
869
+ }
870
+ setFilterValue(searchText);
871
+ // @ts-ignore
872
+ if (listType === 'datapage' && dataApiObj.isQueryable) {
873
+ hasMoreResults.current = true;
874
+ if (searchText.length < 5) {
875
+ searchHandlerThrottled(
876
+ searchText,
877
+ // @ts-ignore
878
+ displayFieldMeta.current,
879
+ dataApiObj,
880
+ setItems,
881
+ setLoading,
882
+ hasMoreResults
883
+ );
884
+ } else {
885
+ searchHandlerDebounced(
886
+ searchText,
887
+ // @ts-ignore
888
+ displayFieldMeta.current,
889
+ dataApiObj,
890
+ setItems,
891
+ setLoading,
892
+ hasMoreResults
893
+ );
894
+ }
895
+ } else if (
896
+ listType === 'associated' ||
897
+ // @ts-ignore
898
+ (listType === 'datapage' && dataApiObj?.isQueryable === false)
899
+ ) {
900
+ paginateHelperApis.resetIndexes();
901
+ const progressivePaginatedRecords = paginateHelperApis.fetchData(
902
+ inputValueRef.current,
903
+ false,
904
+ // @ts-ignore
905
+ dataApiObj.columns
906
+ );
907
+ setItems(progressivePaginatedRecords);
908
+ }
909
+ };
910
+
911
+ const onBlurHandler = (ev: any) => {
912
+ // @ts-ignore
913
+ if (!ev?.id || ev?.id !== selected?.id) {
914
+ const stateProps = pConn.getStateProps() as StateProps;
915
+ const assocProp = stateProps.value;
916
+ const propValue = setValueToAssocProp(
917
+ assocProp,
918
+ selected || null,
919
+ listType,
920
+ items,
921
+ actions,
922
+ dataConfig.columns
923
+ );
924
+ if (onRecordChange) {
925
+ onRecordChange(ev, propValue);
926
+ }
927
+ }
928
+
929
+ setFilterValue('');
930
+ if (!selected && inputValueRef.current !== '') {
931
+ // @ts-ignore
932
+ if (listType === 'datapage' && dataApiObj.isQueryable) {
933
+ hasMoreResults.current = true;
934
+ searchHandlerThrottled(
935
+ '',
936
+ // @ts-ignore
937
+ displayFieldMeta.current,
938
+ dataApiObj,
939
+ setItems,
940
+ setLoading,
941
+ hasMoreResults
942
+ );
943
+ } else if (
944
+ listType === 'associated' ||
945
+ // @ts-ignore
946
+ (listType === 'datapage' && dataApiObj?.isQueryable === false)
947
+ ) {
948
+ paginateHelperApis.resetIndexes();
949
+ const progressivePaginatedRecords = paginateHelperApis.fetchData('', false);
950
+ setItems(progressivePaginatedRecords);
951
+ }
952
+ }
953
+ };
954
+
955
+ // const filtered = useMemo(() => {
956
+ // return filterValue && listType === "associated"
957
+ // ? filterAssociatedItems()
958
+ // : items;
959
+ // }, [filterValue, items, listType]);
960
+
961
+ selectItem = (id: string, ev: any = {}) => {
962
+ const updatedItems = menuHelpers.selectItem(items, id, AC_TYPE);
963
+ // @ts-ignore
964
+ setItems(cur => menuHelpers.selectItem(cur, id, AC_TYPE));
965
+ // @ts-ignore
966
+ setSelected(menuHelpers.getSelected(updatedItems)[0]);
967
+ // const { id: itemId } = menuHelpers.getSelected(updatedItems)[0];
968
+ // @ts-ignore
969
+ const assocProp = pConn.getStateProps().value;
970
+ const propValue = setValueToAssocProp(
971
+ assocProp,
972
+ menuHelpers.getSelected(updatedItems)[0],
973
+ listType,
974
+ updatedItems,
975
+ actions,
976
+ dataConfig.columns
977
+ );
978
+ setFilterValue('');
979
+ inputValueRef.current = '';
980
+ if (onRecordChange) {
981
+ ev.id = id;
982
+ onRecordChange(ev, propValue);
983
+ }
984
+ };
985
+
986
+ const removeDuplicates = (arrayOne: string | Array<any>, arrayTwo: Array<any>) => {
987
+ arrayTwo = arrayTwo.filter((item: { id: any }) => {
988
+ for (let i = 0, len = arrayOne.length; i < len; i += 1) {
989
+ if (arrayOne[i].id === item.id) {
990
+ return false;
991
+ }
992
+ }
993
+ return true;
994
+ });
995
+ return arrayTwo;
996
+ };
997
+
998
+ const loadMore = () => {
999
+ if (
1000
+ (listType === 'associated' ||
1001
+ // @ts-ignore
1002
+ (listType === 'datapage' && dataApiObj?.isQueryable === false)) &&
1003
+ paginateHelperApis.hasMoreResults(inputValueRef.current)
1004
+ ) {
1005
+ let progressivePaginatedRecords = paginateHelperApis.fetchData(inputValueRef.current, true);
1006
+ // @ts-ignore
1007
+ setItems(previousItems => {
1008
+ progressivePaginatedRecords = removeDuplicates(previousItems, progressivePaginatedRecords);
1009
+ return [...previousItems, ...progressivePaginatedRecords];
1010
+ });
1011
+ // @ts-ignore
1012
+ } else if (listType === 'datapage' && dataApiObj.isQueryable && hasMoreResults.current) {
1013
+ setLoading(true);
1014
+ dataApiObj
1015
+ // @ts-ignore
1016
+ .fetchPaginatedData(inputValueRef.current)
1017
+ .then((response: { pageSize: number; data: Array<never> }) => {
1018
+ setLoading(false);
1019
+ // @ts-ignore
1020
+ if (response.pageSize === 0 || response.pageSize < dataApiObj.pageSize) {
1021
+ hasMoreResults.current = false;
1022
+ }
1023
+ const listObjData = response.data || [];
1024
+ let columnsWithSetProperty: string | Array<any> = [];
1025
+ // @ts-ignore
1026
+ if (dataApiObj.columns) {
1027
+ // @ts-ignore
1028
+ columnsWithSetProperty = dataApiObj.columns
1029
+ .filter(
1030
+ (col: { setProperty: string }) =>
1031
+ col.setProperty && col.setProperty !== 'Associated property'
1032
+ )
1033
+ .map((col: { value: any }) => {
1034
+ return col.value;
1035
+ });
1036
+ }
1037
+
1038
+ const searchedItems = listObjData.map((entry: { [x: string]: any }) => {
1039
+ const secondaryArr: Array<any> = [];
1040
+ const secondaryFieldValues: Array<any> = [];
1041
+ // @ts-ignore
1042
+ displayFieldMeta.current.secondary.forEach((col: string) => {
1043
+ // @ts-ignore
1044
+ if (!displayFieldMeta.current.hidden.includes(col)) secondaryArr.push(entry[col]);
1045
+ if (columnsWithSetProperty.includes(col)) {
1046
+ // @ts-ignore
1047
+ if (dataApiObj.isQueryable) {
1048
+ secondaryFieldValues.push(entry[col]);
1049
+ } else {
1050
+ secondaryFieldValues.push(get(entry, getFieldNameFromEmbeddedFieldName(col)));
1051
+ }
1052
+ }
1053
+ });
1054
+ return {
1055
+ // @ts-ignore
1056
+ id: entry[displayFieldMeta.current.key],
1057
+ // @ts-ignore
1058
+ primary: entry[displayFieldMeta.current.primary],
1059
+ secondary: secondaryArr,
1060
+ secondaryFieldValues
1061
+ };
1062
+ });
1063
+ // @ts-ignore
1064
+ setItems(previousItems => [...previousItems, ...searchedItems]);
1065
+ })
1066
+ .catch(() => {
1067
+ setLoading(false);
1068
+ // @ts-ignore
1069
+ dataApiObj.pageSize -= 1;
1070
+ });
1071
+ }
1072
+ };
1073
+
1074
+ const displayComponent = useMemo(() => {
1075
+ return <Styled{{COMPONENT_CLASS_NAME}}Wrapper>
1076
+ <DisplayComponent {...{ selected, actualValue, isTableFormatter, formatter }} />
1077
+ </Styled{{COMPONENT_CLASS_NAME}}Wrapper>;
1078
+ }, [selected, actualValue, isTableFormatter, formatter]);
1079
+
1080
+ if (displayMode) {
1081
+ return displayComponent;
1082
+ }
1083
+
1084
+ const onResolveSuggestionHandler = (accepted: boolean) => {
1085
+ suggestionsHandler(accepted, pConn, setStatus);
1086
+ };
1087
+
1088
+ const createNewButtonHandler = () => {
1089
+ const { CREATE_STAGE_DONE } = PCore.getConstants().PUB_SUB_EVENTS.CASE_EVENTS;
1090
+ createNewRecord().then(() => {
1091
+ PCore.getPubSubUtils().subscribe(
1092
+ CREATE_STAGE_DONE,
1093
+ (data: { caseId: string; caseType: string }) => {
1094
+ PCore.getDataApi().clearContextedCache(contextName);
1095
+ const newCaseId = data.caseId.split(' ').pop();
1096
+ if (data.caseType === contextClass && newRecordCreated !== newCaseId) {
1097
+ // @ts-ignore
1098
+ if (pConn.isMounted && dataConfig.pageSize > items.length) {
1099
+ // @ts-ignore
1100
+ setNewRecordCreated(newCaseId);
1101
+ } else {
1102
+ updatePropertiesForNewRecord(
1103
+ dataConfig,
1104
+ contextName,
1105
+ dataApiObj,
1106
+ setDataApiObj,
1107
+ displayFieldMeta,
1108
+ pConn,
1109
+ columns,
1110
+ actions,
1111
+ newCaseId
1112
+ );
1113
+ }
1114
+
1115
+ PCore.getPubSubUtils().unsubscribe(CREATE_STAGE_DONE, contextClass);
1116
+ }
1117
+ },
1118
+ contextClass
1119
+ );
1120
+ });
1121
+ };
1122
+
1123
+
1124
+ return (
1125
+ <Styled{{COMPONENT_CLASS_NAME}}Wrapper>
1126
+ <ComboBox
1127
+ {...additionalProps}
1128
+ testId={testId ?? label}
1129
+ info={validatemessage || helperText}
1130
+ status={status}
1131
+ value={filterValue}
1132
+ label={label}
1133
+ labelHidden={hideLabel}
1134
+ readOnly={readOnly}
1135
+ required={required}
1136
+ disabled={disabled}
1137
+ placeholder={placeholder}
1138
+ {{! pick new delimiters for mustache }}
1139
+ {{=<% %>=}}
1140
+ selected={{
1141
+ // @ts-ignore
1142
+ items: selected ? { text: selected.primary, id: selected.id } : undefined
1143
+ }}
1144
+ onChange={onChangeHandler}
1145
+ onBlur={onBlurHandler}
1146
+ menu={{
1147
+ items: menuHelpers.mapTree(items, (item) => ({
1148
+ ...item,
1149
+ testId: item.id ?? undefined,
1150
+ // @ts-ignore
1151
+ selected: item.items ? undefined : !!item.selected || item.id === selected?.id
1152
+ })),
1153
+ onItemClick: selectItem,
1154
+ // @ts-ignore
1155
+ emptyText: pConn.getLocalizedValue('No items'),
1156
+ loading,
1157
+ loadMore,
1158
+ footer: createNewRecord ? (
1159
+ <Button
1160
+ label={PCore.getLocaleUtils().getLocaleValue('Create new', 'ComponentFields')}
1161
+ onClick={createNewButtonHandler}
1162
+ variant='link'
1163
+ // @ts-ignore
1164
+ compact='true'
1165
+ >
1166
+ <Icon name='plus' /> {PCore.getLocaleUtils().getLocaleValue('Create new', 'ComponentFields')}
1167
+ </Button>
1168
+ ) : undefined
1169
+ }}
1170
+ <%={{ }}=%> {{! revert delimiters for mustache }}
1171
+ mode={AC_TYPE}
1172
+ onResolveSuggestion={onResolveSuggestionHandler}
1173
+ />
1174
+ </Styled{{COMPONENT_CLASS_NAME}}Wrapper>
1175
+ );
1176
+ }
1177
+
1178
+ export default memo({{COMPONENT_CLASS_NAME}});
1179
+
1180
+ {{COMPONENT_CLASS_NAME}}.defaultProps = {
1181
+ value: '',
1182
+ matchPosition: 'contains',
1183
+ maxResultsDisplay: '',
1184
+ placeholder: '',
1185
+ hideLabel: false,
1186
+ validatemessage: '',
1187
+ helperText: '',
1188
+ disabled: false,
1189
+ readOnly: false,
1190
+ required: false,
1191
+ testId: '',
1192
+ datasource: [],
1193
+ listType: '',
1194
+ parameters: {},
1195
+ columns: [],
1196
+ cacheLifeSpan: '',
1197
+ displayMode: null,
1198
+ onRecordChange: null,
1199
+ datasourceMetadata: null,
1200
+ deferDatasource: false,
1201
+ additionalProps: {},
1202
+ formatter: '',
1203
+ referenceType: null,
1204
+ isTableFormatter: false,
1205
+ primaryField: '',
1206
+ hasSuggestions: false
1207
+ };
1208
+
1209
+ {{COMPONENT_CLASS_NAME}}.propTypes = {
1210
+ value: PropTypes.string,
1211
+ maxResultsDisplay: PropTypes.string,
1212
+ matchPosition: PropTypes.string,
1213
+ placeholder: PropTypes.string,
1214
+ label: PropTypes.string.isRequired,
1215
+ hideLabel: PropTypes.bool,
1216
+ getPConnect: PropTypes.func.isRequired,
1217
+ validatemessage: PropTypes.string,
1218
+ helperText: PropTypes.string,
1219
+ disabled: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
1220
+ readOnly: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
1221
+ required: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
1222
+ testId: PropTypes.string,
1223
+ datasource: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.any), PropTypes.string]),
1224
+ listType: PropTypes.string,
1225
+ parameters: PropTypes.objectOf(PropTypes.any),
1226
+ columns: PropTypes.arrayOf(PropTypes.object),
1227
+ cacheLifeSpan: PropTypes.string,
1228
+ displayMode: PropTypes.string,
1229
+ createNewRecord: PropTypes.func,
1230
+ onRecordChange: PropTypes.func,
1231
+ datasourceMetadata: PropTypes.objectOf(PropTypes.any),
1232
+ deferDatasource: PropTypes.bool,
1233
+ additionalProps: PropTypes.objectOf(PropTypes.any),
1234
+ formatter: PropTypes.string,
1235
+ referenceType: PropTypes.string,
1236
+ primaryField: PropTypes.string,
1237
+ isTableFormatter: PropTypes.bool,
1238
+ hasSuggestions: PropTypes.bool
1239
+ };