@pega/custom-dx-components 0.23.22 → 0.23.24

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 (206) hide show
  1. package/package.json +1 -1
  2. package/src/tasks/init/template/.eslintrc.json +1 -1
  3. package/src/tasks/init/template/babel.config.cjs +4 -4
  4. package/src/tasks/init/template/package.json.mustache +1 -1
  5. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/Boolean.js +0 -38
  6. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/PConnProps.d.ts +0 -46
  7. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/boolean-format.ts +0 -27
  8. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/config.json +0 -145
  9. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/demo.stories.tsx +0 -64
  10. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/event-utils.ts +0 -18
  11. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/index.tsx +0 -196
  12. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/mock.ts +0 -22
  13. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyBoolean/styles.ts +0 -15
  14. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCaseWidget/OneColumnPage.svg +0 -36
  15. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCaseWidget/PConnProps.d.ts +0 -46
  16. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCaseWidget/config.json +0 -23
  17. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCaseWidget/demo.stories.tsx +0 -81
  18. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCaseWidget/index.tsx +0 -81
  19. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCaseWidget/mock.ts +0 -391
  20. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCaseWidget/styles.ts +0 -15
  21. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/PConnProps.d.ts +0 -46
  22. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/config.json +0 -291
  23. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/demo.stories.tsx +0 -56
  24. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/event-utils.ts +0 -18
  25. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/index.tsx +0 -333
  26. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/mock.ts +0 -25
  27. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/styles.ts +0 -15
  28. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyCurrency/suggestions-handler.ts +0 -9
  29. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/DateFormatter.js +0 -62
  30. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/FormattedText.jsx +0 -42
  31. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/PConnProps.d.ts +0 -46
  32. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/config.json +0 -199
  33. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/date.js +0 -439
  34. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/demo.stories.tsx +0 -79
  35. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/index.tsx +0 -302
  36. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/mock.ts +0 -24
  37. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/styles.ts +0 -15
  38. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDate/suggestions-handler.ts +0 -9
  39. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/PConnProps.d.ts +0 -46
  40. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/config.json +0 -256
  41. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/date-time.js +0 -93
  42. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/date-utils.js +0 -288
  43. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/date.js +0 -331
  44. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/demo.stories.tsx +0 -79
  45. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/index.tsx +0 -297
  46. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/mock.ts +0 -25
  47. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/styles.ts +0 -15
  48. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDateTime/suggestions-handler.ts +0 -10
  49. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/PConnProps.d.ts +0 -46
  50. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/config.json +0 -278
  51. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/demo.stories.tsx +0 -52
  52. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/event-utils.ts +0 -18
  53. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/index.tsx +0 -300
  54. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/mock.ts +0 -23
  55. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/styles.ts +0 -15
  56. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDecimal/suggestions-handler.ts +0 -9
  57. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/OneColumnDetails.svg +0 -22
  58. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/PConnProps.d.ts +0 -46
  59. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/StatusWork.tsx +0 -26
  60. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/config.json +0 -35
  61. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/demo.stories.tsx +0 -137
  62. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/index.tsx +0 -101
  63. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/mock.ts +0 -192
  64. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/styles.ts +0 -15
  65. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyDetails/utils.js +0 -151
  66. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/PConnProps.d.ts +0 -46
  67. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/config.json +0 -111
  68. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/demo.stories.tsx +0 -51
  69. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/event-utils.ts +0 -18
  70. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/index.tsx +0 -251
  71. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/mock.ts +0 -24
  72. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/styles.ts +0 -15
  73. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyEmail/suggestions-handler.ts +0 -9
  74. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyForm/DefaultForm.svg +0 -29
  75. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyForm/PConnProps.d.ts +0 -46
  76. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyForm/config.json +0 -45
  77. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyForm/demo.stories.tsx +0 -175
  78. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyForm/index.tsx +0 -53
  79. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyForm/mock.ts +0 -139
  80. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyForm/styles.ts +0 -15
  81. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/PConnProps.d.ts +0 -46
  82. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/config.json +0 -344
  83. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/demo.stories.tsx +0 -51
  84. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/event-utils.ts +0 -18
  85. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/index.tsx +0 -376
  86. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/mock.ts +0 -22
  87. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/styles.ts +0 -15
  88. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyInteger/suggestions-handler.ts +0 -9
  89. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/GetNextWork.tsx +0 -43
  90. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/OneColumnPage.svg +0 -36
  91. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/PConnProps.d.ts +0 -46
  92. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/config.json +0 -32
  93. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/demo.stories.tsx +0 -106
  94. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/index.tsx +0 -83
  95. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/localizations.json +0 -4
  96. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/mock.ts +0 -96
  97. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/styles.ts +0 -15
  98. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPage/utils.js +0 -227
  99. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +0 -86
  100. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/OneColumnPage.svg +0 -36
  101. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/Operator.tsx +0 -301
  102. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/PConnProps.d.ts +0 -46
  103. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/config.json +0 -55
  104. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +0 -76
  105. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/index.tsx +0 -89
  106. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/mock.ts +0 -52
  107. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageCaseWidget/styles.ts +0 -15
  108. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageWidget/OneColumnPage.svg +0 -36
  109. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageWidget/PConnProps.d.ts +0 -46
  110. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageWidget/config.json +0 -59
  111. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageWidget/demo.stories.tsx +0 -33
  112. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageWidget/index.tsx +0 -61
  113. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageWidget/mock.ts +0 -25
  114. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPageWidget/styles.ts +0 -15
  115. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/PConnProps.d.ts +0 -46
  116. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/config.json +0 -111
  117. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/demo.stories.tsx +0 -51
  118. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/event-utils.ts +0 -18
  119. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/index.tsx +0 -248
  120. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/mock.ts +0 -22
  121. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/styles.ts +0 -15
  122. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyParagraph/suggestions-handler.ts +0 -9
  123. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/PConnProps.d.ts +0 -46
  124. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/config.json +0 -93
  125. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/demo.stories.tsx +0 -52
  126. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/event-utils.ts +0 -18
  127. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/index.tsx +0 -306
  128. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/mock.ts +0 -23
  129. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/styles.ts +0 -15
  130. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPercentage/suggestions-handler.ts +0 -9
  131. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/PConnProps.d.ts +0 -46
  132. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/config.json +0 -123
  133. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/demo.stories.tsx +0 -49
  134. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/event-utils.ts +0 -18
  135. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/index.tsx +0 -288
  136. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/mock.ts +0 -39
  137. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/styles.ts +0 -15
  138. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPhone/suggestions-handler.ts +0 -9
  139. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist/PConnProps.d.ts +0 -46
  140. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist/config.json +0 -114
  141. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist/demo.stories.tsx +0 -81
  142. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist/event-utils.ts +0 -18
  143. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist/index.tsx +0 -393
  144. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist/styles.ts +0 -15
  145. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist/suggestions-handler.ts +0 -9
  146. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/PConnProps.d.ts +0 -46
  147. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/config.json +0 -113
  148. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/demo.stories.tsx +0 -85
  149. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/event-utils.ts +0 -18
  150. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/index.tsx +0 -243
  151. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/mock.ts +0 -69
  152. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/styles.ts +0 -15
  153. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/suggestions-handler.ts +0 -9
  154. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyRadioButtons/textformat-utils.jsx +0 -161
  155. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyText/PConnProps.d.ts +0 -46
  156. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyText/config.json +0 -55
  157. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyText/demo.stories.tsx +0 -54
  158. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyText/index.tsx +0 -73
  159. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyText/mock.ts +0 -15
  160. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyText/styles.ts +0 -15
  161. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/PConnProps.d.ts +0 -46
  162. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/StatusWork.tsx +0 -30
  163. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/config.json +0 -111
  164. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/demo.stories.tsx +0 -51
  165. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/event-utils.ts +0 -18
  166. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/index.tsx +0 -263
  167. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/mock.ts +0 -23
  168. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/styles.ts +0 -15
  169. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTextInput/suggestions-handler.ts +0 -9
  170. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/PConnProps.d.ts +0 -46
  171. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/config.json +0 -185
  172. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/demo.stories.tsx +0 -60
  173. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/index.tsx +0 -245
  174. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/mock.ts +0 -22
  175. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/styles.ts +0 -15
  176. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/suggestions-handler.ts +0 -9
  177. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTimeOfDay/time-of-day.js +0 -287
  178. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/PConnProps.d.ts +0 -46
  179. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/StatusWork.tsx +0 -26
  180. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/TwoColumnDetails.svg +0 -28
  181. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/config.json +0 -42
  182. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +0 -141
  183. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/index.tsx +0 -100
  184. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/mock.ts +0 -232
  185. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/styles.ts +0 -15
  186. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnDetails/utils.js +0 -151
  187. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnForm/PConnProps.d.ts +0 -46
  188. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnForm/TwoColumn.svg +0 -38
  189. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnForm/config.json +0 -27
  190. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +0 -181
  191. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnForm/index.tsx +0 -60
  192. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnForm/mock.ts +0 -145
  193. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyTwoColumnForm/styles.ts +0 -15
  194. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/PConnProps.d.ts +0 -46
  195. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/config.json +0 -237
  196. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/demo.stories.tsx +0 -49
  197. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/event-utils.ts +0 -18
  198. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/index.tsx +0 -261
  199. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/mock.ts +0 -24
  200. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/styles.ts +0 -15
  201. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/suggestions-handler.ts +0 -9
  202. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyURL/text-url.jsx +0 -175
  203. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/mock.js +0 -68
  204. /package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/{mock.js.mustache → mock.ts.mustache} +0 -0
  205. /package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyAutocomplete/Pega_DXIL_MyPicklist → Constellation/Pega_DXIL_MyAutocomplete}/mock.ts +0 -0
  206. /package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyAutocomplete/mock.js → Launchpad/Pega_DXIL_MyAutocomplete/mock.ts} +0 -0
