@pega/dx-component-builder-sdk 0.8.6 → 0.8.7
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 +16 -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 +25 -28
- 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 +22 -31
- 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 +18 -38
- package/tests/assets/components/SDK-React/create/override-sdk/field/RichText/RichText.tsx +93 -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 +64 -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 +1 -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 +7 -2
- 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 +28 -49
- 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 +16 -11
- package/tests/assets/components/SDK-React/create/override-sdk/template/SimpleTable/SimpleTable.tsx +96 -13
- 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 -17
- 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 +7 -3
- 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 +25 -28
- 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 +22 -31
- 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 +18 -38
- package/tests/assets/components/SDK-React/createAll/override-sdk/field/RichText/RichText.tsx +93 -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 +28 -30
- package/tests/assets/components/SDK-React/createAll/override-sdk/field/ScalarList/config-ext.json +7 -22
- 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 +7 -2
- 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 +27 -21
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/Details/Details.tsx +6 -2
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/DetailsThreeColumn/DetailsThreeColumn.tsx +6 -2
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/DetailsTwoColumn/DetailsTwoColumn.tsx +6 -2
- 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 +6 -2
- 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 +16 -11
- package/tests/assets/components/SDK-React/createAll/override-sdk/template/SimpleTable/SimpleTable.tsx +96 -13
- 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 +8 -4
- 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 +7 -3
- 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 +0 -1
- package/tests/functional/localCreateBuildDeleteCustom.test.js +1 -1
- package/tests/functional/localCreateBuildDeleteOverride.test.js +1 -1
- package/tests/functional/localCreatePublishAllDeleteAllCustom.test.js +1 -1
- package/tests/functional/localCreatePublishAllDeleteAllOverride.test.js +0 -5
- package/tests/functional/localCreatePublishDeleteOverride.test.js +1 -4
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
2
3
|
|
|
3
4
|
// Need to fix an error noted in comment below before typedefs will work correctly
|
|
4
|
-
|
|
5
|
-
//
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
interface SingleReferenceReadOnlyProps extends PConnProps {
|
|
6
|
+
// If any, enter additional props that only exist on this component
|
|
7
|
+
config: any,
|
|
8
|
+
displayAs?: string,
|
|
9
|
+
ruleClass?: string,
|
|
10
|
+
label?: string,
|
|
11
|
+
displayMode?: string,
|
|
12
|
+
type: string,
|
|
13
|
+
referenceType?: string,
|
|
14
|
+
hideLabel?: boolean,
|
|
15
|
+
dataRelationshipContext?: string
|
|
16
|
+
}
|
|
16
17
|
|
|
17
18
|
|
|
18
|
-
export default function SingleReferenceReadOnly(props
|
|
19
|
+
export default function SingleReferenceReadOnly(props: SingleReferenceReadOnlyProps) {
|
|
19
20
|
const {
|
|
20
21
|
getPConnect,
|
|
21
22
|
displayAs = '',
|
|
@@ -44,8 +45,7 @@ export default function SingleReferenceReadOnly(props /* : SingleReferenceReadOn
|
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
47
|
|
|
47
|
-
|
|
48
|
-
return getPConnect().createComponent({
|
|
48
|
+
const component = getPConnect().createComponent({
|
|
49
49
|
type: 'SemanticLink',
|
|
50
50
|
config: {
|
|
51
51
|
...config,
|
|
@@ -55,5 +55,10 @@ export default function SingleReferenceReadOnly(props /* : SingleReferenceReadOn
|
|
|
55
55
|
hideLabel,
|
|
56
56
|
dataRelationshipContext
|
|
57
57
|
}
|
|
58
|
-
}
|
|
58
|
+
},
|
|
59
|
+
null, null, {}); // 2nd, 3rd, and 4th args empty string/object/null until typedef marked correctly as optional;
|
|
60
|
+
|
|
61
|
+
return (
|
|
62
|
+
<React.Fragment>{component}</React.Fragment>
|
|
63
|
+
)
|
|
59
64
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
import TwoColumn from '@pega/react-sdk-components/lib/components/template/TwoColumn/TwoColumn';
|
|
2
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
4
3
|
|
|
5
4
|
// TwoColumnPage does NOT have getPConnect. So, no need to extend from PConnProps
|
|
6
5
|
interface TwoColumnPageProps{
|
|
@@ -14,6 +13,8 @@ interface TwoColumnPageProps{
|
|
|
14
13
|
* and mapping to the TwoColumn template.
|
|
15
14
|
*/
|
|
16
15
|
export default function TwoColumnPage(props: TwoColumnPageProps) {
|
|
16
|
+
// Get emitted components from map (so we can get any override that may exist)
|
|
17
|
+
const TwoColumn = getComponentFromMap('TwoColumn');
|
|
17
18
|
|
|
18
19
|
return (
|
|
19
20
|
<TwoColumn
|
|
@@ -2,10 +2,11 @@ import React, { createElement } from 'react';
|
|
|
2
2
|
import Grid from '@material-ui/core/Grid';
|
|
3
3
|
import { GridSize } from '@material-ui/core/Grid';
|
|
4
4
|
import createPConnectComponent from '@pega/react-sdk-components/lib/bridge/react_pconnect';
|
|
5
|
-
import
|
|
5
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
6
|
+
|
|
6
7
|
// import type { PConnProps } from '../../../../types/PConnProps';
|
|
7
8
|
|
|
8
|
-
// Can't use PConnProps until
|
|
9
|
+
// Can't use PConnProps until PConnect.getChildren() type is ok
|
|
9
10
|
// interface WideNarrowDetailsProps extends PConnProps {
|
|
10
11
|
// // If any, enter additional props that only exist on this component
|
|
11
12
|
// showLabel?: boolean,
|
|
@@ -16,6 +17,9 @@ import FieldGroup from '@pega/react-sdk-components/lib/components/designSystemEx
|
|
|
16
17
|
const COLUMN_WIDTHS = [8, 4];
|
|
17
18
|
|
|
18
19
|
export default function WideNarrowDetails(props /* : WideNarrowDetailsProps */) {
|
|
20
|
+
// Get emitted components from map (so we can get any override that may exist)
|
|
21
|
+
const FieldGroup = getComponentFromMap('FieldGroup');
|
|
22
|
+
|
|
19
23
|
const { label, showLabel = true, getPConnect, showHighlightedData = false } = props;
|
|
20
24
|
|
|
21
25
|
// Get the inherited props from the parent to determine label settings
|
|
@@ -53,7 +57,8 @@ export default function WideNarrowDetails(props /* : WideNarrowDetailsProps */)
|
|
|
53
57
|
field.config.displayAsStatus = true;
|
|
54
58
|
}
|
|
55
59
|
|
|
56
|
-
return getPConnect().createComponent(field
|
|
60
|
+
return getPConnect().createComponent(field,
|
|
61
|
+
'', '', {}); // 2nd, 3rd, and 4th args empty string/object/null until typedef marked correctly as optional
|
|
57
62
|
});
|
|
58
63
|
}
|
|
59
64
|
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import React, { Children } from "react";
|
|
2
|
-
|
|
3
|
-
// import { TwoColumnPage as TwoColumn } from "@pega/cosmos-react-core";
|
|
4
|
-
import WideNarrow from '@pega/react-sdk-components/lib/components/template/WideNarrow/WideNarrow';
|
|
2
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
5
3
|
|
|
6
4
|
// WideNarrowPage does NOT have getPConnect. So, no need to extend from PConnProps
|
|
7
5
|
interface WideNarrowPageProps {
|
|
@@ -18,6 +16,9 @@ interface WideNarrowPageProps {
|
|
|
18
16
|
* to the Cosmos template.
|
|
19
17
|
*/
|
|
20
18
|
export default function WideNarrowPage(props: WideNarrowPageProps) {
|
|
19
|
+
// Get emitted components from map (so we can get any override that may exist)
|
|
20
|
+
const WideNarrow = getComponentFromMap('WideNarrow');
|
|
21
|
+
|
|
21
22
|
const { children, title, templateCol = '1fr 1fr', icon = '' } = props;
|
|
22
23
|
const childArray = Children.toArray(children);
|
|
23
24
|
|
package/tests/assets/components/SDK-React/create/override-sdk/widget/Attachment/Attachment.tsx
CHANGED
|
@@ -4,9 +4,10 @@ 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/widget/SummaryList'
|
|
8
7
|
import { CircularProgress } from "@material-ui/core";
|
|
9
8
|
import download from "downloadjs";
|
|
9
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
10
|
+
|
|
10
11
|
// import type { PConnProps } from '../../../types/PConnProps';
|
|
11
12
|
|
|
12
13
|
// Remove this and use "real" PCore type once .d.ts is fixed (currently shows 2 errors)
|
|
@@ -27,6 +28,9 @@ function getCurrentAttachmentsList(key, context) {
|
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
export default function Attachment(props /* :AttachmentProps */) {
|
|
31
|
+
// Get emitted components from map (so we can get any override that may exist)
|
|
32
|
+
const SummaryList = getComponentFromMap('SummaryList');
|
|
33
|
+
|
|
30
34
|
const PCoreVersion = PCore.getPCoreVersion();
|
|
31
35
|
const {value, getPConnect, label, validatemessage} = props;
|
|
32
36
|
/* this is a temporary fix because required is supposed to be passed as a boolean and NOT as a string */
|
|
@@ -44,7 +48,7 @@ export default function Attachment(props /* :AttachmentProps */) {
|
|
|
44
48
|
categoryName = value.pyCategoryName;
|
|
45
49
|
}
|
|
46
50
|
|
|
47
|
-
let valueRef = pConn.getStateProps()
|
|
51
|
+
let valueRef = pConn.getStateProps()["value"];
|
|
48
52
|
valueRef = valueRef.indexOf('.') === 0 ? valueRef.substring(1) : valueRef;
|
|
49
53
|
const [file, setFile] = useState(fileTemp);
|
|
50
54
|
|
|
@@ -254,7 +258,7 @@ export default function Attachment(props /* :AttachmentProps */) {
|
|
|
254
258
|
}
|
|
255
259
|
);
|
|
256
260
|
}
|
|
257
|
-
const fieldName = pConn.getStateProps()
|
|
261
|
+
const fieldName = pConn.getStateProps()["value"];
|
|
258
262
|
const context = pConn.getContextName();
|
|
259
263
|
|
|
260
264
|
PCore.getMessageManager().clearMessages({
|
package/tests/assets/components/SDK-React/create/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/create/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/create/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
|
/>
|
|
@@ -100,7 +100,7 @@ const PegaDxilMyTextInput = props => {
|
|
|
100
100
|
} else if (!hasSuggestions && status !== 'success') {
|
|
101
101
|
setStatus(validatemessage !== '' ? 'error' : undefined);
|
|
102
102
|
}
|
|
103
|
-
}, [validatemessage, hasSuggestions]);
|
|
103
|
+
}, [validatemessage, hasSuggestions, status]);
|
|
104
104
|
|
|
105
105
|
const onResolveSuggestionHandler = (accepted) => {
|
|
106
106
|
suggestionsHandler(accepted, pConn, setStatus);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Alert } from '@material-ui/lab';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
// AlertBanner is one of the few components that does NOT have getPConnect.
|
|
6
|
+
// So, no need to extend PConnProps
|
|
7
|
+
interface AlertBannerProps {
|
|
8
|
+
// If any, enter additional props that only exist on Date here
|
|
9
|
+
id: string,
|
|
10
|
+
variant: string,
|
|
11
|
+
messages: Array<string>,
|
|
12
|
+
onDismiss?: any
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
const SEVERITY_MAP = {
|
|
17
|
+
urgent: 'error',
|
|
18
|
+
warning: 'warning',
|
|
19
|
+
success: 'success',
|
|
20
|
+
info: 'info'
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export default function AlertBanner(props:AlertBannerProps) {
|
|
24
|
+
const { id, variant, messages, onDismiss } = props;
|
|
25
|
+
let additionalProps = {};
|
|
26
|
+
|
|
27
|
+
if (onDismiss) {
|
|
28
|
+
additionalProps = {
|
|
29
|
+
onClose: onDismiss
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return (
|
|
34
|
+
<div id={id}>
|
|
35
|
+
{messages.map(message => (
|
|
36
|
+
<Alert
|
|
37
|
+
key={message}
|
|
38
|
+
variant='outlined'
|
|
39
|
+
severity={SEVERITY_MAP[variant]}
|
|
40
|
+
{...additionalProps}
|
|
41
|
+
>
|
|
42
|
+
{message}
|
|
43
|
+
</Alert>
|
|
44
|
+
))}
|
|
45
|
+
</div>
|
|
46
|
+
);
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './AlertBanner';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import isDeepEqual from 'fast-deep-equal/react';
|
|
3
|
-
|
|
4
3
|
import Grid from '@material-ui/core/Grid';
|
|
5
4
|
import TextField from '@material-ui/core/TextField';
|
|
6
|
-
import Operator from '@pega/react-sdk-components/lib/components/designSystemExtension/Operator';
|
|
7
5
|
import { getDateFormatInfo } from '@pega/react-sdk-components/lib/components/helpers/date-format-utils';
|
|
8
6
|
import { getCurrencyOptions } from '@pega/react-sdk-components/lib/components/field/Currency/currency-utils';
|
|
7
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
9
8
|
|
|
10
9
|
import './CaseSummaryFields.css';
|
|
11
10
|
|
|
@@ -21,7 +20,10 @@ interface CaseSummaryFieldsProps{
|
|
|
21
20
|
}
|
|
22
21
|
|
|
23
22
|
|
|
24
|
-
export default function CaseSummaryFields(props:CaseSummaryFieldsProps) {
|
|
23
|
+
export default function CaseSummaryFields(props: CaseSummaryFieldsProps) {
|
|
24
|
+
// Get emitted components from map (so we can get any override that may exist)
|
|
25
|
+
const Operator = getComponentFromMap("Operator");
|
|
26
|
+
|
|
25
27
|
const { status, showStatus, theFields } = props;
|
|
26
28
|
|
|
27
29
|
const [theFieldsToRender, setFieldsToRender] = useState([]);
|