@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,287 +0,0 @@
1
- import dayjs from "dayjs";
2
- import relativeTime from 'dayjs/plugin/relativeTime.js';
3
- import localizedFormat from 'dayjs/plugin/localizedFormat.js';
4
- import utc from 'dayjs/plugin/utc.js';
5
- import timezone from 'dayjs/plugin/timezone.js';
6
-
7
- dayjs.extend(relativeTime);
8
- dayjs.extend(localizedFormat);
9
- dayjs.extend(utc);
10
- dayjs.extend(timezone);
11
-
12
- /**
13
- * Return relative time in fromNow for the given datetime
14
- * @description Convert and return the given datetime in dayJSObject
15
- *
16
- * @param {string} text datetime
17
- * @returns {object} datetime as a dayjs object
18
- */
19
- export const getDayJSObject = (text) => {
20
- const momObj = dayjs(text);
21
- if (momObj.isValid()) return momObj;
22
- const timeStamp = text;
23
- const isDateTime = timeStamp.indexOf("GMT") !== -1;
24
- const year = parseInt(timeStamp.substr(0, 4), 10);
25
- const month = parseInt(timeStamp.substr(4, 2), 10) - 1;
26
- const day = parseInt(timeStamp.substr(6, 2), 10);
27
-
28
- const CurrentTz = PCore.getLocaleUtils().getTimeZoneInUse();
29
-
30
- let mom = new Date();
31
-
32
- mom.setUTCDate(day);
33
- mom.setUTCMonth(month);
34
- mom.setUTCFullYear(year);
35
-
36
- /* istanbul ignore else */
37
- if (isDateTime) {
38
- const hours = parseInt(timeStamp.substr(9, 2), 10);
39
- const minutes = parseInt(timeStamp.substr(11, 2), 10);
40
- const seconds = parseInt(timeStamp.substr(13, 2), 10);
41
- const ms = parseInt(timeStamp.substr(16, 3), 10);
42
- mom.setUTCHours(hours);
43
- mom.setUTCMinutes(minutes);
44
- mom.setUTCSeconds(seconds);
45
- mom.setUTCMilliseconds(ms);
46
- }
47
-
48
- mom = dayjs(
49
- mom.toLocaleString("en-US", {
50
- timeZone: CurrentTz
51
- })
52
- );
53
-
54
- return mom;
55
- };
56
-
57
- /**
58
- * Return relative time in fromNow for the given datetime
59
- *
60
- * @param {string} time datetime
61
- * @returns {object} relative time from now
62
- */
63
- export const getRelativeTime = (time) => {
64
- let relativetime = "";
65
- if (dayjs(time).isUTC()) {
66
- relativetime = dayjs(time).fromNow();
67
- } else {
68
- const dayjstime = getDayJSObject(time);
69
- relativetime = dayjs(dayjstime).fromNow();
70
- }
71
- return relativetime;
72
- };
73
-
74
- /**
75
- * Return year for the date passed
76
- *
77
- * @param {string} value from which Year needs to be taken out
78
- * @returns {number} year for the date passed
79
- */
80
- export const getFullYear = (value) =>
81
- value ? new Date(value).getFullYear() : new Date().getFullYear();
82
-
83
- /**
84
- * Return maxDate for the date passed
85
- *
86
- * @param {number} nextYears next number of years
87
- * @param {number} currentYear current year
88
- * @param {number} yearFromValue year set on value in redux
89
- *
90
- * @returns {string} maxDate calculated based on inputs
91
- */
92
- export const getMaxDate = (nextYears, currentYear, yearFromValue) => {
93
- if (Number.isNaN(nextYears)) {
94
- nextYears = 20;
95
- }
96
- let maxYear = currentYear + nextYears;
97
- if (yearFromValue > maxYear) {
98
- maxYear = yearFromValue;
99
- }
100
- return `${maxYear}-01-01`;
101
- };
102
-
103
- /**
104
- * Return minDate for the date passed
105
- *
106
- * @param {number} previousYears previous number of years
107
- * @param {number} currentYear current year
108
- * @param {number} yearFromValue year set on value in redux
109
- *
110
- * @returns {string} minDate calculated based on inputs
111
- */
112
- export const getMinDate = (previousYears, currentYear, yearFromValue) => {
113
- if (Number.isNaN(previousYears)) {
114
- previousYears = 100;
115
- }
116
- let minYear = currentYear - previousYears;
117
- if (yearFromValue < minYear) {
118
- minYear = yearFromValue;
119
- }
120
- return `${minYear}-12-31`;
121
- };
122
-
123
- /**
124
- * Return clockFormat after parsing
125
- *
126
- * @param {number | string} clockFormat chosen by user
127
- *
128
- * @returns {number} clockFormat
129
- */
130
- export const parseClockFormat = (clockFormat) =>
131
- typeof clockFormat === "string" ? parseInt(clockFormat, 10) : clockFormat;
132
-
133
- /**
134
- * Return datetime value string off to seconds
135
- *
136
- * @param {string} datetime in ISO format
137
- * @param {boolean} withSeconds to specify if seconds is needed or not
138
- *
139
- * @returns {string} datetime after stripping of ms and seconds if selected to
140
- */
141
- export const correctDateTimeToSeconds = (datetime, withSeconds) => {
142
- if (withSeconds) {
143
- return `${datetime.substring(0, datetime.indexOf("Z"))}.000Z`;
144
- }
145
- return `${datetime.substring(0, datetime.lastIndexOf(":"))}:00.000Z`;
146
- };
147
-
148
- /**
149
- * Return time value string off to seconds
150
- *
151
- * @param {string} datetime in ISO format
152
- * @param {boolean} withSeconds to specify if seconds is needed or not
153
- *
154
- * @returns {string} just time after stripping of ms and seconds if selected to
155
- */
156
- export const timeCorrectedToSeconds = (datetime, withSeconds) => {
157
- if (withSeconds) {
158
- return datetime.substring(datetime.indexOf("T") + 1, datetime.indexOf("."));
159
- }
160
- return `${datetime.substring(
161
- datetime.indexOf("T") + 1,
162
- datetime.lastIndexOf(":")
163
- )}:00`;
164
- };
165
-
166
- /**
167
- * This function handles the cosmos blur handler of DateTime components
168
- *
169
- * @param {string | undefined} errorState for the selected datetime value
170
- * @param {string} actualValue present in redux
171
- * @param {string} formattedValue retrieved by trimming ISO to just Date/Time, also applying timezone if DateTime
172
- * @param {object} actions object which has fire and blur callbacks
173
- * @param {string} propName name of the property bound
174
- * @param {object} pConn component's PConnect object which is useful to invoke validationApi
175
- *
176
- * @returns {void}
177
- */
178
- export const datetimeFireChangeBlurEvents = (
179
- errorState,
180
- actualValue,
181
- formattedValue,
182
- actions,
183
- propName,
184
- pConn
185
- ) => {
186
-
187
- // TODO - clean up, we should not rely on timestamp from cosmos to check InComplete validation
188
- // above triggerFieldChange should have validated this
189
- if (errorState) {
190
- pConn.getValidationApi().validate(errorState);
191
- }
192
- // BUG-640834 In errorState presist old values avoiding store update & re-render.
193
- else{
194
- if (formattedValue !== actualValue) {
195
- actions.updateFieldValue(propName, formattedValue);
196
- }
197
- actions.triggerFieldChange(propName, formattedValue);
198
- }
199
- };
200
-
201
- /**
202
- * Return Date format for the locale passed
203
- *
204
- * @param {string} locale locale string
205
- * @param {object} options options for format string
206
- * @returns {string} dateformat for the locale
207
- * Example : getDateFormat("pl-PL") returns "DD.MM.YYYY"
208
- */
209
- export const getDateFormat = (locale, options) => {
210
- return new Intl.DateTimeFormat(locale, options)
211
- .formatToParts()
212
- .map(({ type, value }) => {
213
- switch (type) {
214
- case "day":
215
- return "DD";
216
- case "month":
217
- return "MM";
218
- case "year":
219
- return "YYYY";
220
- case "hour":
221
- return "hh";
222
- case "minute":
223
- return "mm";
224
- case "second":
225
- return "ss";
226
- case "dayPeriod":
227
- return "A";
228
- case "literal":
229
- return value;
230
- default:
231
- return "";
232
- }
233
- })
234
- .join("");
235
- };
236
-
237
- /**
238
- * Return boolean for the locale passed to specify if locale uses 12 hour format
239
- *
240
- * @param {string} locale locale string
241
- * @returns {boolean} True or False for the locale
242
- * Example : getDateFormat("pl-PL") returns false
243
- */
244
- export const is12HClockFormat = (locale) => {
245
- const meridiem = new Intl.DateTimeFormat(locale, {
246
- hour: "numeric"
247
- })
248
- .formatToParts()
249
- .find(({ type }) => type === "dayPeriod");
250
- return !!(meridiem === null || meridiem === undefined
251
- ? undefined
252
- : meridiem.value);
253
- };
254
-
255
- /**
256
- * Return Option object for Time formatting
257
- *
258
- * @param {boolean} withSeconds true or false depending on seconds to be included
259
- * @param {boolean} is12h 12 hour format
260
- * @returns {object} options object time formatting
261
- * Example : getTimeOptions(false, true) returns {hour: 'numeric',minute: 'numeric',hour12: true}
262
- */
263
- export const getTimeOptions = (withSeconds, is12h = false) => {
264
- return {
265
- hour: "numeric",
266
- minute: "numeric",
267
- ...(withSeconds && { second: "numeric" }),
268
- hour12: is12h
269
- };
270
- };
271
-
272
- /**
273
- * Return Option object for Datetime formatting
274
- *
275
- * @param {boolean} withSeconds true or false depending on seconds to be included
276
- * @param {boolean} is12h 12 hour format
277
- * @returns {object} options object datetime formatting
278
- * Example : getDateTimeOptions(false, true) returns {year: 'numeric',month: 'numeric',day: 'numeric',hour: 'numeric',minute: 'numeric',hour12: true}
279
- */
280
- export const getDateTimeOptions = (withSeconds, is12h = false) => {
281
- return {
282
- year: "numeric",
283
- month: "numeric",
284
- day: "numeric",
285
- ...getTimeOptions(withSeconds, is12h)
286
- };
287
- };
@@ -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,26 +0,0 @@
1
- import { Status } from "@pega/cosmos-react-core";
2
-
3
- export default function StatusWorkRenderer({ value }: any) {
4
- let variant: "pending" | "success" | "info" | "warn" | "urgent" = "info";
5
-
6
- const warnStrings = ["fail", "cancel", "reject", "revoke", "stopped", "warn"];
7
- const infoStrings = ["open", "hold", "info", "new"];
8
- const successStrings = ["resolved", "completed", "success"];
9
- const pendingStrings = ["pending"];
10
-
11
- if (new RegExp(warnStrings.join("|"), "i").test(value)) {
12
- variant = "warn";
13
- } else if (new RegExp(infoStrings.join("|"), "i").test(value)) {
14
- variant = "info";
15
- } else if (new RegExp(successStrings.join("|"), "i").test(value)) {
16
- variant = "success";
17
- } else if (new RegExp(pendingStrings.join("|"), "i").test(value)) {
18
- variant = "pending";
19
- }
20
-
21
- return (
22
- <Status type="rectangle" variant={variant}>
23
- {value}
24
- </Status>
25
- );
26
- }
@@ -1,28 +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>2 col </title>
4
- <g id="Page-Config" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
- <g id="Page-layouts" transform="translate(-847.000000, -84.000000)">
6
- <g id="2-col-" transform="translate(847.000000, 84.000000)">
7
- <rect id="bg" stroke="#A5A8BC" stroke-width="0.5" fill="#E7E9EB" x="0.25" y="0.25" width="99.5" height="69.5"></rect>
8
- <g id="white" transform="translate(3.000000, 3.000000)" fill="#FFFFFF">
9
- <rect id="Rectangle" x="0" y="0" width="94" height="66.5"></rect>
10
- </g>
11
- <g id="gray-copy-2" transform="translate(6.000000, 6.000000)" fill="#8084A7">
12
- <rect id="Rectangle" x="0" y="-2.84217094e-14" width="42" height="63.8"></rect>
13
- <rect id="Rectangle" x="46" y="-2.84217094e-14" width="42" height="63.8"></rect>
14
- </g>
15
- <g id="labels-copy" transform="translate(22.000000, 17.000000)" fill="#FFFFFF" font-family="OpenSans-Semibold, Open Sans" font-size="11" font-weight="500">
16
- <text id="B">
17
- <tspan x="45.75" y="12">B</tspan>
18
- </text>
19
- <g id="labels">
20
- <text id="A">
21
- <tspan x="0.75" y="12">A</tspan>
22
- </text>
23
- </g>
24
- </g>
25
- </g>
26
- </g>
27
- </g>
28
- </svg>
@@ -1,42 +0,0 @@
1
- {
2
- "name": "Pega_DXIL_MyTwoColumnDetails",
3
- "label": "My Two Column Details",
4
- "description": "My Two Column Details",
5
- "organization": "Pega",
6
- "version": "0.0.1",
7
- "library": "DXIL",
8
- "allowedApplications": [],
9
- "componentKey": "Pega_DXIL_MyTwoColumnDetails",
10
- "type": "Template",
11
- "subtype": "DETAILS",
12
- "icon": "TwoColumnDetails.svg",
13
- "properties": [
14
- {
15
- "name": "showHighlightedData",
16
- "label": "Enable highlighted fields",
17
- "format": "BOOLEAN"
18
- },
19
- {
20
- "name": "highlightedData",
21
- "label": "Highlighted fields",
22
- "format": "CONTENTPICKER",
23
- "addTypeList": ["Fields"],
24
- "visibility": "$this.showHighlightedData = true",
25
- "saveToConfig": true
26
- },
27
- {
28
- "name": "A",
29
- "label": "Region A",
30
- "format": "CONTENTPICKER",
31
- "addTypeList": ["Fields", "Views"],
32
- "allowCreatingGroup": true
33
- },
34
- {
35
- "name": "B",
36
- "label": "Region B",
37
- "format": "CONTENTPICKER",
38
- "addTypeList": ["Fields", "Views"],
39
- "allowCreatingGroup": true
40
- }
41
- ]
42
- }
@@ -1,141 +0,0 @@
1
-
2
-
3
- // @ts-nocheck
4
- import { Text, FieldValueList, Button, DateTimeDisplay, useTheme } from '@pega/cosmos-react-core';
5
- import PegaDxilMyTwoColumnDetails from './index';
6
- import { pyReviewRaw, pyReviewResolved, regionChildrenResolved } from './mock';
7
- import StatusWorkRenderer from './StatusWork';
8
-
9
- export default {
10
- title: 'PegaDxilMyTwoColumnDetails',
11
- component: PegaDxilMyTwoColumnDetails
12
- };
13
-
14
- const renderField = resolvedProps => {
15
- const {
16
- displayAsStatus = false,
17
- displayMode,
18
- value = '',
19
- label = '',
20
- key,
21
- // eslint-disable-next-line react-hooks/rules-of-hooks
22
- theme = useTheme()
23
- } = resolvedProps;
24
-
25
- const variant = displayMode === 'LABELS_LEFT' ? 'inline' : 'stacked';
26
-
27
- let val =
28
- value !== '' ? (
29
- <Text variant='h1' as='span' key={key}>
30
- {value}
31
- </Text>
32
- ) : (
33
- ''
34
- );
35
-
36
- if (label === 'Create date/time')
37
- val = (
38
- <DateTimeDisplay
39
- value={value}
40
- variant='datetime'
41
- format='long'
42
- clockFormat={null}
43
- key={key}
44
- />
45
- );
46
-
47
- if (displayAsStatus === true) val = <StatusWorkRenderer value={value} key={key} />;
48
-
49
- if (label === 'Create Operator')
50
- val = (
51
- <Button
52
- variant='link'
53
- style={
54
- label !== null
55
- ? { width: 'max-content', height: theme.components.input.height }
56
- : undefined
57
- }
58
- key={key}
59
- >
60
- {value.userName}
61
- </Button>
62
- );
63
-
64
- if (variant === 'inline') {
65
- val = value || (
66
- <span aria-hidden='true' key={key}>
67
- &ndash;&ndash;
68
- </span>
69
- );
70
- } else {
71
- val = (
72
- <Text variant='h1' as='span' key={key}>
73
- {val}
74
- </Text>
75
- );
76
- }
77
- return <FieldValueList variant={variant} fields={[{ name: label, value: val }]} key={key} />;
78
- };
79
-
80
- export const BasePegaDxilMyTwoColumnDetails = () => {
81
- const props = {
82
- template: 'MyCo_MyComponents_NewDetailsTemplate',
83
- showHighlightedData: true,
84
- label: 'Test Details',
85
- showLabel: true,
86
- getPConnect: () => {
87
- return {
88
- getChildren: () => {
89
- return pyReviewRaw.children;
90
- },
91
- getRawMetadata: () => {
92
- return pyReviewRaw;
93
- },
94
- getContextName: () => {
95
- return 'app/primary_1';
96
- },
97
- getInheritedProps: () => {
98
- return pyReviewRaw.config.inheritedProps;
99
- },
100
- createComponent: config => {
101
- switch (config.config.value) {
102
- case '@P .pyStatusWork':
103
- return renderField(pyReviewResolved.highlightedData[0].config);
104
- case '@P .pyID':
105
- return renderField(pyReviewResolved.highlightedData[1].config);
106
- case '@P .pxCreateDateTime':
107
- return renderField(pyReviewResolved.highlightedData[2].config);
108
- case '@USER .pxCreateOperator':
109
- return renderField(pyReviewResolved.highlightedData[3].config);
110
- case '@P .pySLADeadline':
111
- return renderField(regionChildrenResolved[0]);
112
- case '@P .pySLAGoal':
113
- return renderField(regionChildrenResolved[1]);
114
- case '@P .pySLAStartTime':
115
- return renderField(regionChildrenResolved[2]);
116
- }
117
- },
118
- setInheritedProp: () => {
119
- /* nothing */
120
- },
121
- resolveConfigProps: () => {
122
- /* nothing */
123
- }
124
- };
125
- }
126
- };
127
-
128
- const regionAChildren = pyReviewRaw.children[0].children.map(child => {
129
- return props.getPConnect().createComponent(child);
130
- });
131
- const regionBChildren = pyReviewRaw.children[1].children.map(child => {
132
- return props.getPConnect().createComponent(child);
133
- });
134
-
135
- return (
136
- <PegaDxilMyTwoColumnDetails {...props}>
137
- {regionAChildren}
138
- {regionBChildren}
139
- </PegaDxilMyTwoColumnDetails>
140
- );
141
- };
@@ -1,100 +0,0 @@
1
- import { Fragment } from 'react';
2
- import { Grid, Flex, FieldGroup } from '@pega/cosmos-react-core';
3
- import PropTypes from 'prop-types';
4
-
5
- import type { PConnFieldProps } from './PConnProps';
6
-
7
- import StyledPegaDxilMyTwoColumnDetailsWrapper from './styles';
8
-
9
- // includes in bundle
10
- import { getAllFields } from './utils';
11
-
12
- // interface for props
13
- interface PegaDxilMyTwoColumnDetailsProps extends PConnFieldProps {
14
- // If any, enter additional props that only exist on TextInput here
15
- showLabel: boolean;
16
- showHighlightedData: boolean;
17
- children: any;
18
- }
19
-
20
- // Duplicated runtime code from Constellation Design System Component
21
-
22
- // props passed in combination of props from property panel (config.json) and run time props from Constellation
23
- // any default values in config.pros should be set in defaultProps at bottom of this file
24
- export default function PegaDxilMyTwoColumnDetails(props: PegaDxilMyTwoColumnDetailsProps) {
25
-
26
- const { getPConnect, children, label, showLabel, showHighlightedData } = props;
27
- const propsToUse = { label, showLabel, ...getPConnect().getInheritedProps() };
28
-
29
- const numRegions = getAllFields(getPConnect)?.length;
30
- const gridRepeat = "repeat(".concat(numRegions).concat(", 1fr)");
31
- const gridContainer = { "colGap": 1};
32
- // @ts-ignore
33
- gridContainer.cols = gridRepeat;
34
- // @ts-ignore
35
- gridContainer.alignItems = 'start';
36
-
37
- const gridHighlightContainer = { "gap": 2};
38
- // @ts-ignore
39
- gridHighlightContainer.cols = gridRepeat;
40
- // @ts-ignore
41
- gridHighlightContainer.alignItems = 'start';
42
- // @ts-ignore
43
- gridHighlightContainer.pad = [0, 0, 2, 0];
44
-
45
- // Set up highlighted data to pass in return if is set to show, need raw metadata to pass to createComponent
46
- let highlightedDataArr = [];
47
- if (showHighlightedData) {
48
- // @ts-ignore
49
- const { highlightedData = [] } = getPConnect().getRawMetadata().config;
50
- // @ts-ignore
51
- highlightedDataArr = highlightedData.map((field) => {
52
- field.config.displayMode = 'STACKED_LARGE_VAL';
53
-
54
- // Mark as status display when using pyStatusWork
55
- if (field.config.value === '@P .pyStatusWork') {
56
- field.type = 'TextInput';
57
- field.config.displayAsStatus = true;
58
- }
59
- // @ts-ignore
60
- return getPConnect().createComponent(field);
61
- });
62
- }
63
-
64
- return (
65
- <StyledPegaDxilMyTwoColumnDetailsWrapper>
66
- <FieldGroup name={propsToUse.showLabel ? propsToUse.label : ''}>
67
- {showHighlightedData && highlightedDataArr.length > 0 && (
68
- <Grid container={gridHighlightContainer}
69
- data-testid={`highlighted-column-count-${numRegions}`}>
70
- {highlightedDataArr.map((child: any, i: number) => (
71
- <Fragment key={`hf-${i + 1}`}>{child}</Fragment>
72
- ))}
73
- </Grid>
74
- )}
75
- <Grid container={gridContainer} data-testid={`column-count-${numRegions}`} >
76
- {children.map((child: any, i: number) => (
77
- <Flex container={{ direction: 'column'}} key={`r-${i + 1}`}>
78
- {child}
79
- </Flex>
80
- ))}
81
- </Grid>
82
- </FieldGroup>
83
- </StyledPegaDxilMyTwoColumnDetailsWrapper>
84
- );
85
-
86
- }
87
-
88
- PegaDxilMyTwoColumnDetails.defaultProps = {
89
- label: undefined,
90
- showLabel: true,
91
- showHighlightedData: false
92
- };
93
-
94
-
95
- PegaDxilMyTwoColumnDetails.propTypes = {
96
- showLabel: PropTypes.bool,
97
- label: PropTypes.string,
98
- getPConnect: PropTypes.func.isRequired,
99
- showHighlightedData: PropTypes.bool
100
- };