@pega/custom-dx-components 0.25.19 → 0.25.21

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 (163) hide show
  1. package/package.json +2 -2
  2. package/src/tasks/build-jest-assets/index.js +5 -5
  3. package/src/tasks/create/templates/Constellation/Field/Boolean/create-nonce.ts.mustache +1 -0
  4. package/src/tasks/create/templates/Constellation/Field/Date/create-nonce.ts.mustache +1 -0
  5. package/src/tasks/create/templates/Constellation/Field/Date/date.ts.mustache +0 -24
  6. package/src/tasks/create/templates/Constellation/Field/DateTime/create-nonce.ts.mustache +1 -0
  7. package/src/tasks/create/templates/Constellation/Field/Decimal/create-nonce.ts.mustache +1 -0
  8. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/create-nonce.ts.mustache +1 -0
  9. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/create-nonce.ts.mustache +1 -0
  10. package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/create-nonce.ts.mustache +1 -0
  11. package/src/tasks/create/templates/Constellation/Field/Integer/create-nonce.ts.mustache +1 -0
  12. package/src/tasks/create/templates/Constellation/Field/Picklist/create-nonce.ts.mustache +1 -0
  13. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/create-nonce.ts.mustache +1 -0
  14. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/repeat-utils.ts.mustache +0 -4
  15. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/create-nonce.ts.mustache +1 -0
  16. package/src/tasks/create/templates/Constellation/Field/Text/create-nonce.ts.mustache +1 -0
  17. package/src/tasks/create/templates/Constellation/Field/Text-Email/create-nonce.ts.mustache +1 -0
  18. package/src/tasks/create/templates/Constellation/Field/Text-Input/create-nonce.ts.mustache +1 -0
  19. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/create-nonce.ts.mustache +1 -0
  20. package/src/tasks/create/templates/Constellation/Field/Text-Phone/create-nonce.ts.mustache +1 -0
  21. package/src/tasks/create/templates/Constellation/Field/Text-URL/create-nonce.ts.mustache +1 -0
  22. package/src/tasks/create/templates/Constellation/Field/TimeofDay/create-nonce.ts.mustache +1 -0
  23. package/src/tasks/create/templates/Constellation/Template/DETAILS/create-nonce.ts.mustache +1 -0
  24. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/create-nonce.ts.mustache +1 -0
  25. package/src/tasks/create/templates/Constellation/Template/FORM/create-nonce.ts.mustache +1 -0
  26. package/src/tasks/create/templates/Constellation/Template/FORM-region/create-nonce.ts.mustache +1 -0
  27. package/src/tasks/create/templates/Constellation/Template/PAGE/create-nonce.ts.mustache +1 -0
  28. package/src/tasks/create/templates/Constellation/Widget/CASE/create-nonce.ts.mustache +1 -0
  29. package/src/tasks/create/templates/Constellation/Widget/PAGE/create-nonce.ts.mustache +1 -0
  30. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/create-nonce.ts.mustache +1 -0
  31. package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/create-nonce.ts.mustache +1 -0
  32. package/src/tasks/create/templates/Launchpad/Widget/CASE/create-nonce.ts.mustache +1 -0
  33. package/src/tasks/create/templates/Launchpad/Widget/PAGE/create-nonce.ts.mustache +1 -0
  34. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/create-nonce.ts.mustache +1 -0
  35. package/src/tasks/create-lib/helper.js +6 -2
  36. package/src/tasks/create-lib/index.js +3 -1
  37. package/src/tasks/delete-pub/index.js +3 -1
  38. package/src/tasks/export-archive/index.js +10 -5
  39. package/src/tasks/import-archive/index.js +12 -18
  40. package/src/tasks/init/template/.eslintrc.json +1 -1
  41. package/src/tasks/init/template/package.json.mustache +4 -4
  42. package/src/tasks/list-pub/index.js +15 -7
  43. package/src/tasks/publish-lib/index.js +131 -135
  44. package/src/tasks/restore/index.js +7 -1
  45. package/src/tasks/show-status/index.js +10 -6
  46. package/src/util.js +83 -4
  47. package/tests/assets/library/components/create/Pega_DXIL_MyTestText/config.json +1 -1
  48. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +1 -1
  49. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +1 -1
  50. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/localizations.json +8 -0
  51. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +1 -1
  52. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +1 -1
  53. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +1 -1
  54. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +1 -1
  55. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +1 -1
  56. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +1 -1
  57. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +1 -1
  58. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +1 -1
  59. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/localizations.json +10 -0
  60. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +1 -1
  61. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +1 -1
  62. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +1 -1
  63. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +1 -1
  64. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/localizations.json +10 -0
  65. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +1 -1
  66. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +1 -1
  67. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +1 -1
  68. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +1 -1
  69. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +1 -1
  70. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +1 -1
  71. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/localizations.json +5 -0
  72. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/config.json +1 -1
  73. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +1 -1
  74. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +1 -1
  75. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +1 -1
  76. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +1 -1
  77. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +1 -1
  78. package/tests/assets/original/components/create/Pega_DXIL_MyTestText/create-nonce.ts +1 -0
  79. package/tests/assets/original/components/create/shared/PConnProps.d.ts +46 -0
  80. package/tests/assets/original/components/create/shared/create-nonce.ts +7 -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/create-nonce.ts +1 -0
  83. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/create-nonce.ts +1 -0
  84. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/localizations.json +8 -0
  85. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/create-nonce.ts +1 -0
  86. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/create-nonce.ts +1 -0
  87. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/date.ts +0 -24
  88. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/create-nonce.ts +1 -0
  89. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/create-nonce.ts +1 -0
  90. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/create-nonce.ts +1 -0
  91. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/create-nonce.ts +1 -0
  92. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/create-nonce.ts +1 -0
  93. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/create-nonce.ts +1 -0
  94. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/localizations.json +10 -0
  95. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/create-nonce.ts +1 -0
  96. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/create-nonce.ts +1 -0
  97. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/create-nonce.ts +1 -0
  98. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/create-nonce.ts +1 -0
  99. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/localizations.json +10 -0
  100. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/create-nonce.ts +1 -0
  101. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/create-nonce.ts +1 -0
  102. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/create-nonce.ts +1 -0
  103. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/create-nonce.ts +1 -0
  104. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/create-nonce.ts +1 -0
  105. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/create-nonce.ts +1 -0
  106. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/localizations.json +5 -0
  107. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/repeat-utils.ts +0 -4
  108. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/create-nonce.ts +1 -0
  109. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/create-nonce.ts +1 -0
  110. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/create-nonce.ts +1 -0
  111. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/create-nonce.ts +1 -0
  112. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/create-nonce.ts +1 -0
  113. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/create-nonce.ts +1 -0
  114. package/tests/assets/original/components/createAll/Constellation/shared/PConnProps.d.ts +46 -0
  115. package/tests/assets/original/components/createAll/Constellation/shared/create-nonce.ts +7 -0
  116. package/tests/assets/original/components/createAll/Constellation/shared/suggestions-handler.ts +9 -0
  117. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/create-nonce.ts +1 -0
  118. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/create-nonce.ts +1 -0
  119. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/create-nonce.ts +1 -0
  120. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/create-nonce.ts +1 -0
  121. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/date.ts +0 -24
  122. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/create-nonce.ts +1 -0
  123. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/create-nonce.ts +1 -0
  124. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/create-nonce.ts +1 -0
  125. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/create-nonce.ts +1 -0
  126. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/create-nonce.ts +1 -0
  127. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/create-nonce.ts +1 -0
  128. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/create-nonce.ts +1 -0
  129. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/create-nonce.ts +1 -0
  130. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/create-nonce.ts +1 -0
  131. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/create-nonce.ts +1 -0
  132. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/create-nonce.ts +1 -0
  133. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/create-nonce.ts +1 -0
  134. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/create-nonce.ts +1 -0
  135. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/create-nonce.ts +1 -0
  136. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/create-nonce.ts +1 -0
  137. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/create-nonce.ts +1 -0
  138. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/localizations.json +5 -0
  139. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/repeat-utils.ts +0 -4
  140. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/create-nonce.ts +1 -0
  141. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/create-nonce.ts +1 -0
  142. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/create-nonce.ts +1 -0
  143. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/create-nonce.ts +1 -0
  144. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/create-nonce.ts +1 -0
  145. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/create-nonce.ts +1 -0
  146. package/tests/assets/original/components/createAll/Launchpad/shared/PConnProps.d.ts +46 -0
  147. package/tests/assets/original/components/createAll/Launchpad/shared/create-nonce.ts +7 -0
  148. package/tests/assets/original/components/createAll/Launchpad/shared/suggestions-handler.ts +9 -0
  149. package/tests/functional/localCreateAllListDeleteAll.test.js +8 -8
  150. package/tests/functional/localLibCreateLibAlreadyDeleteLib.test.js +14 -14
  151. package/tests/functional/localLibCreateLibBuildLibDeleteLib.test.js +17 -17
  152. package/tests/functional/localLibCreateLibBuildLibListPubDeleteLib.test.js +20 -20
  153. package/tests/functional/localLibCreateLibDeleteLib.test.js +17 -17
  154. package/tests/functional/localLibCreateLibExportImportLib.test.js +27 -27
  155. package/tests/functional/localLibCreateLibExportLib.test.js +19 -19
  156. package/tests/functional/localLibCreateLibImportCompDeleteLib.test.js +14 -14
  157. package/tests/functional/localLibCreateLibListDeleteLib.test.js +22 -22
  158. package/tests/functional/localLibCreateLibListMoveDeleteLib.test.js +31 -31
  159. package/tests/functional/localLibCreateLibListSwitchDeleteLib.test.js +20 -20
  160. package/tests/functional/localLibCreateLibStatusDeleteLib.test.js +13 -29
  161. package/tests/functional/localLibCreateLibValidateDeleteLib.test.js +15 -15
  162. package/tests/functional/localLibCreateLibVersionDeleteLib.test.js +27 -27
  163. package/tests/functional/localLibCreateLibPermDeleteLib.test.js +0 -144
