@pega/react-sdk-overrides 0.23.11 → 0.23.13

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 (217) hide show
  1. package/lib/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +202 -0
  2. package/lib/{designSystemExtensions → designSystemExtension}/DetailsFields/DetailsFields.tsx +1 -1
  3. package/lib/{designSystemExtensions → designSystemExtension}/Operator/Operator.tsx +1 -0
  4. package/lib/{forms → field}/AutoComplete/AutoComplete.tsx +11 -4
  5. package/lib/{forms → field}/Checkbox/Checkbox.tsx +11 -1
  6. package/lib/{forms → field}/Currency/Currency.tsx +1 -1
  7. package/lib/{forms → field}/Date/Date.tsx +2 -2
  8. package/lib/{forms → field}/DateTime/DateTime.tsx +2 -2
  9. package/lib/field/DateTime/config-ext.json +9 -0
  10. package/lib/{forms → field}/Decimal/Decimal.tsx +2 -2
  11. package/lib/field/Decimal/config-ext.json +9 -0
  12. package/lib/{forms → field}/Dropdown/Dropdown.tsx +10 -1
  13. package/lib/field/Dropdown/config-ext.json +9 -0
  14. package/lib/{forms → field}/Email/Email.tsx +2 -2
  15. package/lib/field/Email/config-ext.json +9 -0
  16. package/lib/{forms → field}/Integer/Integer.tsx +2 -2
  17. package/lib/field/Integer/config-ext.json +9 -0
  18. package/lib/{forms → field}/Percentage/Percentage.tsx +2 -2
  19. package/lib/field/Percentage/config-ext.json +9 -0
  20. package/lib/{forms → field}/Phone/Phone.tsx +1 -1
  21. package/lib/{forms → field}/RadioButtons/RadioButtons.tsx +16 -6
  22. package/lib/field/RadioButtons/config-ext.json +9 -0
  23. package/lib/field/SemanticLink/config-ext.json +8 -0
  24. package/lib/{forms → field}/TextArea/TextArea.tsx +1 -1
  25. package/lib/field/TextArea/config-ext.json +9 -0
  26. package/lib/field/TextContent/config-ext.json +8 -0
  27. package/lib/{forms → field}/TextInput/TextInput.tsx +1 -1
  28. package/lib/field/TextInput/config-ext.json +9 -0
  29. package/lib/{forms → field}/Time/Time.tsx +2 -2
  30. package/lib/field/Time/config-ext.json +9 -0
  31. package/lib/{forms → field}/URL/URL.tsx +2 -2
  32. package/lib/field/URL/config-ext.json +9 -0
  33. package/lib/{forms → field}/UserReference/UserReference.tsx +2 -2
  34. package/lib/field/UserReference/config-ext.json +8 -0
  35. package/lib/infra/Containers/FlowContainer/FlowContainer.tsx +1 -1
  36. package/lib/infra/Containers/ModalViewContainer/ModalViewContainer.tsx +1 -1
  37. package/lib/infra/View/View.tsx +2 -2
  38. package/lib/{templates → template}/CaseSummary/CaseSummary.tsx +1 -1
  39. package/lib/template/CaseSummary/config-ext.json +9 -0
  40. package/lib/{templates → template}/CaseView/CaseView.tsx +1 -1
  41. package/lib/template/CaseView/config-ext.json +9 -0
  42. package/lib/{templates → template}/DataReference/DataReference.tsx +2 -2
  43. package/lib/template/DataReference/config-ext.json +9 -0
  44. package/lib/template/DefaultForm/config-ext.json +9 -0
  45. package/lib/{templates → template}/Details/Details/Details.tsx +1 -1
  46. package/lib/{templates → template}/Details/DetailsSubTabs/DetailsSubTabs.tsx +1 -1
  47. package/lib/template/Details/DetailsSubTabs/config-ext.json +9 -0
  48. package/lib/{templates → template}/Details/DetailsThreeColumn/DetailsThreeColumn.tsx +1 -1
  49. package/lib/template/Details/DetailsThreeColumn/config-ext.json +9 -0
  50. package/lib/{templates → template}/Details/DetailsTwoColumn/DetailsTwoColumn.tsx +1 -1
  51. package/lib/template/Details/DetailsTwoColumn/config-ext.json +9 -0
  52. package/lib/{templates → template}/FieldGroupTemplate/FieldGroupTemplate.tsx +2 -2
  53. package/lib/{templates → template}/InlineDashboardPage/InlineDashboardPage.tsx +1 -1
  54. package/lib/{templates → template}/ListPage/ListPage.tsx +1 -1
  55. package/lib/template/ListPage/config-ext.json +8 -0
  56. package/lib/{templates → template}/ListView/ListView.tsx +29 -5
  57. package/lib/template/ListView/config-ext.json +9 -0
  58. package/lib/{templates → template}/NarrowWide/NarrowWideDetails/NarrowWideDetails.tsx +1 -1
  59. package/lib/template/NarrowWide/NarrowWideDetails/config-ext.json +9 -0
  60. package/lib/template/NarrowWide/NarrowWideForm/config-ext.json +9 -0
  61. package/lib/{templates → template}/NarrowWide/NarrowWidePage/NarrowWidePage.tsx +1 -1
  62. package/lib/template/NarrowWide/NarrowWidePage/config-ext.json +9 -0
  63. package/lib/template/OneColumn/OneColumn/config-ext.json +9 -0
  64. package/lib/{templates → template}/OneColumn/OneColumnPage/OneColumnPage.tsx +1 -1
  65. package/lib/template/OneColumn/OneColumnPage/config-ext.json +9 -0
  66. package/lib/template/OneColumn/OneColumnTab/config-ext.json +9 -0
  67. package/lib/{templates → template}/PromotedFilters/PromotedFilters.tsx +5 -4
  68. package/lib/{templates → template}/SimpleTable/SimpleTable/SimpleTable.tsx +2 -2
  69. package/lib/template/SimpleTable/SimpleTable/config-ext.json +8 -0
  70. package/lib/{templates → template}/SimpleTable/SimpleTableManual/SimpleTableManual.tsx +1 -1
  71. package/lib/{templates → template}/SimpleTable/SimpleTableSelect/SimpleTableSelect.tsx +4 -3
  72. package/lib/template/SubTabs/config-ext.json +9 -0
  73. package/lib/template/TwoColumn/TwoColumn/config-ext.json +9 -0
  74. package/lib/{templates → template}/TwoColumn/TwoColumnPage/TwoColumnPage.tsx +1 -1
  75. package/lib/template/TwoColumn/TwoColumnPage/config-ext.json +9 -0
  76. package/lib/template/TwoColumn/TwoColumnTab/config-ext.json +9 -0
  77. package/lib/{templates → template}/WideNarrow/WideNarrowDetails/WideNarrowDetails.tsx +1 -1
  78. package/lib/template/WideNarrow/WideNarrowDetails/config-ext.json +9 -0
  79. package/lib/template/WideNarrow/WideNarrowForm/config-ext.json +9 -0
  80. package/lib/{templates → template}/WideNarrow/WideNarrowPage/WideNarrowPage.tsx +1 -1
  81. package/lib/template/WideNarrow/WideNarrowPage/config-ext.json +9 -0
  82. package/lib/{templates → template}/utils.ts +1 -1
  83. package/lib/widget/AppAnnouncement/config-ext.json +9 -0
  84. package/lib/{widgets → widget}/Attachment/Attachment.tsx +1 -1
  85. package/lib/widget/CaseHistory/config-ext.json +9 -0
  86. package/lib/{widgets → widget}/FileUtility/FileUtility/FileUtility.tsx +2 -2
  87. package/lib/widget/FileUtility/FileUtility/config-ext.json +9 -0
  88. package/lib/widget/Followers/config-ext.json +9 -0
  89. package/lib/{widgets → widget}/SummaryList/SummaryList.tsx +1 -1
  90. package/lib/widget/ToDo/config-ext.json +9 -0
  91. package/package.json +1 -1
  92. package/lib/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.tsx +0 -156
  93. /package/lib/{designSystemExtensions → designSystemExtension}/CaseSummaryFields/CaseSummaryFields.css +0 -0
  94. /package/lib/{designSystemExtensions → designSystemExtension}/CaseSummaryFields/index.tsx +0 -0
  95. /package/lib/{designSystemExtensions → designSystemExtension}/DetailsFields/index.tsx +0 -0
  96. /package/lib/{designSystemExtensions → designSystemExtension}/FieldGroup/FieldGroup.tsx +0 -0
  97. /package/lib/{designSystemExtensions → designSystemExtension}/FieldGroup/index.tsx +0 -0
  98. /package/lib/{designSystemExtensions → designSystemExtension}/FieldGroupList/FieldGroupList.tsx +0 -0
  99. /package/lib/{designSystemExtensions → designSystemExtension}/FieldGroupList/index.tsx +0 -0
  100. /package/lib/{designSystemExtensions → designSystemExtension}/FieldValueList/FieldValueList.tsx +0 -0
  101. /package/lib/{designSystemExtensions → designSystemExtension}/FieldValueList/index.tsx +0 -0
  102. /package/lib/{designSystemExtensions → designSystemExtension}/Operator/index.tsx +0 -0
  103. /package/lib/{designSystemExtensions → designSystemExtension}/Pulse/Pulse.tsx +0 -0
  104. /package/lib/{designSystemExtensions → designSystemExtension}/Pulse/index.tsx +0 -0
  105. /package/lib/{forms → field}/AutoComplete/config-ext.json +0 -0
  106. /package/lib/{forms → field}/AutoComplete/index.tsx +0 -0
  107. /package/lib/{forms → field}/CancelAlert/CancelAlert.css +0 -0
  108. /package/lib/{forms → field}/CancelAlert/CancelAlert.tsx +0 -0
  109. /package/lib/{forms → field}/CancelAlert/index.tsx +0 -0
  110. /package/lib/{forms → field}/Checkbox/config-ext.json +0 -0
  111. /package/lib/{forms → field}/Checkbox/index.tsx +0 -0
  112. /package/lib/{forms → field}/Currency/config-ext.json +0 -0
  113. /package/lib/{forms → field}/Currency/index.tsx +0 -0
  114. /package/lib/{forms → field}/Date/config-ext.json +0 -0
  115. /package/lib/{forms → field}/Date/index.tsx +0 -0
  116. /package/lib/{forms → field}/DateTime/index.tsx +0 -0
  117. /package/lib/{forms → field}/Decimal/index.tsx +0 -0
  118. /package/lib/{forms → field}/Dropdown/index.tsx +0 -0
  119. /package/lib/{forms → field}/Email/index.tsx +0 -0
  120. /package/lib/{forms → field}/Integer/index.tsx +0 -0
  121. /package/lib/{forms → field}/Percentage/index.tsx +0 -0
  122. /package/lib/{forms → field}/Phone/index.tsx +0 -0
  123. /package/lib/{forms → field}/RadioButtons/index.tsx +0 -0
  124. /package/lib/{forms → field}/SemanticLink/SemanticLink.tsx +0 -0
  125. /package/lib/{forms → field}/SemanticLink/index.tsx +0 -0
  126. /package/lib/{forms → field}/SemanticLink/utils.ts +0 -0
  127. /package/lib/{forms → field}/TextArea/index.tsx +0 -0
  128. /package/lib/{forms → field}/TextContent/TextContent.tsx +0 -0
  129. /package/lib/{forms → field}/TextContent/index.tsx +0 -0
  130. /package/lib/{forms → field}/TextInput/index.tsx +0 -0
  131. /package/lib/{forms → field}/Time/index.tsx +0 -0
  132. /package/lib/{forms → field}/URL/index.tsx +0 -0
  133. /package/lib/{forms → field}/UserReference/UserReferenceUtils.ts +0 -0
  134. /package/lib/{forms → field}/UserReference/index.tsx +0 -0
  135. /package/lib/{templates → template}/AppShell/AppShell.css +0 -0
  136. /package/lib/{templates → template}/AppShell/AppShell.tsx +0 -0
  137. /package/lib/{templates → template}/AppShell/index.tsx +0 -0
  138. /package/lib/{templates → template}/CaseSummary/index.tsx +0 -0
  139. /package/lib/{templates → template}/CaseView/index.tsx +0 -0
  140. /package/lib/{templates → template}/CaseViewActionsMenu/CaseViewActionsMenu.tsx +0 -0
  141. /package/lib/{templates → template}/CaseViewActionsMenu/index.tsx +0 -0
  142. /package/lib/{templates → template}/DataReference/index.tsx +0 -0
  143. /package/lib/{templates → template}/DefaultForm/DefaultForm.css +0 -0
  144. /package/lib/{templates → template}/DefaultForm/DefaultForm.tsx +0 -0
  145. /package/lib/{templates → template}/DefaultForm/index.tsx +0 -0
  146. /package/lib/{templates → template}/Details/Details/index.tsx +0 -0
  147. /package/lib/{templates → template}/Details/DetailsSubTabs/index.tsx +0 -0
  148. /package/lib/{templates → template}/Details/DetailsThreeColumn/index.tsx +0 -0
  149. /package/lib/{templates → template}/Details/DetailsTwoColumn/index.tsx +0 -0
  150. /package/lib/{templates → template}/FieldGroupTemplate/index.tsx +0 -0
  151. /package/lib/{templates → template}/InlineDashboard/InlineDashboard.tsx +0 -0
  152. /package/lib/{templates → template}/InlineDashboard/index.tsx +0 -0
  153. /package/lib/{templates → template}/InlineDashboardPage/index.tsx +0 -0
  154. /package/lib/{templates → template}/ListPage/index.tsx +0 -0
  155. /package/lib/{templates → template}/ListView/ListView.css +0 -0
  156. /package/lib/{templates → template}/ListView/index.tsx +0 -0
  157. /package/lib/{templates → template}/MultiReferenceReadOnly/MultiReferenceReadOnly.tsx +0 -0
  158. /package/lib/{templates → template}/MultiReferenceReadOnly/index.tsx +0 -0
  159. /package/lib/{templates → template}/NarrowWide/NarrowWide/NarrowWide.css +0 -0
  160. /package/lib/{templates → template}/NarrowWide/NarrowWide/NarrowWide.tsx +0 -0
  161. /package/lib/{templates → template}/NarrowWide/NarrowWide/index.tsx +0 -0
  162. /package/lib/{templates → template}/NarrowWide/NarrowWideDetails/index.tsx +0 -0
  163. /package/lib/{templates → template}/NarrowWide/NarrowWideForm/NarrowWideForm.css +0 -0
  164. /package/lib/{templates → template}/NarrowWide/NarrowWideForm/NarrowWideForm.tsx +0 -0
  165. /package/lib/{templates → template}/NarrowWide/NarrowWideForm/index.tsx +0 -0
  166. /package/lib/{templates → template}/NarrowWide/NarrowWidePage/index.tsx +0 -0
  167. /package/lib/{templates → template}/OneColumn/OneColumn/OneColumn.tsx +0 -0
  168. /package/lib/{templates → template}/OneColumn/OneColumn/index.tsx +0 -0
  169. /package/lib/{templates → template}/OneColumn/OneColumnPage/index.tsx +0 -0
  170. /package/lib/{templates → template}/OneColumn/OneColumnTab/OneColumnTab.tsx +0 -0
  171. /package/lib/{templates → template}/OneColumn/OneColumnTab/index.tsx +0 -0
  172. /package/lib/{templates → template}/PromotedFilters/PromotedFilters.css +0 -0
  173. /package/lib/{templates → template}/PromotedFilters/index.tsx +0 -0
  174. /package/lib/{templates → template}/SimpleTable/SimpleTable/index.tsx +0 -0
  175. /package/lib/{templates → template}/SimpleTable/SimpleTableManual/index.tsx +0 -0
  176. /package/lib/{templates → template}/SimpleTable/SimpleTableSelect/index.tsx +0 -0
  177. /package/lib/{templates → template}/SimpleTable/simpleTableHelpers.ts +0 -0
  178. /package/lib/{templates → template}/SingleReferenceReadOnly/SingleReferenceReadOnly.tsx +0 -0
  179. /package/lib/{templates → template}/SingleReferenceReadOnly/index.tsx +0 -0
  180. /package/lib/{templates → template}/SubTabs/SubTabs.tsx +0 -0
  181. /package/lib/{templates → template}/SubTabs/index.tsx +0 -0
  182. /package/lib/{templates → template}/SubTabs/tabUtils.ts +0 -0
  183. /package/lib/{templates → template}/TwoColumn/TwoColumn/TwoColumn.css +0 -0
  184. /package/lib/{templates → template}/TwoColumn/TwoColumn/TwoColumn.tsx +0 -0
  185. /package/lib/{templates → template}/TwoColumn/TwoColumn/index.tsx +0 -0
  186. /package/lib/{templates → template}/TwoColumn/TwoColumnPage/index.tsx +0 -0
  187. /package/lib/{templates → template}/TwoColumn/TwoColumnTab/TwoColumnTab.css +0 -0
  188. /package/lib/{templates → template}/TwoColumn/TwoColumnTab/TwoColumnTab.tsx +0 -0
  189. /package/lib/{templates → template}/TwoColumn/TwoColumnTab/index.tsx +0 -0
  190. /package/lib/{templates → template}/WideNarrow/WideNarrow/WideNarrow.css +0 -0
  191. /package/lib/{templates → template}/WideNarrow/WideNarrow/WideNarrow.tsx +0 -0
  192. /package/lib/{templates → template}/WideNarrow/WideNarrow/index.tsx +0 -0
  193. /package/lib/{templates → template}/WideNarrow/WideNarrowDetails/index.tsx +0 -0
  194. /package/lib/{templates → template}/WideNarrow/WideNarrowForm/WideNarrowForm.css +0 -0
  195. /package/lib/{templates → template}/WideNarrow/WideNarrowForm/WideNarrowForm.tsx +0 -0
  196. /package/lib/{templates → template}/WideNarrow/WideNarrowForm/index.tsx +0 -0
  197. /package/lib/{templates → template}/WideNarrow/WideNarrowPage/index.tsx +0 -0
  198. /package/lib/{widgets → widget}/AppAnnouncement/AppAnnouncement.tsx +0 -0
  199. /package/lib/{widgets → widget}/AppAnnouncement/index.tsx +0 -0
  200. /package/lib/{widgets → widget}/Attachment/Attachment.css +0 -0
  201. /package/lib/{widgets → widget}/Attachment/index.tsx +0 -0
  202. /package/lib/{widgets → widget}/CaseHistory/CaseHistory.tsx +0 -0
  203. /package/lib/{widgets → widget}/CaseHistory/index.tsx +0 -0
  204. /package/lib/{widgets → widget}/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.css +0 -0
  205. /package/lib/{widgets → widget}/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx +0 -0
  206. /package/lib/{widgets → widget}/FileUtility/ActionButtonsForFileUtil/index.tsx +0 -0
  207. /package/lib/{widgets → widget}/FileUtility/FileUtility/FileUtility.css +0 -0
  208. /package/lib/{widgets → widget}/FileUtility/FileUtility/index.tsx +0 -0
  209. /package/lib/{widgets → widget}/Followers/Followers.tsx +0 -0
  210. /package/lib/{widgets → widget}/Followers/index.tsx +0 -0
  211. /package/lib/{widgets → widget}/SummaryItem/SummaryItem.css +0 -0
  212. /package/lib/{widgets → widget}/SummaryItem/SummaryItem.tsx +0 -0
  213. /package/lib/{widgets → widget}/SummaryItem/index.tsx +0 -0
  214. /package/lib/{widgets → widget}/SummaryList/index.tsx +0 -0
  215. /package/lib/{infra → widget}/ToDo/ToDo.css +0 -0
  216. /package/lib/{infra → widget}/ToDo/ToDo.tsx +0 -0
  217. /package/lib/{infra → widget}/ToDo/index.tsx +0 -0
