@pega/react-sdk-overrides 0.23.15 → 0.23.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/.DS_Store +0 -0
- package/lib/field/AutoComplete/.DS_Store +0 -0
- package/lib/field/AutoComplete/AutoComplete.tsx +7 -4
- package/lib/field/Checkbox/.DS_Store +0 -0
- package/lib/field/Currency/.DS_Store +0 -0
- package/lib/field/Date/.DS_Store +0 -0
- package/lib/field/TextContent/.DS_Store +0 -0
- package/lib/helpers/field-group-utils.js +1 -3
- package/lib/infra/.DS_Store +0 -0
- package/lib/template/.DS_Store +0 -0
- package/lib/template/CaseView/.DS_Store +0 -0
- package/lib/template/SimpleTable/.DS_Store +0 -0
- package/lib/template/SimpleTable/SimpleTable/.DS_Store +0 -0
- package/package.json +1 -1
package/lib/.DS_Store
ADDED
|
Binary file
|
|
Binary file
|
|
@@ -50,11 +50,11 @@ export default function AutoComplete(props) {
|
|
|
50
50
|
deferDatasource,
|
|
51
51
|
datasourceMetadata,
|
|
52
52
|
status,
|
|
53
|
-
helperText
|
|
53
|
+
helperText,
|
|
54
|
+
onRecordChange
|
|
54
55
|
} = props;
|
|
55
|
-
let parameters = datasourceMetadata?.datasource?.parameters;
|
|
56
56
|
const context = getPConnect().getContextName();
|
|
57
|
-
let { listType, datasource = [], columns = [] } = props;
|
|
57
|
+
let { listType, parameters, datasource = [], columns = [] } = props;
|
|
58
58
|
const [inputValue, setInputValue] = useState('');
|
|
59
59
|
const [options, setOptions] = useState<Array<IOption>>([]);
|
|
60
60
|
const [theDatasource, setDatasource] = useState(null);
|
|
@@ -85,7 +85,7 @@ export default function AutoComplete(props) {
|
|
|
85
85
|
if (deferDatasource && datasourceMetadata?.datasource?.name) {
|
|
86
86
|
listType = 'datapage';
|
|
87
87
|
datasource = datasourceMetadata.datasource.name;
|
|
88
|
-
parameters = flattenParameters(parameters);
|
|
88
|
+
parameters = flattenParameters(datasourceMetadata?.datasource?.parameters);
|
|
89
89
|
const displayProp = datasourceMetadata.datasource.propertyForDisplayText.startsWith('@P')
|
|
90
90
|
? datasourceMetadata.datasource.propertyForDisplayText.substring(3)
|
|
91
91
|
: datasourceMetadata.datasource.propertyForDisplayText;
|
|
@@ -151,6 +151,9 @@ export default function AutoComplete(props) {
|
|
|
151
151
|
const handleChange = (event: object, newValue) => {
|
|
152
152
|
const val = newValue ? newValue.key : '';
|
|
153
153
|
handleEvent(actionsApi, 'changeNblur', propName, val);
|
|
154
|
+
if (onRecordChange) {
|
|
155
|
+
onRecordChange(event);
|
|
156
|
+
}
|
|
154
157
|
};
|
|
155
158
|
|
|
156
159
|
const handleInputValue = (event, newInputValue) => {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -35,9 +35,7 @@ export const buildView = (pConn, index, viewConfigPath) => {
|
|
|
35
35
|
const isDatapage = referenceList.startsWith('D_');
|
|
36
36
|
const pageReference = isDatapage
|
|
37
37
|
? `${referenceList}[${index}]`
|
|
38
|
-
: `${pConn.getPageReference()}${referenceList
|
|
39
|
-
referenceList.lastIndexOf('.')
|
|
40
|
-
)}[${index}]`;
|
|
38
|
+
: `${pConn.getPageReference()}${referenceList}[${index}]`;
|
|
41
39
|
const meta = viewConfigPath
|
|
42
40
|
? pConn.getRawMetadata().children[0].children[0]
|
|
43
41
|
: pConn.getRawMetadata().children[0];
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED