@pega/dx-component-builder-sdk 0.23.13 → 0.23.15
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 +20 -0
- package/src/tasks/create/templates/SDK-Angular/field/Boolean/boolean.component.html.mustache +5 -1
- package/src/tasks/create/templates/SDK-Angular/field/Boolean/boolean.component.ts.mustache +6 -0
- package/src/tasks/create/templates/SDK-Angular/field/Date/date.component.html.mustache +5 -1
- package/src/tasks/create/templates/SDK-Angular/field/Date/date.component.ts.mustache +7 -0
- package/src/tasks/create/templates/SDK-Angular/template/DETAILS/details.component.ts.mustache +2 -1
- package/src/tasks/create/templates/SDK-Angular/template/FORM/form.component.scss.mustache +14 -5
- package/src/tasks/create/templates/SDK-React/field/Boolean/demo.stories.tsx.mustache +8 -4
- package/src/tasks/create/templates/SDK-React/field/Boolean/index.tsx.mustache +23 -21
- package/src/tasks/create/templates/SDK-React/field/Date/demo.stories.tsx.mustache +17 -15
- package/src/tasks/create/templates/SDK-React/field/Date/index.tsx.mustache +24 -26
- package/src/tasks/create/templates/SDK-React/field/DateTime/demo.stories.tsx.mustache +15 -14
- package/src/tasks/create/templates/SDK-React/field/DateTime/index.tsx.mustache +20 -22
- package/src/tasks/create/templates/SDK-React/field/Decimal/demo.stories.tsx.mustache +15 -14
- package/src/tasks/create/templates/SDK-React/field/Decimal/index.tsx.mustache +4 -5
- package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/demo.stories.tsx.mustache +14 -12
- package/src/tasks/create/templates/SDK-React/field/Decimal-Currency/index.tsx.mustache +3 -4
- package/src/tasks/create/templates/SDK-React/field/Decimal-Percentage/demo.stories.tsx.mustache +2 -2
- package/src/tasks/create/templates/SDK-React/field/Decimal-Percentage/index.tsx.mustache +3 -4
- package/src/tasks/create/templates/SDK-React/field/Integer/demo.stories.tsx.mustache +3 -3
- package/src/tasks/create/templates/SDK-React/field/Integer/index.tsx.mustache +3 -4
- package/src/tasks/create/templates/SDK-React/field/Picklist/demo.stories.tsx.mustache +2 -3
- package/src/tasks/create/templates/SDK-React/field/Picklist/index.tsx.mustache +3 -4
- package/src/tasks/create/templates/SDK-React/field/Picklist-Autocomplete/demo.stories.tsx.mustache +3 -3
- package/src/tasks/create/templates/SDK-React/field/Picklist-Autocomplete/index.tsx.mustache +31 -32
- package/src/tasks/create/templates/SDK-React/field/Picklist-RadioButtons/demo.stories.tsx.mustache +6 -4
- package/src/tasks/create/templates/SDK-React/field/Picklist-RadioButtons/index.tsx.mustache +22 -23
- package/src/tasks/create/templates/SDK-React/field/Text/demo.stories.tsx.mustache +8 -4
- package/src/tasks/create/templates/SDK-React/field/Text/index.tsx.mustache +18 -19
- package/src/tasks/create/templates/SDK-React/field/Text-Email/demo.stories.tsx.mustache +8 -4
- package/src/tasks/create/templates/SDK-React/field/Text-Email/index.tsx.mustache +26 -27
- package/src/tasks/create/templates/SDK-React/field/Text-Input/demo.stories.tsx.mustache +8 -4
- package/src/tasks/create/templates/SDK-React/field/Text-Input/index.tsx.mustache +18 -19
- package/src/tasks/create/templates/SDK-React/field/Text-Paragraph/demo.stories.tsx.mustache +8 -5
- package/src/tasks/create/templates/SDK-React/field/Text-Paragraph/index.tsx.mustache +21 -22
- package/src/tasks/create/templates/SDK-React/field/Text-Phone/demo.stories.tsx.mustache +6 -4
- package/src/tasks/create/templates/SDK-React/field/Text-Phone/index.tsx.mustache +39 -40
- package/src/tasks/create/templates/SDK-React/field/Text-URL/demo.stories.tsx.mustache +8 -4
- package/src/tasks/create/templates/SDK-React/field/Text-URL/index.tsx.mustache +19 -20
- package/src/tasks/create/templates/SDK-React/field/TimeOfDay/demo.stories.tsx.mustache +6 -4
- package/src/tasks/create/templates/SDK-React/field/TimeOfDay/index.tsx.mustache +4 -5
- package/src/tasks/create/templates/SDK-React/template/DETAILS/demo.stories.tsx.mustache +22 -22
- package/src/tasks/create/templates/SDK-React/template/DETAILS/index.tsx.mustache +19 -20
- package/src/tasks/create/templates/SDK-React/template/DETAILS-region/demo.stories.tsx.mustache +17 -17
- package/src/tasks/create/templates/SDK-React/template/DETAILS-region/index.tsx.mustache +19 -20
- package/src/tasks/create/templates/SDK-React/template/FORM/demo.stories.tsx.mustache +30 -18
- package/src/tasks/create/templates/SDK-React/template/FORM/index.tsx.mustache +6 -7
- package/src/tasks/create/templates/SDK-React/template/FORM-region/demo.stories.tsx.mustache +50 -24
- package/src/tasks/create/templates/SDK-React/template/FORM-region/index.tsx.mustache +8 -9
- package/src/tasks/create/templates/SDK-React/template/PAGE/demo.stories.tsx.mustache +37 -21
- package/src/tasks/create/templates/SDK-React/template/PAGE/index.tsx.mustache +4 -5
- package/src/tasks/create/templates/SDK-React/widget/CASE/demo.stories.tsx.mustache +22 -10
- package/src/tasks/create/templates/SDK-React/widget/CASE/index.tsx.mustache +10 -11
- package/src/tasks/create/templates/SDK-React/widget/PAGE/demo.stories.tsx.mustache +3 -4
- package/src/tasks/create/templates/SDK-React/widget/PAGE/index.tsx.mustache +23 -24
- package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/demo.stories.tsx.mustache +21 -9
- package/src/tasks/create/templates/SDK-React/widget/PAGE-CASE/index.tsx.mustache +37 -37
- package/src/tasks/validator/index.js +52 -47
- package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/field-group/field-group.component.html +21 -0
- package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/field-group/field-group.component.scss +18 -0
- package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/field-group/field-group.component.spec.ts +21 -0
- package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/field-group/field-group.component.ts +24 -0
- package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/material-details-fields/material-details-fields.component.html +8 -2
- package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/rich-text-editor/rich-text-editor.component.html +33 -0
- package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/rich-text-editor/rich-text-editor.component.scss +19 -0
- package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/rich-text-editor/rich-text-editor.component.spec.ts +24 -0
- package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/rich-text-editor/rich-text-editor.component.ts +89 -0
- package/tests/assets/sdk-a/components/create/override-sdk/field/check-box/check-box.component.html +5 -1
- package/tests/assets/sdk-a/components/create/override-sdk/field/check-box/check-box.component.ts +6 -0
- package/tests/assets/sdk-a/components/create/override-sdk/field/date/date.component.html +5 -1
- package/tests/assets/sdk-a/components/create/override-sdk/field/date/date.component.ts +7 -0
- package/tests/assets/sdk-a/components/create/override-sdk/field/group/config-ext.json +8 -0
- package/tests/assets/sdk-a/components/create/override-sdk/field/group/group.component.html +25 -0
- package/tests/assets/sdk-a/components/create/override-sdk/field/group/group.component.scss +0 -0
- package/tests/assets/sdk-a/components/create/override-sdk/field/group/group.component.spec.ts +21 -0
- package/tests/assets/sdk-a/components/create/override-sdk/field/group/group.component.ts +84 -0
- package/tests/assets/sdk-a/components/create/override-sdk/field/rich-text/rich-text.component.html +20 -0
- package/tests/assets/sdk-a/components/create/override-sdk/field/rich-text/rich-text.component.scss +0 -0
- package/tests/assets/sdk-a/components/create/override-sdk/field/rich-text/rich-text.component.spec.ts +24 -0
- package/tests/assets/sdk-a/components/create/override-sdk/field/rich-text/rich-text.component.ts +131 -0
- package/tests/assets/sdk-a/components/create/override-sdk/template/app-shell/app-shell.component.ts +2 -2
- package/tests/assets/sdk-a/components/create/override-sdk/template/case-view/case-view.component.ts +1 -1
- package/tests/assets/sdk-a/components/create/override-sdk/template/default-form/default-form.component.scss +9 -5
- package/tests/assets/sdk-a/components/create/override-sdk/template/details/details.component.ts +2 -1
- package/tests/assets/sdk-a/components/create/override-sdk/widget/file-utility/file-utility.component.ts +21 -15
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-boolean/pega-dxil-my-boolean.component.html +5 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-boolean/pega-dxil-my-boolean.component.ts +6 -0
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-date/pega-dxil-my-date.component.html +5 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-date/pega-dxil-my-date.component.ts +7 -0
- package/tests/assets/sdk-a/components/createAll/custom-sdk/template/pega-dxil-my-details/pega-dxil-my-details.component.ts +2 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/template/pega-dxil-my-form/pega-dxil-my-form.component.scss +14 -5
- package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/field-group/field-group.component.html +21 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/field-group/field-group.component.scss +18 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/field-group/field-group.component.spec.ts +21 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/field-group/field-group.component.ts +24 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/material-details-fields/material-details-fields.component.html +8 -2
- package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/rich-text-editor/rich-text-editor.component.html +33 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/rich-text-editor/rich-text-editor.component.scss +19 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/rich-text-editor/rich-text-editor.component.spec.ts +24 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/rich-text-editor/rich-text-editor.component.ts +89 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/check-box/check-box.component.html +5 -1
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/check-box/check-box.component.ts +6 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/date/date.component.html +5 -1
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/date/date.component.ts +7 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/group/config-ext.json +8 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/group/group.component.html +25 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/group/group.component.scss +0 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/group/group.component.spec.ts +21 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/group/group.component.ts +84 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/rich-text/rich-text.component.html +20 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/rich-text/rich-text.component.scss +0 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/rich-text/rich-text.component.spec.ts +24 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/rich-text/rich-text.component.ts +131 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/app-shell/app-shell.component.ts +2 -2
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/case-view/case-view.component.ts +1 -1
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/default-form/default-form.component.scss +9 -5
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/details/details.component.ts +2 -1
- package/tests/assets/sdk-a/components/createAll/override-sdk/widget/file-utility/file-utility.component.ts +21 -15
- package/tests/assets/sdk-r/components/create/custom-sdk/field/Pega_DXIL_MyTestText/demo.stories.tsx +8 -4
- package/tests/assets/sdk-r/components/create/custom-sdk/field/Pega_DXIL_MyTestText/index.tsx +15 -16
- package/tests/assets/sdk-r/components/create/override-sdk/designSystemExtension/FieldGroup/FieldGroup.tsx +35 -6
- package/tests/assets/sdk-r/components/create/override-sdk/field/Checkbox/Checkbox.tsx +7 -4
- package/tests/assets/sdk-r/components/create/override-sdk/field/Group/Group.tsx +37 -0
- package/tests/assets/sdk-r/components/create/override-sdk/field/Group/config-ext.json +8 -0
- package/tests/assets/sdk-r/components/create/override-sdk/field/Group/index.tsx +1 -0
- package/tests/assets/sdk-r/components/create/override-sdk/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx +14 -1
- package/tests/assets/sdk-r/components/create/override-sdk/template/DefaultForm/DefaultForm.css +6 -2
- package/tests/assets/sdk-r/components/create/override-sdk/template/SimpleTableManual/SimpleTableManual.tsx +19 -1
- package/tests/assets/sdk-r/components/create/override-sdk/widget/FileUtility/FileUtility.tsx +22 -16
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyTestText/PConnProps.d.ts +46 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyTestText/demo.stories.tsx +54 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyTestText/index.tsx +73 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyTestText/mock.ts +15 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyTestText/styles.ts +15 -0
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyBoolean/demo.stories.tsx +8 -4
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyBoolean/index.tsx +23 -21
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyCurrency/demo.stories.tsx +14 -12
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyCurrency/index.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDate/demo.stories.tsx +17 -15
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDate/index.tsx +21 -23
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDateTime/demo.stories.tsx +15 -14
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDateTime/index.tsx +20 -22
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDecimal/demo.stories.tsx +15 -14
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyDecimal/index.tsx +1 -2
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyEmail/demo.stories.tsx +8 -4
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyEmail/index.tsx +23 -24
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyInteger/demo.stories.tsx +3 -3
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyInteger/index.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyParagraph/demo.stories.tsx +8 -5
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyParagraph/index.tsx +18 -19
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPercentage/demo.stories.tsx +2 -2
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPercentage/index.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPhone/demo.stories.tsx +6 -4
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPhone/index.tsx +33 -34
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPicklist/demo.stories.tsx +2 -3
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyPicklist/index.tsx +0 -1
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyRadiobuttons/demo.stories.tsx +6 -4
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyRadiobuttons/index.tsx +22 -23
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MySearchbox/demo.stories.tsx +3 -3
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MySearchbox/index.tsx +28 -29
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyTestText/config.json +83 -0
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyTestText/demo.stories.tsx +59 -0
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyTestText/index.tsx +101 -0
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyTestText/mock.ts +16 -0
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyTestText/styles.js +7 -0
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyText/demo.stories.tsx +8 -4
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyText/index.tsx +15 -16
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyTextInput/demo.stories.tsx +8 -4
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyTextInput/index.tsx +15 -16
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyTimeOfDay/demo.stories.tsx +6 -4
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyTimeOfDay/index.tsx +1 -2
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyURL/demo.stories.tsx +8 -4
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyURL/index.tsx +16 -17
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyDetails/demo.stories.tsx +22 -22
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyDetails/index.tsx +16 -17
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyForm/demo.stories.tsx +56 -18
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyForm/index.tsx +3 -4
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyPage/demo.stories.tsx +37 -21
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyPage/index.tsx +4 -5
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +17 -17
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnDetails/index.tsx +16 -17
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnForm/demo.stories.tsx +50 -24
- package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyTwoColumnForm/index.tsx +8 -9
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyCaseWidget/demo.stories.tsx +22 -10
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyCaseWidget/index.tsx +10 -11
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +21 -9
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageCaseWidget/index.tsx +34 -34
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageWidget/demo.stories.tsx +3 -4
- package/tests/assets/sdk-r/components/createAll/custom-sdk/widget/Pega_DXIL_MyPageWidget/index.tsx +23 -24
- package/tests/assets/sdk-r/components/createAll/override-sdk/designSystemExtension/FieldGroup/FieldGroup.tsx +35 -6
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Checkbox/Checkbox.tsx +7 -4
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Group/Group.tsx +37 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Group/config-ext.json +8 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/field/Group/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx +14 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/DefaultForm/DefaultForm.css +6 -2
- package/tests/assets/sdk-r/components/createAll/override-sdk/template/SimpleTableManual/SimpleTableManual.tsx +19 -1
- package/tests/assets/sdk-r/components/createAll/override-sdk/widget/FileUtility/FileUtility.tsx +22 -16
|
@@ -11,16 +11,16 @@ window.PCore = {
|
|
|
11
11
|
getGenericFailedMessage() {
|
|
12
12
|
/* nothing */
|
|
13
13
|
}
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
15
|
},
|
|
16
16
|
getConstants: (): any => {
|
|
17
17
|
return {
|
|
18
18
|
CASE_INFO: {
|
|
19
|
-
INSTRUCTIONS:
|
|
19
|
+
INSTRUCTIONS: ''
|
|
20
20
|
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
24
|
|
|
25
25
|
const meta: Meta<typeof PegaDxilMyForm> = {
|
|
26
26
|
title: 'PegaDxilMyForm',
|
|
@@ -34,7 +34,7 @@ const meta: Meta<typeof PegaDxilMyForm> = {
|
|
|
34
34
|
export default meta;
|
|
35
35
|
type Story = StoryObj<typeof PegaDxilMyForm>;
|
|
36
36
|
|
|
37
|
-
export const BasePegaDxilMyForm: Story =
|
|
37
|
+
export const BasePegaDxilMyForm: Story = args => {
|
|
38
38
|
|
|
39
39
|
const [firstName, setFirstName] = useState('John');
|
|
40
40
|
const [middleName, setMiddleName] = useState('');
|
|
@@ -44,10 +44,10 @@ export const BasePegaDxilMyForm: Story = (args) => {
|
|
|
44
44
|
const [email, setEmail] = useState('john@doe.com');
|
|
45
45
|
|
|
46
46
|
const props = {
|
|
47
|
-
NumCols:
|
|
47
|
+
NumCols: '1',
|
|
48
48
|
template: 'DefaultForm',
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
getPConnect: () => {
|
|
51
51
|
return {
|
|
52
52
|
getChildren: () => {
|
|
53
53
|
return [
|
|
@@ -69,12 +69,19 @@ export const BasePegaDxilMyForm: Story = (args) => {
|
|
|
69
69
|
return {
|
|
70
70
|
getActionsApi: () => {
|
|
71
71
|
return {
|
|
72
|
-
updateFieldValue: () => {
|
|
73
|
-
|
|
72
|
+
updateFieldValue: () => {
|
|
73
|
+
/* nothing */
|
|
74
|
+
},
|
|
75
|
+
triggerFieldChange: () => {
|
|
76
|
+
/* nothing */
|
|
77
|
+
}
|
|
74
78
|
};
|
|
75
79
|
},
|
|
76
80
|
getStateProps: () => {
|
|
77
81
|
return { value: '.firstname' };
|
|
82
|
+
},
|
|
83
|
+
getComputedVisibility: () => {
|
|
84
|
+
return true;
|
|
78
85
|
}
|
|
79
86
|
};
|
|
80
87
|
}
|
|
@@ -92,12 +99,19 @@ export const BasePegaDxilMyForm: Story = (args) => {
|
|
|
92
99
|
return {
|
|
93
100
|
getActionsApi: () => {
|
|
94
101
|
return {
|
|
95
|
-
updateFieldValue: () => {
|
|
96
|
-
|
|
102
|
+
updateFieldValue: () => {
|
|
103
|
+
/* nothing */
|
|
104
|
+
},
|
|
105
|
+
triggerFieldChange: () => {
|
|
106
|
+
/* nothing */
|
|
107
|
+
}
|
|
97
108
|
};
|
|
98
109
|
},
|
|
99
110
|
getStateProps: () => {
|
|
100
111
|
return { value: '.middlename' };
|
|
112
|
+
},
|
|
113
|
+
getComputedVisibility: () => {
|
|
114
|
+
return true;
|
|
101
115
|
}
|
|
102
116
|
};
|
|
103
117
|
}
|
|
@@ -117,12 +131,19 @@ export const BasePegaDxilMyForm: Story = (args) => {
|
|
|
117
131
|
return {
|
|
118
132
|
getActionsApi: () => {
|
|
119
133
|
return {
|
|
120
|
-
updateFieldValue: () => {
|
|
121
|
-
|
|
134
|
+
updateFieldValue: () => {
|
|
135
|
+
/* nothing */
|
|
136
|
+
},
|
|
137
|
+
triggerFieldChange: () => {
|
|
138
|
+
/* nothing */
|
|
139
|
+
}
|
|
122
140
|
};
|
|
123
141
|
},
|
|
124
142
|
getStateProps: () => {
|
|
125
143
|
return { value: '.lastname' };
|
|
144
|
+
},
|
|
145
|
+
getComputedVisibility: () => {
|
|
146
|
+
return true;
|
|
126
147
|
}
|
|
127
148
|
};
|
|
128
149
|
}
|
|
@@ -157,6 +178,13 @@ export const BasePegaDxilMyForm: Story = (args) => {
|
|
|
157
178
|
},
|
|
158
179
|
onBlur: () => {
|
|
159
180
|
/* nothing */
|
|
181
|
+
},
|
|
182
|
+
getPConnect: () => {
|
|
183
|
+
return {
|
|
184
|
+
getComputedVisibility: () => {
|
|
185
|
+
return true;
|
|
186
|
+
}
|
|
187
|
+
};
|
|
160
188
|
}
|
|
161
189
|
},
|
|
162
190
|
|
|
@@ -212,6 +240,9 @@ export const BasePegaDxilMyForm: Story = (args) => {
|
|
|
212
240
|
return {
|
|
213
241
|
value: ''
|
|
214
242
|
};
|
|
243
|
+
},
|
|
244
|
+
getComputedVisibility: () => {
|
|
245
|
+
return true;
|
|
215
246
|
}
|
|
216
247
|
};
|
|
217
248
|
},
|
|
@@ -228,6 +259,13 @@ export const BasePegaDxilMyForm: Story = (args) => {
|
|
|
228
259
|
hasSuggestions: false,
|
|
229
260
|
onChange: val => {
|
|
230
261
|
setEmail(val.target.value);
|
|
262
|
+
},
|
|
263
|
+
getPConnect: () => {
|
|
264
|
+
return {
|
|
265
|
+
getComputedVisibility: () => {
|
|
266
|
+
return true;
|
|
267
|
+
}
|
|
268
|
+
};
|
|
231
269
|
}
|
|
232
270
|
}
|
|
233
271
|
];
|
|
@@ -237,14 +275,14 @@ export const BasePegaDxilMyForm: Story = (args) => {
|
|
|
237
275
|
}
|
|
238
276
|
];
|
|
239
277
|
},
|
|
240
|
-
getValue:
|
|
278
|
+
getValue: val => {
|
|
241
279
|
return val;
|
|
242
280
|
},
|
|
243
281
|
getCurrentView: () => {
|
|
244
|
-
return
|
|
282
|
+
return '';
|
|
245
283
|
},
|
|
246
284
|
getCurrentClassID: () => {
|
|
247
|
-
return
|
|
285
|
+
return '';
|
|
248
286
|
}
|
|
249
287
|
};
|
|
250
288
|
}
|
|
@@ -253,4 +291,4 @@ export const BasePegaDxilMyForm: Story = (args) => {
|
|
|
253
291
|
return <PegaDxilMyForm {...props} {...args} />;
|
|
254
292
|
};
|
|
255
293
|
|
|
256
|
-
BasePegaDxilMyForm.args = {}
|
|
294
|
+
BasePegaDxilMyForm.args = {};
|
package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyForm/index.tsx
CHANGED
|
@@ -25,7 +25,6 @@ const Child = connectToState(mapStateToProps)(props => {
|
|
|
25
25
|
// Duplicated runtime code from React SDK
|
|
26
26
|
|
|
27
27
|
// props passed in combination of props from property panel (config.json) and run time props from Constellation
|
|
28
|
-
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
29
28
|
export default function PegaDxilMyForm(props: PropsWithChildren<PegaDxilMyFormProps>) {
|
|
30
29
|
const { getPConnect, NumCols = '1' } = props;
|
|
31
30
|
const instructions = getInstructions(getPConnect(), props.instructions);
|
|
@@ -63,8 +62,8 @@ export default function PegaDxilMyForm(props: PropsWithChildren<PegaDxilMyFormPr
|
|
|
63
62
|
<div className='psdk-default-form-instruction-text'>
|
|
64
63
|
{/* server performs sanitization method for instructions html content */}
|
|
65
64
|
{/* eslint-disable react/no-danger */}
|
|
66
|
-
<div key='instructions' id='instruction-text'
|
|
67
|
-
dangerouslySetInnerHTML={{ __html: instructions }}
|
|
65
|
+
<div key='instructions' id='instruction-text'
|
|
66
|
+
dangerouslySetInnerHTML={{ __html: instructions }}
|
|
68
67
|
/>
|
|
69
68
|
</div>
|
|
70
69
|
)}
|
|
@@ -72,4 +71,4 @@ export default function PegaDxilMyForm(props: PropsWithChildren<PegaDxilMyFormPr
|
|
|
72
71
|
</>
|
|
73
72
|
</StyledPegaDxilMyFormWrapper>
|
|
74
73
|
);
|
|
75
|
-
}
|
|
74
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable react/no-unstable-nested-components */
|
|
2
2
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
|
|
4
|
-
import AppAnnouncement from
|
|
4
|
+
import AppAnnouncement from '@pega/react-sdk-components/lib/components/widget/AppAnnouncement';
|
|
5
5
|
|
|
6
6
|
import PegaDxilMyPage from './index';
|
|
7
7
|
import { pyHome1Resolved, pyHome1Raw } from './mock';
|
|
@@ -15,8 +15,7 @@ const meta: Meta<typeof PegaDxilMyPage> = {
|
|
|
15
15
|
export default meta;
|
|
16
16
|
type Story = StoryObj<typeof PegaDxilMyPage>;
|
|
17
17
|
|
|
18
|
-
export const BasePegaDxilMyPage: Story =
|
|
19
|
-
|
|
18
|
+
export const BasePegaDxilMyPage: Story = args => {
|
|
20
19
|
const configProps = pyHome1Resolved.children[0].children[0].config;
|
|
21
20
|
|
|
22
21
|
const props = {
|
|
@@ -32,8 +31,12 @@ export const BasePegaDxilMyPage: Story = (args) => {
|
|
|
32
31
|
resolve({});
|
|
33
32
|
});
|
|
34
33
|
},
|
|
35
|
-
updateFieldValue: () => {
|
|
36
|
-
|
|
34
|
+
updateFieldValue: () => {
|
|
35
|
+
/* nothing */
|
|
36
|
+
},
|
|
37
|
+
triggerFieldChange: () => {
|
|
38
|
+
/* nothing */
|
|
39
|
+
}
|
|
37
40
|
};
|
|
38
41
|
},
|
|
39
42
|
getChildren: () => {
|
|
@@ -49,31 +52,44 @@ export const BasePegaDxilMyPage: Story = (args) => {
|
|
|
49
52
|
return pyHome1Raw;
|
|
50
53
|
},
|
|
51
54
|
createComponent: config => {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
55
|
+
if (config.type === 'AppAnnouncement') {
|
|
56
|
+
return (
|
|
57
|
+
<AppAnnouncement
|
|
58
|
+
key='announcement'
|
|
59
|
+
header='Announcements'
|
|
60
|
+
description={configProps.description}
|
|
61
|
+
datasource={configProps.datasource}
|
|
62
|
+
whatsnewlink={configProps.whatsnewlink}
|
|
63
|
+
getPConnect={(): typeof PConnect => ({}) as typeof PConnect}
|
|
64
|
+
/>
|
|
65
|
+
);
|
|
62
66
|
}
|
|
63
67
|
},
|
|
64
|
-
ignoreSuggestion: () => {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
ignoreSuggestion: () => {
|
|
69
|
+
/* nothing */
|
|
70
|
+
},
|
|
71
|
+
acceptSuggestion: () => {
|
|
72
|
+
/* nothing */
|
|
73
|
+
},
|
|
74
|
+
setInheritedProps: () => {
|
|
75
|
+
/* nothing */
|
|
76
|
+
},
|
|
77
|
+
resolveConfigProps: () => {
|
|
78
|
+
/* nothing */
|
|
79
|
+
}
|
|
68
80
|
};
|
|
69
81
|
}
|
|
70
82
|
};
|
|
71
83
|
|
|
72
84
|
const regionAChildren = pyHome1Raw.children[0].children.map(child => {
|
|
73
|
-
|
|
85
|
+
return props.getPConnect().createComponent(child);
|
|
74
86
|
});
|
|
75
87
|
|
|
76
|
-
return
|
|
88
|
+
return (
|
|
89
|
+
<PegaDxilMyPage {...props} {...args}>
|
|
90
|
+
{regionAChildren}
|
|
91
|
+
</PegaDxilMyPage>
|
|
92
|
+
);
|
|
77
93
|
};
|
|
78
94
|
|
|
79
95
|
BasePegaDxilMyPage.args = {};
|
package/tests/assets/sdk-r/components/createAll/custom-sdk/template/Pega_DXIL_MyPage/index.tsx
CHANGED
|
@@ -14,16 +14,15 @@ interface PegaDxilMyPageProps extends PConnProps {
|
|
|
14
14
|
// Duplicated runtime code from React SDK
|
|
15
15
|
|
|
16
16
|
// props passed in combination of props from property panel (config.json) and run time props from Constellation
|
|
17
|
-
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
18
17
|
export default function PegaDxilMyPage(props: PegaDxilMyPageProps) {
|
|
19
18
|
// Get emitted components from map (so we can get any override that may exist)
|
|
20
19
|
const OneColumn = getComponentFromMap('OneColumn');
|
|
21
20
|
|
|
22
21
|
return (
|
|
23
22
|
<StyledPegaDxilMyPageWrapper>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
<OneColumn
|
|
24
|
+
{...props}
|
|
25
|
+
/>
|
|
27
26
|
</StyledPegaDxilMyPageWrapper>
|
|
28
27
|
);
|
|
29
|
-
}
|
|
28
|
+
}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
|
|
3
|
-
import PegaDxilMyTwoColumnDetails from
|
|
4
|
-
import operatorDetails, { pyReviewRaw } from
|
|
3
|
+
import PegaDxilMyTwoColumnDetails from './index';
|
|
4
|
+
import operatorDetails, { pyReviewRaw } from './mock';
|
|
5
5
|
|
|
6
6
|
window.PCore = {
|
|
7
7
|
...window.PCore,
|
|
8
8
|
getUserApi: (): any => {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
return new Promise(resolve => {
|
|
10
|
+
resolve(operatorDetails);
|
|
11
|
+
});
|
|
12
12
|
},
|
|
13
13
|
getEnvironmentInfo: (): any => {
|
|
14
14
|
return {
|
|
15
15
|
getUseLocale: () => {
|
|
16
|
-
return
|
|
16
|
+
return 'en-US';
|
|
17
17
|
},
|
|
18
18
|
getLocale: () => {
|
|
19
19
|
return 'en-GB';
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
}
|
|
23
|
+
};
|
|
24
24
|
|
|
25
25
|
const meta: Meta<typeof PegaDxilMyTwoColumnDetails> = {
|
|
26
26
|
title: 'PegaDxilMyTwoColumnDetails',
|
|
27
27
|
component: PegaDxilMyTwoColumnDetails,
|
|
28
28
|
excludeStories: /.*Data$/,
|
|
29
29
|
parameters: {
|
|
30
|
-
type:
|
|
31
|
-
}
|
|
30
|
+
type: 'DetailsRegion'
|
|
31
|
+
}
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
export default meta;
|
|
35
35
|
type Story = StoryObj<typeof PegaDxilMyTwoColumnDetails>;
|
|
36
36
|
|
|
37
|
-
export const BasePegaDxilMyTwoColumnDetails: Story =
|
|
37
|
+
export const BasePegaDxilMyTwoColumnDetails: Story = args => {
|
|
38
38
|
const props = {
|
|
39
|
-
NumCols:
|
|
40
|
-
template:
|
|
39
|
+
NumCols: '2',
|
|
40
|
+
template: 'DefaultForm',
|
|
41
41
|
getPConnect: () => {
|
|
42
42
|
return {
|
|
43
43
|
getChildren: () => {
|
|
@@ -57,9 +57,9 @@ export const BasePegaDxilMyTwoColumnDetails: Story = (args) => {
|
|
|
57
57
|
},
|
|
58
58
|
resolveConfigProps: () => {
|
|
59
59
|
/* nothing */
|
|
60
|
-
}
|
|
60
|
+
}
|
|
61
61
|
};
|
|
62
|
-
}
|
|
62
|
+
}
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
return <PegaDxilMyTwoColumnDetails {...props} {...args} />;
|
|
@@ -67,6 +67,6 @@ export const BasePegaDxilMyTwoColumnDetails: Story = (args) => {
|
|
|
67
67
|
|
|
68
68
|
BasePegaDxilMyTwoColumnDetails.args = {
|
|
69
69
|
showHighlightedData: false,
|
|
70
|
-
label:
|
|
71
|
-
showLabel: true
|
|
72
|
-
}
|
|
70
|
+
label: 'Details Region',
|
|
71
|
+
showLabel: true
|
|
72
|
+
};
|
|
@@ -15,7 +15,6 @@ interface PegaDxilMyTwoColumnDetailsProps extends PConnProps {
|
|
|
15
15
|
}
|
|
16
16
|
// Duplicated runtime code from React SDK
|
|
17
17
|
// props passed in combination of props from property panel (config.json) and run time props from Constellation
|
|
18
|
-
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
19
18
|
export default function PegaDxilMyTwoColumnDetails(props: PegaDxilMyTwoColumnDetailsProps) {
|
|
20
19
|
// Get emitted components from map (so we can get any override that may exist)
|
|
21
20
|
const FieldGroup = getComponentFromMap('FieldGroup');
|
|
@@ -55,25 +54,25 @@ export default function PegaDxilMyTwoColumnDetails(props: PegaDxilMyTwoColumnDet
|
|
|
55
54
|
}
|
|
56
55
|
|
|
57
56
|
return (
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
57
|
+
<StyledPegaDxilMyTwoColumnDetailsWrapper>
|
|
58
|
+
<FieldGroup name={propsToUse.showLabel ? propsToUse.label : ''}>
|
|
59
|
+
{showHighlightedData && highlightedDataArr.length > 0 && (
|
|
60
|
+
<Grid container spacing={1} style={{ padding: '0 0 1em' }}>
|
|
61
|
+
{highlightedDataArr.map((child, i) => (
|
|
62
|
+
<Grid item xs={6} key={`hf-${i + 1}`}>
|
|
63
|
+
{child}
|
|
64
|
+
</Grid>
|
|
65
|
+
))}
|
|
66
|
+
</Grid>
|
|
67
|
+
)}
|
|
68
|
+
<Grid container spacing={1}>
|
|
69
|
+
{children.map((child, i) => (
|
|
70
|
+
<Grid item xs={6} key={`r-${i + 1}`}>
|
|
64
71
|
{child}
|
|
65
72
|
</Grid>
|
|
66
73
|
))}
|
|
67
74
|
</Grid>
|
|
68
|
-
|
|
69
|
-
<Grid container spacing={1}>
|
|
70
|
-
{children.map((child, i) => (
|
|
71
|
-
<Grid item xs={6} key={`r-${i + 1}`}>
|
|
72
|
-
{child}
|
|
73
|
-
</Grid>
|
|
74
|
-
))}
|
|
75
|
-
</Grid>
|
|
76
|
-
</FieldGroup>
|
|
75
|
+
</FieldGroup>
|
|
77
76
|
</StyledPegaDxilMyTwoColumnDetailsWrapper>
|
|
78
77
|
);
|
|
79
|
-
}
|
|
78
|
+
}
|
|
@@ -14,42 +14,67 @@ const meta: Meta<typeof PegaDxilMyTwoColumnForm> = {
|
|
|
14
14
|
component: PegaDxilMyTwoColumnForm,
|
|
15
15
|
excludeStories: /.*Data$/,
|
|
16
16
|
parameters: {
|
|
17
|
-
type:
|
|
18
|
-
}
|
|
17
|
+
type: 'TwoColumnForm'
|
|
18
|
+
}
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
export default meta;
|
|
22
22
|
type Story = StoryObj<typeof PegaDxilMyTwoColumnForm>;
|
|
23
23
|
|
|
24
24
|
const renderField = resolvedProps => {
|
|
25
|
-
const { displayMode, value = '', label = '', onChange} = resolvedProps;
|
|
25
|
+
const { displayMode, value = '', label = '', onChange } = resolvedProps;
|
|
26
26
|
|
|
27
27
|
const variant = displayMode === 'LABELS_LEFT' ? 'inline' : 'stacked';
|
|
28
28
|
let val: any = '';
|
|
29
29
|
if (label === 'Service Date')
|
|
30
|
-
val =
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
30
|
+
val = (
|
|
31
|
+
<MuiPickersUtilsProvider utils={DayjsUtils}>
|
|
32
|
+
<KeyboardDatePicker
|
|
33
|
+
variant='inline'
|
|
34
|
+
inputVariant='outlined'
|
|
35
|
+
placeholder='mm/dd/yyyy'
|
|
36
|
+
fullWidth
|
|
37
|
+
format='MM/DD/YYYY'
|
|
38
|
+
mask='__/__/____'
|
|
39
|
+
size='small'
|
|
40
|
+
label={label}
|
|
41
|
+
value={value || null}
|
|
42
|
+
onChange={onChange}
|
|
43
|
+
/>
|
|
44
|
+
</MuiPickersUtilsProvider>
|
|
45
|
+
);
|
|
43
46
|
|
|
44
47
|
|
|
45
48
|
if (label === 'Email')
|
|
46
|
-
val =
|
|
49
|
+
val = (
|
|
50
|
+
<TextField
|
|
51
|
+
type='email'
|
|
52
|
+
fullWidth
|
|
53
|
+
value={value}
|
|
54
|
+
size='small'
|
|
55
|
+
variant='outlined'
|
|
56
|
+
style={{ fontSize: '14px' }}
|
|
57
|
+
label={label}
|
|
58
|
+
onChange={onChange}
|
|
59
|
+
/>
|
|
60
|
+
);
|
|
47
61
|
|
|
48
62
|
if (label === 'First Name' || label === 'Last Name' || label === 'Middle Name')
|
|
49
63
|
val = <TextField value={value} fullWidth size='small' variant='outlined' style={{ fontSize: '14px' }} label={label} onChange={onChange} />;
|
|
50
64
|
|
|
51
65
|
if (label === 'Phone Number')
|
|
52
|
-
val =
|
|
66
|
+
val = (
|
|
67
|
+
<MuiPhoneNumber
|
|
68
|
+
value={value}
|
|
69
|
+
fullWidth
|
|
70
|
+
variant='outlined'
|
|
71
|
+
size='small'
|
|
72
|
+
style={{ fontSize: '14px' }}
|
|
73
|
+
defaultCountry='us'
|
|
74
|
+
label={label}
|
|
75
|
+
onChange={onChange}
|
|
76
|
+
/>
|
|
77
|
+
);
|
|
53
78
|
|
|
54
79
|
|
|
55
80
|
if (variant === 'inline') {
|
|
@@ -59,7 +84,7 @@ const renderField = resolvedProps => {
|
|
|
59
84
|
return <span key={label}>{val}</span>;
|
|
60
85
|
};
|
|
61
86
|
|
|
62
|
-
export const BasePegaDxilMyTwoColumnForm: Story =
|
|
87
|
+
export const BasePegaDxilMyTwoColumnForm: Story = args => {
|
|
63
88
|
const [firstName, setFirstName] = useState('John');
|
|
64
89
|
const [middleName, setMiddleName] = useState('');
|
|
65
90
|
const [lastName, setLastName] = useState('Joe');
|
|
@@ -140,7 +165,6 @@ export const BasePegaDxilMyTwoColumnForm: Story = (args) => {
|
|
|
140
165
|
const changeValue = date && date.isValid() ? date.toISOString() : null;
|
|
141
166
|
setServiceDate(changeValue);
|
|
142
167
|
}
|
|
143
|
-
|
|
144
168
|
}
|
|
145
169
|
];
|
|
146
170
|
const props = {
|
|
@@ -179,10 +203,12 @@ export const BasePegaDxilMyTwoColumnForm: Story = (args) => {
|
|
|
179
203
|
return props.getPConnect().createComponent(child);
|
|
180
204
|
});
|
|
181
205
|
|
|
182
|
-
return
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
206
|
+
return (
|
|
207
|
+
<PegaDxilMyTwoColumnForm {...props} {...args}>
|
|
208
|
+
{regionAChildren}
|
|
209
|
+
{regionBChildren}
|
|
210
|
+
</PegaDxilMyTwoColumnForm>
|
|
211
|
+
);
|
|
186
212
|
};
|
|
187
213
|
|
|
188
214
|
BasePegaDxilMyTwoColumnForm.args = {};
|
|
@@ -21,7 +21,6 @@ const useStyles = makeStyles(() => ({
|
|
|
21
21
|
// Duplicated runtime code from React SDK
|
|
22
22
|
|
|
23
23
|
// props passed in combination of props from property panel (config.json) and run time props from Constellation
|
|
24
|
-
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
25
24
|
export default function PegaDxilMyTwoColumnForm(props: PropsWithChildren<PegaDxilMyTwoColumnFormProps>) {
|
|
26
25
|
const classes = useStyles();
|
|
27
26
|
|
|
@@ -50,14 +49,14 @@ export default function PegaDxilMyTwoColumnForm(props: PropsWithChildren<PegaDxi
|
|
|
50
49
|
|
|
51
50
|
return (
|
|
52
51
|
<StyledPegaDxilMyTwoColumnFormWrapper>
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
<Grid container spacing={1}>
|
|
53
|
+
<Grid item xs={12} md={aSize} className={classes.colStyles}>
|
|
54
|
+
{childrenToRender[0]}
|
|
55
|
+
</Grid>
|
|
56
|
+
<Grid item xs={12} md={bSize} className={classes.colStyles}>
|
|
57
|
+
{childrenToRender[1]}
|
|
58
|
+
</Grid>
|
|
56
59
|
</Grid>
|
|
57
|
-
<Grid item xs={12} md={bSize} className={classes.colStyles}>
|
|
58
|
-
{childrenToRender[1]}
|
|
59
|
-
</Grid>
|
|
60
|
-
</Grid>
|
|
61
60
|
</StyledPegaDxilMyTwoColumnFormWrapper>
|
|
62
61
|
);
|
|
63
|
-
}
|
|
62
|
+
}
|
|
@@ -5,14 +5,14 @@ import { historyData } from './mock';
|
|
|
5
5
|
|
|
6
6
|
window.PCore = {
|
|
7
7
|
...window.PCore,
|
|
8
|
-
getDataApiUtils: ()
|
|
8
|
+
getDataApiUtils: (): any => {
|
|
9
9
|
return {
|
|
10
10
|
getData: (): any => {
|
|
11
11
|
return new Promise(resolve => {
|
|
12
12
|
resolve(historyData);
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
},
|
|
17
17
|
getConstants: (): any => {
|
|
18
18
|
return {
|
|
@@ -21,7 +21,7 @@ window.PCore = {
|
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
}
|
|
24
|
+
};
|
|
25
25
|
|
|
26
26
|
const meta: Meta<typeof PegaDxilMyCaseWidget> = {
|
|
27
27
|
title: 'PegaDxilMyCaseWidget',
|
|
@@ -32,7 +32,7 @@ const meta: Meta<typeof PegaDxilMyCaseWidget> = {
|
|
|
32
32
|
export default meta;
|
|
33
33
|
type Story = StoryObj<typeof PegaDxilMyCaseWidget>;
|
|
34
34
|
|
|
35
|
-
export const BasePegaDxilMyCaseWidget: Story =
|
|
35
|
+
export const BasePegaDxilMyCaseWidget: Story = args => {
|
|
36
36
|
|
|
37
37
|
const props = {
|
|
38
38
|
label: 'Case history',
|
|
@@ -50,14 +50,26 @@ export const BasePegaDxilMyCaseWidget: Story = (args) => {
|
|
|
50
50
|
},
|
|
51
51
|
getActionsApi: () => {
|
|
52
52
|
return {
|
|
53
|
-
updateFieldValue: () => {
|
|
54
|
-
|
|
53
|
+
updateFieldValue: () => {
|
|
54
|
+
/* nothing */
|
|
55
|
+
},
|
|
56
|
+
triggerFieldChange: () => {
|
|
57
|
+
/* nothing */
|
|
58
|
+
}
|
|
55
59
|
};
|
|
56
60
|
},
|
|
57
|
-
ignoreSuggestion: () => {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
ignoreSuggestion: () => {
|
|
62
|
+
/* nothing */
|
|
63
|
+
},
|
|
64
|
+
acceptSuggestion: () => {
|
|
65
|
+
/* nothing */
|
|
66
|
+
},
|
|
67
|
+
setInheritedProps: () => {
|
|
68
|
+
/* nothing */
|
|
69
|
+
},
|
|
70
|
+
resolveConfigProps: () => {
|
|
71
|
+
/* nothing */
|
|
72
|
+
}
|
|
61
73
|
};
|
|
62
74
|
}
|
|
63
75
|
};
|