@@ -1,8 +1,8 @@
1
1
  import React, { Fragment, memo, useEffect, useState } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { Typography } from '@material-ui/core';
4
- import AutoComplete from '@pega/react-sdk-components/lib/components/forms/AutoComplete';
5
- import Dropdown from '@pega/react-sdk-components/lib/components/forms/Dropdown';
4
+ import AutoComplete from '@pega/react-sdk-components/lib/components/field/AutoComplete';
5
+ import Dropdown from '@pega/react-sdk-components/lib/components/field/Dropdown';
6
6
  import { getUserId, isUserNameAvailable } from './UserReferenceUtils';
7
7
 
8
8
  declare const PCore: any;
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "UserReference",
3
+ "description": "User reference",
4
+ "type": "Field",
5
+ "subtype": "DATA_CAPTURE",
6
+ "properties": [
7
+ ]
8
+ }
@@ -8,7 +8,7 @@ import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
8
8
  import { Alert } from '@material-ui/lab';
9
9
 
10
10
  import Assignment from '@pega/react-sdk-components/lib/components/infra/Assignment';
11
- import ToDo from "@pega/react-sdk-components/lib/components/infra/ToDo";
11
+ import ToDo from "@pega/react-sdk-components/lib/components/widget/ToDo";
12
12
 
