@pega/dx-component-builder-sdk 0.8.5 → 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/src/tasks/create/templates/SDK-React/field/Boolean/index.tsx.mustache +5 -1
- package/src/tasks/create/templates/SDK-React/field/Date/index.tsx.mustache +6 -2
- package/src/tasks/create/templates/SDK-React/field/DateTime/index.tsx.mustache +6 -2
- package/src/tasks/create/templates/SDK-React/field/Decimal/index.tsx.mustache +5 -1
- package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/index.tsx.mustache +6 -2
- package/src/tasks/create/templates/SDK-React/field/Decimal-Percentage/index.tsx.mustache +6 -2
- package/src/tasks/create/templates/SDK-React/field/Integer/index.tsx.mustache +6 -2
- package/src/tasks/create/templates/SDK-React/field/Picklist/index.tsx.mustache +4 -1
- package/src/tasks/create/templates/SDK-React/field/Text/index.tsx.mustache +4 -1
- package/src/tasks/create/templates/SDK-React/field/Text-Email/index.tsx.mustache +6 -2
- package/src/tasks/create/templates/SDK-React/field/Text-Input/index.tsx.mustache +4 -1
- package/src/tasks/create/templates/SDK-React/field/Text-Paragraph/index.tsx.mustache +4 -1
- package/src/tasks/create/templates/SDK-React/field/Text-Phone/index.tsx.mustache +5 -1
- package/src/tasks/create/templates/SDK-React/field/Text-URL/index.tsx.mustache +6 -2
- package/src/tasks/create/templates/SDK-React/field/TimeOfDay/index.tsx.mustache +6 -2
- package/src/tasks/create/templates/SDK-React/template/DETAILS/index.tsx.mustache +4 -1
- package/src/tasks/create/templates/SDK-React/template/DETAILS-region/index.tsx.mustache +4 -1
- package/src/tasks/create/templates/SDK-React/template/PAGE/OneColumn.tsx.mustache +7 -6
- package/tests/assets/components/SDK-React/create/custom-sdk/field/Pega_DXIL_MyTestText/index.tsx +4 -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/custom-sdk/field/Pega_DXIL_MyBoolean/index.tsx +5 -1
- package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyCurrency/index.tsx +6 -2
- package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyDate/index.tsx +6 -2
- package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyDateTime/index.tsx +6 -2
- package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyDecimal/index.tsx +5 -1
- package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyEmail/index.tsx +6 -2
- package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyInteger/index.tsx +6 -2
- package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyParagraph/index.tsx +4 -1
- package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyPercentage/index.tsx +6 -2
- package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyPhone/index.tsx +5 -1
- package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyPicklist/index.tsx +4 -1
- package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyText/index.tsx +4 -1
- package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyTextInput/index.tsx +4 -1
- package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyTimeOfDay/index.tsx +6 -2
- package/tests/assets/components/SDK-React/createAll/custom-sdk/field/Pega_DXIL_MyURL/index.tsx +6 -2
- package/tests/assets/components/SDK-React/createAll/custom-sdk/template/Pega_DXIL_MyDetails/index.tsx +4 -1
- package/tests/assets/components/SDK-React/createAll/custom-sdk/template/Pega_DXIL_MyPage/OneColumn.tsx +7 -6
- package/tests/assets/components/SDK-React/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnDetails/index.tsx +4 -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 +5 -2
- package/tests/functional/localCreatePublishAllDeleteAllOverride.test.js +5 -6
- package/tests/functional/localCreatePublishDeleteOverride.test.js +1 -4
package/package.json
CHANGED
package/src/constants.js
CHANGED
|
@@ -307,6 +307,10 @@ export const COMPONENT_SCHEMA = {
|
|
|
307
307
|
name: 'Radio Buttons',
|
|
308
308
|
value: 'RadioButtons'
|
|
309
309
|
},
|
|
310
|
+
{
|
|
311
|
+
name: 'Rich Text',
|
|
312
|
+
value: 'RichText'
|
|
313
|
+
},
|
|
310
314
|
{
|
|
311
315
|
name: 'Scalar List',
|
|
312
316
|
value: 'ScalarList'
|
|
@@ -341,6 +345,10 @@ export const COMPONENT_SCHEMA = {
|
|
|
341
345
|
}
|
|
342
346
|
],
|
|
343
347
|
designSystemExtension: [
|
|
348
|
+
{
|
|
349
|
+
name: 'Alert Banner',
|
|
350
|
+
value: 'AlertBanner'
|
|
351
|
+
},
|
|
344
352
|
{
|
|
345
353
|
name: 'Banner',
|
|
346
354
|
value: 'Banner'
|
|
@@ -373,6 +381,10 @@ export const COMPONENT_SCHEMA = {
|
|
|
373
381
|
name: 'Pulse',
|
|
374
382
|
value: 'Pulse'
|
|
375
383
|
},
|
|
384
|
+
{
|
|
385
|
+
name: 'Rich Text Editor',
|
|
386
|
+
value: 'RichTextEditor'
|
|
387
|
+
},
|
|
376
388
|
{
|
|
377
389
|
name: 'Wss Quick Create',
|
|
378
390
|
value: 'WssQuickCreate'
|
|
@@ -395,6 +407,10 @@ export const COMPONENT_SCHEMA = {
|
|
|
395
407
|
name: 'Dashboard Filter',
|
|
396
408
|
value: 'DashboardFilter'
|
|
397
409
|
},
|
|
410
|
+
{
|
|
411
|
+
name: 'Defer Load',
|
|
412
|
+
value: 'DeferLoad'
|
|
413
|
+
},
|
|
398
414
|
{
|
|
399
415
|
name: 'Error Boundary',
|
|
400
416
|
value: 'ErrorBoundary'
|
|
@@ -100,7 +100,7 @@ const {{COMPONENT_CLASS_NAME}} = 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);
|
|
@@ -8,9 +8,10 @@ import {
|
|
|
8
8
|
} from '@material-ui/core';
|
|
9
9
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
10
10
|
// import PropTypes from 'prop-types';
|
|
11
|
-
import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
11
|
+
// import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
12
12
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
13
13
|
import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
14
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
14
15
|
|
|
15
16
|
interface {{COMPONENT_CLASS_NAME}}Props extends PConnProps {
|
|
16
17
|
// If any, enter additional props that only exist on this componentName
|
|
@@ -54,6 +55,9 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
54
55
|
displayMode,
|
|
55
56
|
hideLabel
|
|
56
57
|
} = props;
|
|
58
|
+
|
|
59
|
+
const FieldValueList = getComponentFromMap("FieldValueList");
|
|
60
|
+
|
|
57
61
|
const helperTextToDisplay = validatemessage || helperText;
|
|
58
62
|
|
|
59
63
|
const thePConn = getPConnect();
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { KeyboardDatePicker, MuiPickersUtilsProvider } from '@material-ui/pickers';
|
|
3
3
|
import DayjsUtils from '@date-io/dayjs';
|
|
4
|
-
import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
|
|
4
|
+
// import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
|
|
5
5
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
6
|
-
import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
6
|
+
// import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
7
7
|
// import PropTypes from 'prop-types';
|
|
8
8
|
import { format } from '@pega/react-sdk-components/lib/components/helpers/formatters';
|
|
9
9
|
import { dateFormatInfoDefault, getDateFormatInfo} from '@pega/react-sdk-components/lib/components/helpers/date-format-utils';
|
|
10
10
|
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
11
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
11
12
|
|
|
12
13
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
13
14
|
|
|
@@ -44,6 +45,9 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
44
45
|
const propName = pConn.getStateProps()["value"];
|
|
45
46
|
const helperTextToDisplay = validatemessage || helperText;
|
|
46
47
|
|
|
48
|
+
const TextInput = getComponentFromMap("TextInput");
|
|
49
|
+
const FieldValueList = getComponentFromMap("FieldValueList");
|
|
50
|
+
|
|
47
51
|
// Start with default dateFormatInfo
|
|
48
52
|
const dateFormatInfo = dateFormatInfoDefault;
|
|
49
53
|
// and then update, as needed, based on locale, etc.
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { KeyboardDateTimePicker, MuiPickersUtilsProvider } from '@material-ui/pickers';
|
|
3
3
|
import DayjsUtils from '@date-io/dayjs';
|
|
4
|
-
import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
|
|
4
|
+
// import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
|
|
5
5
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
6
|
-
import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
6
|
+
// import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
7
7
|
// import PropTypes from 'prop-types';
|
|
8
8
|
import { format } from '@pega/react-sdk-components/lib/components/helpers/formatters/';
|
|
9
9
|
import { dateFormatInfoDefault, getDateFormatInfo} from '@pega/react-sdk-components/lib/components/helpers/date-format-utils';
|
|
10
10
|
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
11
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
@@ -43,6 +44,9 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
43
44
|
const propName = pConn.getStateProps()["value"];
|
|
44
45
|
const helperTextToDisplay = validatemessage || helperText;
|
|
45
46
|
|
|
47
|
+
const TextInput = getComponentFromMap("TextInput");
|
|
48
|
+
const FieldValueList = getComponentFromMap("FieldValueList");
|
|
49
|
+
|
|
46
50
|
// Start with default dateFormatInfo
|
|
47
51
|
const dateFormatInfo = dateFormatInfoDefault;
|
|
48
52
|
// and then update, as needed, based on locale, etc.
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import CurrencyTextField from '@unicef/material-ui-currency-textfield';
|
|
3
|
-
import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
3
|
+
// import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
4
4
|
import { getCurrencyCharacters, getCurrencyOptions } from '@pega/react-sdk-components/lib/components/field/Currency/currency-utils.js';
|
|
5
5
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
6
6
|
import { format } from "@pega/react-sdk-components/lib/components/helpers/formatters";
|
|
7
7
|
// import PropTypes from 'prop-types';
|
|
8
8
|
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
9
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
10
|
+
|
|
9
11
|
|
|
10
12
|
|
|
11
13
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
@@ -49,6 +51,8 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
49
51
|
const propName = pConn.getStateProps()["value"];
|
|
50
52
|
const helperTextToDisplay = validatemessage || helperText;
|
|
51
53
|
|
|
54
|
+
const FieldValueList = getComponentFromMap("FieldValueList");
|
|
55
|
+
|
|
52
56
|
const [decValue, setDecimalvalue] = useState("");
|
|
53
57
|
const [theCurrDec, setCurrDec] = useState(".");
|
|
54
58
|
const [theCurrSep, setCurrSep] = useState(",");
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import CurrencyTextField from '@unicef/material-ui-currency-textfield';
|
|
3
|
-
import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
3
|
+
// import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
4
4
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
5
5
|
// import PropTypes from 'prop-types';
|
|
6
6
|
import { format } from "@pega/react-sdk-components/lib/components/helpers/formatters";
|
|
7
7
|
import { getCurrencyCharacters, getCurrencyOptions } from '@pega/react-sdk-components/lib/components/field/Currency/currency-utils.js';
|
|
8
8
|
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
9
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
10
|
+
|
|
9
11
|
|
|
10
12
|
|
|
11
13
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
@@ -44,7 +46,9 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
44
46
|
const propName = pConn.getStateProps()["value"];
|
|
45
47
|
const helperTextToDisplay = validatemessage || helperText;
|
|
46
48
|
|
|
47
|
-
|
|
49
|
+
const FieldValueList = getComponentFromMap("FieldValueList");
|
|
50
|
+
|
|
51
|
+
let readOnlyProp = {}; // Note: empty if NOT ReadOnly
|
|
48
52
|
|
|
49
53
|
if (readOnly) {
|
|
50
54
|
readOnlyProp = { readOnly: true };
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { makeStyles } from '@material-ui/core/styles';
|
|
4
4
|
import { TextField } from '@material-ui/core';
|
|
5
|
-
import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
|
|
6
|
-
import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
5
|
+
// import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
|
|
6
|
+
// import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
7
7
|
// import PropTypes from 'prop-types';
|
|
8
8
|
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
9
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
10
|
+
|
|
9
11
|
|
|
10
12
|
|
|
11
13
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
@@ -56,6 +58,8 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
56
58
|
} = props;
|
|
57
59
|
const helperTextToDisplay = validatemessage || helperText;
|
|
58
60
|
|
|
61
|
+
const TextInput = getComponentFromMap("TextInput");
|
|
62
|
+
const FieldValueList = getComponentFromMap("FieldValueList");
|
|
59
63
|
|
|
60
64
|
|
|
61
65
|
if (displayMode === 'LABELS_LEFT') {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { TextField } from '@material-ui/core';
|
|
4
|
-
import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
|
|
5
|
-
import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
4
|
+
// import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
|
|
5
|
+
// import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
6
6
|
// import PropTypes from 'prop-types';
|
|
7
7
|
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
8
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
@@ -36,6 +37,9 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
36
37
|
} = props;
|
|
37
38
|
const helperTextToDisplay = validatemessage || helperText;
|
|
38
39
|
|
|
40
|
+
const TextInput = getComponentFromMap("TextInput");
|
|
41
|
+
const FieldValueList = getComponentFromMap("FieldValueList");
|
|
42
|
+
|
|
39
43
|
|
|
40
44
|
if (displayMode === 'LABELS_LEFT') {
|
|
41
45
|
return <FieldValueList name={hideLabel ? '' : label} value={value} />;
|
|
@@ -4,8 +4,9 @@ import MenuItem from '@material-ui/core/MenuItem';
|
|
|
4
4
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
5
5
|
import Utils from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
6
6
|
// import PropTypes from 'prop-types';
|
|
7
|
-
import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
7
|
+
// import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
8
8
|
// import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
9
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
@@ -50,6 +51,8 @@ export default function {{COMPONENT_CLASS_NAME}}(props /* : {{COMPONENT_CLASS_NA
|
|
|
50
51
|
const [options, setOptions] = useState<Array<IOption>>([]);
|
|
51
52
|
const helperTextToDisplay = validatemessage || helperText;
|
|
52
53
|
|
|
54
|
+
const FieldValueList = getComponentFromMap("FieldValueList");
|
|
55
|
+
|
|
53
56
|
const thePConn = getPConnect();
|
|
54
57
|
const actionsApi = thePConn.getActionsApi();
|
|
55
58
|
const propName = thePConn.getStateProps()["value"];
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextField } from '@material-ui/core';
|
|
3
|
-
import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
3
|
+
// import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
4
4
|
// import PropTypes from 'prop-types';
|
|
5
5
|
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
6
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
@@ -36,6 +37,8 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
36
37
|
} = props;
|
|
37
38
|
const helperTextToDisplay = validatemessage || helperText;
|
|
38
39
|
|
|
40
|
+
const FieldValueList = getComponentFromMap("FieldValueList");
|
|
41
|
+
|
|
39
42
|
const maxLength = fieldMetadata?.maxLength;
|
|
40
43
|
|
|
41
44
|
let readOnlyProp = {}; // Note: empty if NOT ReadOnly
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { TextField, InputAdornment } from '@material-ui/core';
|
|
4
4
|
import MailOutlineIcon from '@material-ui/icons/MailOutline';
|
|
5
|
-
import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
|
|
6
|
-
import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
5
|
+
// import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
|
|
6
|
+
// import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
7
7
|
// import PropTypes from 'prop-types';
|
|
8
8
|
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
9
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
@@ -38,6 +39,9 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
38
39
|
} = props;
|
|
39
40
|
const helperTextToDisplay = validatemessage || helperText;
|
|
40
41
|
|
|
42
|
+
const TextInput = getComponentFromMap("TextInput");
|
|
43
|
+
const FieldValueList = getComponentFromMap("FieldValueList");
|
|
44
|
+
|
|
41
45
|
if (displayMode === 'LABELS_LEFT') {
|
|
42
46
|
return <FieldValueList name={hideLabel ? '' : label} value={value} />;
|
|
43
47
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextField } from '@material-ui/core';
|
|
3
|
-
import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
3
|
+
// import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
4
4
|
// import PropTypes from 'prop-types';
|
|
5
5
|
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
6
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
@@ -37,6 +38,8 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
37
38
|
} = props;
|
|
38
39
|
const helperTextToDisplay = validatemessage || helperText;
|
|
39
40
|
|
|
41
|
+
const FieldValueList = getComponentFromMap("FieldValueList");
|
|
42
|
+
|
|
40
43
|
const maxLength = fieldMetadata?.maxLength;
|
|
41
44
|
|
|
42
45
|
let readOnlyProp = {}; // Note: empty if NOT ReadOnly
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextField } from '@material-ui/core';
|
|
3
|
-
import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
3
|
+
// import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
4
4
|
// import PropTypes from 'prop-types';
|
|
5
5
|
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
6
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
@@ -36,6 +37,8 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
36
37
|
} = props;
|
|
37
38
|
const helperTextToDisplay = validatemessage || helperText;
|
|
38
39
|
|
|
40
|
+
const FieldValueList = getComponentFromMap("FieldValueList");
|
|
41
|
+
|
|
39
42
|
const maxLength = fieldMetadata?.maxLength;
|
|
40
43
|
|
|
41
44
|
let readOnlyProp = {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import MuiPhoneNumber from 'material-ui-phone-number';
|
|
3
|
-
import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
3
|
+
// import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
4
4
|
// import PropTypes from 'prop-types';
|
|
5
5
|
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
6
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
7
|
+
|
|
6
8
|
|
|
7
9
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
8
10
|
|
|
@@ -33,6 +35,8 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
33
35
|
} = props;
|
|
34
36
|
const helperTextToDisplay = validatemessage || helperText;
|
|
35
37
|
|
|
38
|
+
const FieldValueList = getComponentFromMap("FieldValueList");
|
|
39
|
+
|
|
36
40
|
let testProp = {};
|
|
37
41
|
|
|
38
42
|
testProp = {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { TextField } from '@material-ui/core';
|
|
4
|
-
import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
|
|
5
|
-
import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
4
|
+
// import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
|
|
5
|
+
// import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
6
6
|
// import PropTypes from 'prop-types';
|
|
7
7
|
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
8
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
@@ -36,6 +37,9 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
36
37
|
} = props;
|
|
37
38
|
const helperTextToDisplay = validatemessage || helperText;
|
|
38
39
|
|
|
40
|
+
const TextInput = getComponentFromMap("TextInput");
|
|
41
|
+
const FieldValueList = getComponentFromMap("FieldValueList");
|
|
42
|
+
|
|
39
43
|
if (displayMode === 'LABELS_LEFT') {
|
|
40
44
|
return <FieldValueList name={hideLabel ? '' : label} value={value} />;
|
|
41
45
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
|
|
2
|
+
// import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
|
|
3
3
|
import { KeyboardTimePicker, MuiPickersUtilsProvider } from '@material-ui/pickers';
|
|
4
4
|
import DayjsUtils from '@date-io/dayjs';
|
|
5
5
|
import dayjs from 'dayjs';
|
|
6
6
|
import AccessTimeIcon from '@material-ui/icons/AccessTime';
|
|
7
|
-
import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
7
|
+
// import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
8
8
|
// import PropTypes from 'prop-types';
|
|
9
9
|
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
10
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
@@ -37,6 +38,9 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
|
|
|
37
38
|
} = props;
|
|
38
39
|
const helperTextToDisplay = validatemessage || helperText;
|
|
39
40
|
|
|
41
|
+
const TextInput = getComponentFromMap("TextInput");
|
|
42
|
+
const FieldValueList = getComponentFromMap("FieldValueList");
|
|
43
|
+
|
|
40
44
|
if (displayMode === 'LABELS_LEFT') {
|
|
41
45
|
return <FieldValueList name={hideLabel ? '' : label} value={value} />;
|
|
42
46
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React, { createElement } from "react";
|
|
2
2
|
import Grid from "@material-ui/core/Grid";
|
|
3
|
-
import FieldGroup from "@pega/react-sdk-components/lib/components/designSystemExtension/FieldGroup";
|
|
3
|
+
// import FieldGroup from "@pega/react-sdk-components/lib/components/designSystemExtension/FieldGroup";
|
|
4
4
|
import createPConnectComponent from "@pega/react-sdk-components/lib/bridge/react_pconnect";
|
|
5
5
|
// import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
6
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from "./styles";
|
|
@@ -23,6 +24,8 @@ import Styled{{COMPONENT_CLASS_NAME}}Wrapper from "./styles";
|
|
|
23
24
|
export default function {{COMPONENT_CLASS_NAME}}(props /* : {{COMPONENT_CLASS_NAME}}Props */) {
|
|
24
25
|
const { label = '', showLabel = true, getPConnect, showHighlightedData = false } = props;
|
|
25
26
|
|
|
27
|
+
const FieldGroup = getComponentFromMap("FieldGroup");
|
|
28
|
+
|
|
26
29
|
// Get the inherited props from the parent to determine label settings
|
|
27
30
|
const propsToUse = { label, showLabel, ...getPConnect().getInheritedProps() };
|
|
28
31
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React, { createElement } from "react";
|
|
2
2
|
import Grid from "@material-ui/core/Grid";
|
|
3
|
-
import FieldGroup from "@pega/react-sdk-components/lib/components/designSystemExtension/FieldGroup";
|
|
3
|
+
// import FieldGroup from "@pega/react-sdk-components/lib/components/designSystemExtension/FieldGroup";
|
|
4
4
|
import createPConnectComponent from "@pega/react-sdk-components/lib/bridge/react_pconnect";
|
|
5
5
|
// import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
6
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from "./styles";
|
|
@@ -23,6 +24,8 @@ import Styled{{COMPONENT_CLASS_NAME}}Wrapper from "./styles";
|
|
|
23
24
|
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
24
25
|
export default function {{COMPONENT_CLASS_NAME}}(props /* : {{COMPONENT_CLASS_NAME}}Props */) {
|
|
25
26
|
const { label = '', showLabel = true, getPConnect, showHighlightedData = false } = props;
|
|
27
|
+
|
|
28
|
+
const FieldGroup = getComponentFromMap("FieldGroup");
|
|
26
29
|
|
|
27
30
|
// Get the inherited props from the parent to determine label settings
|
|
28
31
|
const propsToUse = { label, showLabel, ...getPConnect().getInheritedProps() };
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
import { Grid } from "@material-ui/core";
|
|
4
3
|
import { makeStyles } from '@material-ui/core/styles';
|
|
5
4
|
|
|
5
|
+
interface OneColumnProps{
|
|
6
|
+
// If any, enter additional props that only exist on this component
|
|
7
|
+
children: Array<any>
|
|
8
|
+
}
|
|
9
|
+
|
|
6
10
|
const useStyles = makeStyles((/* theme */) => ({
|
|
7
11
|
colStyles: {
|
|
8
12
|
display: "grid",
|
|
@@ -12,7 +16,7 @@ const useStyles = makeStyles((/* theme */) => ({
|
|
|
12
16
|
}));
|
|
13
17
|
|
|
14
18
|
|
|
15
|
-
export default function OneColumn(props) {
|
|
19
|
+
export default function OneColumn(props: OneColumnProps) {
|
|
16
20
|
const classes = useStyles();
|
|
17
21
|
|
|
18
22
|
const { children} = props;
|
|
@@ -26,7 +30,4 @@ export default function OneColumn(props) {
|
|
|
26
30
|
)
|
|
27
31
|
}
|
|
28
32
|
|
|
29
|
-
|
|
30
|
-
children: PropTypes.arrayOf(PropTypes.node).isRequired,
|
|
31
|
-
// template: PropTypes.string.isRequired
|
|
32
|
-
};
|
|
33
|
+
|
package/tests/assets/components/SDK-React/create/custom-sdk/field/Pega_DXIL_MyTestText/index.tsx
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextField } from '@material-ui/core';
|
|
3
|
-
import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
3
|
+
// import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
4
4
|
// import PropTypes from 'prop-types';
|
|
5
5
|
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
6
|
+
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
import StyledPegaDxilMyTestTextWrapper from './styles';
|
|
@@ -36,6 +37,8 @@ export default function PegaDxilMyTestText(props: PegaDxilMyTestTextProps) {
|
|
|
36
37
|
} = props;
|
|
37
38
|
const helperTextToDisplay = validatemessage || helperText;
|
|
38
39
|
|
|
40
|
+
const FieldValueList = getComponentFromMap("FieldValueList");
|
|
41
|
+
|
|
39
42
|
const maxLength = fieldMetadata?.maxLength;
|
|
40
43
|
|
|
41
44
|
let readOnlyProp = {}; // Note: empty if NOT ReadOnly
|
|
@@ -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([]);
|