@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,232 +0,0 @@
1
-
2
- // @ts-nocheck
3
- export const pyReviewRaw = {
4
- name: 'pyReview',
5
- type: 'View',
6
- config: {
7
- template: 'Details',
8
- ruleClass: 'MyCo-MyCompon-Work-MyComponents',
9
- showLabel: true,
10
- label: '@L Details',
11
- localeReference: '@LR MYCO-MYCOMPON-WORK-MYCOMPONENTS!VIEW!PYREVIEW',
12
- showHighlightedData: true,
13
- highlightedData: [
14
- {
15
- type: 'TextInput',
16
- config: {
17
- value: '@P .pyStatusWork',
18
- label: '@L Work Status',
19
- displayMode: 'STACKED_LARGE_VAL',
20
- displayAsStatus: true,
21
- key: 'pyStatusWork'
22
- }
23
- },
24
- {
25
- type: 'TextInput',
26
- config: {
27
- value: '@P .pyID',
28
- label: '@L Case ID',
29
- displayMode: 'STACKED_LARGE_VAL',
30
- key: 'pyID'
31
- }
32
- },
33
- {
34
- type: 'DateTime',
35
- config: {
36
- value: '@P .pxCreateDateTime',
37
- label: '@L Create date/time',
38
- displayMode: 'STACKED_LARGE_VAL',
39
- key: 'pxCreateDateTime'
40
- }
41
- },
42
- {
43
- type: 'UserReference',
44
- config: {
45
- label: '@L Create Operator',
46
- value: '@USER .pxCreateOperator',
47
- placeholder: 'Select...',
48
- displayMode: 'STACKED_LARGE_VAL',
49
- key: 'pxCreateOperator'
50
- }
51
- }
52
- ],
53
- inheritedProps: [
54
- {
55
- prop: 'label',
56
- value: '@L Details'
57
- },
58
- {
59
- prop: 'showLabel',
60
- value: true
61
- }
62
- ]
63
- },
64
- children: [
65
- {
66
- name: 'A',
67
- type: 'Region',
68
- key: 'A',
69
- getPConnect: () => {
70
- return {
71
- getRawMetadata: () => {
72
- return pyReviewRaw.children[0];
73
- }
74
- };
75
- },
76
- children: [
77
- {
78
- type: 'DateTime',
79
- config: {
80
- value: '@P .pySLADeadline',
81
- label: '@L SLA Deadline',
82
- key: 'pySLADeadline'
83
- }
84
- },
85
- {
86
- type: 'DateTime',
87
- config: {
88
- value: '@P .pySLAGoal',
89
- label: '@L SLA Goal',
90
- key: 'pySLAGoal'
91
- }
92
- },
93
- {
94
- type: 'RadioButtons',
95
- config: {
96
- value: '@P .pySLAStartTime',
97
- label: '@L SLA Start Time',
98
- listType: 'associated',
99
- datasource: '@ASSOCIATED .pySLAStartTime',
100
- key: 'pySLAStartTime'
101
- }
102
- }
103
- ]
104
- },
105
- {
106
- name: 'B',
107
- type: 'Region',
108
- key: 'B',
109
- getPConnect: () => {
110
- return {
111
- getRawMetadata: () => {
112
- return pyReviewRaw.children[0];
113
- }
114
- };
115
- },
116
- children: [
117
- {
118
- type: 'DateTime',
119
- config: {
120
- value: '@P .pySLADeadline',
121
- label: '@L SLA Deadline',
122
- key: 'pySLADeadline'
123
- }
124
- },
125
- {
126
- type: 'DateTime',
127
- config: {
128
- value: '@P .pySLAGoal',
129
- label: '@L SLA Goal',
130
- key: 'pySLAGoal'
131
- }
132
- },
133
- {
134
- type: 'RadioButtons',
135
- config: {
136
- value: '@P .pySLAStartTime',
137
- label: '@L SLA Start Time',
138
- listType: 'associated',
139
- datasource: '@ASSOCIATED .pySLAStartTime',
140
- key: 'pySLAStartTime'
141
- }
142
- }
143
- ]
144
- }
145
- ],
146
- classID: 'MyCo-MyCompon-Work-MyComponents'
147
- };
148
-
149
- export const pyReviewResolved = {
150
- readOnly: true,
151
- template: 'Details',
152
- ruleClass: 'MyCo-MyCompon-Work-MyComponents',
153
- showLabel: true,
154
- label: 'Details',
155
- localeReference: 'MYCO-MYCOMPON-WORK-MYCOMPONENTS!VIEW!PYREVIEW',
156
- showHighlightedData: true,
157
- highlightedData: [
158
- {
159
- type: 'TextInput',
160
- config: {
161
- value: 'New',
162
- label: 'Work Status',
163
- displayMode: 'STACKED_LARGE_VAL',
164
- displayAsStatus: true
165
- }
166
- },
167
- {
168
- type: 'TextInput',
169
- config: {
170
- value: 'M-1002',
171
- label: 'Case ID',
172
- displayMode: 'STACKED_LARGE_VAL'
173
- }
174
- },
175
- {
176
- type: 'DateTime',
177
- config: {
178
- value: '2022-12-11T20:06:27.232Z',
179
- label: 'Create date/time',
180
- displayMode: 'STACKED_LARGE_VAL'
181
- }
182
- },
183
- {
184
- type: 'UserReference',
185
- config: {
186
- label: 'Create Operator',
187
- value: {
188
- userId: 'conns',
189
- userName: 'Sara Connor'
190
- },
191
- placeholder: 'Select...',
192
- displayMode: 'STACKED_LARGE_VAL'
193
- }
194
- }
195
- ],
196
- displayMode: 'LABELS_LEFT'
197
- };
198
-
199
- export const regionChildrenResolved = [
200
- {
201
- readOnly: true,
202
- value: '',
203
- label: 'SLA Deadline',
204
- displayMode: 'LABELS_LEFT',
205
- key: 'SLA Deadline'
206
- },
207
- {
208
- readOnly: true,
209
- value: '',
210
- label: 'SLA Goal',
211
- displayMode: 'LABELS_LEFT',
212
- key: 'SLA Goal'
213
- },
214
- {
215
- readOnly: true,
216
- value: '',
217
- label: 'SLA Start Time',
218
- listType: 'associated',
219
- datasource: [
220
- {
221
- key: 'AssignmentCreation',
222
- value: 'The creation time of the Assignment'
223
- },
224
- {
225
- key: 'CurrentTime',
226
- value: 'Current Date Time'
227
- }
228
- ],
229
- displayMode: 'LABELS_LEFT',
230
- key: 'SLA Start Time'
231
- }
232
- ];
@@ -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,151 +0,0 @@
1
-
2
-
3
- /**
4
- * Given the PConnect object of a Template component, retrieve the children
5
- * metadata of all regions.
6
- * @param {Function} pConnect PConnect of a Template component.
7
- */
8
- export function getAllFields(pConnect) {
9
- const metadata = pConnect().getRawMetadata();
10
- if (!metadata.children) {
11
- return [];
12
- }
13
-
14
- let allFields = [];
15
-
16
- const makeField = (f) => ({
17
- ...pConnect().resolveConfigProps(f.config),
18
- type: f.type
19
- });
20
-
21
- const hasRegions = !!metadata.children[0]?.children;
22
- if (hasRegions) {
23
- allFields = metadata.children.map((region) =>
24
- region.children.map((field) => {
25
- // Do not resolve the config props if is status work, instead create component here as status badge and mark as status display
26
- if (field.config?.value === '@P .pyStatusWork') {
27
- field.type = 'TextInput';
28
- field.config.displayAsStatus = true;
29
- return pConnect().createComponent(field);
30
- }
31
-
32
- return makeField(field);
33
- })
34
- );
35
- } else {
36
- allFields = metadata.children.map(makeField);
37
- }
38
-
39
- return allFields;
40
- }
41
-
42
-
43
-
44
- export function getFilteredFields(getPConnect) {
45
- let primaryFieldsRaw;
46
- let secondaryFieldsRaw;
47
- const metadata = getPConnect().getRawMetadata();
48
- const hasRegions = !!metadata.children[0]?.children;
49
- if (hasRegions) {
50
- primaryFieldsRaw = metadata.children[0].children;
51
- secondaryFieldsRaw = metadata.children[1].children;
52
- } else {
53
- [primaryFieldsRaw, secondaryFieldsRaw] = metadata.children;
54
- }
55
-
56
- // Filter out fields that are not visible and unsupported types for primary fields (for CaseSummary)
57
- primaryFieldsRaw = primaryFieldsRaw.filter((item) => {
58
- const resolvedItem = getPConnect().resolveConfigProps(item.config);
59
- return resolvedItem.visibility !== false && item.type !== 'TextContent';
60
- });
61
-
62
- secondaryFieldsRaw = secondaryFieldsRaw.filter((item) => {
63
- const resolvedItem = getPConnect().resolveConfigProps(item.config);
64
- return resolvedItem.visibility !== false && item.type !== 'TextContent';
65
- });
66
-
67
- return [primaryFieldsRaw, secondaryFieldsRaw];
68
- }
69
-
70
- /**
71
- * Returns ConfigurableLayout mapped content. With pre-populated default layout configs.
72
- * @param {object[]} regionData template children item.
73
- * @returns {object[]} ConfigurableLayout content.
74
- */
75
- export function getLayoutDataFromRegion(regionData) {
76
- const defaultLayoutConfig = {
77
- width: 'full',
78
- fillAvailable: true,
79
- minWidth: [300, 'px']
80
- };
81
-
82
- return regionData.props
83
- ?.getPConnect()
84
- ?.getChildren()
85
- ?.map((item, index) => {
86
- const itemPConnect = item?.getPConnect();
87
-
88
- return {
89
- id: itemPConnect?.getComponentName() ? `${itemPConnect.getComponentName()}--${index}` : `item--${index}`,
90
- content: itemPConnect?.getComponent(),
91
- layoutConfig: {
92
- ...defaultLayoutConfig,
93
- ...itemPConnect?.getConfigProps().layoutConfig
94
- }
95
- };
96
- });
97
- }
98
-
99
- /**
100
- * Determine if the current view is the view of the case step/assignment.
101
- * @param {Function} pConnect PConnect object for the component
102
- */
103
- export function getIsAssignmentView(pConnect) {
104
- // Get caseInfo content from the store which contains the view info about the current assignment/step
105
- // TODO To be replaced with pConnect.getCaseInfo().getCurrentAssignmentView when it's available
106
- const assignmentViewClass = pConnect.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_CLASSID);
107
- const assignmentViewName = pConnect.getValue(PCore.getConstants().CASE_INFO.ASSIGNMENTACTION_ID);
108
-
109
- const assignmentViewId = `${assignmentViewName}!${assignmentViewClass}`;
110
-
111
- // Get the info about the current view from pConnect
112
- const currentViewId = `${pConnect.getCurrentView()}!${pConnect.getCurrentClassID()}`;
113
-
114
- return assignmentViewId === currentViewId;
115
- }
116
-
117
- /**
118
- * A hook that gets the instructions content for a view.
119
- * @param {Function} pConnect PConnect object for the component
120
- * @param {string} [instructions="casestep"] 'casestep', 'none', or the html content of a Rule-UI-Paragraph rule (processed via core's paragraph annotation handler)
121
- */
122
- export function getInstructions(pConnect, instructions = 'casestep') {
123
- const caseStepInstructions = pConnect.getValue(PCore.getConstants().CASE_INFO.INSTRUCTIONS);
124
-
125
- // Determine if this view is the current assignment/step view
126
- const isCurrentAssignmentView = getIsAssignmentView(pConnect);
127
-
128
- // Case step instructions
129
- if (instructions === 'casestep' && isCurrentAssignmentView && caseStepInstructions?.length) {
130
- return caseStepInstructions;
131
- }
132
-
133
- // No instructions
134
- if (instructions === 'none') {
135
- return undefined;
136
- }
137
-
138
- // If the annotation wasn't processed correctly, don't return any instruction text
139
- if (instructions?.startsWith('@PARAGRAPH')) {
140
- console.error('@PARAGRAPH annotation was not processed. Hiding custom instructions.');
141
- return undefined;
142
- }
143
-
144
- // Custom instructions from the view
145
- // The raw metadata for `instructions` will be something like '@PARAGRAPH .SomeParagraphRule' but
146
- // it is evaluated by core logic to the content
147
- if (instructions !== 'casestep' && instructions !== 'none') {
148
- return instructions;
149
- }
150
- return undefined;
151
- }
@@ -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,38 +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 icon</title>
4
- <g id="Views" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
- <g id="Artboard-Copy-2" transform="translate(-198.000000, -207.000000)">
6
- <g id="2-col--icon" transform="translate(198.000000, 207.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" transform="translate(6.000000, 6.000000)" fill="#8084A7">
12
- <rect id="Rectangle" x="0" y="0" width="42" height="7.8"></rect>
13
- <rect id="Rectangle-Copy-18" x="0" y="11.7" width="42" height="7.8"></rect>
14
- <rect id="Rectangle-Copy-19" x="0" y="23.4" width="42" height="7.8"></rect>
15
- <rect id="Rectangle-Copy-20" x="0" y="35.1" width="42" height="7.8"></rect>
16
- <rect id="Rectangle-Copy-21" x="0" y="46.8" width="42" height="7.8"></rect>
17
- <rect id="Rectangle-Copy-22" x="0" y="58.5" width="42" height="5"></rect>
18
- <rect id="Rectangle-Copy" x="46" y="2.66453526e-15" width="42" height="7.8"></rect>
19
- <rect id="Rectangle-Copy-27" x="46" y="11.7" width="42" height="7.8"></rect>
20
- <rect id="Rectangle-Copy-26" x="46" y="23.4" width="42" height="7.8"></rect>
21
- <rect id="Rectangle-Copy-25" x="46" y="35.1" width="42" height="7.8"></rect>
22
- <rect id="Rectangle-Copy-24" x="46" y="46.8" width="42" height="7.8"></rect>
23
- <rect id="Rectangle-Copy-23" x="46" y="58.5" width="42" height="5"></rect>
24
- </g>
25
- <g id="labels" transform="translate(16.000000, 11.000000)">
26
- <circle id="Oval-Copy-3" fill="#FFFFFF" cx="10.5" cy="10.8076923" r="10.5"></circle>
27
- <text id="A" font-family="OpenSans-Semibold, Open Sans" font-size="11" font-weight="500" fill="#56566F">
28
- <tspan x="6.75" y="14">A</tspan>
29
- </text>
30
- <circle id="Oval-Copy-4" fill="#FFFFFF" cx="56.5" cy="10.8076923" r="10.5"></circle>
31
- <text id="B" font-family="OpenSans-Semibold, Open Sans" font-size="11" font-weight="500" fill="#56566F">
32
- <tspan x="52.75" y="14">B</tspan>
33
- </text>
34
- </g>
35
- </g>
36
- </g>
37
- </g>
38
- </svg>
@@ -1,27 +0,0 @@
1
- {
2
- "name": "Pega_DXIL_MyTwoColumnForm",
3
- "label": "My Two Column Form",
4
- "description": "My Two Column Form",
5
- "organization": "Pega",
6
- "version": "0.0.1",
7
- "library": "DXIL",
8
- "allowedApplications": [],
9
- "componentKey": "Pega_DXIL_MyTwoColumnForm",
10
- "type": "Template",
11
- "subtype": "FORM",
12
- "icon": "TwoColumn.svg",
13
- "properties": [
14
- {
15
- "name": "A",
16
- "label": "Region A",
17
- "format": "CONTENTPICKER",
18
- "allowCreatingGroup": true
19
- },
20
- {
21
- "name": "B",
22
- "label": "Region B",
23
- "format": "CONTENTPICKER",
24
- "allowCreatingGroup": true
25
- }
26
- ]
27
- }
@@ -1,181 +0,0 @@
1
-
2
-
3
- // @ts-nocheck
4
- import { useState } from 'react';
5
- import { withKnobs } from '@storybook/addon-knobs';
6
-
7
- import PegaDxilMyTwoColumnForm from './index';
8
- import { DateInput, Input, FieldValueList, Text } from '@pega/cosmos-react-core';
9
- import { PhoneInput as CosmosPhone } from '@pega/cosmos-react-core';
10
- import { pyReviewRaw, regionChildrenResolved } from './mock';
11
-
12
- export default {
13
- title: 'PegaDxilMyTwoColumnForm',
14
- decorators: [withKnobs],
15
- component: PegaDxilMyTwoColumnForm
16
- };
17
-
18
- const renderField = resolvedProps => {
19
- const { displayMode, value = '', label = '', key } = resolvedProps;
20
-
21
- // eslint-disable-next-line react-hooks/rules-of-hooks
22
- const [inputValue, setInputValue] = useState(value);
23
- // eslint-disable-next-line react-hooks/rules-of-hooks
24
- const [phoneValue, setPhoneValue] = useState('+16397975093');
25
-
26
-
27
- const variant = displayMode === 'LABELS_LEFT' ? 'inline' : 'stacked';
28
-
29
- let val =
30
- value !== '' ? (
31
- <Text
32
- variant='h1'
33
- as='span'
34
- key={key}
35
- onChange={e => {
36
- setInputValue(e.target.value);
37
- }}
38
- >
39
- {inputValue}
40
- </Text>
41
- ) : (
42
- ''
43
- );
44
-
45
-
46
- if (label === 'Service Date')
47
- val = (
48
- <DateInput
49
- value={inputValue}
50
- style={{ fontSize: '14px' }}
51
- key={key}
52
- onChange={dateVal => {
53
- const { valueAsISOString: date } = dateVal;
54
- const trimmedDate = date ? date.substring(0, date.indexOf('T')) : date;
55
- setInputValue(trimmedDate);
56
- }}
57
- />
58
- );
59
-
60
- if (label === 'Email')
61
- val = (
62
- <Input
63
- type='email'
64
- value={inputValue}
65
- style={{ fontSize: '14px' }}
66
- key={key}
67
- onChange={e => {
68
- setInputValue(e.target.value);
69
- }}
70
- />
71
- );
72
-
73
- if (label === 'First Name' || label === 'Last Name' || label === 'Middle Name')
74
- val = (
75
- <Input
76
- value={inputValue}
77
- style={{ fontSize: '14px' }}
78
- key={key}
79
- onChange={e => {
80
- setInputValue(e.target.value);
81
- }}
82
- />
83
- );
84
-
85
- if (label === 'Phone Number')
86
- val = (
87
- <CosmosPhone
88
- value={phoneValue}
89
- showCountryCode
90
- style={{ fontSize: '14px' }}
91
- key={key}
92
- onChange={phoneVal => {
93
- setPhoneValue(phoneVal);
94
- }}
95
- />
96
- );
97
-
98
-
99
- if (variant === 'inline') {
100
- val = value || (
101
- <span
102
- aria-hidden='true'
103
- key={key}
104
- onChange={e => {
105
- setInputValue(e.target.value);
106
- }}
107
- >
108
- &ndash;&ndash;
109
- </span>
110
- );
111
- } else {
112
- val = (
113
- <Text
114
- variant='h1'
115
- as='span'
116
- key={key}
117
- onChange={e => {
118
- setInputValue(e.target.value);
119
- }}
120
- >
121
- {val}
122
- </Text>
123
- );
124
- }
125
- return (
126
- <FieldValueList
127
- variant={variant}
128
- fields={[{ name: label, value: val }]}
129
- key={key}
130
- onChange={() => {
131
- /* nothing */
132
- }}
133
- />
134
- );
135
- };
136
-
137
- export const BasePegaDxilMyTwoColumnForm = () => {
138
- const props = {
139
- template: 'DefaultForm',
140
- getPConnect: () => {
141
- return {
142
- getChildren: () => {
143
- return pyReviewRaw.children;
144
- },
145
- getInheritedProps: () => {
146
- return pyReviewRaw.config.inheritedProps;
147
- },
148
- createComponent: config => {
149
- switch (config.config.value) {
150
- case '@P .FirstName':
151
- return renderField(regionChildrenResolved[0]);
152
- case '@P .MiddleName':
153
- return renderField(regionChildrenResolved[1]);
154
- case '@P .LastName':
155
- return renderField(regionChildrenResolved[2]);
156
- case '@P .Email':
157
- return renderField(regionChildrenResolved[3]);
158
- case '@P .PhoneNumber':
159
- return renderField(regionChildrenResolved[4]);
160
- case '@P .ServiceDate':
161
- return renderField(regionChildrenResolved[5]);
162
- }
163
- }
164
- };
165
- }
166
- };
167
-
168
- const regionAChildren = pyReviewRaw.children[0].children.map(child => {
169
- return props.getPConnect().createComponent(child);
170
- });
171
- const regionBChildren = pyReviewRaw.children[1].children.map(child => {
172
- return props.getPConnect().createComponent(child);
173
- });
174
-
175
- return (
176
- <PegaDxilMyTwoColumnForm {...props}>
177
- {regionAChildren}
178
- {regionBChildren}
179
- </PegaDxilMyTwoColumnForm>
180
- );
181
- };