13
13
  import createPConnectComponent from '@pega/react-sdk-components/lib/bridge/react_pconnect';
14
14
  import StoreContext from "@pega/react-sdk-components/lib/bridge/Context/StoreContext";
@@ -7,7 +7,7 @@ import DialogTitle from '@material-ui/core/DialogTitle';
7
7
  import { makeStyles } from '@material-ui/core/styles';
8
8
  import createPConnectComponent from '@pega/react-sdk-components/lib/bridge/react_pconnect';
9
9
  import Assignment from '@pega/react-sdk-components/lib/components/infra/Assignment';
10
- import CancelAlert from '@pega/react-sdk-components/lib/components/forms/CancelAlert';
10
+ import CancelAlert from '@pega/react-sdk-components/lib/components/field/CancelAlert';
11
11
  import Utils from '@pega/react-sdk-components/lib/components/helpers/utils';
12
12
 
13
13
  declare const PCore;
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
6
6
  import { SdkComponentMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
7
7
  import ErrorBoundary from '@pega/react-sdk-components/lib/components/infra/ErrorBoundary';
8
8
 
9
- import { getAllFields } from '@pega/react-sdk-components/lib/components/templates/utils';
9
+ import { getAllFields } from '@pega/react-sdk-components/lib/components/template/utils';
10
10
 
11
11
  // Need to import any templates that we might render
12
12
 
@@ -73,7 +73,7 @@ export default function View(props) {
73
73
 
74
74
  // eslint-disable-next-line no-console
75
75
  console.error(`View: Trying to render an unknown template: ${template}`);
76
-
76
+
77
77
  }
78
78
 
79
79
  // for debugging/investigation
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import PropTypes from "prop-types";
3
3
 
4
- import CaseSummaryFields from '@pega/react-sdk-components/lib/components/designSystemExtensions/CaseSummaryFields';
4
+ import CaseSummaryFields from '@pega/react-sdk-components/lib/components/designSystemExtension/CaseSummaryFields';
5
5
 
6
6
  export default function CaseSummary(props) {
7
7
  const { getPConnect, children } = props;
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "CaseSummary",
3
+ "label": "Summary data",
4
+ "description": "Case summary template",
5
+ "type": "Template",
6
+ "subtype": "SUMMARY",
7
+ "properties": [
8
+ ]
9
+ }
@@ -10,7 +10,7 @@ import Button from '@material-ui/core/Button';
10
10
  import Grid from '@material-ui/core/Grid';
11
11
 
12
12
  import StoreContext from "@pega/react-sdk-components/lib/bridge/Context/StoreContext";
13
- import CaseViewActionsMenu from "@pega/react-sdk-components/lib/components/templates/CaseViewActionsMenu";
13
+ import CaseViewActionsMenu from "@pega/react-sdk-components/lib/components/template/CaseViewActionsMenu";
14
14
  import VerticalTabs from '@pega/react-sdk-components/lib/components/infra/VerticalTabs/VerticalTabs';
15
15
  import DeferLoad from '@pega/react-sdk-components/lib/components/infra/DeferLoad';
16
16
 
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "CaseView",
3
+ "label": "Object page",
4
+ "description": "Standard case page",
5
+ "type": "Template",
6
+ "subtype": "CASEVIEW",
7
+ "properties": [
8
+ ]
9
+ }
@@ -1,7 +1,7 @@
1
1
  import React, { useMemo, useState, useEffect } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import SingleReferenceReadonly from '@pega/react-sdk-components/lib/components/templates/SingleReferenceReadOnly';
