@pega/custom-dx-components 0.25.45 → 0.25.47

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 (159) hide show
  1. package/package.json +33 -27
  2. package/src/tasks/build-jest-assets/index.js +4 -4
  3. package/src/tasks/bundle/builder/index.js +15 -15
  4. package/src/tasks/create/index.js +19 -33
  5. package/src/tasks/create/templates/Constellation/Field/Boolean/config.json.mustache +0 -1
  6. package/src/tasks/create/templates/Constellation/Field/Date/config.json.mustache +0 -1
  7. package/src/tasks/create/templates/Constellation/Field/DateTime/config.json.mustache +0 -1
  8. package/src/tasks/create/templates/Constellation/Field/Decimal/config.json.mustache +0 -1
  9. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/config.json.mustache +0 -1
  10. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/config.json.mustache +0 -1
  11. package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/config.json.mustache +0 -1
  12. package/src/tasks/create/templates/Constellation/Field/Integer/config.json.mustache +0 -1
  13. package/src/tasks/create/templates/Constellation/Field/Picklist/config.json.mustache +0 -1
  14. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/config.json.mustache +0 -1
  15. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/config.json.mustache +0 -1
  16. package/src/tasks/create/templates/Constellation/Field/Text/config.json.mustache +0 -1
  17. package/src/tasks/create/templates/Constellation/Field/Text-Email/config.json.mustache +0 -1
  18. package/src/tasks/create/templates/Constellation/Field/Text-Input/config.json.mustache +0 -1
  19. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/config.json.mustache +0 -1
  20. package/src/tasks/create/templates/Constellation/Field/Text-Phone/config.json.mustache +0 -1
  21. package/src/tasks/create/templates/Constellation/Field/Text-URL/config.json.mustache +0 -1
  22. package/src/tasks/create/templates/Constellation/Field/TimeofDay/config.json.mustache +0 -1
  23. package/src/tasks/create/templates/Constellation/Template/DETAILS/config.json.mustache +0 -1
  24. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/config.json.mustache +0 -1
  25. package/src/tasks/create/templates/Constellation/Template/FORM/config.json.mustache +0 -1
  26. package/src/tasks/create/templates/Constellation/Template/FORM-region/config.json.mustache +0 -1
  27. package/src/tasks/create/templates/Constellation/Template/PAGE/config.json.mustache +0 -1
  28. package/src/tasks/create/templates/Constellation/Template/PAGE/demo.stories.tsx.mustache +1 -0
  29. package/src/tasks/create/templates/Constellation/Widget/CASE/config.json.mustache +0 -1
  30. package/src/tasks/create/templates/Constellation/Widget/PAGE/config.json.mustache +0 -1
  31. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/config.json.mustache +0 -1
  32. package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/config.json.mustache +0 -1
  33. package/src/tasks/create/templates/Launchpad/Widget/CASE/config.json.mustache +0 -1
  34. package/src/tasks/create/templates/Launchpad/Widget/PAGE/config.json.mustache +0 -1
  35. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/config.json.mustache +0 -1
  36. package/src/tasks/create-all/index.js +22 -35
  37. package/src/tasks/delete-pub/helper.js +5 -5
  38. package/src/tasks/delete-pub/index.js +22 -9
  39. package/src/tasks/export-archive/index.js +36 -23
  40. package/src/tasks/init/index.js +62 -59
  41. package/src/tasks/init/template/package.json.mustache +2 -1
  42. package/src/tasks/init/template/tasks.config.json +3 -1
  43. package/src/tasks/list-pub/helper.js +6 -3
  44. package/src/tasks/list-pub/index.js +22 -13
  45. package/src/tasks/publish-archive/helper.js +2 -2
  46. package/src/tasks/publish-archive/index.js +16 -7
  47. package/src/tasks/show-status/index.js +1 -1
  48. package/src/tasks/validator/index.js +0 -2
  49. package/src/util.js +508 -473
  50. package/tests/assets/library/components/create/Pega_DXIL_MyTestText/config.json +0 -1
  51. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +0 -1
  52. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +0 -1
  53. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +0 -1
  54. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +0 -1
  55. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +0 -1
  56. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +0 -1
  57. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +0 -1
  58. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +0 -1
  59. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +0 -1
  60. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +0 -1
  61. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +0 -1
  62. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +0 -1
  63. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx +1 -0
  64. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +0 -1
  65. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +0 -1
  66. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +0 -1
  67. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +0 -1
  68. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +0 -1
  69. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +0 -1
  70. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +0 -1
  71. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +0 -1
  72. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/config.json +0 -1
  73. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +0 -1
  74. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +0 -1
  75. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +0 -1
  76. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +0 -1
  77. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +0 -1
  78. package/tests/assets/original/components/create/Pega_DXIL_MyTestText/config.json +0 -1
  79. package/tests/assets/original/components/create/shared/PConnProps.d.ts +46 -0
  80. package/tests/assets/original/components/create/shared/create-nonce.ts +5 -0
  81. package/tests/assets/original/components/create/shared/suggestions-handler.ts +9 -0
  82. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +0 -1
  83. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +0 -1
  84. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +0 -1
  85. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +0 -1
  86. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +0 -1
  87. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +0 -1
  88. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +0 -1
  89. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +0 -1
  90. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +0 -1
  91. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +0 -1
  92. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +0 -1
  93. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +0 -1
  94. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx +1 -0
  95. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +0 -1
  96. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +0 -1
  97. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +0 -1
  98. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +0 -1
  99. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +0 -1
  100. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +0 -1
  101. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +0 -1
  102. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +0 -1
  103. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/config.json +0 -1
  104. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +0 -1
  105. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +0 -1
  106. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +0 -1
  107. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +0 -1
  108. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +0 -1
  109. package/tests/assets/original/components/createAll/Constellation/shared/PConnProps.d.ts +46 -0
  110. package/tests/assets/original/components/createAll/Constellation/shared/create-nonce.ts +5 -0
  111. package/tests/assets/original/components/createAll/Constellation/shared/suggestions-handler.ts +9 -0
  112. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/config.json +0 -1
  113. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/config.json +0 -1
  114. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/config.json +0 -1
  115. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/config.json +0 -1
  116. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/config.json +0 -1
  117. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/config.json +0 -1
  118. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/config.json +0 -1
  119. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/config.json +0 -1
  120. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/config.json +0 -1
  121. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/config.json +0 -1
  122. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/config.json +0 -1
  123. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/config.json +0 -1
  124. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.tsx +1 -0
  125. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/config.json +0 -1
  126. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/config.json +0 -1
  127. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/config.json +0 -1
  128. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/config.json +0 -1
  129. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/config.json +0 -1
  130. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/config.json +0 -1
  131. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/config.json +0 -1
  132. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/config.json +0 -1
  133. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/config.json +0 -1
  134. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/config.json +0 -1
  135. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/config.json +0 -1
  136. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/config.json +0 -1
  137. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/config.json +0 -1
  138. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/config.json +0 -1
  139. package/tests/assets/original/components/createAll/Launchpad/shared/PConnProps.d.ts +46 -0
  140. package/tests/assets/original/components/createAll/Launchpad/shared/create-nonce.ts +5 -0
  141. package/tests/assets/original/components/createAll/Launchpad/shared/suggestions-handler.ts +9 -0
  142. package/tests/functional/localCreateAllListDeleteAll.test.js +1 -1
  143. package/tests/functional/localCreateBuildAllDeleteAll.test.js +3 -3
  144. package/tests/functional/localCreateBuildDelete.test.js +1 -1
  145. package/tests/functional/localCreateListDelete.test.js +1 -1
  146. package/tests/functional/localCreatePublishAllDeleteAll.test.js +3 -3
  147. package/tests/functional/localCreatePublishDelete.test.js +1 -1
  148. package/tests/functional/localCreateRenameDelete.test.js +1 -1
  149. package/tests/functional/localLibCreateLibBuildLibDeleteLib.test.js +3 -3
  150. package/tests/functional/localLibCreateLibBuildLibListPubDeleteLib.test.js +3 -3
  151. package/tests/functional/localLibCreateLibExportImportLib.test.js +1 -1
  152. package/tests/functional/localLibCreateLibExportLib.test.js +1 -1
  153. package/tests/functional/localLibCreateLibListDeleteLib.test.js +1 -1
  154. package/tests/functional/localLibCreateLibListMoveDeleteLib.test.js +1 -1
  155. package/tests/functional/localLibCreateLibListSwitchDeleteLib.test.js +1 -1
  156. package/tests/functional/localLibCreateLibStatusDeleteLib.test.js +1 -1
  157. package/tests/functional/localLibCreateLibStoreRestoreDeleteLib.test.js +1 -1
  158. package/tests/functional/localLibCreateLibValidateDeleteLib.test.js +3 -3
  159. package/tests/functional/localLibCreateLibVersionDeleteLib.test.js +1 -1
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyTestText",
10
9
  "type": "Field",