@@ -3,7 +3,7 @@
3
3
  "label": "My Integer",
4
4
  "description": "My Integer",
5
5
  "organization": "Pega",
6
- "version": "0.0.1-dev",
6
+ "version": "0.0.1",
7
7
  "library": "DXIL",
8
8
  "allowedApplications": [],
9
9
  "componentKey": "Pega_DXIL_MyInteger",
@@ -3,7 +3,7 @@
3
3
  "label": "My Page",
4
4
  "description": "My Page",
5
5
  "organization": "Pega",
6
- "version": "0.0.1-dev",
6
+ "version": "0.0.1",
7
7
  "library": "DXIL",
8
8
  "allowedApplications": [],
9
9
  "componentKey": "Pega_DXIL_MyPage",
@@ -3,7 +3,7 @@
3
3
  "label": "My PageCase Widget",
4
4
  "description": "My PageCase Widget",
5
5
  "organization": "Pega",
6
- "version": "0.0.1-dev",
6
+ "version": "0.0.1",
7
7
  "library": "DXIL",
8
8
  "allowedApplications": [],
9
9
  "componentKey": "Pega_DXIL_MyPageCaseWidget",
@@ -3,7 +3,7 @@
3
3
  "label": "My Page Widget",
4
4
  "description": "My Page Widget",