4
- import MultiReferenceReadonly from '@pega/react-sdk-components/lib/components/templates/MultiReferenceReadOnly';
3
+ import SingleReferenceReadonly from '@pega/react-sdk-components/lib/components/template/SingleReferenceReadOnly';
4
+ import MultiReferenceReadonly from '@pega/react-sdk-components/lib/components/template/MultiReferenceReadOnly';
5
5
 
6
6
  const SELECTION_MODE = { SINGLE: 'single', MULTI: 'multi' };
7
7
 
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "DataReference",
3
+ "description": "Data Reference Template",
4
+ "type": "Template",
5
+ "icon": "DataReference.svg",
6
+ "subtype": "DATAVIEW",
7
+ "properties": [
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "DefaultForm",
3
+ "label": "Default form",
4
+ "description": "DefaultForm Template",
5
+ "type": "Template",
6
+ "subtype": "FORM",
7
+ "properties": [
8
+ ]
9
+ }
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  // import PropTypes from "prop-types";
3
3
  import Grid from '@material-ui/core/Grid';
4
- import DetailsFields from '@pega/react-sdk-components/lib/components/designSystemExtensions/DetailsFields';
4
+ import DetailsFields from '@pega/react-sdk-components/lib/components/designSystemExtension/DetailsFields';
5
5
 