11
10
  "subtype": "Text",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyBoolean",
10
9
  "type": "Field",
11
10
  "subtype": "Boolean",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyCaseWidget",
10
9
  "type": "Widget",
11
10
  "subtype": "CASE",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyCurrency",
10
9
  "type": "Field",
11
10
  "subtype": "Decimal-Currency",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyDate",
10
9
  "type": "Field",
11
10
  "subtype": "Date",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyDateTime",
10
9
  "type": "Field",
11
10
  "subtype": "DateTime",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyDecimal",
10
9
  "type": "Field",
11
10
  "subtype": "Decimal",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyDetails",
10
9
  "type": "Template",
11
10
  "subtype": "DETAILS",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyEmail",
10
9
  "type": "Field",
11
10
  "subtype": "Text-Email",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyForm",
10
9
  "type": "Template",
11
10
  "subtype": "FORM",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyIconButtonURL",
10
9
  "type": "Field",
11
10
  "subtype": "Text-URL",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyInteger",
10
9
  "type": "Field",
11
10
  "subtype": "Integer",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyPage",
10
9
  "type": "Template",
11
10
  "subtype": "PAGE",
@@ -89,6 +89,7 @@ export const BasePegaDxilMyPage: Story = (args: any) => {
89
89
  />
90
90
  );
