@pega/dx-component-builder-sdk 0.23.6 → 0.23.8
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/package.json +1 -1
- package/src/constants.js +17 -0
- package/src/tasks/create/templates/Constellation/field/Text-Input/index.jsx.mustache +1 -1
- package/tests/assets/components/SDK-React/create/override-sdk/designSystemExtension/AlertBanner/AlertBanner.tsx +47 -0
- package/tests/assets/components/SDK-React/create/override-sdk/designSystemExtension/AlertBanner/index.tsx +1 -0
- package/tests/assets/components/SDK-React/create/override-sdk/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +5 -3
- package/tests/assets/components/SDK-React/create/override-sdk/designSystemExtension/FieldValueList/FieldValueList.tsx +1 -1
- package/tests/assets/components/SDK-React/create/override-sdk/designSystemExtension/RichTextEditor/RichTextEditor.tsx +121 -0
- package/tests/assets/components/SDK-React/create/override-sdk/designSystemExtension/RichTextEditor/index.tsx +1 -0
- package/tests/assets/components/SDK-React/create/override-sdk/field/AutoComplete/AutoComplete.tsx +29 -27
- package/tests/assets/components/SDK-React/create/override-sdk/field/Checkbox/Checkbox.tsx +10 -6
- package/tests/assets/components/SDK-React/create/override-sdk/field/Currency/Currency.tsx +16 -15
- package/tests/assets/components/SDK-React/create/override-sdk/field/Date/Date.tsx +16 -15
- package/tests/assets/components/SDK-React/create/override-sdk/field/DateTime/DateTime.tsx +19 -14
- package/tests/assets/components/SDK-React/create/override-sdk/field/Decimal/Decimal.tsx +18 -16
- package/tests/assets/components/SDK-React/create/override-sdk/field/Dropdown/Dropdown.tsx +17 -25
- package/tests/assets/components/SDK-React/create/override-sdk/field/Email/Email.tsx +11 -11
- package/tests/assets/components/SDK-React/create/override-sdk/field/Integer/Integer.tsx +9 -7
- package/tests/assets/components/SDK-React/create/override-sdk/field/Percentage/Percentage.tsx +9 -9
- package/tests/assets/components/SDK-React/create/override-sdk/field/Phone/Phone.tsx +13 -12
- package/tests/assets/components/SDK-React/create/override-sdk/field/RadioButtons/RadioButtons.tsx +16 -35
- package/tests/assets/components/SDK-React/create/override-sdk/field/RichText/RichText.tsx +95 -0
- package/tests/assets/components/SDK-React/create/override-sdk/field/RichText/index.tsx +1 -0
- package/tests/assets/components/SDK-React/create/override-sdk/field/ScalarList/ScalarList.tsx +73 -0
- package/tests/assets/components/SDK-React/create/override-sdk/field/ScalarList/config-ext.json +8 -0
- package/tests/assets/components/SDK-React/create/override-sdk/field/ScalarList/index.tsx +1 -0
- package/tests/assets/components/SDK-React/create/override-sdk/field/SemanticLink/SemanticLink.tsx +19 -19
- package/tests/assets/components/SDK-React/create/override-sdk/field/TextArea/TextArea.tsx +8 -6
- package/tests/assets/components/SDK-React/create/override-sdk/field/TextInput/TextInput.tsx +8 -7
- package/tests/assets/components/SDK-React/create/override-sdk/field/Time/Time.tsx +16 -28
- package/tests/assets/components/SDK-React/create/override-sdk/field/URL/URL.tsx +10 -8
- package/tests/assets/components/SDK-React/create/override-sdk/field/UserReference/UserReference.tsx +29 -29
- package/tests/assets/components/SDK-React/create/override-sdk/infra/Assignment/Assignment.tsx +5 -2
- package/tests/assets/components/SDK-React/create/override-sdk/infra/AssignmentCard/AssignmentCard.tsx +4 -2
- package/tests/assets/components/SDK-React/create/override-sdk/infra/DashboardFilter/DashboardFilter.tsx +13 -13
- package/tests/assets/components/SDK-React/create/override-sdk/infra/DashboardFilter/filterUtils.tsx +2 -1
- package/tests/assets/components/SDK-React/create/override-sdk/infra/DeferLoad/DeferLoad.tsx +172 -0
- package/tests/assets/components/SDK-React/create/override-sdk/infra/DeferLoad/index.tsx +1 -0
- package/tests/assets/components/SDK-React/create/override-sdk/infra/MultiStep/MultiStep.tsx +4 -3
- package/tests/assets/components/SDK-React/create/override-sdk/infra/NavBar/NavBar.tsx +2 -1
- package/tests/assets/components/SDK-React/create/override-sdk/infra/VerticalTabs/VerticalTabs.tsx +4 -1
- package/tests/assets/components/SDK-React/create/override-sdk/template/AppShell/AppShell.tsx +6 -4
- package/tests/assets/components/SDK-React/create/override-sdk/template/BannerPage/BannerPage.tsx +4 -1
- package/tests/assets/components/SDK-React/create/override-sdk/template/CaseSummary/CaseSummary.tsx +4 -1
- package/tests/assets/components/SDK-React/create/override-sdk/template/CaseView/CaseView.tsx +10 -13
- package/tests/assets/components/SDK-React/create/override-sdk/template/Confirmation/Confirmation.tsx +23 -44
- package/tests/assets/components/SDK-React/create/override-sdk/template/DataReference/DataReference.tsx +43 -64
- package/tests/assets/components/SDK-React/create/override-sdk/template/Details/Details.tsx +8 -4
- package/tests/assets/components/SDK-React/create/override-sdk/template/DetailsThreeColumn/DetailsThreeColumn.tsx +8 -4
- package/tests/assets/components/SDK-React/create/override-sdk/template/DetailsTwoColumn/DetailsTwoColumn.tsx +8 -4
- package/tests/assets/components/SDK-React/create/override-sdk/template/FieldGroupTemplate/FieldGroupTemplate.tsx +6 -2
- package/tests/assets/components/SDK-React/create/override-sdk/template/InlineDashboardPage/InlineDashboardPage.tsx +5 -1
- package/tests/assets/components/SDK-React/create/override-sdk/template/ListPage/ListPage.tsx +6 -3
- package/tests/assets/components/SDK-React/create/override-sdk/template/ListView/ListView.tsx +89 -93
- package/tests/assets/components/SDK-React/create/override-sdk/template/ListView/utils.ts +170 -23
- package/tests/assets/components/SDK-React/create/override-sdk/template/MultiReferenceReadOnly/MultiReferenceReadOnly.tsx +9 -9
- package/tests/assets/components/SDK-React/create/override-sdk/template/NarrowWideDetails/NarrowWideDetails.tsx +8 -4
- package/tests/assets/components/SDK-React/create/override-sdk/template/NarrowWidePage/NarrowWidePage.tsx +4 -1
- package/tests/assets/components/SDK-React/create/override-sdk/template/OneColumnPage/OneColumnPage.tsx +3 -1
- package/tests/assets/components/SDK-React/create/override-sdk/template/PromotedFilters/PromotedFilters.tsx +4 -1
- package/tests/assets/components/SDK-React/create/override-sdk/template/SimpleTable/SimpleTable.tsx +88 -5
- package/tests/assets/components/SDK-React/create/override-sdk/template/SimpleTableSelect/SimpleTableSelect.tsx +6 -4
- package/tests/assets/components/SDK-React/create/override-sdk/template/SingleReferenceReadOnly/SingleReferenceReadOnly.tsx +22 -18
- package/tests/assets/components/SDK-React/create/override-sdk/template/TwoColumnPage/TwoColumnPage.tsx +3 -2
- package/tests/assets/components/SDK-React/create/override-sdk/template/WideNarrowDetails/WideNarrowDetails.tsx +8 -3
- package/tests/assets/components/SDK-React/create/override-sdk/template/WideNarrowPage/WideNarrowPage.tsx +4 -3
- package/tests/assets/components/SDK-React/create/override-sdk/widget/Attachment/Attachment.tsx +5 -1
- package/tests/assets/components/SDK-React/create/override-sdk/widget/FileUtility/FileUtility.tsx +8 -2
- package/tests/assets/components/SDK-React/create/override-sdk/widget/QuickCreate/QuickCreate.tsx +4 -1
- package/tests/assets/components/SDK-React/create/override-sdk/widget/SummaryList/SummaryList.tsx +4 -1
- package/tests/assets/components/SDK-React/create/override-sdk/widget/ToDo/ToDo.tsx +53 -82
- package/tests/assets/components/SDK-React/createAll/custom-constellation/field/Pega_DXIL_MyTextInput/index.jsx +1 -1
- package/tests/assets/components/SDK-React/createAll/override-sdk/designSystemExtension/AlertBanner/AlertBanner.tsx +47 -0
- package/tests/assets/components/SDK-React/createAll/override-sdk/designSystemExtension/AlertBanner/index.tsx +1 -0
- package/tests/assets/components/SDK-React/createAll/override-sdk/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +5 -3
- package/tests/assets/components/SDK-React/createAll/override-sdk/designSystemExtension/RichTextEditor/RichTextEditor.tsx +121 -0
- package/tests/assets/components/SDK-React/createAll/override-sdk/designSystemExtension/RichTextEditor/index.tsx +1 -0
- package/tests/assets/components/SDK-React/createAll/override-sdk/field/AutoComplete/AutoComplete.tsx +29 -27
- package/tests/assets/components/SDK-React/createAll/override-sdk/field/Checkbox/Checkbox.tsx +10 -6
- package/tests/assets/components/SDK-React/createAll/override-sdk/field/Currency/Currency.tsx +16 -15
- package/tests/assets/components/SDK-React/createAll/override-sdk/field/Date/Date.tsx +16 -15
- package/tests/assets/components/SDK-React/createAll/override-sdk/field/DateTime/DateTime.tsx +19 -14
- package/tests/assets/components/SDK-React/createAll/override-sdk/field/Decimal/Decimal.tsx +18 -16
- package/tests/assets/components/SDK-React/createAll/override-sdk/field/Dropdown/Dropdown.tsx +17 -25
- package/tests/assets/components/SDK-React/createAll/override-sdk/field/Email/Email.tsx +11 -11
- package/tests/assets/components/SDK-React/createAll/override-sdk/field/Integer/Integer.tsx +9 -7
- package/tests/assets/components/SDK-React/createAll/override-sdk/field/Percentage/Percentage.tsx +9 -9
- package/tests/assets/components/SDK-React/createAll/override-sdk/field/Phone/Phone.tsx +13 -12
- package/tests/assets/components/SDK-React/createAll/override-sdk/field/RadioButtons/RadioButtons.tsx +16 -35
- package/tests/assets/components/SDK-React/createAll/override-sdk/field/RichText/RichText.tsx +95 -0
- package/tests/assets/components/SDK-React/createAll/override-sdk/field/RichText/index.tsx +1 -0
- package/tests/assets/components/SDK-React/createAll/override-sdk/field/ScalarList/ScalarList.tsx +25 -18
- package/tests/assets/components/SDK-React/createAll/override-sdk/field/SemanticLink/SemanticLink.tsx +19 -19
- package/tests/assets/components/SDK-React/createAll/override-sdk/field/TextArea/TextArea.tsx +8 -6
- package/tests/assets/components/SDK-React/createAll/override-sdk/field/TextInput/TextInput.tsx +8 -7
- package/tests/assets/components/SDK-React/createAll/override-sdk/field/Time/Time.tsx +16 -28
- package/tests/assets/components/SDK-React/createAll/override-sdk/field/URL/URL.tsx +10 -8
- package/tests/assets/components/SDK-React/createAll/override-sdk/field/UserReference/UserReference.tsx +29 -29
- package/tests/assets/components/SDK-React/createAll/override-sdk/infra/Assignment/Assignment.tsx +5 -2
- package/tests/assets/components/SDK-React/createAll/override-sdk/infra/AssignmentCard/AssignmentCard.tsx +4 -2
- package/tests/assets/components/SDK-React/createAll/override-sdk/infra/DeferLoad/DeferLoad.tsx +172 -0
- package/tests/assets/components/SDK-React/createAll/override-sdk/infra/DeferLoad/index.tsx +1 -0
- package/tests/assets/components/SDK-React/createAll/override-sdk/infra/MultiStep/MultiStep.tsx +4 -3
- package/tests/assets/components/SDK-React/createAll/override-sdk/infra/VerticalTabs/VerticalTabs.tsx +4 -1
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/AppShell/AppShell.tsx +6 -4
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/BannerPage/BannerPage.tsx +4 -1
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/CaseSummary/CaseSummary.tsx +4 -1
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/CaseView/CaseView.tsx +6 -3
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/Confirmation/Confirmation.tsx +23 -44
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/DataReference/DataReference.tsx +6 -2
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/Details/Details.tsx +5 -1
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/DetailsThreeColumn/DetailsThreeColumn.tsx +5 -1
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/DetailsTwoColumn/DetailsTwoColumn.tsx +5 -1
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/FieldGroupTemplate/FieldGroupTemplate.tsx +6 -2
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/InlineDashboardPage/InlineDashboardPage.tsx +5 -1
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/ListPage/ListPage.tsx +6 -3
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/ListView/ListView.tsx +89 -93
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/ListView/utils.ts +170 -23
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/NarrowWideDetails/NarrowWideDetails.tsx +5 -1
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/NarrowWidePage/NarrowWidePage.tsx +4 -1
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/OneColumnPage/OneColumnPage.tsx +3 -1
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/PromotedFilters/PromotedFilters.tsx +4 -1
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/SimpleTable/SimpleTable.tsx +88 -5
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/SimpleTableSelect/SimpleTableSelect.tsx +6 -4
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/TwoColumnPage/TwoColumnPage.tsx +3 -2
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/WideNarrowDetails/WideNarrowDetails.tsx +5 -1
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/WideNarrowPage/WideNarrowPage.tsx +4 -3
- package/tests/assets/components/SDK-React/createAll/override-sdk/widget/Attachment/Attachment.tsx +5 -1
- package/tests/assets/components/SDK-React/createAll/override-sdk/widget/FileUtility/FileUtility.tsx +8 -2
- package/tests/assets/components/SDK-React/createAll/override-sdk/widget/QuickCreate/QuickCreate.tsx +4 -1
- package/tests/assets/components/SDK-React/createAll/override-sdk/widget/SummaryList/SummaryList.tsx +4 -1
- package/tests/assets/components/SDK-React/createAll/override-sdk/widget/ToDo/ToDo.tsx +53 -82
- package/tests/functional/localCreateBuildAllDeleteAllCustom.test.js +1 -1
- package/tests/functional/localCreateBuildDeleteOverride.test.js +2 -1
- package/tests/functional/localCreatePublishAllDeleteAllCustom.test.js +1 -2
- package/tests/functional/localCreatePublishAllDeleteAllOverride.test.js +0 -4
- package/tests/functional/localCreatePublishDeleteOverride.test.js +2 -5
package/tests/assets/components/SDK-React/createAll/override-sdk/widget/FileUtility/FileUtility.tsx
CHANGED
|
@@ -2,14 +2,16 @@ 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 '
|
|
6
|
-
import ActionButtonsForFileUtil from '
|
|
5
|
+
// import SummaryList from '../../SummaryList';
|
|
6
|
+
// import ActionButtonsForFileUtil from '../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';
|
|
10
10
|
import { Button } from '@material-ui/core';
|
|
11
11
|
import { validateMaxSize } from '@pega/react-sdk-components/lib/components/helpers/attachmentHelpers';
|
|
12
12
|
import { CircularProgress } from "@material-ui/core";
|
|
13
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
14
|
+
|
|
13
15
|
import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
14
16
|
|
|
15
17
|
|
|
@@ -23,6 +25,10 @@ declare const PCore: any;
|
|
|
23
25
|
|
|
24
26
|
|
|
25
27
|
export default function FileUtility(props:FileUtilityProps) {
|
|
28
|
+
// Get emitted components from map (so we can get any override that may exist)
|
|
29
|
+
const SummaryList = getComponentFromMap('SummaryList');
|
|
30
|
+
const ActionButtonsForFileUtil = getComponentFromMap('ActionButtonsForFileUtil');
|
|
31
|
+
|
|
26
32
|
const { getPConnect } = props;
|
|
27
33
|
const thePConn = getPConnect();
|
|
28
34
|
const required = true;
|
package/tests/assets/components/SDK-React/createAll/override-sdk/widget/QuickCreate/QuickCreate.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import WssQuickCreate from '@pega/react-sdk-components/lib/components/designSystemExtension/WssQuickCreate';
|
|
3
2
|
import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
3
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
4
4
|
// import type { PConnProps } from '../../../types/PConnProps';
|
|
5
5
|
|
|
6
6
|
// Can't add PConnTypes until we can resolve type problems with
|
|
@@ -11,6 +11,9 @@ import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
export default function QuickCreate(props /* : QuickCreateProps */) {
|
|
14
|
+
// Get emitted components from map (so we can get any override that may exist)
|
|
15
|
+
const WssQuickCreate = getComponentFromMap('WssQuickCreate');
|
|
16
|
+
|
|
14
17
|
const { getPConnect, heading, showCaseIcons, classFilter } = props;
|
|
15
18
|
const pConn = getPConnect();
|
|
16
19
|
const createCase = (className) => {
|
package/tests/assets/components/SDK-React/createAll/override-sdk/widget/SummaryList/SummaryList.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
3
3
|
|
|
4
4
|
// SummaryList does NOT have getPConnect. So, no need to extend from PConnProps
|
|
5
5
|
|
|
@@ -12,6 +12,9 @@ interface SummaryListProps {
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
export default function SummaryList(props: SummaryListProps) {
|
|
15
|
+
// Get emitted components from map (so we can get any override that may exist)
|
|
16
|
+
const SummaryItem = getComponentFromMap('SummaryItem');
|
|
17
|
+
|
|
15
18
|
const { menuIconOverride$: menuOverride = ""} = props;
|
|
16
19
|
return (
|
|
17
20
|
<div>
|
|
@@ -31,22 +31,21 @@ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps
|
|
|
31
31
|
|
|
32
32
|
interface ToDoProps extends PConnProps {
|
|
33
33
|
// If any, enter additional props that only exist on this component
|
|
34
|
-
datasource?: any
|
|
35
|
-
myWorkList?: any
|
|
34
|
+
datasource?: any;
|
|
35
|
+
myWorkList?: any;
|
|
36
36
|
// eslint-disable-next-line react/no-unused-prop-types
|
|
37
|
-
caseInfoID?: string
|
|
38
|
-
headerText?: string
|
|
37
|
+
caseInfoID?: string;
|
|
38
|
+
headerText?: string;
|
|
39
39
|
// eslint-disable-next-line react/no-unused-prop-types
|
|
40
|
-
itemKey?: string
|
|
41
|
-
showTodoList?: boolean
|
|
42
|
-
type?: string
|
|
40
|
+
itemKey?: string;
|
|
41
|
+
showTodoList?: boolean;
|
|
42
|
+
type?: string;
|
|
43
43
|
// eslint-disable-next-line react/no-unused-prop-types
|
|
44
|
-
context?: string
|
|
45
|
-
isConfirm?: boolean
|
|
44
|
+
context?: string;
|
|
45
|
+
isConfirm?: boolean;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
const isChildCase = assignment => {
|
|
48
|
+
const isChildCase = (assignment) => {
|
|
50
49
|
return assignment.isChild;
|
|
51
50
|
};
|
|
52
51
|
|
|
@@ -65,7 +64,7 @@ function getID(assignment: any) {
|
|
|
65
64
|
}
|
|
66
65
|
}
|
|
67
66
|
|
|
68
|
-
const useStyles = makeStyles(theme => ({
|
|
67
|
+
const useStyles = makeStyles((theme) => ({
|
|
69
68
|
root: {
|
|
70
69
|
marginTop: theme.spacing(1),
|
|
71
70
|
marginBottom: theme.spacing(1),
|
|
@@ -86,15 +85,7 @@ const useStyles = makeStyles(theme => ({
|
|
|
86
85
|
}));
|
|
87
86
|
|
|
88
87
|
export default function ToDo(props: ToDoProps) {
|
|
89
|
-
const {
|
|
90
|
-
getPConnect,
|
|
91
|
-
datasource = [],
|
|
92
|
-
headerText = 'To do',
|
|
93
|
-
showTodoList = true,
|
|
94
|
-
myWorkList = {},
|
|
95
|
-
type = 'worklist',
|
|
96
|
-
isConfirm = false
|
|
97
|
-
} = props;
|
|
88
|
+
const { getPConnect, datasource = [], headerText = 'To do', showTodoList = true, myWorkList = {}, type = 'worklist', isConfirm = false } = props;
|
|
98
89
|
|
|
99
90
|
const CONSTS = PCore.getConstants();
|
|
100
91
|
|
|
@@ -130,15 +121,15 @@ export default function ToDo(props: ToDoProps) {
|
|
|
130
121
|
}
|
|
131
122
|
}
|
|
132
123
|
|
|
133
|
-
const getAssignmentId = assignment => {
|
|
124
|
+
const getAssignmentId = (assignment) => {
|
|
134
125
|
return type === CONSTS.TODO ? assignment.ID : assignment.id;
|
|
135
126
|
};
|
|
136
127
|
|
|
137
|
-
const getPriority = assignment => {
|
|
128
|
+
const getPriority = (assignment) => {
|
|
138
129
|
return type === CONSTS.TODO ? assignment.urgency : assignment.priority;
|
|
139
130
|
};
|
|
140
131
|
|
|
141
|
-
const getAssignmentName = assignment => {
|
|
132
|
+
const getAssignmentName = (assignment) => {
|
|
142
133
|
return type === CONSTS.TODO ? assignment.name : assignment.stepName;
|
|
143
134
|
};
|
|
144
135
|
|
|
@@ -173,7 +164,7 @@ export default function ToDo(props: ToDoProps) {
|
|
|
173
164
|
const sTarget = thePConn.getContainerName();
|
|
174
165
|
const sTargetContainerName = sTarget;
|
|
175
166
|
|
|
176
|
-
const options = { containerName: sTargetContainerName, channelName:
|
|
167
|
+
const options = { containerName: sTargetContainerName, channelName: '' };
|
|
177
168
|
|
|
178
169
|
if (classname === null || classname === '') {
|
|
179
170
|
classname = thePConn.getCaseInfo().getClassName();
|
|
@@ -208,30 +199,26 @@ export default function ToDo(props: ToDoProps) {
|
|
|
208
199
|
|
|
209
200
|
if ((showTodoList && type !== CONSTS.TODO) || assignment.isChild === true) {
|
|
210
201
|
/* Supress link for todo inside flow step */
|
|
211
|
-
return (
|
|
212
|
-
<Button size='small' color='primary'>{`${assignment.name} ${getID(assignment)}`}</Button>
|
|
213
|
-
);
|
|
202
|
+
return <Button size="small" color="primary">{`${assignment.name} ${getID(assignment)}`}</Button>;
|
|
214
203
|
}
|
|
215
204
|
return displayID;
|
|
216
205
|
};
|
|
217
206
|
|
|
218
|
-
const getListItemComponent = assignment => {
|
|
207
|
+
const getListItemComponent = (assignment) => {
|
|
219
208
|
if (isDesktop) {
|
|
220
209
|
return (
|
|
221
210
|
<>
|
|
222
211
|
{localizedVal('Task in', localeCategory)}
|
|
223
212
|
{renderTaskId(type, getPConnect, showTodoList, assignment)}
|
|
224
213
|
{type === CONSTS.WORKLIST && assignment.status ? `\u2022 ` : undefined}
|
|
225
|
-
{type === CONSTS.WORKLIST && assignment.status ?
|
|
226
|
-
<span className='psdk-todo-assignment-status'>{assignment.status}</span>
|
|
227
|
-
) : undefined}
|
|
214
|
+
{type === CONSTS.WORKLIST && assignment.status ? <span className="psdk-todo-assignment-status">{assignment.status}</span> : undefined}
|
|
228
215
|
{` \u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`}
|
|
229
216
|
</>
|
|
230
217
|
);
|
|
231
218
|
}
|
|
232
219
|
return (
|
|
233
220
|
<>
|
|
234
|
-
<Button size=
|
|
221
|
+
<Button size="small" color="primary">{`${assignment.name} ${getID(assignment)}`}</Button>
|
|
235
222
|
{` \u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`}
|
|
236
223
|
</>
|
|
237
224
|
);
|
|
@@ -242,37 +229,33 @@ export default function ToDo(props: ToDoProps) {
|
|
|
242
229
|
{showTodoList && (
|
|
243
230
|
<CardHeader
|
|
244
231
|
title={
|
|
245
|
-
<Badge badgeContent={assignmentCount} color=
|
|
246
|
-
<Typography variant=
|
|
232
|
+
<Badge badgeContent={assignmentCount} overlap="rectangular" color="primary">
|
|
233
|
+
<Typography variant="h6">{headerText} </Typography>
|
|
247
234
|
</Badge>
|
|
248
235
|
}
|
|
249
236
|
></CardHeader>
|
|
250
237
|
)}
|
|
251
238
|
<List>
|
|
252
|
-
{assignments.map(assignment => (
|
|
253
|
-
|
|
254
|
-
<
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
<
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
showTodoList,
|
|
264
|
-
assignment
|
|
265
|
-
)} \u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`}
|
|
266
|
-
</div>
|
|
267
|
-
{!isConfirm && (
|
|
268
|
-
<div style={{ marginLeft: 'auto' }}>
|
|
269
|
-
<IconButton onClick={() => clickGo(assignment)}>
|
|
270
|
-
<ArrowForwardIosOutlinedIcon />
|
|
271
|
-
</IconButton>
|
|
272
|
-
</div>
|
|
273
|
-
)}
|
|
239
|
+
{assignments.map((assignment) => (
|
|
240
|
+
<div className="psdk-todo-avatar-header" key={getAssignmentId(assignment)}>
|
|
241
|
+
<Avatar className={classes.avatar} style={{ marginRight: '16px' }}>
|
|
242
|
+
{currentUserInitials}
|
|
243
|
+
</Avatar>
|
|
244
|
+
<div style={{ display: 'block' }}>
|
|
245
|
+
<Typography variant="h6">{assignment?.name}</Typography>
|
|
246
|
+
{`${localizedVal('Task in', localeCategory)} ${renderTaskId(type, getPConnect, showTodoList, assignment)} \u2022 ${localizedVal(
|
|
247
|
+
'Urgency',
|
|
248
|
+
localeCategory
|
|
249
|
+
)} ${getPriority(assignment)}`}
|
|
274
250
|
</div>
|
|
275
|
-
|
|
251
|
+
{!isConfirm && (
|
|
252
|
+
<div style={{ marginLeft: 'auto' }}>
|
|
253
|
+
<IconButton onClick={() => clickGo(assignment)}>
|
|
254
|
+
<ArrowForwardIosOutlinedIcon />
|
|
255
|
+
</IconButton>
|
|
256
|
+
</div>
|
|
257
|
+
)}
|
|
258
|
+
</div>
|
|
276
259
|
))}
|
|
277
260
|
</List>
|
|
278
261
|
</>
|
|
@@ -285,8 +268,8 @@ export default function ToDo(props: ToDoProps) {
|
|
|
285
268
|
{showTodoList && (
|
|
286
269
|
<CardHeader
|
|
287
270
|
title={
|
|
288
|
-
<Badge badgeContent={assignmentCount} color=
|
|
289
|
-
<Typography variant=
|
|
271
|
+
<Badge badgeContent={assignmentCount} overlap="rectangular" color="primary">
|
|
272
|
+
<Typography variant="h6">{headerText} </Typography>
|
|
290
273
|
</Badge>
|
|
291
274
|
}
|
|
292
275
|
avatar={<Avatar className={classes.avatar}>{currentUserInitials}</Avatar>}
|
|
@@ -294,17 +277,9 @@ export default function ToDo(props: ToDoProps) {
|
|
|
294
277
|
)}
|
|
295
278
|
<CardContent>
|
|
296
279
|
<List>
|
|
297
|
-
{assignments.map(assignment => (
|
|
298
|
-
<ListItem
|
|
299
|
-
|
|
300
|
-
dense
|
|
301
|
-
divider
|
|
302
|
-
onClick={() => clickGo(assignment)}
|
|
303
|
-
>
|
|
304
|
-
<ListItemText
|
|
305
|
-
primary={getAssignmentName(assignment)}
|
|
306
|
-
secondary={getListItemComponent(assignment)}
|
|
307
|
-
/>
|
|
280
|
+
{assignments.map((assignment) => (
|
|
281
|
+
<ListItem key={getAssignmentId(assignment)} dense divider onClick={() => clickGo(assignment)}>
|
|
282
|
+
<ListItemText primary={getAssignmentName(assignment)} secondary={getListItemComponent(assignment)} />
|
|
308
283
|
<ListItemSecondaryAction>
|
|
309
284
|
<IconButton onClick={() => clickGo(assignment)}>
|
|
310
285
|
<ArrowForwardIosOutlinedIcon />
|
|
@@ -317,21 +292,17 @@ export default function ToDo(props: ToDoProps) {
|
|
|
317
292
|
</Card>
|
|
318
293
|
)}
|
|
319
294
|
|
|
320
|
-
{type === CONSTS.TODO && !isConfirm &&
|
|
321
|
-
<Card className={classes.todoWrapper}>{toDoContent}</Card>
|
|
322
|
-
)}
|
|
295
|
+
{type === CONSTS.TODO && !isConfirm && <Card className={classes.todoWrapper}>{toDoContent}</Card>}
|
|
323
296
|
{type === CONSTS.TODO && isConfirm && <Fragment>{toDoContent}</Fragment>}
|
|
324
297
|
|
|
325
298
|
{assignmentCount > 3 && (
|
|
326
|
-
<Box display=
|
|
299
|
+
<Box display="flex" justifyContent="center">
|
|
327
300
|
{bShowMore ? (
|
|
328
|
-
<Button color=
|
|
329
|
-
{showMoreLocalizedValue ===
|
|
301
|
+
<Button color="primary" onClick={_showMore}>
|
|
302
|
+
{showMoreLocalizedValue === 'show_more' ? 'Show more' : showMoreLocalizedValue}
|
|
330
303
|
</Button>
|
|
331
304
|
) : (
|
|
332
|
-
<Button onClick={_showLess}>
|
|
333
|
-
{showlessLocalizedValue === 'show_less' ? 'Show less': showlessLocalizedValue}
|
|
334
|
-
</Button>
|
|
305
|
+
<Button onClick={_showLess}>{showlessLocalizedValue === 'show_less' ? 'Show less' : showlessLocalizedValue}</Button>
|
|
335
306
|
)}
|
|
336
307
|
</Box>
|
|
337
308
|
)}
|
|
@@ -342,8 +313,8 @@ export default function ToDo(props: ToDoProps) {
|
|
|
342
313
|
onClose={handleSnackbarClose}
|
|
343
314
|
message={snackbarMessage}
|
|
344
315
|
action={
|
|
345
|
-
<IconButton size=
|
|
346
|
-
<CloseIcon fontSize=
|
|
316
|
+
<IconButton size="small" aria-label="close" color="inherit" onClick={handleSnackbarClose}>
|
|
317
|
+
<CloseIcon fontSize="small" />
|
|
347
318
|
</IconButton>
|
|
348
319
|
}
|
|
349
320
|
/>
|
|
@@ -180,9 +180,9 @@ describe('create buildAll and deleteAll local custom', () => {
|
|
|
180
180
|
expect(stdout).not.toBeNull();
|
|
181
181
|
expect(stderr).not.toBeNull();
|
|
182
182
|
|
|
183
|
-
expect(stdout).toContain('Compiled successfully.');
|
|
184
183
|
// expect(stdout).not.toContain('Compiled with warnings.');
|
|
185
184
|
// expect(stdout).toContain('error');
|
|
185
|
+
|
|
186
186
|
// expect(stdout).not.toContain('Error');
|
|
187
187
|
|
|
188
188
|
expect(stdout).toContain('Pega_DXIL_MyTestText');
|
|
@@ -100,10 +100,11 @@ describe('create build and delete local override', () => {
|
|
|
100
100
|
case "SDK-Angular":
|
|
101
101
|
// expect(stdout).toContain(`${fileNameAngular} schema is valid`);
|
|
102
102
|
// expect(stdout).toContain('Compiled successfully.');
|
|
103
|
+
expect(stdout).toContain("Bundle React component [completed]");
|
|
103
104
|
break;
|
|
104
105
|
case "SDK-React":
|
|
105
106
|
expect(stdout).toContain(`${fileName} schema is valid`);
|
|
106
|
-
|
|
107
|
+
|
|
107
108
|
break;
|
|
108
109
|
case "SDK-WebComponents":
|
|
109
110
|
break;
|
|
@@ -22,7 +22,7 @@ switch (framework) {
|
|
|
22
22
|
|
|
23
23
|
describe('create publish and deleteAll local', () => {
|
|
24
24
|
it('initial delete/cleanup', async () => {
|
|
25
|
-
const script = `npm run deleteAll Local Y --prefix ../../..`;
|
|
25
|
+
const script = `npm run deleteAll Local custom Y --prefix ../../..`;
|
|
26
26
|
|
|
27
27
|
const { stdout, stderr } = await exec(script);
|
|
28
28
|
// console.log(stdout);
|
|
@@ -178,7 +178,6 @@ describe('create publish and deleteAll local', () => {
|
|
|
178
178
|
expect(stdout).not.toBeNull();
|
|
179
179
|
expect(stderr).not.toBeNull();
|
|
180
180
|
|
|
181
|
-
expect(stdout).toContain('Compiled successfully.');
|
|
182
181
|
// expect(stdout).not.toContain('Compiled with warnings.');
|
|
183
182
|
// expect(stdout).not.toContain('error');
|
|
184
183
|
// expect(stdout).not.toContain('Error');
|
|
@@ -201,10 +201,6 @@ describe('override publish and deleteAll local override', () => {
|
|
|
201
201
|
expect(stdout).not.toBeNull();
|
|
202
202
|
expect(stderr).not.toBeNull();
|
|
203
203
|
|
|
204
|
-
// get to work with angular
|
|
205
|
-
if (framework === "SDK-React") {
|
|
206
|
-
expect(stdout).toContain('Compiled successfully.');
|
|
207
|
-
}
|
|
208
204
|
|
|
209
205
|
|
|
210
206
|
// expect(stdout).not.toContain('Compiled with warnings.');
|
|
@@ -99,11 +99,7 @@ describe('create publish and delete local override', () => {
|
|
|
99
99
|
|
|
100
100
|
expect(stdout).toContain(fileName);
|
|
101
101
|
|
|
102
|
-
|
|
103
|
-
if (framework === "SDK-React") {
|
|
104
|
-
expect(stdout).toContain('Compiled successfully.');
|
|
105
|
-
}
|
|
106
|
-
|
|
102
|
+
|
|
107
103
|
|
|
108
104
|
// verify in map
|
|
109
105
|
const pegaLocalReactComponentMapPath = path.join(path.resolve('../../..'), 'sdk-local-component-map.js');
|
|
@@ -115,6 +111,7 @@ describe('create publish and delete local override', () => {
|
|
|
115
111
|
mapData= fs.readFileSync(pegaLocalAngularComponentMapPath, { encoding: 'utf8' });
|
|
116
112
|
break;
|
|
117
113
|
case "SDK-React":
|
|
114
|
+
expect(stdout).toContain("Bundle React component [completed]");
|
|
118
115
|
mapData= fs.readFileSync(pegaLocalReactComponentMapPath, { encoding: 'utf8' });
|
|
119
116
|
break;
|
|
120
117
|
case "SDK-WebComponents":
|