@@ -1,301 +0,0 @@
1
- /* eslint-disable react/jsx-fragments */
2
- import { useState, useEffect, Fragment } from 'react';
3
- import {
4
- Link,
5
- Button,
6
- Popover,
7
- useOuterEvent,
8
- useElement,
9
- Progress,
10
- FormField,
11
- useTheme
12
- } from '@pega/cosmos-react-core';
13
- import { Glimpse } from '@pega/cosmos-react-work';
14
- import { EmailDisplay } from '@pega/cosmos-react-core';
15
- import PropTypes from 'prop-types';
16
-
17
- import type { PConnFieldProps } from './PConnProps';
18
-
19
- import Avatar from './Avatar';
20
-
21
- // interface for props
22
- interface PegaDxilMyPageCaseWidgetOperatorProps extends PConnFieldProps {
23
- // If any, enter additional props that only exist on TextInput here
24
- name: string;
25
- id: string;
26
- label: string;
27
- metaObj: any;
28
- externalUser: any;
29
- }
30
-
31
- export default function Operator(props: PegaDxilMyPageCaseWidgetOperatorProps) {
32
- const { id, name, label, testId, helperText, externalUser, metaObj } = props;
33
- const [isOpen, setIsOpen] = useState(false);
34
- const [isLoading, setIsLoading] = useState(true);
35
- const [popoverTarget, setPopoverTarget] = useState(null);
36
- const [popoverEl, setPopoverEl] = useElement(null);
37
- const [popoverContent, setpopoverContent] = useState(null);
38
- const theme = useTheme();
39
-
40
- /* If the id has changed, we need to reset the popover */
41
- useEffect(() => {
42
- setPopoverTarget(null);
43
- }, [id]);
44
-
45
-
46
-
47
- const OperatorPreview = () => {
48
- let localizedVal = PCore.getLocaleUtils().getLocaleValue;
49
- let localeCategory = 'Operator';
50
- setpopoverContent(
51
- // @ts-ignore
52
- <Progress variant='ring' message={localizedVal('Loading operator...', localeCategory)} placement='local' />
53
- );
54
- if (externalUser && externalUser.classID !== 'Data-Party-Operator') {
55
- const fields = [
56
- {
57
- id: 'pyFirstName',
58
- name: localizedVal('Name', localeCategory),
59
- value: externalUser.name
60
- },
61
- {
62
- id: 'pyEmail1',
63
- name: localizedVal('Email', localeCategory),
64
- value:
65
- externalUser.email !== '' ? <Link href={`mailto:${externalUser.email}`}>{externalUser.email}</Link> : ''
66
- },
67
- {
68
- id: 'pyPhoneNumber',
69
- name: localizedVal('Phone', localeCategory),
70
- value: externalUser.phone !== '' ? <Link href={`tel:${externalUser.phone}`}>{externalUser.phone}</Link> : ''
71
- }
72
- ];
73
- setIsLoading(false);
74
- setpopoverContent(
75
- // @ts-ignore
76
- <Glimpse
77
- visual={
78
- // @ts-ignore
79
- <Avatar
80
- metaObj={{
81
- name: externalUser.name
82
- }}
83
- />
84
- }
85
- primary={externalUser.name}
86
- secondary={[externalUser.position]}
87
- fields={fields}
88
- />
89
- );
90
- } else {
91
- localizedVal = PCore.getLocaleUtils().getLocaleValue;
92
- localeCategory = 'Operator';
93
- return PCore.getUserApi()
94
- .getOperatorDetails(id, true)
95
- .then(res => {
96
- if (res.data?.data && res.data.data[0].BusinessID && res.data.data[0].Name) {
97
- const fields = [];
98
- if (res.data.data[0].Name)
99
- fields.push({
100
- id: 'Name',
101
- name: localizedVal('Name', localeCategory),
102
- value: res.data.data[0].Name
103
- });
104
- if (res.data.data[0].BusinessID)
105
- fields.push({
106
- id: 'Email',
107
- name: localizedVal('Email address', localeCategory),
108
- value: <EmailDisplay value={res.data.data[0].BusinessID} />
109
- });
110
- return (
111
- // @ts-ignore
112
- <Glimpse
113
- heading={{
114
- primary: res.data.data[0].Name,
115
- secondary: res.data.data[0].BusinessID,
116
- visual: (
117
- // @ts-ignore
118
- <Avatar
119
- metaObj={{
120
- image: '',
121
- name: res.data.data[0].Name
122
- }}
123
- />
124
- )
125
- }}
126
- fields={fields}
127
- // @ts-ignore
128
- target={popoverTarget}
129
- onDismiss={() => setPopoverTarget(null)}
130
- />
131
- );
132
- }
133
- });
134
- /*
135
- const { getOperatorDetails } = PCore.getUserApi();
136
- getOperatorDetails(id)
137
- .then((res) => {
138
- if (res.data && res.data.pyOperatorInfo && res.data.pyOperatorInfo.pyUserName) {
139
- const fields = [
140
- {
141
- id: 'pyOrganization',
142
- name: localizedVal('Organization', localeCategory),
143
- value: res.data.pyOperatorInfo.pyOrganization
144
- },
145
- {
146
- id: 'pyTelephone',
147
- name: localizedVal('Telephone', localeCategory),
148
- value:
149
- res.data.pyOperatorInfo.pyTelephone !== '' ? (
150
- <Link href={`tel:${res.data.pyOperatorInfo.pyTelephone}`}>
151
- {res.data.pyOperatorInfo.pyTelephone}
152
- </Link>
153
- ) : (
154
- ''
155
- )
156
- },
157
- {
158
- id: 'pyEmailAddress',
159
- name: localizedVal('Email address', localeCategory),
160
- value:
161
- res.data.pyOperatorInfo.pyEmailAddress !== '' ? (
162
- <Link href={`mailto:${res.data.pyOperatorInfo.pyEmailAddress}`}>
163
- {res.data.pyOperatorInfo.pyEmailAddress}
164
- </Link>
165
- ) : (
166
- ''
167
- )
168
- },
169
- {
170
- id: 'ReportToUserName',
171
- name: localizedVal('Reports to', localeCategory),
172
- value: res.data.pyOperatorInfo.pyReportToUserName
173
- }
174
- ];
175
- setIsLoading(false);
176
- setpopoverContent(
177
- // @ts-ignore
178
- <Glimpse
179
- visual={
180
- // @ts-ignore
181
- <Avatar
182
- metaObj={{
183
- image: res.data.pyOperatorInfo.pyImageInsKey || '',
184
- name: res.data.pyOperatorInfo.pyUserName
185
- }}
186
- />
187
- }
188
- primary={res.data.pyOperatorInfo.pyUserName}
189
- secondary={[res.data.pyOperatorInfo.pyPosition]}
190
- fields={fields}
191
- />
192
- );
193
- } else {
194
- setIsLoading(false);
195
- // @ts-ignore
196
- setpopoverContent(<Flex container={{ pad: 1 }}>{localizedVal('Operator not found', localeCategory)}</Flex>);
197
- }
198
- })
199
- .catch(() => {
200
- setIsLoading(false);
201
- setpopoverContent(
202
- // @ts-ignore
203
- <Flex container={{ pad: 1 }}>{localizedVal('Error loading the operator profile', localeCategory)}</Flex>
204
- );
205
- });
206
- */
207
- }
208
- };
209
-
210
-
211
- const clickAction = (e: any) => {
212
- setPopoverTarget(e.currentTarget);
213
- setIsOpen(!isOpen);
214
- if (popoverTarget === null) {
215
- OperatorPreview();
216
- }
217
- };
218
-
219
- const hidePopover = () => {
220
- if (isOpen) {
221
- setIsOpen(false);
222
- }
223
- };
224
-
225
- // @ts-ignore
226
- useOuterEvent('mousedown', [popoverEl, popoverTarget], hidePopover); // Call the method on clicking outside these elements
227
- const hideOnEscape = (e: any) => {
228
- if (e.key === 'Escape') hidePopover(); // Call the method when Escape key is pressed
229
- };
230
-
231
- const comp = (
232
- <Fragment>
233
- {metaObj ? (
234
- <Button
235
- variant='text'
236
- aria-haspopup
237
- aria-expanded={isOpen}
238
- onClick={clickAction}
239
- onKeyDown={hideOnEscape}
240
- data-test-id={testId}
241
- style={label !== null ? { width: 'max-content', height: theme.components.input.height } : undefined}
242
- >
243
- <Avatar {...props}></Avatar>
244
- </Button>
245
- ) : (
246
- <Button
247
- variant='link'
248
- aria-haspopup
249
- aria-expanded={isOpen}
250
- onClick={clickAction}
251
- onKeyDown={hideOnEscape}
252
- data-test-id={testId}
253
- style={label !== null ? { width: 'max-content', height: theme.components.input.height } : undefined}
254
- >
255
- {name}
256
- </Button>
257
- )}
258
-
259
- {isOpen && (
260
- <Popover
261
- ref={setPopoverEl}
262
- groupId='operator'
263
- target={popoverTarget}
264
- placement='bottom-start'
265
- style={isLoading ? { position: 'relative', width: '10rem', minHeight: '4rem' } : undefined}
266
- strategy='fixed'
267
- >
268
- {popoverContent}
269
- </Popover>
270
- )}
271
- </Fragment>
272
- );
273
-
274
- if (label !== null) {
275
- return (
276
- <FormField label={label} info={helperText}>
277
- {comp}
278
- </FormField>
279
- );
280
- }
281
-
282
- return comp;
283
- };
284
-
285
- Operator.propTypes = {
286
- name: PropTypes.string,
287
- id: PropTypes.string,
288
- label: PropTypes.string,
289
- testId: PropTypes.string,
290
- helperText: PropTypes.string,
291
- metaObj: PropTypes.object
292
- };
293
-
294
- Operator.defaultProps = {
295
- name: '',
296
- id: '',
297
- label: null,
298
- testId: null,
299
- helperText: null,
300
- metaObj: null
301
- };
@@ -1,46 +0,0 @@
1
- import {PConnect } from '@pega/pcore-pconnect-typedefs';
2
-
3
- // PConnProps.d.ts
4
- // This gives us a place to have each component (which is most DX Components) that is
5
- // expected to have a getPConnect extend its props (from BaseProps)
6
- // such that every component will be expected to have a getPConnect() function
7
- // that returns a PConnect object. (new/better way of doing .propTypes).
8
- // This PConnProps can be extended to include other props that we know are in every component
9
- export interface PConnProps {
10
- // getPConnect should exist for every C11n component. (add @ts-ignore in special cases where it isn't)
11
- getPConnect: () => typeof PConnect;
12
-
13
- // Allow any/all other key/value pairs in the BaseProps for now
14
- // TODO: refine which other props are always expected for various component
15
- // types and consider further interface "subclassing". For example, we may
16
- // want to create a "BasePropsForm" that gives guidance on required, readonly, etc.
17
- // and any other props that every Form component expects.
18
- // For example, see the PConnFieldProps below.
19
- // NOTE: if you uncomment the line below, the PConnProps type will allow
20
- // otherwise undefined types to appear. This can be helpful for debugging
21
- // or when adding new components whose types aren't yet known.
22
- // [key: string]: any;
23
- }
24
-
25
-
26
- // PConnFieldProps extends PConnProps to bring in the common properties that are
27
- // associated with most field components (ex: Dropdown, TextInput, etc.) in the
28
- // components/field directory
29
- export interface PConnFieldProps extends PConnProps {
30
- label: string,
31
- required: boolean,
32
- disabled: boolean,
33
- value: any,
34
- validatemessage: string,
35
- status?: string,
36
- onChange?: any,
37
- onBlur?: any,
38
- readOnly: boolean,
39
- testId: string,
40
- helperText: string,
41
- displayMode?: string,
42
- hideLabel: boolean,
43
- placeholder?: string,
44
- fieldMetadata?: any,
45
- additionalProps?: any
46
- }
@@ -1,55 +0,0 @@
1
- {
2
- "name": "Pega_DXIL_MyPageCaseWidget",
3
- "label": "My PageCase Widget",
4
- "description": "My PageCase Widget",
5
- "organization": "Pega",
6
- "version": "0.0.1",
7
- "library": "DXIL",
8
- "allowedApplications": [],
9
- "componentKey": "Pega_DXIL_MyPageCaseWidget",
10
- "type": "Widget",
11
- "subtype": ["PAGE","CASE"],
12
- "icon": "OneColumnPage.svg",
13
- "properties": [
14
- {
15
- "name": "title",
16
- "label": "Label value",
17
- "format": "TEXT"
18
- },
19
- {
20
- "format": "SELECT",
21
- "label": "Usage",
22
- "name": "label",
23
- "defaultValue": "Create operator",
24
- "localize": true,
25
- "source": [
26
- {
27
- "key": "Create operator",
28
- "value": "Create operator"
29
- },
30
- {
31
- "key": "Update operator",
32
- "value": "Update operator"
33
- }
34
- ]
35
- },
36
-
37
- {
38
- "label": "Conditions",
39
- "format": "GROUP",
40
- "properties": [
41
- {
42
- "name": "visibility",
43
- "label": "Visibility",
44
- "format": "VISIBILITY"
45
- }
46
- ]
47
- }
48
- ],
49
- "defaultConfig": {
50
- "label": "Create operator",
51
- "title": "Create operator",
52
- "createLabel": "@L Created",
53
- "updateLabel": "@L Updated"
54
- }
55
- }
@@ -1,76 +0,0 @@
1
- /* eslint-disable react/jsx-no-useless-fragment */
2
- // @ts-nocheck
3
- import { withKnobs } from '@storybook/addon-knobs';
4
-
5
- import PegaDxilMyPageCaseWidget from './index.jsx';
6
-
7
- import { configProps, operatorDetails } from './mock';
8
-
9
- export default {
10
- title: 'PegaDxilMyPageCaseWidget',
11
- decorators: [withKnobs],
12
- component: PegaDxilMyPageCaseWidget
13
- };
14
-
15
- if (!window.PCore) {
16
- window.PCore = {};
17
- }
18
-
19
- window.PCore.getLocaleUtils = () => {
20
- return {
21
- getLocaleValue: value => {
22
- return value;
23
- }
24
- };
25
- };
26
-
27
- window.PCore.getUserApi = () => {
28
- return {
29
- getOperatorDetails: () => {
30
- return new Promise(resolve => {
31
- resolve(operatorDetails);
32
- });
33
- }
34
- };
35
- };
36
-
37
- export const BasePegaDxilMyPageCaseWidget = () => {
38
-
39
- const props = {
40
- label: configProps.label,
41
- createLabel: configProps.createLabel,
42
- updateLabel: configProps.updateLabel,
43
- createOperator: configProps.createOperator,
44
- updateOperator: configProps.updateOperator,
45
- createDateTime: configProps.createDateTime,
46
- updateDateTime: configProps.updateDateTime,
47
- hideLabel: configProps.hideLabel,
48
-
49
- getPConnect: () => {
50
- return {
51
- getActionsApi: () => {
52
- return {
53
- updateFieldValue: () => {/* nothing */},
54
- triggerFieldChange: () => {/* nothing */}
55
- };
56
- },
57
- getCaseSummary: () => {
58
- return {
59
- user: configProps.updateOperator.userId,
60
- dateTimeValue: configProps.updateDateTime
61
- }
62
- },
63
- ignoreSuggestion: () => {/* nothing */},
64
- acceptSuggestion: () => {/* nothing */},
65
- setInheritedProps: () => {/* nothing */},
66
- resolveConfigProps: () => {/* nothing */}
67
- };
68
- }
69
- };
70
-
71
- return (
72
- <>
73
- <PegaDxilMyPageCaseWidget {...props} />
74
- </>
75
- );
76
- };
@@ -1,89 +0,0 @@
1
-
2
- /* eslint-disable react/jsx-fragments */
3
- import { Fragment } from 'react';
4
- import { DateTimeDisplay, Card, CardHeader, CardContent, Flex } from '@pega/cosmos-react-core';
5
- import PropTypes from 'prop-types';
6
- import type { PConnFieldProps } from './PConnProps';
7
-
8
- // includes in bundle
9
- import Operator from './Operator';
10
-
11
- import StyledPegaDxilMyPageCaseWidgetWrapper from './styles';
12
-
13
-
14
- // interface for props
15
- interface PegaDxilMyPageCaseWidgetProps extends PConnFieldProps {
16
- // If any, enter additional props that only exist on TextInput here
17
- title: string;
18
- createLabel: string;
19
- updateLabel: string;
20
- }
21
-
22
- // Created for Launchpad
23
-
24
- // props passed in combination of props from property panel (config.json) and run time props from Constellation
25
- // any default values in config.pros should be set in defaultProps at bottom of this file
26
- export default function PegaDxilMyPageCaseWidget(props: PegaDxilMyPageCaseWidgetProps) {
27
-
28
- const {
29
- getPConnect,
30
- title,
31
- label,
32
- createLabel,
33
- updateLabel
34
- } = props;
35
-
36
-
37
- const { createTime, createdBy, lastUpdateTime, lastUpdatedBy } = getPConnect().getCaseSummary();
38
-
39
- const [_label, user, dateTimeValue] =
40
- label === 'Create operator'
41
- ? [createLabel, createdBy, createTime]
42
- : [updateLabel, lastUpdatedBy, lastUpdateTime];
43
-
44
-
45
-
46
- return (
47
- <StyledPegaDxilMyPageCaseWidgetWrapper>
48
- <Card>
49
- <CardHeader>{title}</CardHeader>
50
- <CardContent>
51
- <Flex container={{ direction: 'row'}}>
52
- <Operator label={_label} name={user} id={user} getPConnect={getPConnect} value={undefined} validatemessage='' hideLabel={false} readOnly={false} required={false} disabled={false} externalUser={undefined} />
53
- {dateTimeValue && (
54
- <Fragment>
55
- {' '}
56
- <DateTimeDisplay value={dateTimeValue} variant='relative' />
57
- </Fragment>
58
- )}
59
- </Flex>
60
- </CardContent>
61
- </Card>
62
-
63
- </StyledPegaDxilMyPageCaseWidgetWrapper>
64
- );
65
-
66
-
67
-
68
- }
69
-
70
- PegaDxilMyPageCaseWidget.defaultProps = {
71
- "label": "Create operator",
72
- "title": "Create operator",
73
- createLabel: null,
74
- updateLabel: null
75
- };
76
-
77
- PegaDxilMyPageCaseWidget.propTypes = {
78
- getPConnect: PropTypes.func.isRequired,
79
- label: PropTypes.string,
80
- title: PropTypes.string,
81
- createLabel: PropTypes.string,
82
- updateLabel: PropTypes.string
83
- };
84
-
85
- // as objects are there in props, shallow comparision fails & re-rendering of comp happens even with
86
- // same key value pairs in obj. hence using custom comparison function on when to re-render
87
- // const comparisonFn = (prevProps, nextProps) => {
88
- // return prevProps.updateDateTime === nextProps.updateDateTime;
89
- // };
@@ -1,52 +0,0 @@
1
- // @ts-nocheck
2
- export const configProps = {
3
- label: 'Create operator',
4
- createLabel: 'Created',
5
- updateLabel: 'Updated',
6
- updateDateTime: '2023-01-16T14:53:33.280Z',
7
- createDateTime: '2023-01-16T14:53:33.198Z',
8
- updateOperator: {
9
- userId: 'admin@mediaco',
10
- userName: 'admin'
11
- },
12
- createOperator: {
13
- userId: 'admin@mediaco',
14
- userName: 'admin'
15
- },
16
- hideLabel: true,
17
- key: '_532zx1dah',
18
- displayMode: 'LABELS_LEFT'
19
- };
20
-
21
- export const operatorDetails = {
22
- data: {
23
- pzLoadTime: 'January 18, 2023 10:33:19 AM EST',
24
- pzPageNameHash: '_pa1519192551088960pz',
25
- pyOperatorInfo: {
26
- pyUserName: 'french DigV2',
27
- pyPosition: '',
28
- pyImageInsKey: '',
29
- pySkills: [
30
- {
31
- pySkillName: '',
32
- pzIndexOwnerKey: 'DATA-ADMIN-OPERATOR-ID FRENCHTEST.DIGV2',
33
- pySkillRating: 0
34
- }
35
- ],
36
- pyReportToUserName: '',
37
- pyReportTo: '',
38
- pyOrganization: 'DXIL',
39
- pyTitle: '',
40
- pyLabel: 'frenchTest.DigV2',
41
- pyEmailAddress: 'User@DigV2',
42
- pyTelephone: ''
43
- }
44
- },
45
- status: 200,
46
- statusText: '',
47
- headers: {
48
- 'content-length': '435',
49
- 'content-type': 'application/json;charset=UTF-8'
50
- },
51
- request: {}
52
- };
@@ -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,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>