91
91
  }
92
+ return <></>;
92
93
  },
93
94
  ignoreSuggestion: () => {/* nothing */},
94
95
  acceptSuggestion: () => {/* nothing */},
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyPageCaseWidget",
10
9
  "type": "Widget",
11
10
  "subtype": ["PAGE","CASE"],
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyPageWidget",
10
9
  "type": "Widget",
11
10
  "subtype": "PAGE",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyParagraph",
10
9
  "type": "Field",
11
10
  "subtype": "Text-Paragraph",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyPercentage",
10
9
  "type": "Field",
11
10
  "subtype": "Decimal-Percentage",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyPhone",
10
9
  "type": "Field",
11
10
  "subtype": "Text-Phone",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyPicklist",
10
9
  "type": "Field",
11
10
  "subtype": "Picklist",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyRadiobuttons",
10
9
  "type": "Field",
11
10
  "subtype": "Picklist",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MySearchbox",
10
9
  "type": "Field",
11
10
  "subtype": "Picklist",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyText",
10
9
  "type": "Field",
11
10
  "subtype": "Text",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyTextInput",
10
9
  "type": "Field",
11
10
  "subtype": "Text",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyTimeOfDay",
10
9
  "type": "Field",
11
10
  "subtype": "TimeOfDay",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyTwoColumnDetails",
10
9
  "type": "Template",
11
10
  "subtype": "DETAILS",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyTwoColumnForm",
10
9
  "type": "Template",
11
10
  "subtype": "FORM",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyURL",
10
9
  "type": "Field",
11
10
  "subtype": "Text-URL",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyTestText",
10
9
  "type": "Field",
11
10
  "subtype": "Text",
@@ -0,0 +1,46 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ // @ts-ignore
2
+ if (window?.__webpack_nonce__) {
3
+ // @ts-ignore
4
+ __webpack_nonce__ = window.__webpack_nonce__;
5
+ }
@@ -0,0 +1,9 @@
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
+ };
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyBoolean",
10
9
  "type": "Field",
11
10
  "subtype": "Boolean",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyCaseWidget",
10
9
  "type": "Widget",
11
10
  "subtype": "CASE",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyCurrency",
10
9
  "type": "Field",
11
10
  "subtype": "Decimal-Currency",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyDate",
10
9
  "type": "Field",
11
10
  "subtype": "Date",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyDateTime",
10
9
  "type": "Field",
11
10
  "subtype": "DateTime",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyDecimal",
10
9
  "type": "Field",
11
10
  "subtype": "Decimal",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyDetails",
10
9
  "type": "Template",
11
10
  "subtype": "DETAILS",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyEmail",
10
9
  "type": "Field",
11
10
  "subtype": "Text-Email",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyForm",
10
9
  "type": "Template",
11
10
  "subtype": "FORM",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyIconButtonURL",
10
9
  "type": "Field",
11
10
  "subtype": "Text-URL",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyInteger",
10
9
  "type": "Field",
11
10
  "subtype": "Integer",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyPage",
10
9
  "type": "Template",
11
10
  "subtype": "PAGE",
@@ -89,6 +89,7 @@ export const BasePegaDxilMyPage: Story = (args: any) => {
89
89
  />
90
90
  );
91
91
  }
92
+ return <></>;
92
93
  },
93
94
  ignoreSuggestion: () => {/* nothing */},
94
95
  acceptSuggestion: () => {/* nothing */},
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyPageCaseWidget",
10
9
  "type": "Widget",
11
10
  "subtype": ["PAGE","CASE"],
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyPageWidget",
10
9
  "type": "Widget",
11
10
  "subtype": "PAGE",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyParagraph",
10
9
  "type": "Field",
11
10
  "subtype": "Text-Paragraph",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyPercentage",
10
9
  "type": "Field",
11
10
  "subtype": "Decimal-Percentage",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyPhone",
10
9
  "type": "Field",
11
10
  "subtype": "Text-Phone",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyPicklist",
10
9
  "type": "Field",
11
10
  "subtype": "Picklist",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyRadiobuttons",
10
9
  "type": "Field",
11
10
  "subtype": "Picklist",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MySearchbox",
10
9
  "type": "Field",
11
10
  "subtype": "Picklist",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyText",
10
9
  "type": "Field",
11
10
  "subtype": "Text",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyTextInput",
10
9
  "type": "Field",
11
10
  "subtype": "Text",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyTimeOfDay",
10
9
  "type": "Field",
11
10
  "subtype": "TimeOfDay",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyTwoColumnDetails",
10
9
  "type": "Template",
11
10
  "subtype": "DETAILS",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyTwoColumnForm",
10
9
  "type": "Template",
11
10
  "subtype": "FORM",
@@ -5,7 +5,6 @@
5
5
  "organization": "Pega",
6
6
  "version": "0.0.1",
7
7
  "library": "DXIL",
8
- "allowedApplications": [],
9
8
  "componentKey": "Pega_DXIL_MyURL",
10
9
  "type": "Field",
11
10
  "subtype": "Text-URL",
@@ -0,0 +1,46 @@
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
+ }