@pega/react-sdk-overrides 0.23.12 → 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.
- package/lib/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +202 -0
- package/lib/{designSystemExtensions → designSystemExtension}/DetailsFields/DetailsFields.tsx +1 -1
- package/lib/{designSystemExtensions → designSystemExtension}/Operator/Operator.tsx +1 -0
- package/lib/{forms → field}/AutoComplete/AutoComplete.tsx +11 -4
- package/lib/{forms → field}/Checkbox/Checkbox.tsx +11 -1
- package/lib/{forms → field}/Currency/Currency.tsx +1 -1
- package/lib/{forms → field}/Date/Date.tsx +2 -2
- package/lib/{forms → field}/DateTime/DateTime.tsx +2 -2
- package/lib/{forms → field}/Decimal/Decimal.tsx +2 -2
- package/lib/{forms → field}/Dropdown/Dropdown.tsx +10 -1
- package/lib/{forms → field}/Email/Email.tsx +2 -2
- package/lib/{forms → field}/Integer/Integer.tsx +2 -2
- package/lib/{forms → field}/Percentage/Percentage.tsx +2 -2
- package/lib/{forms → field}/Phone/Phone.tsx +1 -1
- package/lib/{forms → field}/RadioButtons/RadioButtons.tsx +16 -6
- package/lib/{forms → field}/TextArea/TextArea.tsx +1 -1
- package/lib/{forms → field}/TextInput/TextInput.tsx +1 -1
- package/lib/{forms → field}/Time/Time.tsx +2 -2
- package/lib/{forms → field}/URL/URL.tsx +2 -2
- package/lib/{forms → field}/UserReference/UserReference.tsx +2 -2
- package/lib/infra/Containers/FlowContainer/FlowContainer.tsx +1 -1
- package/lib/infra/Containers/ModalViewContainer/ModalViewContainer.tsx +1 -1
- package/lib/infra/View/View.tsx +2 -2
- package/lib/{templates → template}/CaseSummary/CaseSummary.tsx +1 -1
- package/lib/{templates → template}/CaseView/CaseView.tsx +1 -1
- package/lib/{templates → template}/DataReference/DataReference.tsx +2 -2
- package/lib/{templates → template}/Details/Details/Details.tsx +1 -1
- package/lib/{templates → template}/Details/DetailsSubTabs/DetailsSubTabs.tsx +1 -1
- package/lib/{templates → template}/Details/DetailsThreeColumn/DetailsThreeColumn.tsx +1 -1
- package/lib/{templates → template}/Details/DetailsTwoColumn/DetailsTwoColumn.tsx +1 -1
- package/lib/{templates → template}/FieldGroupTemplate/FieldGroupTemplate.tsx +2 -2
- package/lib/{templates → template}/InlineDashboardPage/InlineDashboardPage.tsx +1 -1
- package/lib/{templates → template}/ListPage/ListPage.tsx +1 -1
- package/lib/{templates → template}/ListView/ListView.tsx +29 -5
- package/lib/{templates → template}/NarrowWide/NarrowWideDetails/NarrowWideDetails.tsx +1 -1
- package/lib/{templates → template}/NarrowWide/NarrowWidePage/NarrowWidePage.tsx +1 -1
- package/lib/{templates → template}/OneColumn/OneColumnPage/OneColumnPage.tsx +1 -1
- package/lib/{templates → template}/PromotedFilters/PromotedFilters.tsx +5 -4
- package/lib/{templates → template}/SimpleTable/SimpleTable/SimpleTable.tsx +2 -2
- package/lib/{templates → template}/SimpleTable/SimpleTableManual/SimpleTableManual.tsx +1 -1
- package/lib/{templates → template}/SimpleTable/SimpleTableSelect/SimpleTableSelect.tsx +4 -3
- package/lib/{templates → template}/TwoColumn/TwoColumnPage/TwoColumnPage.tsx +1 -1
- package/lib/{templates → template}/WideNarrow/WideNarrowDetails/WideNarrowDetails.tsx +1 -1
- package/lib/{templates → template}/WideNarrow/WideNarrowPage/WideNarrowPage.tsx +1 -1
- package/lib/{templates → template}/utils.ts +1 -1
- package/lib/{widgets → widget}/Attachment/Attachment.tsx +1 -1
- package/lib/{widgets → widget}/FileUtility/FileUtility/FileUtility.tsx +2 -2
- package/lib/{widgets → widget}/SummaryList/SummaryList.tsx +1 -1
- package/package.json +1 -1
- package/lib/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.tsx +0 -156
- /package/lib/{designSystemExtensions → designSystemExtension}/CaseSummaryFields/CaseSummaryFields.css +0 -0
- /package/lib/{designSystemExtensions → designSystemExtension}/CaseSummaryFields/index.tsx +0 -0
- /package/lib/{designSystemExtensions → designSystemExtension}/DetailsFields/index.tsx +0 -0
- /package/lib/{designSystemExtensions → designSystemExtension}/FieldGroup/FieldGroup.tsx +0 -0
- /package/lib/{designSystemExtensions → designSystemExtension}/FieldGroup/index.tsx +0 -0
- /package/lib/{designSystemExtensions → designSystemExtension}/FieldGroupList/FieldGroupList.tsx +0 -0
- /package/lib/{designSystemExtensions → designSystemExtension}/FieldGroupList/index.tsx +0 -0
- /package/lib/{designSystemExtensions → designSystemExtension}/FieldValueList/FieldValueList.tsx +0 -0
- /package/lib/{designSystemExtensions → designSystemExtension}/FieldValueList/index.tsx +0 -0
- /package/lib/{designSystemExtensions → designSystemExtension}/Operator/index.tsx +0 -0
- /package/lib/{designSystemExtensions → designSystemExtension}/Pulse/Pulse.tsx +0 -0
- /package/lib/{designSystemExtensions → designSystemExtension}/Pulse/index.tsx +0 -0
- /package/lib/{forms → field}/AutoComplete/config-ext.json +0 -0
- /package/lib/{forms → field}/AutoComplete/index.tsx +0 -0
- /package/lib/{forms → field}/CancelAlert/CancelAlert.css +0 -0
- /package/lib/{forms → field}/CancelAlert/CancelAlert.tsx +0 -0
- /package/lib/{forms → field}/CancelAlert/index.tsx +0 -0
- /package/lib/{forms → field}/Checkbox/config-ext.json +0 -0
- /package/lib/{forms → field}/Checkbox/index.tsx +0 -0
- /package/lib/{forms → field}/Currency/config-ext.json +0 -0
- /package/lib/{forms → field}/Currency/index.tsx +0 -0
- /package/lib/{forms → field}/Date/config-ext.json +0 -0
- /package/lib/{forms → field}/Date/index.tsx +0 -0
- /package/lib/{forms → field}/DateTime/config-ext.json +0 -0
- /package/lib/{forms → field}/DateTime/index.tsx +0 -0
- /package/lib/{forms → field}/Decimal/config-ext.json +0 -0
- /package/lib/{forms → field}/Decimal/index.tsx +0 -0
- /package/lib/{forms → field}/Dropdown/config-ext.json +0 -0
- /package/lib/{forms → field}/Dropdown/index.tsx +0 -0
- /package/lib/{forms → field}/Email/config-ext.json +0 -0
- /package/lib/{forms → field}/Email/index.tsx +0 -0
- /package/lib/{forms → field}/Integer/config-ext.json +0 -0
- /package/lib/{forms → field}/Integer/index.tsx +0 -0
- /package/lib/{forms → field}/Percentage/config-ext.json +0 -0
- /package/lib/{forms → field}/Percentage/index.tsx +0 -0
- /package/lib/{forms → field}/Phone/index.tsx +0 -0
- /package/lib/{forms → field}/RadioButtons/config-ext.json +0 -0
- /package/lib/{forms → field}/RadioButtons/index.tsx +0 -0
- /package/lib/{forms → field}/SemanticLink/SemanticLink.tsx +0 -0
- /package/lib/{forms → field}/SemanticLink/config-ext.json +0 -0
- /package/lib/{forms → field}/SemanticLink/index.tsx +0 -0
- /package/lib/{forms → field}/SemanticLink/utils.ts +0 -0
- /package/lib/{forms → field}/TextArea/config-ext.json +0 -0
- /package/lib/{forms → field}/TextArea/index.tsx +0 -0
- /package/lib/{forms → field}/TextContent/TextContent.tsx +0 -0
- /package/lib/{forms → field}/TextContent/config-ext.json +0 -0
- /package/lib/{forms → field}/TextContent/index.tsx +0 -0
- /package/lib/{forms → field}/TextInput/config-ext.json +0 -0
- /package/lib/{forms → field}/TextInput/index.tsx +0 -0
- /package/lib/{forms → field}/Time/config-ext.json +0 -0
- /package/lib/{forms → field}/Time/index.tsx +0 -0
- /package/lib/{forms → field}/URL/config-ext.json +0 -0
- /package/lib/{forms → field}/URL/index.tsx +0 -0
- /package/lib/{forms → field}/UserReference/UserReferenceUtils.ts +0 -0
- /package/lib/{forms → field}/UserReference/config-ext.json +0 -0
- /package/lib/{forms → field}/UserReference/index.tsx +0 -0
- /package/lib/{templates → template}/AppShell/AppShell.css +0 -0
- /package/lib/{templates → template}/AppShell/AppShell.tsx +0 -0
- /package/lib/{templates → template}/AppShell/index.tsx +0 -0
- /package/lib/{templates → template}/CaseSummary/config-ext.json +0 -0
- /package/lib/{templates → template}/CaseSummary/index.tsx +0 -0
- /package/lib/{templates → template}/CaseView/config-ext.json +0 -0
- /package/lib/{templates → template}/CaseView/index.tsx +0 -0
- /package/lib/{templates → template}/CaseViewActionsMenu/CaseViewActionsMenu.tsx +0 -0
- /package/lib/{templates → template}/CaseViewActionsMenu/index.tsx +0 -0
- /package/lib/{templates → template}/DataReference/config-ext.json +0 -0
- /package/lib/{templates → template}/DataReference/index.tsx +0 -0
- /package/lib/{templates → template}/DefaultForm/DefaultForm.css +0 -0
- /package/lib/{templates → template}/DefaultForm/DefaultForm.tsx +0 -0
- /package/lib/{templates → template}/DefaultForm/config-ext.json +0 -0
- /package/lib/{templates → template}/DefaultForm/index.tsx +0 -0
- /package/lib/{templates → template}/Details/Details/index.tsx +0 -0
- /package/lib/{templates → template}/Details/DetailsSubTabs/config-ext.json +0 -0
- /package/lib/{templates → template}/Details/DetailsSubTabs/index.tsx +0 -0
- /package/lib/{templates → template}/Details/DetailsThreeColumn/config-ext.json +0 -0
- /package/lib/{templates → template}/Details/DetailsThreeColumn/index.tsx +0 -0
- /package/lib/{templates → template}/Details/DetailsTwoColumn/config-ext.json +0 -0
- /package/lib/{templates → template}/Details/DetailsTwoColumn/index.tsx +0 -0
- /package/lib/{templates → template}/FieldGroupTemplate/index.tsx +0 -0
- /package/lib/{templates → template}/InlineDashboard/InlineDashboard.tsx +0 -0
- /package/lib/{templates → template}/InlineDashboard/index.tsx +0 -0
- /package/lib/{templates → template}/InlineDashboardPage/index.tsx +0 -0
- /package/lib/{templates → template}/ListPage/config-ext.json +0 -0
- /package/lib/{templates → template}/ListPage/index.tsx +0 -0
- /package/lib/{templates → template}/ListView/ListView.css +0 -0
- /package/lib/{templates → template}/ListView/config-ext.json +0 -0
- /package/lib/{templates → template}/ListView/index.tsx +0 -0
- /package/lib/{templates → template}/MultiReferenceReadOnly/MultiReferenceReadOnly.tsx +0 -0
- /package/lib/{templates → template}/MultiReferenceReadOnly/index.tsx +0 -0
- /package/lib/{templates → template}/NarrowWide/NarrowWide/NarrowWide.css +0 -0
- /package/lib/{templates → template}/NarrowWide/NarrowWide/NarrowWide.tsx +0 -0
- /package/lib/{templates → template}/NarrowWide/NarrowWide/index.tsx +0 -0
- /package/lib/{templates → template}/NarrowWide/NarrowWideDetails/config-ext.json +0 -0
- /package/lib/{templates → template}/NarrowWide/NarrowWideDetails/index.tsx +0 -0
- /package/lib/{templates → template}/NarrowWide/NarrowWideForm/NarrowWideForm.css +0 -0
- /package/lib/{templates → template}/NarrowWide/NarrowWideForm/NarrowWideForm.tsx +0 -0
- /package/lib/{templates → template}/NarrowWide/NarrowWideForm/config-ext.json +0 -0
- /package/lib/{templates → template}/NarrowWide/NarrowWideForm/index.tsx +0 -0
- /package/lib/{templates → template}/NarrowWide/NarrowWidePage/config-ext.json +0 -0
- /package/lib/{templates → template}/NarrowWide/NarrowWidePage/index.tsx +0 -0
- /package/lib/{templates → template}/OneColumn/OneColumn/OneColumn.tsx +0 -0
- /package/lib/{templates → template}/OneColumn/OneColumn/config-ext.json +0 -0
- /package/lib/{templates → template}/OneColumn/OneColumn/index.tsx +0 -0
- /package/lib/{templates → template}/OneColumn/OneColumnPage/config-ext.json +0 -0
- /package/lib/{templates → template}/OneColumn/OneColumnPage/index.tsx +0 -0
- /package/lib/{templates → template}/OneColumn/OneColumnTab/OneColumnTab.tsx +0 -0
- /package/lib/{templates → template}/OneColumn/OneColumnTab/config-ext.json +0 -0
- /package/lib/{templates → template}/OneColumn/OneColumnTab/index.tsx +0 -0
- /package/lib/{templates → template}/PromotedFilters/PromotedFilters.css +0 -0
- /package/lib/{templates → template}/PromotedFilters/index.tsx +0 -0
- /package/lib/{templates → template}/SimpleTable/SimpleTable/config-ext.json +0 -0
- /package/lib/{templates → template}/SimpleTable/SimpleTable/index.tsx +0 -0
- /package/lib/{templates → template}/SimpleTable/SimpleTableManual/index.tsx +0 -0
- /package/lib/{templates → template}/SimpleTable/SimpleTableSelect/index.tsx +0 -0
- /package/lib/{templates → template}/SimpleTable/simpleTableHelpers.ts +0 -0
- /package/lib/{templates → template}/SingleReferenceReadOnly/SingleReferenceReadOnly.tsx +0 -0
- /package/lib/{templates → template}/SingleReferenceReadOnly/index.tsx +0 -0
- /package/lib/{templates → template}/SubTabs/SubTabs.tsx +0 -0
- /package/lib/{templates → template}/SubTabs/config-ext.json +0 -0
- /package/lib/{templates → template}/SubTabs/index.tsx +0 -0
- /package/lib/{templates → template}/SubTabs/tabUtils.ts +0 -0
- /package/lib/{templates → template}/TwoColumn/TwoColumn/TwoColumn.css +0 -0
- /package/lib/{templates → template}/TwoColumn/TwoColumn/TwoColumn.tsx +0 -0
- /package/lib/{templates → template}/TwoColumn/TwoColumn/config-ext.json +0 -0
- /package/lib/{templates → template}/TwoColumn/TwoColumn/index.tsx +0 -0
- /package/lib/{templates → template}/TwoColumn/TwoColumnPage/config-ext.json +0 -0
- /package/lib/{templates → template}/TwoColumn/TwoColumnPage/index.tsx +0 -0
- /package/lib/{templates → template}/TwoColumn/TwoColumnTab/TwoColumnTab.css +0 -0
- /package/lib/{templates → template}/TwoColumn/TwoColumnTab/TwoColumnTab.tsx +0 -0
- /package/lib/{templates → template}/TwoColumn/TwoColumnTab/config-ext.json +0 -0
- /package/lib/{templates → template}/TwoColumn/TwoColumnTab/index.tsx +0 -0
- /package/lib/{templates → template}/WideNarrow/WideNarrow/WideNarrow.css +0 -0
- /package/lib/{templates → template}/WideNarrow/WideNarrow/WideNarrow.tsx +0 -0
- /package/lib/{templates → template}/WideNarrow/WideNarrow/index.tsx +0 -0
- /package/lib/{templates → template}/WideNarrow/WideNarrowDetails/config-ext.json +0 -0
- /package/lib/{templates → template}/WideNarrow/WideNarrowDetails/index.tsx +0 -0
- /package/lib/{templates → template}/WideNarrow/WideNarrowForm/WideNarrowForm.css +0 -0
- /package/lib/{templates → template}/WideNarrow/WideNarrowForm/WideNarrowForm.tsx +0 -0
- /package/lib/{templates → template}/WideNarrow/WideNarrowForm/config-ext.json +0 -0
- /package/lib/{templates → template}/WideNarrow/WideNarrowForm/index.tsx +0 -0
- /package/lib/{templates → template}/WideNarrow/WideNarrowPage/config-ext.json +0 -0
- /package/lib/{templates → template}/WideNarrow/WideNarrowPage/index.tsx +0 -0
- /package/lib/{widgets → widget}/AppAnnouncement/AppAnnouncement.tsx +0 -0
- /package/lib/{widgets → widget}/AppAnnouncement/config-ext.json +0 -0
- /package/lib/{widgets → widget}/AppAnnouncement/index.tsx +0 -0
- /package/lib/{widgets → widget}/Attachment/Attachment.css +0 -0
- /package/lib/{widgets → widget}/Attachment/index.tsx +0 -0
- /package/lib/{widgets → widget}/CaseHistory/CaseHistory.tsx +0 -0
- /package/lib/{widgets → widget}/CaseHistory/config-ext.json +0 -0
- /package/lib/{widgets → widget}/CaseHistory/index.tsx +0 -0
- /package/lib/{widgets → widget}/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.css +0 -0
- /package/lib/{widgets → widget}/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx +0 -0
- /package/lib/{widgets → widget}/FileUtility/ActionButtonsForFileUtil/index.tsx +0 -0
- /package/lib/{widgets → widget}/FileUtility/FileUtility/FileUtility.css +0 -0
- /package/lib/{widgets → widget}/FileUtility/FileUtility/config-ext.json +0 -0
- /package/lib/{widgets → widget}/FileUtility/FileUtility/index.tsx +0 -0
- /package/lib/{widgets → widget}/Followers/Followers.tsx +0 -0
- /package/lib/{widgets → widget}/Followers/config-ext.json +0 -0
- /package/lib/{widgets → widget}/Followers/index.tsx +0 -0
- /package/lib/{widgets → widget}/SummaryItem/SummaryItem.css +0 -0
- /package/lib/{widgets → widget}/SummaryItem/SummaryItem.tsx +0 -0
- /package/lib/{widgets → widget}/SummaryItem/index.tsx +0 -0
- /package/lib/{widgets → widget}/SummaryList/index.tsx +0 -0
- /package/lib/{widgets → widget}/ToDo/ToDo.css +0 -0
- /package/lib/{widgets → widget}/ToDo/ToDo.tsx +0 -0
- /package/lib/{widgets → widget}/ToDo/config-ext.json +0 -0
- /package/lib/{widgets → widget}/ToDo/index.tsx +0 -0
|
@@ -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/
|
|
6
|
-
import FieldGroupList from '@pega/react-sdk-components/lib/components/
|
|
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/
|
|
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/
|
|
4
|
+
import ListView from '@pega/react-sdk-components/lib/components/template/ListView';
|
|
5
5
|
|
|
6
6
|
export default function ListPage(props) {
|
|
7
7
|
|
|
@@ -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/
|
|
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
|
|
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([
|
|
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([
|
|
926
|
+
?.setSelectedRows([reqObj]);
|
|
903
927
|
};
|
|
904
928
|
|
|
905
929
|
return (
|
|
@@ -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/
|
|
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;
|
|
@@ -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/
|
|
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
|
|
@@ -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/
|
|
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
|
|
@@ -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/
|
|
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/
|
|
3
|
-
import SimpleTableManual from '@pega/react-sdk-components/lib/components/
|
|
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
|
|
|
@@ -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/
|
|
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/
|
|
4
|
-
import SimpleTable from '@pega/react-sdk-components/lib/components/
|
|
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/
|
|
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
|
}
|
|
@@ -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/
|
|
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
|
|
@@ -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/
|
|
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;
|
|
@@ -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/
|
|
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
|
|
@@ -4,7 +4,7 @@ import { Button } from '@material-ui/core';
|
|
|
4
4
|
import React, { useState, useEffect } from 'react';
|
|
5
5
|
import { buildFilePropsFromResponse, getIconFromFileType, validateMaxSize, getIconForAttachment } from '@pega/react-sdk-components/lib/components/helpers/attachmentHelpers';
|
|
6
6
|
import './Attachment.css';
|
|
7
|
-
import SummaryList from '@pega/react-sdk-components/lib/components/
|
|
7
|
+
import SummaryList from '@pega/react-sdk-components/lib/components/widget/SummaryList'
|
|
8
8
|
import { CircularProgress } from "@material-ui/core";
|
|
9
9
|
import download from "downloadjs";
|
|
10
10
|
|
|
@@ -2,8 +2,8 @@ import React, { useEffect, useState } from "react";
|
|
|
2
2
|
import TextField from '@material-ui/core/TextField';
|
|
3
3
|
import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
4
4
|
import download from "downloadjs";
|
|
5
|
-
import SummaryList from '@pega/react-sdk-components/lib/components/
|
|
6
|
-
import ActionButtonsForFileUtil from '@pega/react-sdk-components/lib/components/
|
|
5
|
+
import SummaryList from '@pega/react-sdk-components/lib/components/widget/SummaryList';
|
|
6
|
+
import ActionButtonsForFileUtil from '@pega/react-sdk-components/lib/components/widget/FileUtility/ActionButtonsForFileUtil';
|
|
7
7
|
import './FileUtility.css';
|
|
8
8
|
import { IconButton, Menu, MenuItem } from '@material-ui/core';
|
|
9
9
|
import MoreVertIcon from '@material-ui/icons/MoreVert';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import SummaryItem from '@pega/react-sdk-components/lib/components/
|
|
2
|
+
import SummaryItem from '@pega/react-sdk-components/lib/components/widget/SummaryItem/index'
|
|
3
3
|
|
|
4
4
|
export default function SummaryList(props) {
|
|
5
5
|
return (
|
package/package.json
CHANGED
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import React, { useState, useEffect } from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
|
-
import isDeepEqual from 'fast-deep-equal/react';
|
|
4
|
-
|
|
5
|
-
import Grid from '@material-ui/core/Grid';
|
|
6
|
-
import TextField from '@material-ui/core/TextField';
|
|
7
|
-
import Operator from '@pega/react-sdk-components/lib/components/designSystemExtensions/Operator';
|
|
8
|
-
|
|
9
|
-
import './CaseSummaryFields.css';
|
|
10
|
-
|
|
11
|
-
import { format } from '@pega/react-sdk-components/lib/components/helpers/formatters';
|
|
12
|
-
|
|
13
|
-
export default function CaseSummaryFields(props) {
|
|
14
|
-
const { status, showStatus, theFields } = props;
|
|
15
|
-
|
|
16
|
-
const [theFieldsToRender, setFieldsToRender] = useState([]);
|
|
17
|
-
const [theFieldsAsGridItems, setFieldsAsGridItems] = useState<Array<any>>([]);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
function getFieldValue(field: any): any {
|
|
21
|
-
const fieldTypeLower = field.type.toLowerCase();
|
|
22
|
-
|
|
23
|
-
if (field.config.value === null || field.config.value === "") {
|
|
24
|
-
// Special handling for missing value
|
|
25
|
-
// eslint-disable-next-line sonarjs/no-small-switch
|
|
26
|
-
switch(fieldTypeLower) {
|
|
27
|
-
case "caseoperator" :
|
|
28
|
-
return <Operator caseOpConfig={field.config} />;
|
|
29
|
-
break;
|
|
30
|
-
|
|
31
|
-
default:
|
|
32
|
-
return <TextField
|
|
33
|
-
value="---"
|
|
34
|
-
label={field.config.label}
|
|
35
|
-
InputProps={{
|
|
36
|
-
readOnly: true
|
|
37
|
-
}} />;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
switch(fieldTypeLower) {
|
|
42
|
-
case "textinput" :
|
|
43
|
-
return <TextField
|
|
44
|
-
value={field.config.value}
|
|
45
|
-
label={field.config.label}
|
|
46
|
-
InputProps={{
|
|
47
|
-
readOnly: true
|
|
48
|
-
}} />;
|
|
49
|
-
|
|
50
|
-
case "status" :
|
|
51
|
-
return <TextField
|
|
52
|
-
className="psdk-csf-status-style"
|
|
53
|
-
value={field.config.value}
|
|
54
|
-
label={field.config.label}
|
|
55
|
-
InputProps={{
|
|
56
|
-
readOnly: true
|
|
57
|
-
}} />;
|
|
58
|
-
|
|
59
|
-
case "phone":
|
|
60
|
-
{
|
|
61
|
-
const displayPhone = (field.config.value !== "") ? field.config.value : "---";
|
|
62
|
-
return <a href={`tel:${displayPhone}`}>
|
|
63
|
-
<TextField
|
|
64
|
-
value={field.config.value}
|
|
65
|
-
label={field.config.label}
|
|
66
|
-
InputProps={{
|
|
67
|
-
readOnly: true,
|
|
68
|
-
inputProps: {style: {cursor: 'pointer'}}
|
|
69
|
-
}}
|
|
70
|
-
/>
|
|
71
|
-
</a>;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
case "email":
|
|
75
|
-
{
|
|
76
|
-
const displayEmail = format(field.config.value, field.type);
|
|
77
|
-
return <a href={`mailto:${displayEmail}`}>
|
|
78
|
-
<TextField
|
|
79
|
-
value={field.config.value}
|
|
80
|
-
label={field.config.label}
|
|
81
|
-
InputProps={{
|
|
82
|
-
readOnly: true,
|
|
83
|
-
inputProps: {style: {cursor: 'pointer'}}
|
|
84
|
-
}}
|
|
85
|
-
/>
|
|
86
|
-
</a>;
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
case "date":
|
|
91
|
-
return <TextField
|
|
92
|
-
value={format(field.config.value, field.type)}
|
|
93
|
-
label={field.config.label}
|
|
94
|
-
InputProps={{
|
|
95
|
-
readOnly: true
|
|
96
|
-
}} />;
|
|
97
|
-
|
|
98
|
-
case "caseoperator":
|
|
99
|
-
return <Operator caseOpConfig={field.config} />;
|
|
100
|
-
break;
|
|
101
|
-
|
|
102
|
-
default:
|
|
103
|
-
return (
|
|
104
|
-
<span>{field.type.toLowerCase()} {field.config.value}</span>
|
|
105
|
-
);
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
// Whenever theFieldsToRender changes, update theFieldsAsGridItems that's used during render
|
|
113
|
-
useEffect(() => {
|
|
114
|
-
const arGridItems = theFieldsToRender.map((field: any) => {
|
|
115
|
-
return ( <Grid item xs={6} key={field.config.label}>{getFieldValue(field)}</Grid> );
|
|
116
|
-
});
|
|
117
|
-
setFieldsAsGridItems(arGridItems);
|
|
118
|
-
},
|
|
119
|
-
[theFieldsToRender]);
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
const theFieldsModifiable = theFields;
|
|
123
|
-
|
|
124
|
-
// Special Case: if showStatus is true, splice the status value to be 2nd in theFields
|
|
125
|
-
// if it's not already there
|
|
126
|
-
if (showStatus && theFields?.[1].type !== "status") {
|
|
127
|
-
const oStatus = { type: "status", config: { value: status, label: "Status" }};
|
|
128
|
-
|
|
129
|
-
const count = theFieldsModifiable.length;
|
|
130
|
-
if (count < 2) {
|
|
131
|
-
theFieldsModifiable.push(oStatus);
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
theFieldsModifiable.splice(1, 0, oStatus);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// At this point, we know what fields we want to render...
|
|
139
|
-
// So, update our state if it's changed
|
|
140
|
-
if (!isDeepEqual(theFieldsToRender, theFieldsModifiable)) {
|
|
141
|
-
setFieldsToRender(theFieldsModifiable);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
return <React.Fragment>
|
|
146
|
-
<Grid container className="psdk-case-summary-fields">
|
|
147
|
-
{theFieldsAsGridItems}
|
|
148
|
-
</Grid>
|
|
149
|
-
</React.Fragment>;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
CaseSummaryFields.propTypes = {
|
|
153
|
-
status: PropTypes.string,
|
|
154
|
-
showStatus: PropTypes.bool,
|
|
155
|
-
theFields: PropTypes.arrayOf(PropTypes.object)
|
|
156
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/lib/{designSystemExtensions → designSystemExtension}/FieldGroupList/FieldGroupList.tsx
RENAMED
|
File without changes
|
|
File without changes
|
/package/lib/{designSystemExtensions → designSystemExtension}/FieldValueList/FieldValueList.tsx
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|