@pega/angular-sdk-overrides 0.23.10 → 0.23.11

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.
@@ -18,6 +18,7 @@
18
18
  <div class="psdk-case-view-divider"></div>
19
19
 
20
20
  <component-mapper
21
+ *ngIf="arMainButtons$ && arSecondaryButtons$"
21
22
  name="ActionButtons"
22
23
  [props]="{ arMainButtons$, arSecondaryButtons$ }"
23
24
  [parent]="this"
@@ -108,7 +108,7 @@ export class DefaultFormComponent implements OnInit, OnDestroy {
108
108
  // normalize them
109
109
  const children = ReferenceComponent.normalizePConnArray(kids[0].getPConnect().getChildren());
110
110
 
111
- const visibleChildren = children.filter(child => child !== undefined);
111
+ const visibleChildren = children?.filter(child => child !== undefined) || [];
112
112
 
113
113
  if (areViewsChanged(this.arChildren$, visibleChildren)) {
114
114
  this.arChildren$ = visibleChildren;
@@ -44,18 +44,19 @@ function getFieldWidth(field, label) {
44
44
  export const getContext = thePConn => {
45
45
  const contextName = thePConn.getContextName();
46
46
  const pageReference = thePConn.getPageReference();
47
- // 8.7 change = referenceList may now be in top-level of state props,
48
- // not always in config of state props
49
- let { referenceList } = thePConn.getStateProps()?.config || thePConn.getStateProps();
47
+ const { readonlyContextList, referenceList = readonlyContextList } = thePConn.getStateProps()?.config || thePConn.getStateProps();
50
48
  const pageReferenceForRows = referenceList.startsWith('.') ? `${pageReference}.${referenceList.substring(1)}` : referenceList;
49
+ const viewName = thePConn.viewName;
51
50
 
52
51
  // removing "caseInfo.content" prefix to avoid setting it as a target while preparing pageInstructions
53
- referenceList = pageReferenceForRows.replace(PCore.getConstants().CASE_INFO.CASE_INFO_CONTENT, '');
52
+ // skipping the removal as StateMachine itself is removing this case info prefix while preparing pageInstructions
53
+ // referenceList = pageReferenceForRows.replace(PCore.getConstants().CASE_INFO.CASE_INFO_CONTENT, '');
54
54
 
55
55
  return {
56
56
  contextName,
57
57
  referenceListStr: referenceList,
58
- pageReferenceForRows
58
+ pageReferenceForRows,
59
+ viewName
59
60
  };
60
61
  };
61
62
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/angular-sdk-overrides",
3
- "version": "0.23.10",
3
+ "version": "0.23.11",
4
4
  "description": "Angular SDK - Code for overriding components",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"