@pega/custom-dx-components 0.23.22 → 0.23.23

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 (205) hide show
  1. package/package.json +1 -1
  2. package/src/tasks/init/template/.eslintrc.json +1 -1
  3. package/src/tasks/init/template/package.json.mustache +1 -1
  4. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/Boolean.js +0 -38
  5. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/PConnProps.d.ts +0 -46
  6. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/boolean-format.ts +0 -27
  7. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/config.json +0 -145
  8. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/demo.stories.tsx +0 -64
  9. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/event-utils.ts +0 -18
  10. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/index.tsx +0 -196
  11. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/mock.ts +0 -22
  12. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/styles.ts +0 -15
  13. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCaseWidget/OneColumnPage.svg +0 -36
  14. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCaseWidget/PConnProps.d.ts +0 -46
  15. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCaseWidget/config.json +0 -23
  16. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCaseWidget/demo.stories.tsx +0 -81
  17. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCaseWidget/index.tsx +0 -81
  18. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCaseWidget/mock.ts +0 -391
  19. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCaseWidget/styles.ts +0 -15
  20. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/PConnProps.d.ts +0 -46
  21. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/config.json +0 -291
  22. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/demo.stories.tsx +0 -56
  23. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/event-utils.ts +0 -18
  24. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/index.tsx +0 -333
  25. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/mock.ts +0 -25
  26. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/styles.ts +0 -15
  27. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/suggestions-handler.ts +0 -9
  28. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/DateFormatter.js +0 -62
  29. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/FormattedText.jsx +0 -42
  30. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/PConnProps.d.ts +0 -46
  31. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/config.json +0 -199
  32. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/date.js +0 -439
  33. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/demo.stories.tsx +0 -79
  34. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/index.tsx +0 -302
  35. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/mock.ts +0 -24
  36. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/styles.ts +0 -15
  37. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/suggestions-handler.ts +0 -9
  38. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/PConnProps.d.ts +0 -46
  39. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/config.json +0 -256
  40. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/date-time.js +0 -93
  41. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/date-utils.js +0 -288
  42. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/date.js +0 -331
  43. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/demo.stories.tsx +0 -79
  44. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/index.tsx +0 -297
  45. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/mock.ts +0 -25
  46. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/styles.ts +0 -15
  47. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/suggestions-handler.ts +0 -10
  48. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/PConnProps.d.ts +0 -46
  49. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/config.json +0 -278
  50. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/demo.stories.tsx +0 -52
  51. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/event-utils.ts +0 -18
  52. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/index.tsx +0 -300
  53. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/mock.ts +0 -23
  54. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/styles.ts +0 -15
  55. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/suggestions-handler.ts +0 -9
  56. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/OneColumnDetails.svg +0 -22
  57. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/PConnProps.d.ts +0 -46
  58. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/StatusWork.tsx +0 -26
  59. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/config.json +0 -35
  60. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/demo.stories.tsx +0 -137
  61. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/index.tsx +0 -101
  62. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/mock.ts +0 -192
  63. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/styles.ts +0 -15
  64. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/utils.js +0 -151
  65. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/PConnProps.d.ts +0 -46
  66. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/config.json +0 -111
  67. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/demo.stories.tsx +0 -51
  68. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/event-utils.ts +0 -18
  69. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/index.tsx +0 -251
  70. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/mock.ts +0 -24
  71. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/styles.ts +0 -15
  72. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/suggestions-handler.ts +0 -9
  73. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyForm/DefaultForm.svg +0 -29
  74. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyForm/PConnProps.d.ts +0 -46
  75. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyForm/config.json +0 -45
  76. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyForm/demo.stories.tsx +0 -175
  77. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyForm/index.tsx +0 -53
  78. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyForm/mock.ts +0 -139
  79. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyForm/styles.ts +0 -15
  80. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/PConnProps.d.ts +0 -46
  81. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/config.json +0 -344
  82. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/demo.stories.tsx +0 -51
  83. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/event-utils.ts +0 -18
  84. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/index.tsx +0 -376
  85. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/mock.ts +0 -22
  86. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/styles.ts +0 -15
  87. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/suggestions-handler.ts +0 -9
  88. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/GetNextWork.tsx +0 -43
  89. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/OneColumnPage.svg +0 -36
  90. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/PConnProps.d.ts +0 -46
  91. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/config.json +0 -32
  92. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/demo.stories.tsx +0 -106
  93. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/index.tsx +0 -83
  94. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/localizations.json +0 -4
  95. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/mock.ts +0 -96
  96. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/styles.ts +0 -15
  97. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/utils.js +0 -227
  98. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +0 -86
  99. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/OneColumnPage.svg +0 -36
  100. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/Operator.tsx +0 -301
  101. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/PConnProps.d.ts +0 -46
  102. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/config.json +0 -55
  103. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +0 -76
  104. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/index.tsx +0 -89
  105. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/mock.ts +0 -52
  106. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/styles.ts +0 -15
  107. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageWidget/OneColumnPage.svg +0 -36
  108. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageWidget/PConnProps.d.ts +0 -46
  109. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageWidget/config.json +0 -59
  110. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageWidget/demo.stories.tsx +0 -33
  111. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageWidget/index.tsx +0 -61
  112. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageWidget/mock.ts +0 -25
  113. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageWidget/styles.ts +0 -15
  114. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/PConnProps.d.ts +0 -46
  115. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/config.json +0 -111
  116. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/demo.stories.tsx +0 -51
  117. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/event-utils.ts +0 -18
  118. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/index.tsx +0 -248
  119. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/mock.ts +0 -22
  120. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/styles.ts +0 -15
  121. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/suggestions-handler.ts +0 -9
  122. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/PConnProps.d.ts +0 -46
  123. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/config.json +0 -93
  124. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/demo.stories.tsx +0 -52
  125. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/event-utils.ts +0 -18
  126. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/index.tsx +0 -306
  127. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/mock.ts +0 -23
  128. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/styles.ts +0 -15
  129. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/suggestions-handler.ts +0 -9
  130. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/PConnProps.d.ts +0 -46
  131. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/config.json +0 -123
  132. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/demo.stories.tsx +0 -49
  133. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/event-utils.ts +0 -18
  134. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/index.tsx +0 -288
  135. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/mock.ts +0 -39
  136. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/styles.ts +0 -15
  137. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/suggestions-handler.ts +0 -9
  138. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist/PConnProps.d.ts +0 -46
  139. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist/config.json +0 -114
  140. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist/demo.stories.tsx +0 -81
  141. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist/event-utils.ts +0 -18
  142. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist/index.tsx +0 -393
  143. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist/styles.ts +0 -15
  144. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist/suggestions-handler.ts +0 -9
  145. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/PConnProps.d.ts +0 -46
  146. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/config.json +0 -113
  147. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/demo.stories.tsx +0 -85
  148. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/event-utils.ts +0 -18
  149. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/index.tsx +0 -243
  150. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/mock.ts +0 -69
  151. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/styles.ts +0 -15
  152. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/suggestions-handler.ts +0 -9
  153. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/textformat-utils.jsx +0 -161
  154. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyText/PConnProps.d.ts +0 -46
  155. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyText/config.json +0 -55
  156. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyText/demo.stories.tsx +0 -54
  157. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyText/index.tsx +0 -73
  158. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyText/mock.ts +0 -15
  159. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyText/styles.ts +0 -15
  160. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/PConnProps.d.ts +0 -46
  161. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/StatusWork.tsx +0 -30
  162. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/config.json +0 -111
  163. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/demo.stories.tsx +0 -51
  164. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/event-utils.ts +0 -18
  165. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/index.tsx +0 -263
  166. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/mock.ts +0 -23
  167. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/styles.ts +0 -15
  168. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/suggestions-handler.ts +0 -9
  169. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/PConnProps.d.ts +0 -46
  170. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/config.json +0 -185
  171. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/demo.stories.tsx +0 -60
  172. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/index.tsx +0 -245
  173. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/mock.ts +0 -22
  174. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/styles.ts +0 -15
  175. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/suggestions-handler.ts +0 -9
  176. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/time-of-day.js +0 -287
  177. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/PConnProps.d.ts +0 -46
  178. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/StatusWork.tsx +0 -26
  179. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/TwoColumnDetails.svg +0 -28
  180. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/config.json +0 -42
  181. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +0 -141
  182. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/index.tsx +0 -100
  183. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/mock.ts +0 -232
  184. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/styles.ts +0 -15
  185. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/utils.js +0 -151
  186. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnForm/PConnProps.d.ts +0 -46
  187. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnForm/TwoColumn.svg +0 -38
  188. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnForm/config.json +0 -27
  189. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +0 -181
  190. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnForm/index.tsx +0 -60
  191. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnForm/mock.ts +0 -145
  192. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnForm/styles.ts +0 -15
  193. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/PConnProps.d.ts +0 -46
  194. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/config.json +0 -237
  195. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/demo.stories.tsx +0 -49
  196. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/event-utils.ts +0 -18
  197. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/index.tsx +0 -261
  198. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/mock.ts +0 -24
  199. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/styles.ts +0 -15
  200. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/suggestions-handler.ts +0 -9
  201. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/text-url.jsx +0 -175
  202. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/mock.js +0 -68
  203. /package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/{mock.js.mustache → mock.ts.mustache} +0 -0
  204. /package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist → Constellation/Pega_DXIL_MyAutocomplete}/mock.ts +0 -0
  205. /package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyAutocomplete/mock.js → Launchpad/Pega_DXIL_MyAutocomplete/mock.ts} +0 -0