6
6
  export default function Details(props) {
7
7
  const { children } = props;
@@ -1,6 +1,6 @@
1
1
  import { useState, useEffect, Fragment } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { getTransientTabs, getVisibleTabs, tabClick } from '@pega/react-sdk-components/lib/components/templates/SubTabs/tabUtils';
3
+ import { getTransientTabs, getVisibleTabs, tabClick } from '@pega/react-sdk-components/lib/components/template/SubTabs/tabUtils';
4
4
  import React from 'react';
5
5
  import { Tab, Tabs, TextField } from '@material-ui/core';
6
6
  import { TabContext, TabPanel } from '@material-ui/lab';
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "DetailsSubTabs",
3
+ "label": "Details (Sub tabs)",
4
+ "description": "Details (Sub tabs)",
5
+ "type": "Template",
6
+ "subtype": "DETAILS",
7
+ "properties": [
8
+ ]
9
+ }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  // import PropTypes from "prop-types";
3
3
  import Grid from '@material-ui/core/Grid';
4
- import DetailsFields from '@pega/react-sdk-components/lib/components/designSystemExtensions/DetailsFields';
4
+ import DetailsFields from '@pega/react-sdk-components/lib/components/designSystemExtension/DetailsFields';
5
5
 
6
6
  export default function DetailsThreeColumn(props) {
7
7
  const { children } = props;
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "DetailsThreeColumn",
3
+ "label": "Details (Three column)",
4
+ "description": "Details (Three column)",
5
+ "type": "Template",
6
+ "subtype": "DETAILS",
7
+ "properties": [
8
+ ]
9
+ }
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  // import PropTypes from "prop-types";
3
3
  import Grid from '@material-ui/core/Grid';