5
5
  "organization": "Pega",
6
- "version": "0.0.1-dev",
6
+ "version": "0.0.1",
7
7
  "library": "DXIL",
8
8
  "allowedApplications": [],
9
9
  "componentKey": "Pega_DXIL_MyPageWidget",
@@ -0,0 +1,10 @@
1
+ {
2
+ "fields": {
3
+ "Case type": "Case type",
4
+ "Key" : "Key",
5
+ "Status" : "Status",
6
+ "Stage" : "Stage",
7
+ "Work list" : "Work list",
8
+ "Loading Work list" : "Loading Work list"
9
+ }
10
+ }
@@ -3,7 +3,7 @@
3
3
  "label": "My Paragraph",
4
4
  "description": "My Paragraph",
5
5
  "organization": "Pega",
6
- "version": "0.0.1-dev",
6
+ "version": "0.0.1",
7
7
  "library": "DXIL",
8
8
  "allowedApplications": [],
9
9
  "componentKey": "Pega_DXIL_MyParagraph",
@@ -3,7 +3,7 @@
3
3
  "label": "My Percentage",
4
4
  "description": "My Percentage",
5
5
  "organization": "Pega",
6
- "version": "0.0.1-dev",
6
+ "version": "0.0.1",
7
7
  "library": "DXIL",