@@ -1,83 +0,0 @@
1
- import { useMemo, Children } from 'react';
2
- import PropTypes from 'prop-types';
3
- import { OneColumnPage as OneColumn } from '@pega/cosmos-react-core';
4
- import { ConfigurableLayout } from '@pega/cosmos-react-work'
5
- // import { registerIcon } from '@pega/cosmos-react-core';
6
- import type { PConnFieldProps } from './PConnProps';
7
-
8
-
9
-
10
- // temp
11
- // import * as headlineIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/headline.icon';
12
-
13
- import StyledPegaDxilMyPageWrapper from './styles';
14
-
15
- import GetNextWork from './GetNextWork';
16
- import { getLayoutDataFromRegion } from './utils';
17
-
18
- // temp
19
- // registerIcon(headlineIcon);
20
-
21
- // currently getting 'icon' from props is not supported with iconRegistry
22
- // have to manually get icon, so can't determine a runtime for now
23
- // so "headline" icon is hardcoded.
24
-
25
- // interface for props
26
- interface PegaDxilMyPageProps extends PConnFieldProps {
27
- // If any, enter additional props that only exist on TextInput here
28
- children: any;
29
- title: string;
30
- useConfigurableLayout: boolean;
31
- enableGetNextWork: boolean;
32
- }
33
-
34
- // Duplicated runtime code from Constellation Design System Component
35
-
36
- // props passed in combination of props from property panel (config.json) and run time props from Constellation
37
- // any default values in config.pros should be set in defaultProps at bottom of this file
38
- export default function PegaDxilMyPage(props: PegaDxilMyPageProps) {
39
-
40
- // add back in icon when working
41
- // const { children, title, icon, useConfigurableLayout, getPConnect, enableGetNextWork } = props;
42
- const { children, title, useConfigurableLayout, getPConnect, enableGetNextWork } = props;
43
- const childArray = useMemo(() => {
44
- return Children.toArray(children);
45
- }, [children]);
46
- const child0: any = childArray[0];
47
- const layoutItemsA = useMemo(() => {
48
- return getLayoutDataFromRegion(child0);
49
- }, [child0]);
50
-
51
- // temp
52
- const tempIcon = "pi pi-headline";
53
-
54
- return (
55
-
56
- <StyledPegaDxilMyPageWrapper>
57
- <OneColumn
58
- // @ts-ignore
59
- a={useConfigurableLayout ? <ConfigurableLayout items={layoutItemsA} /> : childArray[0]}
60
- title={title}
61
- icon={tempIcon?.replace('pi pi-', '')}
62
- // @ts-ignore
63
- actions={enableGetNextWork ? <GetNextWork getPConnect={getPConnect} /> : null}
64
- />
65
- </StyledPegaDxilMyPageWrapper>
66
-
67
- );
68
-
69
-
70
-
71
- }
72
-
73
- PegaDxilMyPage.defaultProps = {
74
- /* icon: '', */
75
- useConfigurableLayout: false
76
- };
77
-
78
- PegaDxilMyPage.propTypes = {
79
- children: PropTypes.arrayOf(PropTypes.node).isRequired,
80
- title: PropTypes.string.isRequired,
81
- /* icon: PropTypes.string, */
82
- useConfigurableLayout: PropTypes.bool
83
- };
@@ -1,4 +0,0 @@
1
- {
2
- "Get next work" : "Get next work",
3
- "No task currently available" : "No task currently available"
4
- }
@@ -1,96 +0,0 @@
1
-
2
- // @ts-nocheck
3
- export const pyHome1Raw = {
4
- name: 'pyHome1',
5
- type: 'View',
6
- config: {
7
- type: 'landingpage',
8
- template: 'OneColumnPage',
9
- icon: 'home-solid',
10
- title: '@ENV APPLICATION_DESC',
11
- ruleClass: 'DIXL-MediaCo-UIPages',
12
- localeReference: '@LR DIXL-MEDIACO-UIPAGES!PAGE!PYHOME1',
13
- enableGetNextWork: true,
14
- context: 'pyPortal'
15
- },
16
- children: [
17
- {
18
- name: 'A',
19
- type: 'Region',
20
- children: [
21
- {
22
- type: 'AppAnnouncement',
23
- config: {
24
- label: '@L App announcement',
25
- description:
26
- "We've launched a brand new experience to accelerate your workflow. Check out the guides to help you get the most of Cosmos.",
27
- whatsnewlink: 'https://design.pega.com',
28
- image:
29
- 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzOSAxMSI+PHRpdGxlPlBlZ2EgdGV4dC1vbmx5IGxvZ288L3RpdGxlPjxwYXRoIHN0eWxlPSJmaWxsLW9wYWNpdHk6IC4yNTsiIGZpbGw9IiNmZmYiIGQ9Ik03LjcyIDMuODJjMCAyLjI1LTEuNzggMy40MS00IDMuNDFoLTEuNnYzSDBWLjQyaDMuOTRjMi4zNiAwIDMuNzggMS4zOSAzLjc4IDMuNHptLTQtMS40N2gtMS42djNoMS43QTEuNDcgMS40NyAwIDAgMCA1LjUgMy44MmMwLS45MS0uNjUtMS40Ny0xLjc1LTEuNDd6bTcuNjggNS45MWg1LjN2Mkg5LjI5Vi40Mmg3LjM4djEuOTNoLTUuMjR2Mmg0LjI0djEuOWgtNC4yNHpNMjMuMTggMGE1IDUgMCAwIDEgMy41NyAxLjI4TDI1LjYzIDIuOGEzLjc4IDMuNzggMCAwIDAtMS4wNS0uNjNBNC4zMiA0LjMyIDAgMCAwIDIzLjMxIDIgMy4xNyAzLjE3IDAgMCAwIDIwIDUuMjdhMy4xNiAzLjE2IDAgMCAwIDEgMi4zOSAzLjA3IDMuMDcgMCAwIDAgMi4xNy44NCA0LjYgNC42IDAgMCAwIDIuMDktLjVWNi4xOWgtMi4yVjQuMzhoNC4yNXY0LjU2YTUuNDEgNS40MSAwIDAgMS00LjA4IDEuNTdBNS4zNSA1LjM1IDAgMCAxIDE5LjQzIDlhNS4wNSA1LjA1IDAgMCAxLTEuNTYtMy43NCA1LjIxIDUuMjEgMCAwIDEgMS41Ni0zLjc2QTUuMzEgNS4zMSAwIDAgMSAyMy4xOCAwem0xMS4yOS40Mmw0LjEzIDkuNzloLTIuMjVMMzUuNDggOGgtNC4wNmwtLjkgMi4xOGgtMi4yTDMyLjUxLjQyem0uMjUgNS43MkwzMy40NCAzbC0xLjI5IDMuMTR6bTMtNWEuNzEuNzEgMCAwIDEtLjc0Ljc1LjcxLjcxIDAgMCAxLS43My0uNzUuNzMuNzMgMCAwIDEgLjc1LS43Mi43Mi43MiAwIDAgMSAuNzUuNzF6TTM3IC41M2EuNTkuNTkgMCAwIDAtLjYuNi42MS42MSAwIDEgMCAxLjIxIDAgLjYuNiAwIDAgMC0uNjEtLjZ6bS0uMjQgMVYuNzFIMzdjLjEyIDAgLjE4LjA2LjI1LjA2YS4yMS4yMSAwIDAgMSAuMDcuMTguMTkuMTkgMCAwIDEtLjA3LjE4cy0uMDcuMDgtLjEzLjA4bC4yNi4zNmgtLjJMMzcgMS4yOGgtLjF2LjI5em0uMTMtLjQ0aC4yM2EuMjYuMjYgMCAwIDAgLjA3LS4wOWgtLjA2Yy0uMDUtLjE3LS4wNS0uMTctLjEzLS4xN2gtLjF6Ii8+PC9zdmc+',
30
- datasource: {
31
- source: '@DATASOURCE D_pyAnnouncements.pxResults',
32
- fields: {
33
- name: '@P .pyLabel'
34
- }
35
- }
36
- }
37
- }
38
- ]
39
- }
40
- ],
41
- classID: 'DIXL-MediaCo-UIPages'
42
- };
43
-
44
- export const pyHome1Resolved = {
45
- name: 'pyHome1',
46
- type: 'View',
47
- config: {
48
- type: 'landingpage',
49
- template: 'OneColumnPage',
50
- icon: 'home-solid',
51
- title: '@ENV APPLICATION_DESC',
52
- ruleClass: 'DIXL-MediaCo-UIPages',
53
- localeReference: '@LR DIXL-MEDIACO-UIPAGES!PAGE!PYHOME1',
54
- enableGetNextWork: true,
55
- context: 'pyPortal'
56
- },
57
- children: [
58
- {
59
- name: 'A',
60
- type: 'Region',
61
- getPConnect: () => {
62
- return {
63
- getComponentName: () => {
64
- return '';
65
- },
66
- getComponent: () => {
67
- return pyHome1Resolved.children[0];
68
- },
69
- getConfigProps: () => {
70
- return {};
71
- }
72
- };
73
- },
74
- children: [
75
- {
76
- type: 'AppAnnouncement',
77
- config: {
78
- label: '@L App announcement',
79
- description:
80
- "We've launched a brand new experience to accelerate your workflow. Check out the guides to help you get the most of Cosmos.",
81
- whatsnewlink: 'https://design.pega.com',
82
- image:
83
- 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzOSAxMSI+PHRpdGxlPlBlZ2EgdGV4dC1vbmx5IGxvZ288L3RpdGxlPjxwYXRoIHN0eWxlPSJmaWxsLW9wYWNpdHk6IC4yNTsiIGZpbGw9IiNmZmYiIGQ9Ik03LjcyIDMuODJjMCAyLjI1LTEuNzggMy40MS00IDMuNDFoLTEuNnYzSDBWLjQyaDMuOTRjMi4zNiAwIDMuNzggMS4zOSAzLjc4IDMuNHptLTQtMS40N2gtMS42djNoMS43QTEuNDcgMS40NyAwIDAgMCA1LjUgMy44MmMwLS45MS0uNjUtMS40Ny0xLjc1LTEuNDd6bTcuNjggNS45MWg1LjN2Mkg5LjI5Vi40Mmg3LjM4djEuOTNoLTUuMjR2Mmg0LjI0djEuOWgtNC4yNHpNMjMuMTggMGE1IDUgMCAwIDEgMy41NyAxLjI4TDI1LjYzIDIuOGEzLjc4IDMuNzggMCAwIDAtMS4wNS0uNjNBNC4zMiA0LjMyIDAgMCAwIDIzLjMxIDIgMy4xNyAzLjE3IDAgMCAwIDIwIDUuMjdhMy4xNiAzLjE2IDAgMCAwIDEgMi4zOSAzLjA3IDMuMDcgMCAwIDAgMi4xNy44NCA0LjYgNC42IDAgMCAwIDIuMDktLjVWNi4xOWgtMi4yVjQuMzhoNC4yNXY0LjU2YTUuNDEgNS40MSAwIDAgMS00LjA4IDEuNTdBNS4zNSA1LjM1IDAgMCAxIDE5LjQzIDlhNS4wNSA1LjA1IDAgMCAxLTEuNTYtMy43NCA1LjIxIDUuMjEgMCAwIDEgMS41Ni0zLjc2QTUuMzEgNS4zMSAwIDAgMSAyMy4xOCAwem0xMS4yOS40Mmw0LjEzIDkuNzloLTIuMjVMMzUuNDggOGgtNC4wNmwtLjkgMi4xOGgtMi4yTDMyLjUxLjQyem0uMjUgNS43MkwzMy40NCAzbC0xLjI5IDMuMTR6bTMtNWEuNzEuNzEgMCAwIDEtLjc0Ljc1LjcxLjcxIDAgMCAxLS43My0uNzUuNzMuNzMgMCAwIDEgLjc1LS43Mi43Mi43MiAwIDAgMSAuNzUuNzF6TTM3IC41M2EuNTkuNTkgMCAwIDAtLjYuNi42MS42MSAwIDEgMCAxLjIxIDAgLjYuNiAwIDAgMC0uNjEtLjZ6bS0uMjQgMVYuNzFIMzdjLjEyIDAgLjE4LjA2LjI1LjA2YS4yMS4yMSAwIDAgMSAuMDcuMTguMTkuMTkgMCAwIDEtLjA3LjE4cy0uMDcuMDgtLjEzLjA4bC4yNi4zNmgtLjJMMzcgMS4yOGgtLjF2LjI5em0uMTMtLjQ0aC4yM2EuMjYuMjYgMCAwIDAgLjA3LS4wOWgtLjA2Yy0uMDUtLjE3LS4wNS0uMTctLjEzLS4xN2gtLjF6Ii8+PC9zdmc+',
84
- datasource: {
85
- source: '@DATASOURCE D_pyAnnouncements.pxResults',
86
- fields: {
87
- name: '@P .pyLabel'
88
- }
89
- }
90
- }
91
- }
92
- ]
93
- }
94
- ],
95
- classID: 'DIXL-MediaCo-UIPages'
96
- };
@@ -1,15 +0,0 @@
1
-
2
- // utilizing theming, comment out, if want individual style
3
- import styled from 'styled-components';
4
- import { Configuration } from '@pega/cosmos-react-core';
5
-
6
- export default styled(Configuration)``;
7
-
8
- // individual style, comment out above, and uncomment here and add styles
9
- // import styled, { css } from 'styled-components';
10
- //
11
- // export default styled.div(() => {
12
- // return css`
13
- // margin: 0px 0;
14
- // `;
15
- // });
@@ -1,227 +0,0 @@
1
-
2
- import { createUID } from '@pega/cosmos-react-core';
3
-
4
- // import { LazyMap as LazyComponentMap } from '../../components_map';
5
-
6
- const LazyComponentMap = {};
7
-
8
- /**
9
- * Given the PConnect object of a Template component, retrieve the children
10
- * metadata of all regions.
11
- * @param {Function} pConnect PConnect of a Template component.
12
- */
13
- export function getAllFields(pConnect) {
14
- const metadata = pConnect().getRawMetadata();
15
- if (!metadata.children) {
16
- return [];
17
- }
18
-
19
- let allFields = [];
20
-
21
- const makeField = (f) => ({
22
- ...pConnect().resolveConfigProps(f.config),
23
- type: f.type
24
- });
25
-
26
- const hasRegions = !!metadata.children[0]?.children;
27
- if (hasRegions) {
28
- allFields = metadata.children.map((region) =>
29
- region.children.map((field) => {
30
- // Do not resolve the config props if is status work, instead create component here as status badge and mark as status display
31
- if (field.config?.value === '@P .pyStatusWork') {
32
- field.type = 'TextInput';
33
- field.config.displayAsStatus = true;
34
- return pConnect().createComponent(field);
35
- }
36
-
37
- return makeField(field);
38
- })
39
- );
40
- } else {
41
- allFields = metadata.children.map(makeField);
42
- }
43
-
44
- return allFields;
45
- }
46
-
47
- /**
48
- * A helper function to create an object consisting react component as per the type.
49
- * This is used by CaseSummary template.
50
- * @param {object} configObject Object containing meta information for the particular field authored
51
- * @param {Function} getPConnect PConnect function passed along to other components.
52
- * @param {string} displayMode displayMode string contains information about the layout of component in review mode.
53
- */
54
- export function prepareComponentInCaseSummary(configObject, getPConnect, displayMode) {
55
- const { config, children } = configObject;
56
- let { type } = configObject;
57
- const caseSummaryComponentObject = {};
58
- let showAddressLabel = true;
59
- if (config && config.value === '@P .pyStatusWork') {
60
- config.displayAsStatus = true;
61
- type = 'TextInput'; // force the type to be TextInput for status field.
62
- // As TextInput is loaded forcefully sometimes, TextInput component might not be available in lazy map.
63
- // Load TextInput if it is not available.
64
- if (!LazyComponentMap[type]) {
65
- PCore.getAssetLoader().getLoader('component-loader')([type]);
66
- }
67
- }
68
-
69
- caseSummaryComponentObject.name = getPConnect().resolveConfigProps({
70
- label: config.label
71
- }).label;
72
- if (type === 'CaseOperator') {
73
- switch (caseSummaryComponentObject.name) {
74
- case 'Create operator':
75
- caseSummaryComponentObject.name = getPConnect().resolveConfigProps({
76
- createLabel: config.createLabel
77
- }).createLabel;
78
- break;
79
- case 'Update operator':
80
- caseSummaryComponentObject.name = getPConnect().resolveConfigProps({
81
- updateLabel: config.updateLabel
82
- }).updateLabel;
83
- break;
84
- default:
85
- caseSummaryComponentObject.name = getPConnect().resolveConfigProps({
86
- resolveLabel: config.resolveLabel
87
- }).resolveLabel;
88
- break;
89
- }
90
- } else if (type === 'Checkbox') {
91
- caseSummaryComponentObject.name = getPConnect().resolveConfigProps({
92
- label: config.caption
93
- }).label;
94
- } else if (type === 'Address') {
95
- showAddressLabel = false;
96
- }
97
- const createdComponent = getPConnect().createComponent({
98
- type,
99
- children: children ? [...children] : [],
100
- showAddressLabel,
101
- config: {
102
- ...config,
103
- hideLabel: true,
104
- key: createUID() // Need a unique key on render of the summary so that the component is recreated each time
105
- }
106
- });
107
- createdComponent.props.getPConnect().setInheritedProp('displayMode', displayMode);
108
- if (type === 'Address') {
109
- createdComponent.props.getPConnect().setInheritedProp('showAddressLabel', showAddressLabel);
110
- }
111
- // createdComponent.props.getPConnect().setInheritedProp("hideLabel", true);
112
- caseSummaryComponentObject.value = createdComponent;
113
- if (type === 'reference') {
114
- caseSummaryComponentObject.name = createdComponent.props.getPConnect().getInheritedProps().label;
115
- }
116
-
117
- return caseSummaryComponentObject;
118
- }
119
-
120
- export function getFilteredFields(getPConnect) {
121
- let primaryFieldsRaw;
122
- let secondaryFieldsRaw;
123
- const metadata = getPConnect().getRawMetadata();
124
- const hasRegions = !!metadata.children[0]?.children;
125
- if (hasRegions) {
126
- primaryFieldsRaw = metadata.children[0].children;
127
- secondaryFieldsRaw = metadata.children[1].children;
128
- } else {
129
- [primaryFieldsRaw, secondaryFieldsRaw] = metadata.children;
130
- }
131
-
132
- // Filter out fields that are not visible and unsupported types for primary fields (for CaseSummary)
133
- primaryFieldsRaw = primaryFieldsRaw.filter((item) => {
134
- const resolvedItem = getPConnect().resolveConfigProps(item.config);
135
- return resolvedItem.visibility !== false && item.type !== 'TextContent';
136
- });
137
-
138
- secondaryFieldsRaw = secondaryFieldsRaw.filter((item) => {
139
- const resolvedItem = getPConnect().resolveConfigProps(item.config);
140
- return resolvedItem.visibility !== false && item.type !== 'TextContent';
141
- });
142
-
143
- return [primaryFieldsRaw, secondaryFieldsRaw];
144
- }
145
-
146
- /**
147
- * Returns ConfigurableLayout mapped content. With pre-populated default layout configs.
148
- * @param {object[]} regionData template children item.
149
- * @returns {object[]} ConfigurableLayout content.
150
- */
151
- export function getLayoutDataFromRegion(regionData) {
152
- const defaultLayoutConfig = {
153
- width: 'full',
154
- fillAvailable: true,
155
- minWidth: [300, 'px']
156
- };
157
-
158
- return regionData.props
159
- ?.getPConnect()
160
- ?.getChildren()
161
- ?.map((item, index) => {
162
- const itemPConnect = item?.getPConnect();
163
-
164
- return {
165
- id: itemPConnect?.getComponentName() ? `${itemPConnect.getComponentName()}--${index}` : `item--${index}`,
166
- content: itemPConnect?.getComponent(),
167
- layoutConfig: {
168
- ...defaultLayoutConfig,
169
- ...itemPConnect?.getConfigProps().layoutConfig
170
- }
171
- };
172
- });
173
- }
174
-
175
- /**
176
- * Determine if the current view is the view of the case step/assignment.
177
- * @param {Function} pConnect PConnect object for the component
178
- */
179
- export function getIsAssignmentView(pConnect) {
180
- // Get caseInfo content from the store which contains the view info about the current assignment/step
181
- // TODO To be replaced with pConnect.getCaseInfo().getCurrentAssignmentView when it's available
182
- const assignmentViewClass = pConnect.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_CLASSID);
183
- const assignmentViewName = pConnect.getValue(PCore.getConstants().CASE_INFO.ASSIGNMENTACTION_ID);
184
-
185
- const assignmentViewId = `${assignmentViewName}!${assignmentViewClass}`;
186
-
187
- // Get the info about the current view from pConnect
188
- const currentViewId = `${pConnect.getCurrentView()}!${pConnect.getCurrentClassID()}`;
189
-
190
- return assignmentViewId === currentViewId;
191
- }
192
-
193
- /**
194
- * A hook that gets the instructions content for a view.
195
- * @param {Function} pConnect PConnect object for the component
196
- * @param {string} [instructions="casestep"] 'casestep', 'none', or the html content of a Rule-UI-Paragraph rule (processed via core's paragraph annotation handler)
197
- */
198
- export function getInstructions(pConnect, instructions = 'casestep') {
199
- const caseStepInstructions = pConnect.getValue(PCore.getConstants().CASE_INFO.INSTRUCTIONS);
200
-
201
- // Determine if this view is the current assignment/step view
202
- const isCurrentAssignmentView = getIsAssignmentView(pConnect);
203
-
204
- // Case step instructions
205
- if (instructions === 'casestep' && isCurrentAssignmentView && caseStepInstructions?.length) {
206
- return caseStepInstructions;
207
- }
208
-
209
- // No instructions
210
- if (instructions === 'none') {
211
- return undefined;
212
- }
213
-
214
- // If the annotation wasn't processed correctly, don't return any instruction text
215
- if (instructions?.startsWith('@PARAGRAPH')) {
216
- console.error('@PARAGRAPH annotation was not processed. Hiding custom instructions.');
217
- return undefined;
218
- }
219
-
220
- // Custom instructions from the view
221
- // The raw metadata for `instructions` will be something like '@PARAGRAPH .SomeParagraphRule' but
222
- // it is evaluated by core logic to the content
223
- if (instructions !== 'casestep' && instructions !== 'none') {
224
- return instructions;
225
- }
226
- return undefined;
227
- }
@@ -1,86 +0,0 @@
1
- /* eslint-disable react-hooks/rules-of-hooks */
2
- import { useEffect, useState } from 'react';
3
- import PropTypes from 'prop-types';
4
- import { Avatar as CosmosAvatar } from '@pega/cosmos-react-core';
5
- import type { PConnFieldProps } from './PConnProps';
6
-
7
- // interface for props
8
- interface PegaDxilMyPageCaseWidgetAvatarProps extends PConnFieldProps {
9
- // If any, enter additional props that only exist on TextInput here
10
- metaObj: any;
11
- showStatus: boolean;
12
-
13
- }
14
-
15
- function Avatar(props: PegaDxilMyPageCaseWidgetAvatarProps) {
16
- const { metaObj, showStatus } = props;
17
- const [imageBlobUrl, setImageBlobUrl] = useState(null);
18
- let userName: string;
19
- let userIdentifier: string;
20
-
21
- // TODO Below if conditions can be removed once we have apis to get worklist/mywork info
22
- // This is non CaseView case (Dashboard, MyWork etc)
23
- if (!metaObj) {
24
- userName = PCore.getEnvironmentInfo().getOperatorName();
25
- userIdentifier = PCore.getEnvironmentInfo().getOperatorIdentifier();
26
- } else {
27
- userName = metaObj.name;
28
- userIdentifier = metaObj.ID;
29
- }
30
- if (!userName && userIdentifier) {
31
- userName = userIdentifier;
32
- }
33
-
34
- useEffect(() => {
35
- const imageKey = !metaObj ? PCore.getEnvironmentInfo().getOperatorImageInsKey() : metaObj.image;
36
- if (imageKey) {
37
- PCore.getAssetLoader()
38
- .getSvcImage(imageKey)
39
- .then((blob) => window.URL.createObjectURL(blob))
40
- .then((imagePath) => setImageBlobUrl(imagePath as React.SetStateAction<any>));
41
- }
42
- }, [metaObj]);
43
-
44
- if (showStatus) {
45
- const currentState = PCore.getMessagingServiceManager().getUserPresence().getUserState(userIdentifier);
46
- const [userState, setUserState] = useState(currentState === 'online' ? 'active' : 'inactive');
47
-
48
- // @ts-ignore
49
- const handleUserStateChange = ({ state }) => {
50
- setUserState(state === 'online' ? 'active' : 'inactive');
51
- };
52
-
53
- useEffect(() => {
54
- const subId = PCore.getMessagingServiceManager()
55
- .getUserPresence()
56
- // @ts-ignore
57
- .subscribe(userIdentifier, handleUserStateChange);
58
-
59
- return function cleanup() {
60
- PCore.getMessagingServiceManager().getUserPresence().unsubscribe(userIdentifier, subId);
61
- };
62
- }, [handleUserStateChange, userIdentifier]);
63
- // @ts-ignore
64
- return <CosmosAvatar name={userName} imageSrc={imageBlobUrl} status={userState} />;
65
- }
66
-
67
- // Do not render when userName does not exists
68
- // TODO : In CNR case, pxRequestor is not available, please remove this condition once it populates
69
- if (!userName) {
70
- return null;
71
- }
72
-
73
- return <CosmosAvatar name={userName} imageSrc={imageBlobUrl as React.SetStateAction<any>} />;
74
- }
75
-
76
- Avatar.propTypes = {
77
- metaObj: PropTypes.objectOf(PropTypes.any),
78
- showStatus: PropTypes.bool
79
- };
80
-
81
- Avatar.defaultProps = {
82
- metaObj: null,
83
- showStatus: false
84
- };
85
-
86
- export default Avatar;
@@ -1,36 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="100px" height="70px" viewBox="0 0 100 70" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <title>1 col </title>
4
- <defs>
5
- <rect id="path-1" x="0" y="0" width="100" height="70"></rect>
6
- </defs>
7
- <g id="Concepts" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
- <g id="Templates" transform="translate(-98.000000, -108.000000)">
9
- <g id="Change-template" transform="translate(42.000000, 36.000000)">
10
- <g id="1-col-" transform="translate(56.000000, 72.000000)">
11
- <mask id="mask-2" fill="white">
12
- <use xlink:href="#path-1"></use>
13
- </mask>
14
- <rect stroke="#A5A8BC" stroke-width="0.5" x="0.25" y="0.25" width="99.5" height="69.5"></rect>
15
- <g id="white" mask="url(#mask-2)" fill="#FFFFFF">
16
- <g transform="translate(3.000000, 3.000000)" id="Rectangle">
17
- <rect x="0" y="0" width="94" height="66.5"></rect>
18
- </g>
19
- </g>
20
- <g id="gray" mask="url(#mask-2)" fill="#8084A7">
21
- <g transform="translate(6.000000, 6.000000)" id="Rectangle">
22
- <rect x="0" y="-2.84217094e-14" width="88" height="77.8"></rect>
23
- </g>
24
- </g>
25
- <g id="labels" mask="url(#mask-2)" font-family="OpenSans-Semibold, Open Sans" font-size="11" font-weight="500">
26
- <g transform="translate(44.000000, 17.000000)" id="A">
27
- <text>
28
- <tspan x="0.75" y="12" fill="#FFFFFF">A</tspan>
29
- </text>
30
- </g>
31
- </g>
32
- </g>
33
- </g>
34
- </g>
35
- </g>
36
- </svg>