4
- import DetailsFields from '@pega/react-sdk-components/lib/components/designSystemExtensions/DetailsFields';
4
+ import DetailsFields from '@pega/react-sdk-components/lib/components/designSystemExtension/DetailsFields';
5
5
 
6
6
  export default function DetailsTwoColumn(props) {
7
7
  const { children } = props;
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "DetailsTwoColumn",
3
+ "label": "Details (Two column)",
4
+ "description": "Details (Two column)",
5
+ "type": "Template",
6
+ "subtype": "DETAILS",
7
+ "properties": [
8
+ ]
9
+ }
@@ -2,8 +2,8 @@
2
2
  import React, { useMemo } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
 
5
- import FieldGroup from '@pega/react-sdk-components/lib/components/designSystemExtensions/FieldGroup';
6
- import FieldGroupList from '@pega/react-sdk-components/lib/components/designSystemExtensions/FieldGroupList';
5
+ import FieldGroup from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldGroup';
6
+ import FieldGroupList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldGroupList';
7
7
  import { getReferenceList, buildView } from '@pega/react-sdk-components/lib/components/helpers/field-group-utils';
8
8
 
9
9
  declare const PCore: any;
@@ -3,7 +3,7 @@ import { useMemo, Children, useEffect, useState } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
 
5
5
  import { buildFilterComponents } from '@pega/react-sdk-components/lib/components/infra/DashboardFilter/filterUtils';
6
- import InlineDashboard from '@pega/react-sdk-components/lib/components/templates/InlineDashboard';
6
+ import InlineDashboard from '@pega/react-sdk-components/lib/components/template/InlineDashboard';
7
7
 