8
8
  "allowedApplications": [],
9
9
  "componentKey": "Pega_DXIL_MyPercentage",
@@ -3,7 +3,7 @@
3
3
  "label": "My Phone",
4
4
  "description": "My Phone",
5
5
  "organization": "Pega",
6
- "version": "0.0.1-dev",
6
+ "version": "0.0.1",
7
7
  "library": "DXIL",
8
8
  "allowedApplications": [],
9
9
  "componentKey": "Pega_DXIL_MyPhone",
@@ -3,7 +3,7 @@
3
3
  "label": "My Picklist",
4
4
  "description": "My Picklist",
5
5
  "organization": "Pega",
6
- "version": "0.0.1-dev",
6
+ "version": "0.0.1",
7
7
  "library": "DXIL",
8
8
  "allowedApplications": [],
9
9
  "componentKey": "Pega_DXIL_MyPicklist",
@@ -3,7 +3,7 @@
3
3
  "label": "My Radio buttons",
4
4
  "description": "My Radio buttons",
5
5
  "organization": "Pega",
6
- "version": "0.0.1-dev",
6
+ "version": "0.0.1",
7
7
  "library": "DXIL",
8
8
  "allowedApplications": [],
9
9
  "componentKey": "Pega_DXIL_MyRadiobuttons",
@@ -3,7 +3,7 @@
3
3
  "label": "My Search box",
4
4
  "description": "My Search box",
5
5
  "organization": "Pega",
6
- "version": "0.0.1-dev",
6
+ "version": "0.0.1",
7
7
  "library": "DXIL",
8
8
  "allowedApplications": [],
9
9
  "componentKey": "Pega_DXIL_MySearchbox",
@@ -3,7 +3,7 @@
3
3
  "label": "My Text",
4
4
  "description": "My Text",
5
5
  "organization": "Pega",
6
- "version": "0.0.1-dev",
6
+ "version": "0.0.1",
7
7
  "library": "DXIL",
8
8
  "allowedApplications": [],
9
9
  "componentKey": "Pega_DXIL_MyText",
@@ -3,7 +3,7 @@
3
3
  "label": "My Text Input",
4
4
  "description": "My Text Input",
5
5
  "organization": "Pega",
6
- "version": "0.0.1-dev",
6
+ "version": "0.0.1",
7
7
  "library": "DXIL",
8
8
  "allowedApplications": [],
9
9
  "componentKey": "Pega_DXIL_MyTextInput",
@@ -3,7 +3,7 @@
3
3
  "label": "My TimeOfDay",
4
4
  "description": "My TimeOfDay",
5
5
  "organization": "Pega",
6
- "version": "0.0.1-dev",
6
+ "version": "0.0.1",
7
7
  "library": "DXIL",
8
8
  "allowedApplications": [],
9
9
  "componentKey": "Pega_DXIL_MyTimeOfDay",
@@ -3,7 +3,7 @@
3
3
  "label": "My Two Column Details",
4
4
  "description": "My Two Column Details",
5
5
  "organization": "Pega",
6
- "version": "0.0.1-dev",
6
+ "version": "0.0.1",
7
7
  "library": "DXIL",
8
8
  "allowedApplications": [],
9
9
  "componentKey": "Pega_DXIL_MyTwoColumnDetails",
@@ -3,7 +3,7 @@
3
3
  "label": "My Two Column Form",
4
4
  "description": "My Two Column Form",
