@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,243 +0,0 @@
1
- /* eslint-disable no-nested-ternary */
2
- import { useMemo } from 'react';
3
- import PropTypes from 'prop-types';
4
- import { RadioButton, RadioButtonGroup } from '@pega/cosmos-react-core';
5
- import type { PConnFieldProps } from './PConnProps';
6
-
7
- // includes in bundle
8
- import { formatExists, textFormatter } from './textformat-utils.jsx';
9
- import handleEvent from './event-utils';
10
-
11
- import StyledPegaDxilMyRadioButtonsWrapper from './styles';
12
-
13
-
14
- // interface for props
15
- interface PegaDxilMyRadioButtonsProps extends PConnFieldProps {
16
- // If any, enter additional props that only exist on TextInput here
17
- isTableFormatter?: boolean;
18
- hasSuggestions?: boolean;
19
- formatter: string;
20
- listType: string;
21
- datasource: Array<any>;
22
- inline: boolean;
23
- align: string;
24
- }
25
-
26
-
27
- // interface for StateProps object
28
- interface StateProps {
29
- value: string;
30
- hasSuggestions: boolean;
31
- }
32
-
33
- const getFullReference = (pConn: any, configProperty: string) => {
34
- const pageReference = pConn.getPageReference();
35
- return pageReference ? `${pageReference}.${configProperty}` : configProperty;
36
- };
37
-
38
- const getDisplayValue = (dataSource: any, value: any, isDatapage: boolean) => {
39
- if (value !== 0 && (!value || (typeof value === 'string' && !value.trim().length))) {
40
- return <span aria-hidden='true'>&ndash;&ndash;</span>;
41
- }
42
-
43
- const matchedEntry =
44
- dataSource &&
45
- dataSource.filter((entry: any) => {
46
- return entry.key === value;
47
- })[0];
48
- return matchedEntry ? (isDatapage ? matchedEntry.text : matchedEntry.value) : value;
49
- };
50
-
51
-
52
- // Duplicated runtime code from Constellation Design System Component
53
-
54
- // props passed in combination of props from property panel (config.json) and run time props from Constellation
55
- // any default values in config.pros should be set in defaultProps at bottom of this file
56
- export default function PegaDxilMyRadioButtons(props: PegaDxilMyRadioButtonsProps) {
57
- const {
58
- getPConnect,
59
- value,
60
- label,
61
- hideLabel,
62
- helperText,
63
- datasource,
64
- listType,
65
- validatemessage,
66
- align,
67
- testId,
68
- additionalProps,
69
- displayMode,
70
- inline,
71
- placeholder,
72
- fieldMetadata,
73
- isTableFormatter
74
- } = props;
75
- const pConn = getPConnect();
76
- const { formatter } = props;
77
- const actions = pConn.getActionsApi();
78
- const stateProps = pConn.getStateProps() as StateProps;
79
- const propName: string = stateProps.value;
80
- const configProps = pConn.getConfigProps();
81
- const className = pConn.getCaseInfo().getClassName();
82
- // @ts-ignore
83
- const { getLocaleRuleNameFromKeys, getLocalizedValue } = pConn;
84
-
85
- // @ts-ignore
86
- let configProperty = pConn.getRawMetadata()?.config?.value || '';
87
- configProperty = configProperty.startsWith('@P') ? configProperty.substring(3) : configProperty;
88
- configProperty = configProperty.startsWith('.') ? configProperty.substring(1) : configProperty;
89
- const fullReference = getFullReference(pConn, configProperty);
90
-
91
- // BUG-547602: Temporary type coercion for 8.5 until DXAPIs are enhanced to pass original pxViewMetadata JSON, respecting boolean primitives
92
- let { readOnly, required, disabled } = props;
93
- [readOnly, required, disabled] = [readOnly, required, disabled].map(
94
- (prop) => prop === true || (typeof prop === 'string' && prop === 'true')
95
- );
96
-
97
- let status = '';
98
- if (validatemessage !== '') {
99
- status = 'error';
100
- }
101
- const metaData = Array.isArray(fieldMetadata)
102
- ? fieldMetadata.filter((field) => field?.classID === className)[0]
103
- : fieldMetadata;
104
- let displayName = metaData?.datasource?.propertyForDisplayText;
105
- displayName = displayName?.slice(displayName.lastIndexOf('.') + 1);
106
- const localeContext = metaData?.datasource?.tableType === 'DataPage' ? 'datapage' : 'associated';
107
- const localeClass = localeContext === 'datapage' ? '@baseclass' : className;
108
- const localeName = localeContext === 'datapage' ? metaData?.datasource?.name : configProperty;
109
- const localePath = localeContext === 'datapage' ? displayName : localeName;
110
-
111
- const items = [];
112
- const isDatapage = listType === 'datapage';
113
- // @ts-ignore
114
- const listSource = isDatapage ? configProps.listOutput : datasource;
115
- let autoFocusProp = additionalProps?.autoFocus
116
- ? {
117
- autoFocus: true
118
- }
119
- : {};
120
- if (placeholder) {
121
- items.push(
122
- <RadioButton
123
- {...autoFocusProp}
124
- defaultChecked={value === ''}
125
- id={`${fullReference}.EMPTY`}
126
- value=''
127
- key={`${fullReference}.EMPTY`}
128
- label={placeholder}
129
- name={fullReference}
130
- />
131
- );
132
- }
133
- (listSource || []).forEach((item: any) => {
134
- if (additionalProps?.autoFocus && value === item.key) {
135
- autoFocusProp = {
136
- autoFocus: true
137
- };
138
- }
139
- items.push(
140
- <RadioButton
141
- {...autoFocusProp}
142
- checked={`${value}` === `${item.key}`}
143
- id={`${fullReference}.${item.key}`}
144
- value={item.key}
145
- key={`${fullReference}.${item.key}`}
146
- label={getLocalizedValue(
147
- isDatapage ? item.text : item.value,
148
- localePath,
149
- getLocaleRuleNameFromKeys(localeClass, localeContext, localeName)
150
- )}
151
- name={fullReference}
152
- />
153
- );
154
- autoFocusProp = {};
155
- });
156
-
157
- const displayComponent = useMemo(() => {
158
- const displayValue = getDisplayValue(listSource, value, isDatapage);
159
-
160
- return isTableFormatter && formatExists(formatter) ? textFormatter(formatter, displayValue) : displayValue;
161
- }, [listSource, value, isDatapage, isTableFormatter, formatter]);
162
-
163
- if (displayMode === 'DISPLAY_ONLY') {
164
- return displayComponent;
165
- }
166
-
167
- return (
168
- <StyledPegaDxilMyRadioButtonsWrapper>
169
- <RadioButtonGroup
170
- {...additionalProps}
171
- label={label}
172
- labelHidden={hideLabel}
173
- info={validatemessage || helperText}
174
- inline={inline}
175
- status={status}
176
- data-testid={testId}
177
- value={value}
178
- required={required}
179
- readOnly={readOnly}
180
- onChange={(event) => {
181
- // @ts-ignore
182
- handleEvent(actions, 'changeNblur', propName, event.target.value);
183
- }}
184
- // @ts-ignore
185
- onBlur={(event) => {
186
- // @ts-ignore
187
- pConn.getValidationApi().validate(event.target.value);
188
- }}
189
- align={align}
190
- disabled={disabled}
191
- className='standard'
192
- name={fullReference}
193
- >
194
- {items}
195
- </RadioButtonGroup>
196
- </StyledPegaDxilMyRadioButtonsWrapper>
197
- );
198
- }
199
-
200
-
201
- PegaDxilMyRadioButtons.defaultProps = {
202
- value: '',
203
- validatemessage: '',
204
- helperText: '',
205
- hideLabel: false,
206
- disabled: false,
207
- readOnly: false,
208
- required: false,
209
- align: 'vertical',
210
- testId: '',
211
- datasource: [],
212
- listType: '',
213
- additionalProps: {},
214
- fieldMetadata: {},
215
- displayMode: null,
216
- inline: false,
217
- placeholder: null,
218
- formatter: '',
219
- isTableFormatter: false
220
- };
221
-
222
- PegaDxilMyRadioButtons.propTypes = {
223
- getPConnect: PropTypes.func.isRequired,
224
- value: PropTypes.string,
225
- label: PropTypes.string.isRequired,
226
- hideLabel: PropTypes.bool,
227
- datasource: PropTypes.arrayOf(PropTypes.any),
228
- listType: PropTypes.string,
229
- validatemessage: PropTypes.string,
230
- helperText: PropTypes.string,
231
- disabled: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
232
- readOnly: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
233
- required: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
234
- align: PropTypes.string,
235
- testId: PropTypes.string,
236
- additionalProps: PropTypes.objectOf(PropTypes.any),
237
- fieldMetadata: PropTypes.objectOf(PropTypes.any),
238
- displayMode: PropTypes.string,
239
- inline: PropTypes.bool,
240
- placeholder: PropTypes.string,
241
- formatter: PropTypes.string,
242
- isTableFormatter: PropTypes.bool
243
- };
@@ -1,69 +0,0 @@
1
-
2
- // @ts-nocheck
3
- export const configProps = {
4
- value: '',
5
- label: 'Picklist Sample',
6
- placeholder: 'Select...',
7
- listType: 'associated',
8
- datasource: [
9
- {
10
- key: 'Option 1',
11
- value: 'Option 1'
12
- },
13
- {
14
- key: 'Option 2',
15
- value: 'Option 2'
16
- },
17
- {
18
- key: 'Option 3',
19
- value: 'Option 3'
20
- }
21
- ],
22
- helperText: 'Picklist Helper Text',
23
- testId: 'picklist-12345678',
24
- hasSuggestions: false
25
- };
26
-
27
- export const stateProps = {
28
- value: '.PicklistSample',
29
- placeholder: 'Select...',
30
- datasource: '.PicklistSample',
31
- hasSuggestions: false
32
- };
33
-
34
- export const rawMetadata = {
35
- type: 'Dropdown',
36
- config: {
37
- value: '@P .PicklistSample',
38
- label: '@L Picklist Sample',
39
- placeholder: '@L Select...',
40
- listType: 'associated',
41
- datasource: '@ASSOCIATED .PicklistSample',
42
- helperText: '@L Picklist Helper Text',
43
- testId: 'picklist-12345678'
44
- }
45
- };
46
-
47
- export const fieldMetadata = {
48
- classID: 'DIXL-MediaCo-Work-NewService',
49
- type: 'Text',
50
- displayAs: 'pxDropdown',
51
- label: 'Picklist sample',
52
- datasource: {
53
- tableType: 'PromptList',
54
- records: [
55
- {
56
- key: 'Option 1',
57
- value: 'Option 1'
58
- },
59
- {
60
- key: 'Option 2',
61
- value: 'Option 2'
62
- },
63
- {
64
- key: 'Option 3',
65
- value: 'Option 3'
66
- }
67
- ]
68
- }
69
- };
@@ -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,9 +0,0 @@
1
- export const suggestionsHandler = (accepted: boolean, pConn: any, setStatus: any) => {
2
- if (accepted) {
3
- pConn.acceptSuggestion();
4
- setStatus('success');
5
- } else {
6
- pConn.ignoreSuggestion();
7
- setStatus(undefined);
8
- }
9
- };
@@ -1,161 +0,0 @@
1
- import { EmailDisplay, PhoneDisplay, URLDisplay, Image, Button, Lightbox } from '@pega/cosmos-react-core';
2
- import { useRef, useState } from 'react';
3
-
4
- export const formatExists = (formatterVal) => {
5
- const formatterValues = ['TextInput', 'Email', 'Phone'];
6
- let isformatter = false;
7
- if (formatterValues.includes(formatterVal)) {
8
- isformatter = true;
9
- }
10
- return isformatter;
11
- };
12
-
13
- const urlLabelVal = (urlLabelSelection, btnVal, urlLabel, propUrlLabel) => {
14
- if ((urlLabel !== '' || propUrlLabel !== '') && btnVal !== null) {
15
- switch (urlLabelSelection) {
16
- case 'constant': {
17
- btnVal = urlLabel;
18
- break;
19
- }
20
- case 'propertyRef': {
21
- btnVal = propUrlLabel;
22
- break;
23
- }
24
- // no default
25
- }
26
- }
27
- return btnVal;
28
- };
29
-
30
- const isImage = (url) => /\.(jpg|jpeg|png|webp|avif|gif|svg)$/.test(url);
31
-
32
- const TableImage = (imageProps) => {
33
- const { value, altText, altTextOfImage, propaltTextOfImage, urlLabelSelection, urlLabel, propUrlLabel } = imageProps;
34
- const demoButtonRef = useRef(null);
35
- let imageDisplayComp = null;
36
- const [images, setImages] = useState(null);
37
- const imgDescription = {
38
- id: 'url',
39
- name: urlLabelSelection === 'constant' ? urlLabel : propUrlLabel,
40
- description: altText === 'constant' ? altTextOfImage : propaltTextOfImage,
41
- src: value
42
- };
43
- const onClick = () => {
44
- setImages([imgDescription]);
45
- };
46
- const onItemDownload = async (id) => {
47
- const a = document.createElement('a');
48
- a.href = await fetch(images[0].src)
49
- .then((response) => {
50
- return response.blob();
51
- })
52
- .then((blob) => {
53
- return URL.createObjectURL(blob);
54
- });
55
- a.download = images?.find((image) => image.id === id)?.name ?? id;
56
- document.body.appendChild(a);
57
- a.click();
58
- document.body.removeChild(a);
59
- };
60
- let btnVal = value;
61
- btnVal = urlLabelVal(urlLabelSelection, btnVal, urlLabel, propUrlLabel);
62
- imageDisplayComp = (
63
- <>
64
- {btnVal !== null && (
65
- <Button ref={demoButtonRef} variant='link' compact={false} onClick={onClick} autoFocus>
66
- {btnVal}
67
- </Button>
68
- )}
69
- {images && (
70
- <Lightbox
71
- items={images}
72
- cycle={false}
73
- onAfterClose={() => {
74
- setImages(null);
75
- demoButtonRef.current?.focus();
76
- }}
77
- onItemDownload={isImage(images[0].src) ? onItemDownload : undefined}
78
- />
79
- )}
80
- </>
81
- );
82
- return imageDisplayComp;
83
- };
84
-
85
- export const textFormatter = (formatter, value) => {
86
- let displayComponent = null;
87
- switch (formatter) {
88
- case 'TextInput': {
89
- displayComponent = value;
90
- break;
91
- }
92
- case 'Email': {
93
- displayComponent = <EmailDisplay value={value} displayText={value} variant='link' />;
94
- break;
95
- }
96
- case 'Phone': {
97
- displayComponent = <PhoneDisplay value={value} variant='link' />;
98
- break;
99
- }
100
- // no default
101
- }
102
- return displayComponent;
103
- };
104
-
105
- /**
106
- * Returns a URL display component based on the options
107
- * @function urlFormatter
108
- * @param {string} value value
109
- * @param {object} options options for formatting
110
- * { displayAs,tableDisplayAs,isTableFormatter,altText,altTextOfImage,propaltTextOfImage,urlLabelSelection, urlLabel,propUrlLabel, widthSel, customWidth}
111
- */
112
- export const urlFormatter = (value, options) => {
113
- const {
114
- displayAs,
115
- tableDisplayAs,
116
- isTableFormatter,
117
- altText,
118
- altTextOfImage,
119
- propaltTextOfImage,
120
- urlLabelSelection,
121
- urlLabel,
122
- propUrlLabel,
123
- widthSel,
124
- customWidth
125
- } = options;
126
-
127
- let urlFormatComp = null;
128
- if (
129
- (displayAs === 'labelText' || (isTableFormatter && tableDisplayAs === 'link')) &&
130
- (urlLabel !== '' || propUrlLabel !== '')
131
- ) {
132
- urlFormatComp = (
133
- <URLDisplay
134
- target='_blank'
135
- value={value}
136
- displayText={urlLabelSelection === 'constant' ? urlLabel : propUrlLabel}
137
- variant='link'
138
- />
139
- );
140
- } else if ((displayAs === 'Image' || tableDisplayAs === 'Image') && !!value) {
141
- if (isTableFormatter) {
142
- urlFormatComp = TableImage({
143
- value,
144
- altText,
145
- altTextOfImage,
146
- propaltTextOfImage,
147
- urlLabelSelection,
148
- urlLabel,
149
- propUrlLabel
150
- });
151
- } else {
152
- const width = widthSel === 'widthpx' ? customWidth : null;
153
- urlFormatComp = (
154
- <Image src={value} width={width} alt={altText === 'constant' ? altTextOfImage : propaltTextOfImage} />
155
- );
156
- }
157
- } else {
158
- urlFormatComp = <URLDisplay target='_blank' value={value} displayText={value} variant='link' />;
159
- }
160
- return urlFormatComp;
161
- };
@@ -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_MyText",
3
- "label": "My Text",
4
- "description": "My Text",
5
- "organization": "Pega",
6
- "version": "0.0.1",
7
- "library": "DXIL",
8
- "allowedApplications": [],
9
- "componentKey": "Pega_DXIL_MyText",
10
- "type": "Field",
11
- "subtype": "Text",
12
- "properties": [
13
- {
14
- "name": "label",
15
- "label": "Label value",
16
- "format": "TEXT"
17
- },
18
- {
19
- "name": "placeholder",
20
- "label": "Placeholder",
21
- "format": "TEXT"
22
- },
23
- {
24
- "name": "visibility",
25
- "label": "Visible",
26
- "format": "VISIBILITY"
27
- },
28
- {
29
- "name": "disabled",
30
- "label": "Disabled",
31
- "format": "DISABLED"
32
- },
33
- {
34
- "name": "required",
35
- "label": "Required",
36
- "format": "REQUIRED"
37
- },
38
- {
39
- "label": "Advanced",
40
- "format": "GROUP",
41
- "collapsible": true,
42
- "properties": [
43
- {
44
- "name": "testId",
45
- "label": "Test ID",
46
- "format": "TEXT",
47
- "ignorePattern": "[^-_\\p{N}\\p{L}]",
48
- "includeAnnotations": false
49
- }
50
- ]
51
- }
52
- ],
53
- "defaultConfig": {
54
- }
55
- }
@@ -1,54 +0,0 @@
1
-
2
- /* eslint-disable react/jsx-no-useless-fragment */
3
- // @ts-nocheck
4
- import { useState } from 'react';
5
- import { withKnobs } from '@storybook/addon-knobs';
6
-
7
- import { stateProps, configProps } from './mock';
8
-
9
- import PegaDxilMyText from './index';
10
-
11
- export default {
12
- title: 'PegaDxilMyText',
13
- decorators: [withKnobs],
14
- component: PegaDxilMyText
15
- };
16
-
17
- export const BasePegaDxilMyText = () => {
18
-
19
- const [value, setValue] = useState(configProps.value);
20
-
21
- const props = {
22
- value,
23
- placeholder: configProps.placeholder,
24
- label: configProps.label,
25
- testId: configProps.testId,
26
- hasSuggestions: configProps.hasSuggestions,
27
-
28
- getPConnect: () => {
29
- return {
30
- getStateProps: () => {
31
- return stateProps;
32
- },
33
- getActionsApi: () => {
34
- return {
35
- updateFieldValue: (propName, theValue) => {
36
- setValue(theValue);
37
- },
38
- triggerFieldChange: () => {/* nothing */}
39
- };
40
- },
41
- ignoreSuggestion: () => {/* nothing */},
42
- acceptSuggestion: () => {/* nothing */},
43
- setInheritedProps: () => {/* nothing */},
44
- resolveConfigProps: () => {/* nothing */}
45
- };
46
- }
47
- };
48
-
49
- return (
50
- <>
51
- <PegaDxilMyText {...props} />
52
- </>
53
- );
54
- };