8
8
  export default function InlineDashboardPage(props) {
9
9
  const { children, getPConnect } = props;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import PropTypes from "prop-types";
3
3
 
4
- import ListView from '@pega/react-sdk-components/lib/components/templates/ListView';
4
+ import ListView from '@pega/react-sdk-components/lib/components/template/ListView';
5
5
 
6
6
  export default function ListPage(props) {
7
7
 
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "ListPage",
3
+ "type": "Template",
4
+ "subtype": "PAGE",
5
+ "label": "List page",
6
+ "properties": [
7
+ ]
8
+ }
@@ -35,7 +35,7 @@ import IconButton from '@material-ui/core/IconButton';
35
35
  import CloseIcon from '@material-ui/icons/Close';
36
36
  import { Radio } from '@material-ui/core';
37
37
  import Checkbox from '@material-ui/core/Checkbox';
38
- import { filterData } from '@pega/react-sdk-components/lib/components/templates/SimpleTable/simpleTableHelpers';
38
+ import { filterData } from '@pega/react-sdk-components/lib/components/template/SimpleTable/SimpleTable/simpleTableHelpers';
39
39
  import './ListView.css';
40
40
 
41
41
  const SELECTION_MODE = { SINGLE: 'single', MULTI: 'multi' };
@@ -69,11 +69,11 @@ export default function ListView(props) {
69
69
  const defRowID = referenceType === 'Case' ? 'pyID' : 'pyGUID';
70
70
 
71
71
  /** If compositeKeys is defined, use dynamic value, else fallback to pyID or pyGUID. */
72
- const rowID = compositeKeys && compositeKeys[0] ? compositeKeys[0] : defRowID;
72
+ const rowID = compositeKeys && compositeKeys?.length === 1 ? compositeKeys[0] : defRowID;
73
73
 
74
74
  const [arRows, setRows] = useState<Array<any>>([]);
75
75
  const [arColumns, setColumns] = useState<Array<any>>([]);
76
-
76
+ const [response, setResponse] = useState<Array<any>>([]);
77
77
  const [order, setOrder] = useState<Order>('asc');
78
78
  const [orderBy, setOrderBy] = useState<keyof any>('');
79
79
 
@@ -527,6 +527,8 @@ export default function ListView(props) {
527
527
 
528
528
  fields = updateFields(fields, myColumns);
529
529
 
530
+ setResponse(tableDataResults);
531
+
530
532
  const usingDataResults = getUsingData(tableDataResults, myColumns);
531
533
 
532
534
  // store globally, so can be searched, filtered, etc.
@@ -888,18 +890,40 @@ export default function ListView(props) {
888
890
 
889
891
  const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
890
892
  const value = event.target.value;
893
+ const reqObj = {};
894
+ if (compositeKeys?.length > 1) {
895
+ const index = response.findIndex(element => element[rowID] === value);
896
+ const selectedRow = response[index];
897
+ compositeKeys.forEach(element => {
898
+ reqObj[element] = selectedRow[element]
899
+ });
900
+ } else {
901
+ reqObj[rowID] = value;
902
+ }
891
903
  getPConnect()
892
904
  ?.getListActions?.()
893
- ?.setSelectedRows([{ [rowID]: value }]);
905
+ ?.setSelectedRows([reqObj]);
894
906
  setSelectedValue(value);
895
907
  };
896
908
 
897
909
  const onCheckboxClick = event => {
898
910
  const value = event?.target?.value;
899
911
  const checked = event?.target?.checked;
912
+ const reqObj = {};
913
+ if (compositeKeys?.length > 1) {
914
+ const index = response.findIndex(element => element[rowID] === value);
915
+ const selectedRow = response[index];
916
+ compositeKeys.forEach(element => {
917
+ reqObj[element] = selectedRow[element]
918
+ });
919
+ reqObj['$selected'] = checked;
920
+ } else {
921
+ reqObj[rowID] = value;
922
+ reqObj['$selected'] = checked;
923
+ }
900
924
  getPConnect()
901
925
  ?.getListActions()
902
- ?.setSelectedRows([{ [rowID]: value, $selected: checked }]);
926
+ ?.setSelectedRows([reqObj]);
903
927
  };
904
928
 
905
929
  return (
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "ListView",
3
+ "label": "Table",
4
+ "description": "Table Template",
5
+ "type": "Template",
6
+ "subtype": "LIST",
7
+ "properties": [
8
+ ]
9
+ }
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  // import PropTypes from "prop-types";
3
3
  // import Grid from '@material-ui/core/Grid';
4
- import DetailsFields from '@pega/react-sdk-components/lib/components/designSystemExtensions/DetailsFields';
4
+ import DetailsFields from '@pega/react-sdk-components/lib/components/designSystemExtension/DetailsFields';
5
5
 
6
6
  export default function NarrowWideDetails(props) {
7
7
  const { a, b, children } = props;
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "NarrowWideDetails",
3
+ "label": "Details (Narrow-wide)",
4
+ "description": "Details (Narrow-wide) template",
5
+ "type": "Template",
6
+ "subtype": "DETAILS",
7
+ "properties": [
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "NarrowWideForm",
3
+ "label": "Narrow-wide",
4
+ "description": "NarrowWide Template",
5
+ "type": "Template",
6
+ "subtype": "FORM",
7
+ "properties": [
8
+ ]
9
+ }
@@ -2,7 +2,7 @@ import React, { Children } from "react";
2
2
  import PropTypes from "prop-types";
3
3
 
4
4
  // import { TwoColumnPage as TwoColumn } from "@pega/cosmos-react-core";
5
- import NarrowWide from '@pega/react-sdk-components/lib/components/templates/NarrowWide/NarrowWide';
5
+ import NarrowWide from '@pega/react-sdk-components/lib/components/template/NarrowWide/NarrowWide';
6
6
 
7
7
  /*
8
8
  * The wrapper handles knowing how to take in just children and mapping
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "NarrowWidePage",
3
+ "label": "Narrow-wide",
4
+ "description": "Narrow-wide Page Template",
5
+ "type": "Template",
6
+ "subtype": "PAGE",
7
+ "properties": [
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "OneColumn",
3
+ "label": "One column",
4
+ "description": "OneColumn Template",
5
+ "type": "Template",
6
+ "subtype": "FORM",
7
+ "properties": [
8
+ ]
9
+ }
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import PropTypes from "prop-types";
3
3
 
4
- import OneColumn from '@pega/react-sdk-components/lib/components/templates/OneColumn/OneColumn';
4
+ import OneColumn from '@pega/react-sdk-components/lib/components/template/OneColumn/OneColumn';
5
5
 
6
6
  /*
7
7
  * The wrapper handles knowing how to take in just children
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "OneColumnPage",
3
+ "label": "One column",
4
+ "description": "OneColumn Page Template",
5
+ "type": "Template",
6
+ "subtype": "PAGE",
7
+ "properties": [
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "OneColumnTab",
3
+ "label": "One column",
4
+ "description": "One column",
5
+ "type": "Template",
6
+ "subtype": "TAB",
7
+ "properties": [
8
+ ]
9
+ }
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
3
3
  import Button from '@material-ui/core/Button';
4
4
 
5
5
  import createPConnectComponent from '@pega/react-sdk-components/lib/bridge/react_pconnect';
6
- import ListView from '@pega/react-sdk-components/lib/components/templates/ListView';
6
+ import ListView from '@pega/react-sdk-components/lib/components/template/ListView';
7
7
  import Utils from '@pega/react-sdk-components/lib/components/helpers/utils';
8
8
  import './PromotedFilters.css';
9
9
 
@@ -57,7 +57,7 @@ function isValidInput(input) {
57
57
 
58
58
  export default function PromotedFilters(props) {
59
59
  const localizedVal = PCore.getLocaleUtils().getLocaleValue;
60
- const { getPConnect, viewName, filters, listViewProps, pageClass } = props;
60
+ const { getPConnect, viewName, filters, listViewProps, pageClass, parameters } = props;
61
61
  const [initTable, setInitTable] = useState(false);
62
62
  const [payload, setPayload] = useState({});
63
63
  const filtersProperties = {};
@@ -109,7 +109,7 @@ export default function PromotedFilters(props) {
109
109
  if (PCore.getFormUtils().isFormValid(transientItemID) && isValidInput(formValues)) {
110
110
  setInitTable(true);
111
111
  const Query: any = {
112
- dataViewParameters: {}
112
+ dataViewParameters: parameters
113
113
  };
114
114
 
115
115
  if (!Utils.isEmptyObject(promotedFilters)) {
@@ -156,5 +156,6 @@ PromotedFilters.propTypes = {
156
156
  viewName: PropTypes.string.isRequired,
157
157
  filters: PropTypes.arrayOf(PropTypes.object).isRequired,
158
158
  listViewProps: PropTypes.objectOf(PropTypes.any).isRequired,
159
- pageClass: PropTypes.string.isRequired
159
+ pageClass: PropTypes.string.isRequired,
160
+ parameters: PropTypes.object
160
161
  };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import FieldGroupTemplate from '@pega/react-sdk-components/lib/components/templates/FieldGroupTemplate/';
3
- import SimpleTableManual from '@pega/react-sdk-components/lib/components/templates/SimpleTable/SimpleTableManual';
2
+ import FieldGroupTemplate from '@pega/react-sdk-components/lib/components/template/FieldGroupTemplate';
3
+ import SimpleTableManual from '@pega/react-sdk-components/lib/components/template/SimpleTable/SimpleTableManual';
4
4
 
5
5
  declare const PCore: any;
6
6
 
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "SimpleTable",
3
+ "description": "Datatype List Template",
4
+ "type": "Template",
5
+ "subtype": "DATAVIEW",
6
+ "properties": [
7
+ ]
8
+ }
@@ -8,7 +8,7 @@ import TableHead from '@material-ui/core/TableHead';
8
8
  import TableRow from '@material-ui/core/TableRow';
9
9
  import Paper from '@material-ui/core/Paper';
10
10
  import { makeStyles } from '@material-ui/core/styles';
11
- import { buildFieldsForTable, filterData } from '@pega/react-sdk-components/lib/components/templates/SimpleTable/simpleTableHelpers';
11
+ import { buildFieldsForTable, filterData } from '@pega/react-sdk-components/lib/components/template/SimpleTable/simpleTableHelpers';
12
12
  import { getDataPage } from '@pega/react-sdk-components/lib/components/helpers/data_page';
13
13
  import Link from '@material-ui/core/Link';
14
14
  import { getReferenceList } from '@pega/react-sdk-components/lib/components/helpers/field-group-utils';
@@ -1,9 +1,9 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import React from "react";
3
- import ListView from '@pega/react-sdk-components/lib/components/templates/ListView';
4
- import SimpleTable from '@pega/react-sdk-components/lib/components/templates/SimpleTable/SimpleTable';
3
+ import ListView from '@pega/react-sdk-components/lib/components/template/ListView';
4
+ import SimpleTable from '@pega/react-sdk-components/lib/components/template/SimpleTable/SimpleTable';
5
5
 
6
- import PromotedFilters from '@pega/react-sdk-components/lib/components/templates/PromotedFilters';
6
+ import PromotedFilters from '@pega/react-sdk-components/lib/components/template/PromotedFilters';
7
7
 
8
8
  const isSelfReferencedProperty = (param, referenceProp) => {
9
9
  const [, parentPropName] = param.split('.');
@@ -98,6 +98,7 @@ export default function SimpleTableSelect(props) {
98
98
  filters={filters}
99
99
  listViewProps={listViewProps}
100
100
  pageClass={pageClass}
101
+ parameters={parameters}
101
102
  />
102
103
  );
103
104
  }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "SubTabs",
3
+ "label": "Sub tabs",
4
+ "description": "Sub tabs view",
5
+ "type": "Template",
6
+ "subtype": "TAB",
7
+ "properties": [
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "TwoColumn",
3
+ "label": "Two column",
4
+ "description": "TwoColumn Template",
5
+ "type": "Template",
6
+ "subtype": "FORM",
7
+ "properties": [
8
+ ]
9
+ }
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import PropTypes from "prop-types";
3
3
 
4
- import TwoColumn from '@pega/react-sdk-components/lib/components/templates/TwoColumn/TwoColumn';
4
+ import TwoColumn from '@pega/react-sdk-components/lib/components/template/TwoColumn/TwoColumn';
5
5
 
6
6
  /*
7
7
  * The wrapper handles knowing how to take in just children
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "TwoColumnPage",
3
+ "label": "Two column",
4
+ "description": "TwoColumn Page Template",
5
+ "type": "Template",
6
+ "subtype": "PAGE",
7
+ "properties": [
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "TwoColumnTab",
3
+ "label": "Two column",
4
+ "description": "Two column",
5
+ "type": "Template",
6
+ "subtype": "TAB",
7
+ "properties": [
8
+ ]
9
+ }
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  // import PropTypes from "prop-types";
3
3
  // import Grid from '@material-ui/core/Grid';
4
- import DetailsFields from '@pega/react-sdk-components/lib/components/designSystemExtensions/DetailsFields';
4
+ import DetailsFields from '@pega/react-sdk-components/lib/components/designSystemExtension/DetailsFields';
5
5
 
6
6
  export default function WideNarrowDetails(props) {
7
7
  const { a, b, children } = props;
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "WideNarrowDetails",
3
+ "label": "Details (Wide-narrow)",
4
+ "description": "Details (Wide-narrow) template",
5
+ "type": "Template",
6
+ "subtype": "DETAILS",
7
+ "properties": [
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "WideNarrowForm",
3
+ "label": "Wide-narrow",
4
+ "description": "WideNarrow Template",
5
+ "type": "Template",
6
+ "subtype": "FORM",
7
+ "properties": [
8
+ ]
9
+ }
@@ -2,7 +2,7 @@ import React, { Children } from "react";
2
2
  import PropTypes from "prop-types";
3
3
 
4
4
  // import { TwoColumnPage as TwoColumn } from "@pega/cosmos-react-core";
5
- import WideNarrow from '@pega/react-sdk-components/lib/components/templates/WideNarrow/WideNarrow';
5
+ import WideNarrow from '@pega/react-sdk-components/lib/components/template/WideNarrow/WideNarrow';
6
6
 
7
7
  /*
8
8
  * The wrapper handles knowing how to take in just children and mapping
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "WideNarrowPage",
3
+ "label": "Wide-narrow",
4
+ "description": "Wide-narrow Page Template",
5
+ "type": "Template",
6
+ "subtype": "PAGE",
7
+ "properties": [
8
+ ]
9
+ }