5
5
  "organization": "Pega",
6
- "version": "0.0.1-dev",
6
+ "version": "0.0.1",
7
7
  "library": "DXIL",
8
8
  "allowedApplications": [],
9
9
  "componentKey": "Pega_DXIL_MyTwoColumnForm",
@@ -3,7 +3,7 @@
3
3
  "label": "My URL",
4
4
  "description": "My URL",
5
5
  "organization": "Pega",
6
- "version": "0.0.1-dev",
6
+ "version": "0.0.1",
7
7
  "library": "DXIL",
8
8
  "allowedApplications": [],
9
9
  "componentKey": "Pega_DXIL_MyURL",
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -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,7 @@
1
+ /* eslint-disable camelcase */
2
+ // @ts-ignore
3
+ if (window?.__webpack_nonce__) {
4
+ // @ts-ignore
5
+ // eslint-disable-next-line no-undef
6
+ __webpack_nonce__ = window.__webpack_nonce__;
7
+ }
@@ -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
+ };
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "fields": {
3
+ "Date": "Date",
4
+ "Description" : "Description",
5
+ "Performed by" : "Performed by",
6
+ "Loading case history" : "Loading case history"
7
+ }
8
+ }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -381,30 +381,6 @@ export function format(value, type, options) {
381
381
  let formattedValue;
382
382
 
383
383
  switch (type?.toLowerCase()) {
384
- case 'currency': {
385
- const defaultOptions = {
386
- locale: getLocale(),
387
- position: 'before',
388
- decPlaces: 2
389
- };
390
- const params = { ...defaultOptions, ...options };
391
- formattedValue = Currency.Currency(value, params);
392
- break;
393
- }
394
-
395
- case 'decimal': {
396
- const defaultOptions = { locale: getLocale(), decPlaces: 2 };
397
- const params = { ...defaultOptions, ...options };
398
- formattedValue = Currency.Decimal(value, params);
399
- break;
400
- }
401
-
402
- case 'integer': {
403
- const defaultOptions = { locale: getLocale() };
404
- const params = { ...defaultOptions, ...options };
405
- formattedValue = Currency.Integer(value, params);
406
- break;
407
- }
408
384
 
409
385
  case 'date': {
410
386
  const defaultOptions = {
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -0,0 +1,10 @@
1
+ {
2
+ "fields": {
3
+ "State name" : "State name",
4
+ "State code" : "State code",
5
+ "State list for": "State list for",
6
+ "Click to show/hide state list": "Click to show/hide state list",
7
+ "State list": "State list",
8
+ "Loading state list": "Loading state list"
9
+ }
10
+ }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -0,0 +1,10 @@
1
+ {
2
+ "fields": {
3
+ "Case type": "Case type",
4
+ "Key" : "Key",
5
+ "Status" : "Status",
6
+ "Stage" : "Stage",
7
+ "Work list" : "Work list",
8
+ "Loading Work list" : "Loading Work list"
9
+ }
10
+ }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -165,10 +165,6 @@ export function updateWithTimeZone(stateFromTable, meta) {
165
165
  return stateFromTable;
166
166
  }
167
167
 
168
- export function isHybrid() {
169
- return typeof pega !== 'undefined' && typeof pega.desktop !== 'undefined';
170
- }
171
-
172
168
  export const isPageListInPath = (propertyName, currentClassID) => {
173
169
  if (!propertyName.includes('.')) {
174
170
  return false;
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -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,7 @@
1
+ /* eslint-disable camelcase */
2
+ // @ts-ignore
3
+ if (window?.__webpack_nonce__) {
4
+ // @ts-ignore
5
+ // eslint-disable-next-line no-undef
6
+ __webpack_nonce__ = window.__webpack_nonce__;
7
+ }
@@ -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
+ };
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }
@@ -2,5 +2,6 @@
2
2
  // @ts-ignore
3
3
  if (window?.__webpack_nonce__) {
4
4
  // @ts-ignore
5
+ // eslint-disable-next-line no-undef
5
6
  __webpack_nonce__ = window.__webpack_nonce__;
6
7
  }